/* CSS Reset and Variables Let's define the core tokens */
:root {
    --bg-color: #f8fafc;
    /* Optimal cool white (reduces glare) */
    --bg-panel: rgba(255, 255, 255, 0.95);
    /* High contrast panel */
    --text-primary: #0f172a;
    /* Slate-900 (prevents astigmatism halation) */
    --text-secondary: #475569;
    /* Slate-600 */
    --text-accent: #007AFF;
    /* System Blue (statistically highest appeal) */

    --brand-blue: #007AFF;
    /* System Blue */
    --brand-blue-deep: #0056b3;
    --brand-blue-soft: rgba(0, 122, 255, 0.1);
    --brand-blue-shadow: rgba(0, 122, 255, 0.25);
    --dark-shadow: rgba(15, 23, 42, 0.1);

    --font-display: 'League Spartan', sans-serif;
    --font-body: 'Inter', sans-serif;

    --border-radius-pill: 100vw;
    --border-radius-card: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    /* Crisp, clean daylight gradient */
    background-image: radial-gradient(circle at top right, #ffffff 0%, var(--bg-color) 80%);
    overflow-x: hidden;
}

#bg-galaxy {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography styles */
h1,
h2,
h3,
.logo-text,
.huge-footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.overline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 89, 255, 0.1);
    box-shadow: 0 10px 40px var(--dark-shadow);
}

.logo-text {
    font-size: 2rem;
    text-transform: lowercase;
    color: var(--brand-blue);
    /* Text 3D effect */
    text-shadow: 1px 1px 0px var(--brand-blue-soft), 2px 2px 0px var(--dark-shadow);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--brand-blue);
    transform: translateY(-2px);
}

/* Buttons */
.btn-outline-sm,
.btn-solid,
.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.btn-outline-sm {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    padding: 10px 24px;
    background: transparent;
    /* 3D button outline shadow */
    box-shadow: 0 4px 0 var(--brand-blue-soft);
    transform: translateY(0);
}

.btn-outline-sm:hover {
    background: var(--brand-blue);
    color: #fff !important;
    box-shadow: 0 2px 0 var(--brand-blue-soft);
    transform: translateY(2px);
}

.btn-solid {
    display: inline-block;
    background: var(--brand-blue);
    color: #ffffff !important;
    padding: 18px 40px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 15px 35px var(--brand-blue-shadow);
}

.btn-solid:hover {
    background: var(--brand-blue-deep);
    transform: translateY(4px);
    box-shadow: 0 8px 20px var(--brand-blue-shadow);
}

.btn-solid:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 var(--brand-blue-deep), 0 4px 8px var(--brand-blue-shadow);
}

.btn-solid.invert {
    background: var(--bg-panel);
    color: var(--brand-blue);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), 0 15px 30px var(--dark-shadow);
}

.btn-solid.invert.black-text {
    color: #000 !important;
}

.btn-solid.invert:hover {
    transform: translateY(4px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 0 8px 15px var(--dark-shadow);
}

.pill-btn {
    width: 60px;
    height: 60px;
    background: var(--bg-panel);
    color: var(--brand-blue);
    font-size: 1.5rem;
    box-shadow: 0 15px 30px var(--dark-shadow), inset 0 2px 5px rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 89, 255, 0.1);
}

.pill-btn:hover {
    transform: translateY(4px);
    box-shadow: 0 5px 15px var(--dark-shadow), inset 0 2px 5px rgba(255, 255, 255, 1);
}

/* Layout wrappers */
.content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    height: 100%;
}

.fullscreen-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0;
    perspective: 1000px;
    /* Enable 3D space */
}

.horizontal-section {
    padding: 120px 0;
    perspective: 1000px;
}

/* Hero Section */
.hero {
    justify-content: space-between;
    gap: 80px;
    padding-top: 140px;
}

.hero-top {
    margin-bottom: auto;
    margin-top: 8vh;
    position: relative;
    z-index: 2;
}

.hero-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 40px;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.massive-heading {
    font-size: clamp(4rem, 15vw, 160px);
    text-transform: none;
    color: var(--text-primary);
    /* 3D text styling adjusted for light background */
    text-shadow:
        3px 3px 0px var(--brand-blue-soft),
        6px 6px 0px rgba(0, 89, 255, 0.05),
        10px 10px 30px var(--dark-shadow);
}

.medium-massive {
    font-size: clamp(3rem, 10vw, 100px);
    margin-bottom: 4rem;
}

.hero-desc {
    max-width: 800px;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: flex-end;
}

.stat-block {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--dark-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    transition: transform 0.4s;
}

.stat-block:hover {
    transform: translateZ(20px) rotateX(10deg);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-blue);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 8px;
}



