/* =========================================================
   TECHSPHERE — CINEMATIC AI INFRASTRUCTURE DESIGN SYSTEM
   FINAL PREMIUM CSS
   ========================================================= */

:root {

    /* BRAND */

    --primary: #3563E9;
    --primary-hover: #2954d6;

    --primary-soft: #eef4ff;

    --accent: #5b7cff;

    /* TEXT */

    --text: #0b1220;
    --muted: #64748b;

    /* SURFACES */

    --surface: #ffffff;
    --surface-alt: #f8fbff;

    /* BORDERS */

    --border: #e2e8f0;
    --border-soft: #f1f5f9;

    /* SHADOWS */

    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, .03);

    --shadow-md:
        0 10px 30px rgba(15, 23, 42, .04);

    --shadow-lg:
        0 24px 70px rgba(15, 23, 42, .06);

    --shadow-xl:
        0 40px 100px rgba(15, 23, 42, .08);

}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Inter', sans-serif;

    background:
        radial-gradient(circle at top right,
            rgba(53, 99, 233, .05),
            transparent 30%),
        linear-gradient(180deg,
            #ffffff 0%,
            #fbfcff 100%);

    color: var(--text);

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

}

/* =========================================================
   GLOBAL CONTAINER
   ========================================================= */

.container-enterprise {

    width: min(1320px, 92%);
    margin: auto;

}

/* =========================================================
   LOGO
   ========================================================= */

.logo-wrap {

    display: flex;
    align-items: center;
    gap: 10px;

}

.site-logo {

    width: 30px;
    height: 30px;

    object-fit: contain;

    filter:
        drop-shadow(0 4px 10px rgba(53, 99, 233, .12));

}

.logo-text {

    display: flex;
    align-items: center;

    font-size: 1.6rem;
    font-weight: 800;

    letter-spacing: -0.05em;

}

.logo-primary {
    color: #0f172a;
}

.logo-secondary {
    color: var(--primary);
}

/* =========================================================
   NAVBAR
   ========================================================= */

#navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 50;

    background:
        rgba(255, 255, 255, .78);

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid rgba(226, 232, 240, .65);

    transition: .35s ease;

}

.navbar-scrolled {

    box-shadow:
        var(--shadow-sm),
        var(--shadow-md);

}

.nav-inner {

    height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

}

.nav-links {

    display: flex;
    align-items: center;
    gap: 42px;

}

.nav-link {

    position: relative;

    font-size: .92rem;
    font-weight: 500;

    color: #334155;

    transition: .3s ease;

}

.nav-link:hover {

    color: var(--primary);

}

.nav-link::after {

    content: '';

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0%;
    height: 2px;

    border-radius: 999px;

    background: var(--primary);

    transition: .3s ease;

}

.nav-link:hover::after {

    width: 100%;

}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {

    max-height: 0;

    overflow: hidden;

    background: white;

    transition: .45s ease;

}

.show-mobile-menu {

    max-height: 600px;

    padding: 28px;

    border-top: 1px solid var(--border);

}

#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.hidden {
    display: none !important;
}

#academyDropdown.hidden,
#enterpriseDropdown.hidden {
    display: none !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

/* Button styles handled by Tailwind utilities - see index.html */

/* Button styles handled by Tailwind utilities - see index.html */

/* =========================================================
   CINEMATIC HERO
   ========================================================= */

.hero-section {

    position: relative;

    padding-top: 100px;
    padding-bottom: 60px;

    overflow: hidden;

    border-bottom:
        1px solid var(--border-soft);

    background: linear-gradient(180deg, rgba(53, 99, 233, 0.02) 0%, transparent 100%);

}

/* ATMOSPHERIC GLOW */

.hero-bg-glow {

    position: absolute;

    top: -200px;
    right: -150px;

    width: 1000px;
    height: 1000px;

    background:
        radial-gradient(circle,
            rgba(53, 99, 233, .15),
            transparent 70%);

    filter: blur(50px);

    pointer-events: none;

}

/* HERO GRID */

.hero-grid {

    display: grid;

    grid-template-columns:
        1fr 1.1fr;

    gap: 4rem;

    align-items: center;

    position: relative;

    z-index: 2;

}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {

    position: relative;
    z-index: 3;

}

.hero-pill {

    display: inline-flex;
    align-items: center;

    padding: 8px 14px;

    border-radius: 999px;

    background:
        rgba(53, 99, 233, .08);

    color: var(--primary);

    border:
        1px solid rgba(53, 99, 233, .08);

    font-size: .78rem;
    font-weight: 600;

    letter-spacing: .01em;

    margin-bottom: 20px;

}

