/* ── Splash Screen ─────────────────────────────────────────── */

#qeymah-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0A1128;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qeymah-splash .splash-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: splash-breathe 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(108, 69, 212, 0.5));
}

@keyframes splash-breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 24px rgba(108, 69, 212, 0.3)); }
    50%      { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 40px rgba(108, 69, 212, 0.7)); }
}

#qeymah-splash.splash-exit {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #qeymah-splash .splash-icon { animation: none; }
    #qeymah-splash.splash-exit { transition-duration: 0.01ms; }
}

/* ── End Splash ────────────────────────────────────────────── */

.parallax-bg {
    background-image: url('../assets/images/pexels-apasaric-692103.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 4rem;
    animation: scroll 45s linear infinite;
    align-items: center;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 4rem));
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom Native Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #6c45d4;
    border-radius: 20px;
}

html {
    scroll-behavior: smooth;
    /* Firefox fallback */
    scrollbar-width: thin;
    scrollbar-color: #6c45d4 transparent;
    /* Match the dark footer for iOS Safari overscroll bounce */
    background-color: #0A1128;
}

body {
    /* Ensure the rest of the page remains light over the dark root */
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1f2937;
    /* textMain */
}

html,
.font-sans {
    font-family: 'Inter', sans-serif !important;
}

.font-heading,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif !important;
}

/* Headings Scale (Mobile First) */
h1,
.text-h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2,
.text-h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3,
.text-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

h4,
h5,
h6,
.text-h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Paragraph / Body Scale */
.text-body-large {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-body-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Desktop Overrides (min-width: 768px) */
@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
        /* Body Regular Desktop */
    }

    h1,
    .text-h1 {
        font-size: 4rem;
    }

    h2,
    .text-h2 {
        font-size: 3rem;
    }

    h3,
    .text-h3 {
        font-size: 2rem;
    }

    h4,
    h5,
    h6,
    .text-h4 {
        font-size: 1.5rem;
    }

    .text-body-large {
        font-size: 1.25rem;
    }
}

#mainNav {
    backdrop-filter: blur(12px);
}

#mainNav.backdrop-blur-md {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }

    .marquee {
        gap: 2rem;
    }

    .marquee-content {
        gap: 2rem;
    }
}

/* ============================================================
   QEYMAH GLOBAL DESIGN SYSTEM v2.0
   "Precise Consulting" — Enforced Across the Entire DOM
   ============================================================ */

/* ------------------------------------------------------------
   CSS DESIGN TOKENS (Single Source of Truth)
   ------------------------------------------------------------ */
:root {
    --radius: 6px;
    --primary: #6C45D4;
    --primary-glow: rgba(108, 69, 212, 0.18);
    --secondary: #0A1128;
    --body-color: #4B5563;
    --section-py: 6rem;
    /* 96px — rhythmic vertical padding */
    --shadow-rest: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px var(--primary-glow), 0 4px 16px rgba(0, 0, 0, 0.08);
    --transition: 0.28s ease;
}

/* ------------------------------------------------------------
   1. GLOBAL SHAPE LANGUAGE — enforce 6px everywhere, wipe all pills
   ------------------------------------------------------------ */

/* Universal micro-radius on every button and anchor-button */
a,
button,
input,
textarea,
select {
    border-radius: var(--radius);
}

/* Wipe pill shapes from every element that uses Tailwind rounded-* utilities */
[class*="rounded-full"],
[class*="rounded-2xl"],
[class*="rounded-3xl"],
[class*="rounded-xl"],
[class*="rounded-lg"],
[class*="rounded-md"] {
    border-radius: var(--radius) !important;
}

/* Keep purely decorative blur blobs perfectly circular */
div.blur-3xl[class*="rounded-full"] {
    border-radius: 9999px !important;
}

/* ------------------------------------------------------------
   2. GLOBAL TYPOGRAPHY — Poppins headings · Inter body
   ------------------------------------------------------------ */

