:root {
    --primary-color: #001f5a;
    --secondary-color: #002a6c;
    --accent-color: #4f46e5;
    --background-color: #f1f1f1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: #1a202c;
    scroll-behavior: smooth;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

/* --- Sidebar Navigation --- */
#sidebar {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}
#sidebar.open { transform: translateX(0); }
.sidebar-link.active {
    background-color: #edf2f7;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* --- Desktop Header --- */
.header-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width .3s;
}
.header-link:hover::after, .header-link.active::after { width: 100%; }

.sticky-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
}

/* --- Hero Section --- */
.hero-section { 
    height: 100vh; 
    overflow: hidden; 
    position: relative; 
}
#three-canvas { 
    position: absolute; 
    top: 0; 
    left: 0; 
    outline: none; 
    z-index: 1; 
}
.hero-content { 
    position: relative; 
    z-index: 2; 
}
.hero-heading { 
    animation: fadeInDown 1s ease-out forwards; 
}
.hero-subheading { 
    animation: fadeInUp 1s ease-out 0.3s forwards; 
    opacity: 0; 
}
.hero-cta-group { 
    animation: fadeInUp 1s ease-out 0.6s forwards; 
    opacity: 0; 
}
@keyframes fadeInDown { 
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}
@keyframes fadeInUp { 
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* --- General Section Styling --- */
.section-card {
    background-color: #FFFFFF;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.section-card:hover {
    transform: translateY(-8px) rotateY(3deg);
    box-shadow: 0 15px 30px rgba(0, 31, 90, 0.1);
    border-color: var(--primary-color);
}

/* --- Services Slider --- */
.slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* --- How It Works Timeline --- */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: extendLine 2s ease-out forwards;
}

@keyframes extendLine {
    from { height: 0; }
    to { height: 100%; }
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 12.5px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 35px;
}

.timeline-icon {
    position: absolute;
    top: -30px; 
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- Animation on Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Custom Button --- */
.cta-button {
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: scale(1);
}
.cta-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0, 31, 90, 0.25);
    transform: translateY(-2px);
}
.secondary-button {
    background-color: #eef2ff;
    color: var(--primary-color);
    border: 1px solid transparent;
}
.secondary-button:hover {
    background-color: #e0e7ff;
    border-color: var(--primary-color);
}

/* --- FAQ Accordion --- */
.faq-item details > summary { list-style: none; }
.faq-item details > summary::-webkit-details-marker { display: none; }
.faq-item details[open] summary .plus-icon { transform: rotate(45deg); }
.plus-icon { transition: transform 0.3s ease-out; }

/* ===== MOBILE RESPONSIVE STYLES ===== */

@media screen and (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    /* Timeline Mobile */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        padding: 10px 0 10px 50px;
        width: 100%;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 6px;
        width: 20px;
        height: 20px;
        top: 15px;
    }
    
    .timeline-content {
        padding: 15px 20px;
        margin-top: 25px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -20px;
    }
    
    /* Services Slider Mobile */
    .slider-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .services-slider {
        gap: 1rem;
    }
    
    .section-card {
        min-width: 280px;
    }
    
    /* Navigation Mobile */
    #sidebar {
        width: 85%;
        max-width: 320px;
    }
    
    /* Cards Mobile */
    .section-card {
        padding: 1.5rem !important;
    }
    
    /* Container Padding Mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* FAQ Mobile */
    .faq-item details {
        padding: 1rem !important;
    }
    
    /* Form Mobile */
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Button Sizes Mobile */
    .cta-button, .secondary-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    /* Extra Small Devices */
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .section-card {
        padding: 1.25rem !important;
        min-width: 260px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-item::after {
        left: 4px;
        width: 16px;
        height: 16px;
    }
    
    /* Footer Mobile */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    footer .col-span-2 {
        grid-column: 1;
    }
}

/* Responsive Timeline for Mobile & Tablets */
@media screen and (max-width: 820px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 15px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .section-card:hover {
        transform: none;
    }
    
    .cta-button:hover,
    .secondary-button:hover {
        transform: none;
    }
}

/* Ensure proper mobile viewport */
@media screen and (max-width: 767px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        font-size: 14px;
    }
/* --- Services Slider --- */
/* --- Services Slider --- */
.slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    
    /* FIX: Adds 1rem (16px) padding on ALL SIDES.
      This gives the card space to scale up without being cut.
    */
    padding: 1rem; 
}

}