
body, html {
    overflow: hidden; 
    overflow-y: auto;
    height: 100%;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.services-viewport {
    display: flex;
    min-height: 100vh;
    padding-top: 80px; 
}

.services-sidebar {
    width: 350px;
    background-color: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 122, 255, 0.2);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
}

.sidebar-top {
    padding: 40px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item i {
    font-size: 24px;
    color: #64748b;
}

.nav-text strong {
    display: block;
    font-family: 'Outfit';
    font-size: 15px;
    text-transform: uppercase;
    color: #94a3b8;
}

.nav-text span {
    font-size: 12px;
    font-weight: bold;
    color: #475569;
}

.nav-item.active {
    background: rgba(0, 122, 255, 0.1);
    border-left-color: #007aff;
}

.nav-item:hover {
    background: rgba(0, 122, 255, 0.1);
}

.nav-item.active i { color: #007aff; }
.nav-item.active strong { color: #ffffff; }

.services-content-area {
    flex: 1;
    background-color: #ffffff;
    padding: 80px 100px 40px 100px;
    height: calc(100vh - 80px);
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}
.service-panel {
    display: none;
    animation: slideUp 0.6s ease forwards;
}

.service-panel.active {
    display: block;
}

.panel-header h1 {
    font-family: 'Outfit';
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0;
}

.panel-body .summary {
    font-size: 20px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    padding: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    position: relative;
}

.feature-card i {
    font-size: 30px;
    color: #007aff;
    margin-bottom: 20px;
}

.feature-card h5 {
    font-family: 'Outfit';
    font-size: 18px;
    margin-bottom: 10px;
}

/* --- 6. FOOTER SECTION --- */
.footer {
    padding: 0;
}

.contact-footer {
    background: transparent; 
    margin-top: auto; 
    padding-top: 80px;
}

#currentYear {
    font-weight: bold;
    color: #64748b;
}

.contact-footer-divider {
    background: #e2e8f0;
    height: 1px;
    width: 100%;
    margin-bottom: 20px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive Optimization */
@media (max-width: 1024px) {
   
    body, html {
        overflow: auto; 
        height: auto;
    }

    .services-viewport { 
        flex-direction: column; 
    }

    .services-sidebar { 
        width: 100%; 
        height: auto; 
        position: relative; 
        top: 0; 
        border-right: none;
        border-bottom: 1px solid rgba(0, 122, 255, 0.2);
    }

    .services-content-area { 
        padding: 40px 20px; 
        height: auto; 
        overflow-y: visible;
    }

    /* --- 2. Sidebar Navigation Scaling --- */
    .sidebar-top {
        padding: 30px 20px;
        text-align: center;
    }

    .sidebar-top h2 {
        font-size: 24px; 
    }

    .nav-item {
        padding: 15px 20px; 
        gap: 15px;
    }

    .nav-item i {
        font-size: 20px;
    }

    .nav-text strong {
        font-size: 14px;
    }

    /* --- 3. Content Panel Scaling --- */
    .panel-header h1 {
        font-size: 28px; 
        line-height: 1.2;
    }

    .panel-body {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: left;
    }

    .btn-tech {
        display: inline-block; 
        margin: 20px auto 0 auto;
        width: fit-content; 
    }

    .panel-body .summary {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card h5 {
        font-size: 17px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* --- 4. Footer Scaling --- */
    .contact-footer {
        padding-top: 40px;
    }

    .footer-info h6 {
        font-size: 10px;
        line-height: 1.5;
    }
}