/* Body / paragraphs / descriptions */
body,
p,
li,
address,
label,
input,
textarea,
select,
span:not(.font-heading) {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6;
}

/* All headings + buttons */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading,
a[class*="bg-primary"],
a[class*="bg-secondary"],
button[class*="bg-primary"],
button[class*="bg-secondary"] {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   3. GLOBAL BUTTON SYSTEM — single interaction contract
   ------------------------------------------------------------ */

a.bg-primary,
button.bg-primary,
a.bg-secondary,
button.bg-secondary,
a[class*="bg-primary"],
button[class*="bg-primary"],
a[class*="bg-secondary"],
button[class*="bg-secondary"] {
    border-radius: var(--radius) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition) !important;
}

a.bg-primary:hover,
button.bg-primary:hover,
a[class*="bg-primary"]:hover,
button[class*="bg-primary"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover) !important;
}

a.bg-secondary:hover,
button.bg-secondary:hover,
a[class*="bg-secondary"]:hover,
button[class*="bg-secondary"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 17, 40, 0.3) !important;
}

/* Nav "Contact Us" button — always 6px */
#mainNav a[href="contact.html"],
#mainNav a.bg-primary {
    border-radius: var(--radius) !important;
}

/* Ghost / outline buttons (Hero secondary) */
a[class*="bg-white/10"],
a[class*="backdrop-blur-sm"] {
    border-radius: var(--radius) !important;
    transition: transform var(--transition), background-color var(--transition) !important;
}

a[class*="bg-white/10"]:hover {
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   4. FORM INPUTS — consistent 6px, Inter, slate body color
   ------------------------------------------------------------ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border-radius: var(--radius) !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 69, 212, 0.15);
    border-color: var(--primary) !important;
}

/* ------------------------------------------------------------
   5. SERVICE TRACK CARDS (.service-card)
   ------------------------------------------------------------ */
.service-card {
    background-color: #F9F9F9;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-rest);
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.service-card .card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(108, 69, 212, 0.08);
    border: 1px solid rgba(108, 69, 212, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 2rem;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.service-card:hover .card-icon {
    background-color: var(--primary);
    color: #ffffff;
}

/* ------------------------------------------------------------
   6. IMPACT NUMBERED BOXES — .impact-number
      Replaces rounded-none + border-gray-200 with the design token
   ------------------------------------------------------------ */
.impact-number {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    background-color: #F4F0FF;
    /* very light purple */
    border: none;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.impact-item:hover .impact-number {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Fallback for items not yet using .impact-number class */
.flex.items-start.gap-6.group>div.w-12.h-12.shrink-0 {
    background-color: #F4F0FF !important;
    border: none !important;
    border-radius: var(--radius) !important;
    color: var(--primary) !important;
}

/* ------------------------------------------------------------
   7. PARTNERS CARDS — consistent hover lift & 6px radius
   ------------------------------------------------------------ */
section a[class*="rounded"],
section a[class*="bg-accent"],
section a[class*="bg-white"] {
    border-radius: var(--radius) !important;
    transition: box-shadow var(--transition), transform var(--transition) !important;
}

section a[class*="bg-accent"]:hover,
section a[class*="bg-white"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover) !important;
}

/* ------------------------------------------------------------
   8. TRACK BADGES (TRACK 01/02/03 on services page)
   ------------------------------------------------------------ */
div[class*="bg-primary/10"] {
    border-radius: var(--radius) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
}

/* ------------------------------------------------------------
   9. SECTION VERTICAL RHYTHM
      Enforce consistent padding on all content sections
   ------------------------------------------------------------ */
section.py-20 {
    padding-top: var(--section-py) !important;
    padding-bottom: var(--section-py) !important;
}

section.py-24 {
    padding-top: var(--section-py) !important;
    padding-bottom: var(--section-py) !important;
}

section.py-16 {
    padding-top: var(--section-py) !important;
    padding-bottom: var(--section-py) !important;
}

/* ------------------------------------------------------------
   10. INTERCONNECTED BANNER — CTA box inside dark section
   ------------------------------------------------------------ */
.bg-white\/5 {
    border-radius: var(--radius) !important;
}

/* ============================================================
   NAVBAR DROPDOWN — Tracks sub-navigation
   ============================================================ */

/* Wrapper — position anchor */
.nav-dropdown {
    position: relative;
}

/* Trigger button — reset browser defaults, inherit nav style */
.nav-dropdown-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
}

.nav-dropdown-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius);
}