.hero-title {

    font-size:
        clamp(2.2rem, 4vw, 3.5rem);

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.08em;

    max-width: 600px;

    margin-bottom: 24px;

    color: var(--text);

}

.hero-title span {

    color: var(--primary);

    background: linear-gradient(135deg, var(--primary), #4c78f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

.hero-description {

    font-size: 1rem;

    line-height: 1.75;

    color: var(--muted);

    max-width: 500px;

    margin-bottom: 32px;

    letter-spacing: -0.01em;

}

.hero-actions {

    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

}

/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {

    position: relative;

    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

}

/* HERO VISUAL GLOW */

.hero-visual::before {

    content: '';

    position: absolute;

    width: 800px;
    height: 800px;

    background:
        radial-gradient(circle,
            rgba(53, 99, 233, .2),
            transparent 75%);

    filter: blur(60px);

    z-index: -2;

    opacity: .9;

}

/* VISUAL DEPTH */

.hero-visual::after {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, .1),
            transparent 30%);

    z-index: 2;

    pointer-events: none;

}

/* REMOVE TEMPLATE CARD */

.hero-card {

    position: relative;

    width: 100%;
    height: 100%;

    background: transparent;

    border: none;

    box-shadow: none;

    overflow: visible;

    display: flex;
    align-items: center;
    justify-content: center;

}

/* HERO IMAGE */

.hero-image {

    width: 100%;

    max-width: none;

    height: auto;

    object-fit: contain;

    opacity: 1;

    filter:
        saturate(1) contrast(1.05) brightness(1);

    mix-blend-mode: normal;

    transform:
        scale(1);

    transform-origin: center;

    animation:
        heroFloat 8s ease-in-out infinite;

    transition: all 0.3s ease;

}

/* =========================================================
   HERO FLOAT ANIMATION
   ========================================================= */

@keyframes heroFloat {

    0% {

        transform:
            perspective(1400px) rotateY(-8deg) rotateX(3deg) translateY(0px);

    }

    50% {

        transform:
            perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-10px);

    }

    100% {

        transform:
            perspective(1400px) rotateY(-8deg) rotateX(3deg) translateY(0px);

    }

}

/* =========================================================
   REMOVE CLUTTER
   ========================================================= */

.floating-card {
    display: none;
}

.hero-gradient {
    display: none;
}

/* =========================================================
   TRUST SECTION
   ========================================================= */

.trust-section {

    padding: 55px 0;

}

.trust-grid {

    display: grid;
    grid-template-columns: repeat(6, 1fr);

    gap: 30px;

}

.trust-logo {

    font-size: .9rem;
    font-weight: 700;

    text-align: center;

    color: #64748b;

    letter-spacing: .02em;

}

/* =========================================================
   GLOBAL SECTIONS
   ========================================================= */

.section-spacing {

    padding: 85px 0;

}

.section-header {

    text-align: center;

    margin-bottom: 50px;

}

.section-header h2 {

    font-size:
        clamp(2rem, 3vw, 3rem);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -0.045em;

    margin-bottom: 14px;

}

.section-header p {

    font-size: .98rem;

    color: var(--muted);

    max-width: 620px;

    margin: auto;

    line-height: 1.8;

}

/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 26px;

}

.service-card {

    background: white;

    border:
        1px solid var(--border-soft);

    border-radius: 24px;

    overflow: hidden;

    transition: .4s ease;

    box-shadow:
        var(--shadow-sm),
        var(--shadow-md);

    will-change: transform;

}

.service-card:hover {

    transform: translateY(-6px);

    box-shadow:
        var(--shadow-sm),
        var(--shadow-xl);

}

.service-card img {

    height: 200px;
    width: 100%;

    object-fit: cover;

    transition: .5s ease;

    filter:
        saturate(.92) contrast(1.02);

}

.service-card:hover img {

    transform: scale(1.03);

}

.service-content {

    padding: 28px;

}

.service-content h3 {

    font-size: 1.35rem;

    font-weight: 700;

    margin-bottom: 18px;

    letter-spacing: -0.03em;

}

.service-content ul {

    display: flex;
    flex-direction: column;

    gap: 10px;

    color: var(--muted);

    line-height: 1.7;

    margin-bottom: 22px;

    font-size: .93rem;

}

.service-content a {

    color: var(--primary);

    font-weight: 700;

    font-size: .92rem;

}

/* =========================================================
   CASE STUDIES
   ========================================================= */

.case-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;

}

.case-card {

    background: white;

    border-radius: 22px;

    overflow: hidden;

    transition: .4s ease;

    box-shadow:
        var(--shadow-sm),
        var(--shadow-md);

}

