:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --text-main: #0f172a;
    --text-dim: #475569;
    --white: #ffffff;
    --nav-height: 85px;
    --container-width: 1280px;
    --radius-lg: 32px;
    --radius-md: 18px;
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(79, 70, 229, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utils */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.reveal {
    opacity: 1;
    /* Handled by GSAP */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    height: 75px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.contact-btn {
    background: var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 151px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 90% 10%, #f5f3ff 0%, transparent 40%);
}

.hero-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
}

.accent {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-visual {
    position: relative;
    padding: 2rem;
}

.hero-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 2;
}

.stat-floating {
    position: absolute;
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    bottom: -20px;
    right: -20px;
    z-index: 3;
    box-shadow: 0 20px 40px var(--primary-glow);
}

/* Experience Sections */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tag {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
}

/* Grid Layouts */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background: var(--bg-surface);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    transition: 0.5s;
    border: 1px solid transparent;
}

.card:hover {
    background: #fff;
    border-color: var(--primary-light);
    transform: translateY(-15px);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    box-shadow: 60px 60px 0px rgba(197, 160, 89, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* Stats Refined */
.stats-banner {
    background: var(--text-main);
    padding: 80px 0;
    border-radius: var(--radius-lg);
    color: #fff;
    margin-top: 50px;
}

.stats-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 100px 0 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-info p {
    margin: 2rem 0;
    color: var(--text-dim);
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: 0.3s;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Burger Menu */
.menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .hero-flex {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        /* Align text to the left for a modern sidebar feel */
        transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 10000;
        /* Same as page transition but below toggle */
        padding: 10% 15%;
        /* Generous padding */
        gap: 1.5rem;
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 16px;
        position: relative;
        cursor: pointer;
        z-index: 10001;
        /* Higher than page transition and nav links */
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-main);
        position: absolute;
        transition: 0.3s;
    }

    .menu-toggle span:first-child {
        top: 0;
    }

    .menu-toggle span:last-child {
        bottom: 0;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar.active {
        background: white !important;
    }

    .nav-link {
        font-size: 2rem;
        /* Impactful size */
        font-weight: 800;
        color: var(--text-main);
        text-transform: uppercase;
        letter-spacing: -1px;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 4px;
        background: var(--primary);
        transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .nav-link.active::after,
    .nav-link:hover::after {
        width: 40px;
    }

    .contact-btn {
        margin-top: 2rem;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 1.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-flex {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Inner Hero Refined */
.inner-hero {
    min-height: 50vh;
    padding-top: calc(var(--nav-height) + 100px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.inner-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(79, 70, 229, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.inner-hero .hero-title {
    margin-bottom: 1.5rem;
}

.inner-hero .hero-subtitle {
    margin-bottom: 0;
    max-width: 650px;
}

.content-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
    padding: 100px 0;
}

.content-block.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.visual-box {
    background: var(--bg-surface);
    height: 500px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.content-text h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.content-text p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 1rem;
    margin-right: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.feature-pill i {
    color: var(--primary);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.team-card:hover {
    background: #fff;
    transform: translateY(-15px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-light);
}

.team-img {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.team-info p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