/* Rotate chevron when open */
.nav-dropdown.open .nav-dropdown-chevron,
.nav-dropdown:hover .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-chevron {
    transition: transform 0.2s ease;
}

/* The floating panel */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    width: max-content;
    background-color: #0d1530;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 69, 212, 0.15);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

/* Open states: hover (desktop CSS) + .open class (JS for tap) */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Small triangle pointer */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: #0d1530;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Individual item */
.nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: calc(var(--radius) - 1px);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
    color: #e5e7eb !important;
    /* Force light gray */
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-dropdown-item:hover {
    background-color: rgba(108, 69, 212, 0.12);
    color: #ffffff !important;
}

/* "View All Tracks" footer link */
.nav-dropdown-footer {
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-dropdown-footer a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s ease;
}

.nav-dropdown-footer a:hover {
    color: #ffffff;
}

/* ============================================================
   MOBILE TRACKS SUB-MENU
   ============================================================ */

#mobile-tracks-sub {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-tracks-sub.hidden {
    display: none;
}

#mobile-tracks-sub a {
    color: #d1d5db !important;
    /* equivalent to text-gray-300 */
    transition: color 0.2s ease;
}

#mobile-tracks-sub a:hover {
    color: var(--primary) !important;
}

/* ============================================================
   BENTO BOX GRID & GLASSMORPHISM
   ============================================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Default to full width on mobile */
.bento-large,
.bento-small {
    grid-column: span 12 / span 12;
}

/* Desktop layout */
@media (min-width: 768px) {
    .bento-large {
        grid-column: span 8 / span 8;
    }

    .bento-small {
        grid-column: span 4 / span 4;
    }
}