.portrait-container {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 350px;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    z-index: 1;
    /* Minimalist Depth Frame for Light Mode */
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(11, 26, 48, 0.15),
        inset 0 2px 5px rgba(255, 255, 255, 1),
        0 0 0 1px rgba(0, 89, 255, 0.05);
    transform: rotate3d(0, 0, 0, 0deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-container:hover {
    transform: scale(1.05);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Sections */
.dark-panel {
    background-color: var(--text-primary);
    /* Exact vibrant blue */
    color: #ffffff;
    position: relative;
}

.dark-panel .section-title {
    color: #fff;
    text-shadow: 4px 4px 0px var(--brand-blue);
}

.dark-panel .overline {
    color: var(--brand-blue-soft);
}

.section-title {
    font-size: clamp(2rem, 6vw, 80px);
    margin-bottom: 4rem;
    text-transform: lowercase;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.glass-card {
    padding: 50px 40px;
    border-radius: var(--border-radius-card);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    /* 3D floating card effect */
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 2px 0px rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 89, 255, 0.1);
    transform: translateY(0) rotateX(0) rotateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 2px 0px rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 89, 255, 0.3);
}

.card-number {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--brand-blue-soft);
    line-height: 1;
    margin-bottom: -1rem;
    /* Gives text depth inside the 3D card */
    transform: translateZ(30px);
}

.glass-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: lowercase;
    color: var(--brand-blue);
    transform: translateZ(20px);
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
    transform: translateZ(10px);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bento-item {
    padding: 60px;
    background: var(--bg-panel);
    border-radius: var(--border-radius-card);
    box-shadow: 0 10px 30px var(--dark-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bento-item.border-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 89, 255, 0.1);
}

.bento-item h4 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    color: var(--brand-blue);
    text-transform: lowercase;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
}

.bento-cta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    cursor: pointer;
    background: var(--brand-blue);
    color: #fff;
    /* 3D CTA block */
    box-shadow: 0 12px 0 var(--brand-blue-deep), 0 20px 40px var(--brand-blue-shadow);
    border: none;
}

.bento-cta:hover {
    transform: translateY(4px);
    box-shadow: 0 8px 0 var(--brand-blue-deep), 0 15px 30px var(--brand-blue-shadow);
}

.bento-cta:active {
    transform: translateY(12px);
    box-shadow: 0 0 0 var(--brand-blue-deep), 0 5px 10px var(--brand-blue-shadow);
}

.bento-cta h4,
.bento-cta p {
    color: #fff;
}

.arrow-right {
    font-size: 3rem;
    align-self: flex-end;
}

/* Testimonials Carousel */
.testimonial-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.testimonial-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 30px;
    padding-bottom: 20px;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card-slide {
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.carousel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.cta-banner {
    margin: 60px 0;
    padding: 60px 80px;
    background: var(--brand-blue-deep);
    border-radius: var(--border-radius-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* deep inset 3D effect + outer glow */
    box-shadow:
        inset 0 10px 20px rgba(0, 0, 0, 0.3),
        0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-banner h2 {
    font-size: 3rem;
    text-transform: uppercase;
    color: #ffffff;
}

/* Footer */
.footer {
    padding: 100px 60px 40px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 89, 255, 0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 100px;
}

.huge-footer-logo {
    font-size: clamp(4rem, 12vw, 180px);
    color: var(--brand-blue);
    text-shadow: 2px 2px 0px var(--brand-blue-soft), 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.footer-contact {
    text-align: right;
}

.footer-email {
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    font-weight: 700;
    position: relative;
    word-break: break-word;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--brand-blue);
    text-decoration: none;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.scale-in {
    animation: scaleIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: scale(0.9) translateY(40px);
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.form-container {
    padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-bottom-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats {
        justify-content: flex-start;
    }

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

    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-item {
        padding: 30px 20px;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding: 40px 20px;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }

    .massive-heading {
        font-size: clamp(3rem, 12vw, 160px);
    }
    
    .huge-footer-logo {
        font-size: clamp(3rem, 12vw, 180px);
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-contact {
        text-align: left;
    }

    .portrait-container {
        transform: rotate3d(0, 0, 0, 0);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        padding: 20px;
        box-shadow: 0 10px 40px var(--dark-shadow);
        border-bottom: 1px solid rgba(0, 89, 255, 0.1);
        gap: 20px;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .form-container {
        padding: 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .horizontal-section {
        padding: 60px 0;
    }

    .fullscreen-section {
        padding: 80px 0;
        min-height: auto;
    }

    .hero {
        padding-top: 100px;
    }

    .portrait-container {
        display: block;
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 300px;
        height: 380px;
        margin: 0 auto 40px auto;
        order: -1;
    }
    
    .hero-top {
        margin-top: 0;
    }
}