/* ==========================================================================
   TechFix Pro - Professional Dark Navy Theme
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --bg-deep: #070b19;         
    --bg-surface: #0f172a;       
    --bg-card: #1e293b;         
    --bg-card-hover: #26354a;   
    --border-color: #2e3d52;     
    --border-glow: #3b82f6;     
    
    --primary-blue: #3b82f6;    
    --primary-hover: #2563eb;    
    --accent-cyan: #38bdf8;      
    
    --text-main: #f8fafc;       
    --text-muted: #94a3b8;      
    --text-dim: #64748b;        
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.logo-accent {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: var(--text-main);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.nav-btn.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(56, 189, 248, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn.highlight:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(56, 189, 248, 0.3));
    color: #fff;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.main-content {
    flex: 1;
    max-width: 1140px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    background-color: rgba(56, 189, 248, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-section {
    text-align: center;
    padding: 3rem 1.5rem 4rem 1.5rem;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin: 0 auto 1.25rem auto;
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.25rem auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


.service-category {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.category-header {
    background-color: rgba(15, 23, 42, 0.6);
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-cyan);
}

.category-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.service-table {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.15s ease;
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:hover {
    background-color: var(--bg-card-hover);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 1.5rem;
}

.service-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: right;
    white-space: nowrap;
}

.service-time {
    font-size: 0.85rem;
    color: var(--text-dim);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent-cyan);
    min-width: 80px;
}

.pricing-note {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
}

.contact-info-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
}

.contact-info-panel h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.info-item p {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Przyciski */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.full-width {
    width: 100%;
}

.chat-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 620px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.chat-header {
    background-color: rgba(15, 23, 42, 0.8);
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-ai {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.chat-status h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.status-online {
    font-size: 0.8rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-online .dot {
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
}

.chat-badge-info {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-window {
    flex: 1;
    padding: 1.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.5) 0%, var(--bg-card) 100%);
}

.message {
    max-width: 75%;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.message.ai {
    align-self: flex-start;
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message.loading {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.chat-input-wrapper {
    padding: 1.25rem 1.75rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.chat-input-box {
    display: flex;
    gap: 0.75rem;
}

.chat-input-box input {
    flex: 1;
    background-color: var(--bg-deep);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.chat-input-box input:focus {
    border-color: var(--primary-blue);
}

.btn-send {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 1.4rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-send:hover {
    background-color: var(--primary-hover);
}

.chat-footer-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
    text-align: center;
}

.chat-footer-note code {
    color: var(--accent-cyan);
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    background-color: var(--bg-surface);
    margin-top: auto;
}

@media (max-width: 850px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .service-meta {
        width: 100%;
        justify-content: space-between;
    }
}