.case-card:hover {

    transform: translateY(-6px);

    box-shadow:
        var(--shadow-sm),
        var(--shadow-xl);

}

.case-card img {

    height: 180px;
    width: 100%;

    object-fit: cover;

}

.case-content {

    padding: 24px;

}

.case-content h3 {

    font-size: 1.2rem;

    font-weight: 700;

    margin-bottom: 10px;

}

.case-content p {

    color: var(--muted);

    line-height: 1.7;

    font-size: .92rem;

}

/* =========================================================
   METRICS
   ========================================================= */

.metrics-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}

.metric-card {

    background: white;

    border-radius: 20px;

    padding: 30px 24px;

    text-align: center;

    border:
        1px solid var(--border-soft);

    box-shadow:
        var(--shadow-sm),
        var(--shadow-md);

}

.metric-card h2 {

    font-size: 2.3rem;

    font-weight: 800;

    color: var(--primary);

    margin-bottom: 8px;

    letter-spacing: -0.04em;

}

.metric-card p {

    color: var(--muted);

    font-size: .9rem;

}

/* =========================================================
   CTA
   ========================================================= */

.cta-card {

    background:
        linear-gradient(135deg,
            var(--primary),
            #4f46e5);

    padding: 60px 36px;

    border-radius: 30px;

    text-align: center;

    color: white;

    position: relative;

    overflow: hidden;

}

.cta-card::before {

    content: '';

    position: absolute;

    width: 380px;
    height: 380px;

    background:
        rgba(255, 255, 255, .05);

    border-radius: 50%;

    top: -160px;
    right: -100px;

}

.cta-card h2 {

    position: relative;
    z-index: 2;

    font-size:
        clamp(2rem, 3vw, 3.2rem);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.05em;

    margin-bottom: 16px;

}

.cta-card p {

    position: relative;
    z-index: 2;

    max-width: 620px;

    margin: auto auto 30px;

    font-size: .98rem;

    line-height: 1.8;

}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    background: #020617;

    color: white;

    padding-top: 70px;
    padding-bottom: 32px;

}

.footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 40px;

}

.footer-brand-wrap {

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

}

.footer-site-logo {

    width: 38px;
    height: 38px;

    object-fit: contain;

    filter:
        drop-shadow(0 4px 10px rgba(53, 99, 233, .15));

}

.footer-logo-text {

    display: flex;
    align-items: center;

    font-size: 1.7rem;
    font-weight: 800;

    letter-spacing: -0.04em;

}

.footer-logo-primary {
    color: white;
}

.footer-logo-secondary {
    color: var(--primary);
}

.footer-description {

    color: #94a3b8;

    line-height: 1.8;

    max-width: 320px;

    font-size: .94rem;

}

.footer-heading {

    font-size: 1rem;
    font-weight: 700;

    margin-bottom: 20px;

}

.footer-links {

    display: flex;
    flex-direction: column;

    gap: 12px;

}

.footer-links a {

    color: #94a3b8;

    transition: .3s;

    font-size: .92rem;

}

.footer-links a:hover {

    color: white;

}

.footer-bottom {

    margin-top: 60px;

    border-top:
        1px solid rgba(255, 255, 255, .08);

    padding-top: 24px;

    text-align: center;

    color: #64748b;

    font-size: .85rem;

}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1100px) {

    .hero-grid,
    .services-grid,
    .case-grid,
    .metrics-grid,
    .footer-grid {

        grid-template-columns: 1fr;

    }

    .hero-grid {

        gap: 2rem;

    }

    .hero-content {

        order: 2;

    }

    .hero-visual {

        order: 1;

        height: 480px;

    }

    .hero-title,
    .hero-description {

        max-width: 100%;

    }

    .trust-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

}

@media(max-width:768px) {

    .hero-section {

        padding-top: 100px;
        padding-bottom: 40px;

    }

    .hero-title {

        font-size: 2.5rem;

        line-height: 1;

    }

    .hero-description {

        font-size: .94rem;

    }

    .hero-actions {

        flex-direction: column;
        align-items: flex-start;

    }

    .hero-visual {

        height: 380px;

    }

    .hero-image {

        width: 135%;

        transform: none;

        animation: none;

    }

    .section-spacing {

        padding: 70px 0;

    }

    .section-header {

        margin-bottom: 40px;

    }

    .service-content {

        padding: 24px;

    }

    .service-content h3 {

        font-size: 1.2rem;

    }

    .metric-card {

        padding: 26px 20px;

    }

    .metric-card h2 {

        font-size: 2rem;

    }

    .cta-card {

        padding: 50px 24px;

    }

    .cta-card h2 {

        font-size: 2.3rem;

    }

    .trust-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .nav-links {

        display: none;

    }

}