/* --- Global Styles & Variables --- */
:root {
    --primary-blue: #0052FF;
    --dark-navy: #0D1A3B;
    --white-color: #FFFFFF;
    --off-white: #f8f9fa;
    --light-grey: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--white-color);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--dark-navy);
    font-weight: 700;
}

h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
section { padding: 6rem 0; }

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-family-headings);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary { background-color: var(--primary-blue); color: var(--white-color); }
.btn-primary:hover { background-color: #0045d1; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn-secondary { background-color: var(--white-color); color: var(--primary-blue); border: 2px solid var(--light-grey); }
.btn-secondary:hover { background-color: var(--off-white); border-color: var(--primary-blue); }
.btn-large { font-size: 1.1rem; padding: 16px 40px; }

.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 3.5rem auto; color: var(--text-secondary); }

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-grey);
    position: sticky; top: 0; z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-logo { font-family: var(--font-family-headings); font-size: 1.8rem; font-weight: 700; color: var(--dark-navy); text-decoration: none; }
.nav-menu { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-blue); }
.nav-actions { display: flex; gap: 1rem; }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--dark-navy); border-radius: 2px;}

/* --- Hero Section --- */
.hero-section { background-color: var(--off-white); text-align: center; padding: 6rem 0; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-tagline { color: var(--primary-blue); font-weight: 600; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 1rem; display: block; }
.hero-content .subtitle { font-size: 1.2rem; max-width: 650px; margin: 1.5rem auto 2.5rem auto; }

/* --- Why Us Section --- */
.why-us-section { background-color: var(--white-color); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { background: var(--white-color); border-radius: 12px; padding: 2.5rem 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--light-grey); text-align: center; }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-icon-wrapper { background-color: #e6edff; color: var(--primary-blue); width: 60px; height: 60px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.card-icon { font-size: 1.8rem; }
.value-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* --- Features Section --- */
.features-section { background-color: var(--off-white); }
.feature-item { display: flex; align-items: center; gap: 4rem; margin-top: 4rem; }
.feature-item:first-of-type { margin-top: 0; }
.feature-item.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-image { flex: 1; text-align: center; }
.feature-image img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-md); }

/* --- Testimonial Section --- */
.testimonial-section { text-align: center; }
.testimonial-quote-icon { font-size: 2.5rem; color: var(--light-grey); margin-bottom: 1.5rem; }
.testimonial-text { font-size: 1.4rem; font-weight: 500; color: var(--dark-navy); max-width: 800px; margin: 0 auto 1rem auto; line-height: 1.6; }
.testimonial-author { font-weight: 600; font-family: var(--font-family-headings); }

/* --- CTA Section --- */
.cta-section { background-color: var(--off-white); text-align: center; border-radius: 20px; max-width: 1140px; margin: 0 auto; padding: 5rem 1.5rem; }

/* --- Footer --- */
.main-footer { background-color: var(--dark-navy); color: #a9b4c9; padding: 5rem 0 2rem 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { font-size: 1.8rem; font-weight: 700; color: var(--white-color); margin-bottom: 1rem; }
.footer-about p { color: #a9b4c9; max-width: 300px; }
.footer-social { margin-top: 1.5rem; }
.footer-social a { color: #a9b4c9; font-size: 1.2rem; margin-right: 1.5rem; transition: color 0.3s ease; }
.footer-social a:hover { color: var(--white-color); }
.footer-links h4 { color: var(--white-color); margin-bottom: 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;}
.footer-links ul { list-style: none; }
.footer-links a { color: #a9b4c9; text-decoration: none; line-height: 2.2; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--white-color); }
.footer-bottom { text-align: center; border-top: 1px solid #3a4a6b; padding-top: 2rem; font-size: 0.9rem; }

/* --- ============================== --- */
/* --- CORRECTED RESPONSIVE STYLES --- */
/* --- ============================== --- */

/* For Tablets and smaller desktops */
@media (max-width: 992px) {
    .feature-item, 
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    section { padding: 4rem 1rem; }
    .cta-section { padding: 4rem 1.5rem; }

    /* Hide desktop navigation */
    .nav-menu, .nav-actions {
        display: none;
    }

    /* Show hamburger icon */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobile Menu Container */
    .nav-menu.active {
        display: flex; /* Makes the menu visible */
        position: fixed;
        left: 0;
        top: 80px; /* Position below the header */
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        height: calc(100vh - 80px); /* Full height minus header */
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: var(--shadow-md);
        gap: 0;
        padding: 2rem 0;
        align-items: center;
        justify-content: flex-start;
    }

    /* Mobile Menu Items */
    .nav-item {
        width: 100%;
        padding: 1.2rem 0;
        border-bottom: 1px solid var(--light-grey);
    }
    .nav-item:first-of-type {
        border-top: 1px solid var(--light-grey);
    }

    /* Show nav-actions inside the mobile menu */
    .nav-menu.active + .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 1.5rem;
        gap: 1rem;
        align-items: center;
    }

    /* Grid Layouts */
    .value-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about p {
        margin: 0 auto 1.5rem auto;
    }
}