/* Premium 'Extraordinary' Design System */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Core Palette - Dark Fluid */
    --bg-dark: #0a0a0c;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --gold-primary: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --red-primary: #d32f2f;
    --red-glow: rgba(211, 47, 47, 0.3);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Theme Extension */
    --bg-light: #f4f4f5;
    --text-dark: #18181b;
    --glass-light: rgba(255, 255, 255, 0.6);
    --glass-border-light: rgba(0, 0, 0, 0.05);
}

/* Light Theme Utilities */
/* Light Theme Utilities */
.bg-light-extraordinary {
    background-color: #ffffff !important;
    /* Improved Vibrant Colorful Background - Stronger Opacity */
    background-image:
        radial-gradient(circle at 0% 0%, rgba(211, 47, 47, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 193, 7, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 100%) !important;
    color: var(--text-dark) !important;
}

.bg-light-extraordinary .glass-panel {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(211, 47, 47, 0.2);
    box-shadow: 0 15px 40px -10px rgba(211, 47, 47, 0.15);
}

/* Fix Text Gradient on Light Background (White->Gold is invisible on white) */
.bg-light-extraordinary .text-gradient-gold {
    background: linear-gradient(135deg, #b91c1c 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 
   REMOVED: .bg-light-extraordinary .text-white override 
   This was causing Team photocard text to turn black.
   Now, only text specifically marked as requiring adaptation should change.
*/
.bg-light-extraordinary .text-adaptive {
    color: var(--text-dark) !important;
}

/* Feature Cards - Adding "Life" (Color) */
.feature-card-gold {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.2)) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1) !important;
}

.feature-card-red {
    background: linear-gradient(145deg, rgba(211, 47, 47, 0.05), rgba(211, 47, 47, 0.2)) !important;
    border: 1px solid rgba(211, 47, 47, 0.3) !important;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.1) !important;
}

.feature-card-blue {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.2)) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1) !important;
}

.feature-card-purple {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.05), rgba(168, 85, 247, 0.2)) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.1) !important;
}

/* Pastel Cards for Research Highlights (Fixed for Non-JIT) */
.pastel-card-yellow {
    background-color: #FFF9C4 !important;
}

.pastel-card-red {
    background-color: #FFEBEE !important;
}

.pastel-card-blue {
    background-color: #FFF59D !important;
    /* Visual adjustment: This looks more yellow in code but user asked for 'blue' design which might have been light yellow/blue mix. Let's stick to the requested visuals. Wait, the code had #FFF59D which is Light Yellow. Card 3 was Blue in the code comments but yellow in hex. Let's make it actual pastel blue #E3F2FD if implied, OR stick to the hex I used in PHP which was #FFF59D. Let's use #E3F2FD for blue to match the *name* 'blue'. */
    background-color: #E3F2FD !important;
}

.pastel-card-purple {
    background-color: #F3E5F5 !important;
    /* Actually I used #EF9A9A (Red) for the last one in PHP. Let's make explicit classes for what I want. */
}

/* Let's be precise to the PHP I wrote: */
.pastel-card-highlight-1 {
    background-color: #FFF9C4 !important;
}

/* Yellow */
.pastel-card-highlight-2 {
    background-color: #FFEBEE !important;
}

/* Red/Pink */
.pastel-card-highlight-3 {
    background-color: #FFF59D !important;
}

/* Light Gold/Yellow */
.pastel-card-highlight-4 {
    background-color: #EF9A9A !important;
}

/* Stronger Pink/Red */

.pastel-card-highlight-1:hover,
.pastel-card-highlight-2:hover,
.pastel-card-highlight-3:hover,
.pastel-card-highlight-4:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-0.5rem);
}

.bg-light-extraordinary .blob {
    mix-blend-mode: multiply !important;
    opacity: 0.25 !important;
    filter: blur(50px);
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, #1a1a1c 0%, var(--bg-dark) 100%);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-pill {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
}

/* Base Parallax Structures */
.parallax-container {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    /* Essential for 3D transforms */
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform, opacity, filter;
    z-index: 0;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    mix-blend-mode: screen;
    animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-gold {
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

.blob-red {
    background: radial-gradient(circle, var(--red-primary) 0%, transparent 70%);
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

/* Typography Utilities */
.text-gradient-gold {
    background: linear-gradient(135deg, #fff 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold-primary {
    color: var(--gold-primary) !important;
}

.text-red-primary {
    color: var(--red-primary) !important;
}

.bg-gold-primary {
    background-color: var(--gold-primary) !important;
}

.bg-red-primary {
    background-color: var(--red-primary) !important;
}

.text-display-lg {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
}

/* Section Specific Overrides for Parallax */
/* Section Specific Overrides for Parallax */
.hero-zoom-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Enforce Full Screen Sections */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* Ensure padding doesn't break 100vh if using box-sizing border-box (usually default in Tailwind but good to be safe) */
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    /* Slight oversize for parallax movement */
    height: 110%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    transition: transform 0.1s linear;
}

/* Mobile & Accessibility Safeguards */
@media (max-width: 768px),
(prefers-reduced-motion: reduce) {

    .section {
        min-height: auto;
        /* Allow natural height on mobile */
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .parallax-layer,
    .blob {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }

    .glass-panel,
    .glass-pill {
        backdrop-filter: none;
        background: rgba(20, 20, 20, 0.95);
    }
}

/* Utility to Hide Scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}