.bento-item {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(108, 69, 212, 0.12);
    border-color: rgba(108, 69, 212, 0.3);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(108, 69, 212, 0.08);
    color: var(--primary);
    border-radius: calc(var(--radius) - 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.bento-item:hover .bento-icon {
    background: var(--primary);
    color: #fff;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
}

/* Dynamic Gradients */
.gradient-text {
    color: var(--primary);
}



/* ============================================================
   TRACK SPECIFIC THEMES
   ============================================================ */

/* Track 2: Digital (Blue #9d78ff) */
.text-track2 {
    color: #9d78ff !important;
}

.bg-track2 {
    background-color: #9d78ff !important;
}

.bg-track2-light {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

.border-track2 {
    border-color: #9d78ff !important;
}

.border-track2-light {
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.shadow-track2 {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.1) !important;
}

.hover\:bg-track2-dark:hover {
    background-color: #2563eb !important;
}

.hover\:border-track2:hover {
    border-color: #9d78ff !important;
}

.group:hover .group-hover\:text-track2 {
    color: #9d78ff !important;
}

.group:hover .group-hover\:\!bg-track2 {
    background-color: #9d78ff !important;
}

/* Track 3: Precision (Emerald #10b981) */
.text-track3 {
    color: #10b981 !important;
}

.bg-track3 {
    background-color: #10b981 !important;
}

.bg-track3-light {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

.border-track3 {
    border-color: #10b981 !important;
}

.border-track3-light {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.shadow-track3 {
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.2), 0 10px 10px -5px rgba(16, 185, 129, 0.1) !important;
}

.hover\:bg-track3-dark:hover {
    background-color: #059669 !important;
}

.hover\:border-track3:hover {
    border-color: #10b981 !important;
}

.group:hover .group-hover\:text-track3 {
    color: #10b981 !important;
}

.group:hover .group-hover\:\!bg-track3 {
    background-color: #10b981 !important;
}

/* Specific fixes */
.group-hover\:\!text-white:hover {
    color: #ffffff !important;
}

/* ============================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   Driven by IntersectionObserver in main.js
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-left.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-right.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up fade */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-scale.reveal-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays — add .reveal-d1 through .reveal-d6 alongside .reveal */
.reveal-d1 {
    transition-delay: 0.1s;
}

.reveal-d2 {
    transition-delay: 0.2s;
}

.reveal-d3 {
    transition-delay: 0.3s;
}

.reveal-d4 {
    transition-delay: 0.4s;
}

.reveal-d5 {
    transition-delay: 0.5s;
}

.reveal-d6 {
    transition-delay: 0.6s;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   MICRO-INTERACTIONS & LINK ENHANCEMENTS
   ============================================================ */

/* Inline link underline reveal */
.footer-link,
.nav-text-link {
    position: relative;
}

.footer-link::after,
.nav-text-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-link:hover::after,
.nav-text-link:hover::after {
    width: 100%;
}

/* Impact item left accent bar on hover */
.impact-item {
    position: relative;
    padding-left: 1rem;
    transition: padding-left 0.3s ease;
}

.impact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-item:hover::before {
    height: 100%;
}

.impact-item:hover {
    padding-left: 1.5rem;
}

/* Partner card subtle left border on hover */
.partner-card {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.partner-card:hover {
    border-left-color: var(--primary);
}

/* ============================================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 480px) {

    /* Tighter hero text */
    .parallax-bg .container {
        padding-top: 5rem;
    }

    h1,
    .text-h1 {
        font-size: 2rem;
    }

    h2,
    .text-h2 {
        font-size: 1.625rem;
    }

    /* Stack buttons at narrow widths */
    .flex.flex-col.md\:flex-row.gap-4 {
        gap: 0.75rem;
    }

    /* Smaller section padding on mobile */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Impact items stack tighter */
    .impact-item {
        padding-left: 0.5rem;
    }

    .impact-item:hover {
        padding-left: 1rem;
    }

    /* Footer tighter on small screens */
    footer .grid {
        gap: 2rem;
    }
}

@media (max-width: 360px) {

    h1,
    .text-h1 {
        font-size: 1.75rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================================
   INFINITE PARTNER SLIDER
   ============================================================ */

@keyframes scroll-x {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll-x-reverse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-scroll {
    animation: scroll-x 40s linear infinite;
}

.animate-scroll-reverse {
    animation: scroll-x-reverse 40s linear infinite;
}

.group:hover .animate-scroll,
.group:hover .animate-scroll-reverse {
    animation-play-state: paused;
}

/* ============================================================
   LEADERSHIP DUAL-ENGINE (Founders Section)
   ============================================================ */

.founders-section {
    padding: var(--section-py) 0;
    background: #ffffff;
}

.founders-section .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.founders-section .section-label::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: var(--primary);
}

.founders-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .founders-grid {
        gap: 8rem;
    }
}

/* Founder Card */
.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.founder-card:hover {
    box-shadow: none;
}

@media (min-width: 1024px) {
    .founder-card {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    
    /* Founder 1: Image Right, Text Left */
    .founder-card:nth-child(1) {
        flex-direction: row-reverse;
    }
    
    .founder-card:nth-child(1) .founder-image-wrapper {
        transform: translateY(-2rem);
        margin-left: -4rem; /* Overlap */
        z-index: 2;
    }
    
    /* Founder 2: Image Left, Text Right */
    .founder-card:nth-child(2) {
        flex-direction: row;
    }
    
    .founder-card:nth-child(2) .founder-image-wrapper {
        transform: translateY(2rem);
        margin-right: -4rem; /* Overlap */
        z-index: 2;
    }
}

/* Founder Image Container */
.founder-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f3f4f6;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
}

@media (min-width: 1024px) {
    .founder-image-wrapper {
        width: 45%;
        flex-shrink: 0;
    }
}

.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-card:hover .founder-image-wrapper img {
    transform: scale(1.03);
}

/* Subtle purple glow overlay on hover */
.founder-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(108, 69, 212, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.founder-card:hover .founder-image-wrapper::after {
    opacity: 1;
}

/* Founder Info */
.founder-info {
    padding: 3rem;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3; /* Above image */
    width: 100%;
    margin-top: -3rem; /* Overlap on mobile */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
    .founder-info {
        width: 60%;
        margin-top: 0;
    }
    
    .founder-card:nth-child(1) .founder-info {
        padding-right: 5rem;
    }

    .founder-card:nth-child(2) .founder-info {
        padding-left: 5rem;
    }
}

.founder-info .founder-name {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.founder-info .founder-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.founder-info .founder-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--body-color);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.founder-info .founder-bio {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--body-color);
    margin-bottom: 1.25rem;
}

.founder-info .founder-quote {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--secondary);
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Ecosystem banner above leadership */
.ecosystem-banner {
    padding: 2rem 0 0;
    background: #ffffff;
}

.ecosystem-banner .ecosystem-heading {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.ecosystem-banner .ecosystem-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--body-color);
    max-width: 52rem;
    margin: 0 auto;
}

.founder-info .founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.founder-info .founder-linkedin:hover {
    color: var(--secondary);
    gap: 0.75rem;
}

.founder-info .founder-linkedin svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ============================================================
   BRAIN TRUST — Expert Network Grid (Section 2)
   ============================================================ */

.brain-trust-section {
    padding: var(--section-py) 0;
    background: #f9fafb;
    /* Soft gray from palette — visual separator */
}

.brain-trust-section .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.brain-trust-section .section-label::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: var(--primary);
}

/* Expert Grid */
.expert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .expert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .expert-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Expert Card */
.expert-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
    box-shadow: var(--shadow-rest);
    position: relative;
}

.expert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 69, 212, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    border-color: rgba(108, 69, 212, 0.2);
}

/* Expert Image — B&W → Color on hover */
.expert-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e5e7eb;
}

.expert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.expert-card:hover .expert-image-wrapper img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

/* LinkedIn icon fade-in on hover */
.expert-linkedin-overlay {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 2;
}

.expert-linkedin-overlay svg {
    width: 1rem;
    height: 1rem;
    color: #ffffff;
}

.expert-card:hover .expert-linkedin-overlay {
    opacity: 1;
    transform: translateY(0);
}

.expert-linkedin-overlay:hover {
    background: var(--secondary);
}

/* Expert Info */
.expert-info {
    padding: 1.25rem 1.25rem 1.5rem;
}

.expert-info .expert-name {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.expert-info .expert-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--body-color);
    line-height: 1.4;
}

/* ─── Mobile Carousel for Expert Grid ────────────────── */
@media (max-width: 639px) {
    .expert-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
        /* Firefox */
    }

    .expert-grid::-webkit-scrollbar {
        display: none;
    }

    .expert-card {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
    }

    /* Scroll indicator dots container */
    .expert-scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 0.375rem;
        margin-top: 1rem;
    }

    .expert-scroll-indicator .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(108, 69, 212, 0.2);
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .expert-scroll-indicator .dot.active {
        background: var(--primary);
        transform: scale(1.3);
    }
}

@media (min-width: 640px) {
    .expert-scroll-indicator {
        display: none !important;
    }
}

/* ─── Section Divider ────────────────── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 69, 212, 0.15), transparent);
    margin: 0;
}