/* --- CSS Variables --- */
:root {
    /* Color System - Enhanced with deeper color theory and richer gradients */
    --color-primary: #1d4e6f;
    --color-primary-light: #3a7ca5;
    --color-primary-dark: #0f2b3f;
    --color-secondary: #2a9d8f;
    --color-secondary-light: #4fb3a9;
    --color-secondary-dark: #1e7268;
    --color-accent: #e76f51;
    --color-accent-light: #f4a261;
    --color-accent-dark: #c85a3e;
    
    /* Neutral Colors - More sophisticated grayscale with subtle blue undertones */
    --color-background: #ffffff;
    --color-surface: #f7f9fc;
    --color-card: #ffffff;
    --color-text: #1a202c;
    --color-text-light: #4a5568;
    --color-text-muted: #718096;
    --color-border: #e2e8f0;
    --color-divider: #edf2f7;
    
    /* Stage Colors - Harmonious palette with improved consistency */
    --stage1: #e9c46a;
    --stage2: #f4a261;
    --stage3: #e76f51;
    --stage4: #2a9d8f;
    --stage5: #218380;
    --stage6: #1d4e6f;
    --stage7: #744c9e;
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    --font-size-base: 1rem;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-none: 1;
    --line-height-tight: 1.2;
    --line-height-snug: 1.35;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --line-height-loose: 2;
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0em;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;
    
    /* Spacing System - More consistent scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    
    /* Border Radii - More precise system */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Refined shadow system with better depth cues */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.04), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.04), 0 10px 10px rgba(0, 0, 0, 0.05);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-outline: 0 0 0 3px rgba(49, 130, 206, 0.25);
    --shadow-subtle: 0 2px 15px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-focus: 0 0 0 3px rgba(42, 157, 143, 0.25);
    
    /* Transitions - Better easing */
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--transition-smooth);
    --transition-normal: 300ms var(--transition-smooth);
    --transition-slow: 500ms var(--transition-smooth);
    --transition-bounce-normal: 500ms var(--transition-bounce);
    --transition-bounce-fast: 300ms var(--transition-bounce);
    
    /* Z-indices */
    --z-below: -1;
    --z-normal: 1;
    --z-above: 10;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-fixed: 1200;
    --z-modal: 1300;
    
    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;

    /* Stage Colors - Better harmonized for clarity */
    --stage-1-color: var(--stage1);
    --stage-2-color: var(--stage2);
    --stage-3-color: var(--stage3);
    --stage-4-color: var(--stage4);
    --stage-5-color: var(--stage5);
    --stage-6-color: var(--stage6);
    --stage-7-color: var(--stage7);
    
    /* Gradient Presets */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary-dark));
    --gradient-accent: linear-gradient(135deg, var(--color-accent-light), var(--color-accent-dark));
    --gradient-hero: radial-gradient(circle at 70% 30%, rgba(42, 157, 143, 0.08), transparent 70%),
                    radial-gradient(circle at 30% 70%, rgba(231, 111, 81, 0.08), transparent 70%);
    --gradient-text: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    
    /* Dark Mode Overrides */
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-card: #252525;
    --dark-text: #e2e8f0;
    --dark-text-light: #a0aec0;
    --dark-text-muted: #718096;
    --dark-border: #2d3748;
    --dark-divider: #2d3748;
    --dark-primary: #3a7ca5;
    --dark-secondary: #4fb3a9;
    --dark-accent: #f4a261;
    
    /* Animation Variables */
    --animation-fade-in-duration: 800ms;
    --animation-slide-in-offset: 20px;
    --animation-stagger-delay: 100ms;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --color-background: var(--dark-bg);
    --color-surface: var(--dark-surface);
    --color-card: var(--dark-card);
    --color-text: var(--dark-text);
    --color-text-light: var(--dark-text-light);
    --color-text-muted: var(--dark-text-muted);
    --color-border: var(--dark-border);
    --color-divider: var(--dark-divider);
    --color-primary: var(--dark-primary);
    --color-secondary: var(--dark-secondary);
    --color-accent: var(--dark-accent);
    
    /* Refined shadow overrides for dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.2);
    --shadow-subtle: 0 2px 15px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Gradient overrides for dark mode */
    --gradient-hero: radial-gradient(circle at 70% 30%, rgba(42, 157, 143, 0.1), transparent 70%),
                     radial-gradient(circle at 30% 70%, rgba(231, 111, 81, 0.1), transparent 70%);
}

/* --- Base Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: rgba(42, 157, 143, 0.2);
    color: var(--color-text);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.loading {
    overflow: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
    position: relative;
}

a:hover, a:focus {
    color: var(--color-secondary-dark);
    text-decoration: none;
}

a:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

a:focus:not(:focus-visible) {
    box-shadow: none;
}

a:focus-visible {
    box-shadow: var(--shadow-focus);
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

button:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

button:focus:not(:focus-visible) {
    box-shadow: none;
}

button:focus-visible {
    box-shadow: var(--shadow-focus);
}

ul, ol {
    padding-left: 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    transition: color var(--transition-normal);
}

h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: var(--letter-spacing-tight);
}

h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: var(--letter-spacing-tight);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

.highlight {
    color: var(--color-secondary);
    font-weight: var(--font-weight-semibold);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(42, 157, 143, 0.15);
    z-index: -1;
    border-radius: var(--radius-sm);
    transition: height var(--transition-normal), opacity var(--transition-normal);
}

.highlight:hover::after {
    height: 100%;
    opacity: 0.2;
}

blockquote {
    font-family: var(--font-secondary);
    padding: var(--space-6) var(--space-8);
    margin: var(--space-6) 0;
    font-style: italic;
    position: relative;
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
}

blockquote:hover {
    box-shadow: var(--shadow-md);
}

blockquote::before {
    content: '"';
    font-family: var(--font-secondary);
    font-size: 4rem;
    position: absolute;
    left: var(--space-4);
    top: -0.5rem;
    color: var(--color-secondary-light);
    opacity: 0.2;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

blockquote:hover::before {
    transform: scale(1.1) translateY(-3px);
    opacity: 0.3;
}

blockquote cite {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 1280px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

.section {
    padding: var(--space-20) 0;
    position: relative;
    transition: background-color var(--transition-normal);
    z-index: 1;
    overflow: visible;
    clear: both;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), background-color var(--transition-normal);
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: var(--font-secondary);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-8);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
    animation: pulse 2s infinite;
}

.preloader-logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-text);
    transform: scaleX(0.7);
    opacity: 0.4;
    animation: pulse-width 2s infinite alternate;
}

@keyframes pulse-width {
    0%, 100% { transform: scaleX(0.7); opacity: 0.4; }
    50% { transform: scaleX(0.9); opacity: 0.7; }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background-color: var(--color-divider);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-5);
    position: relative;
}

.loader-bar-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--color-secondary-dark), var(--color-secondary));
    border-radius: var(--radius-full);
    animation: loaderAnimation 2s ease infinite;
    position: relative;
}

.loader-bar-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.loader-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    animation: fade 2s infinite alternate;
}

@keyframes fade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes loaderAnimation {
    0% {
        width: 0;
        transform: translateX(0);
    }
    50% {
        width: 100%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* --- Canvas Background --- */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-below);
    opacity: 0.4;
    transition: opacity var(--transition-normal);
}

[data-theme="dark"] #particle-canvas {
    opacity: 0.6;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    transition: transform var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: transform, backdrop-filter;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="dark"] .header::before {
    background-color: rgba(18, 18, 18, 0.85);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    padding: 0 var(--space-6);
    max-width: var(--container-xl);
    margin: 0 auto;
}

.header-hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-secondary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
    z-index: var(--z-above);
    transition: color var(--transition-fast);
}

.logo span {
    position: relative;
    display: inline-block;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

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

.logo:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

[data-theme="dark"] .logo:hover {
    color: var(--color-primary-light);
}

/* --- Navigation --- */
.navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    padding: 0;
    margin: 0;
}

.nav-link {
    position: relative;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-bounce-normal);
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.nav-link:hover::after, .nav-link:focus::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: var(--z-above);
}

.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--transition-normal);
}

.nav-toggle-icon::before, .nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before {
    top: 0;
}

.nav-toggle-icon::after {
    bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    transform: rotate(45deg);
    top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 8px;
}

.nav-footer {
    display: flex;
    align-items: center;
    margin-left: var(--space-6);
}

.theme-toggle {
    position: relative;
    width: 40px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-1);
    overflow: hidden;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transform: translateX(0);
    transition: transform var(--transition-bounce-fast);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(16px);
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--color-secondary-dark);
}

.theme-icon-sun, .theme-icon-moon {
    color: white;
    font-size: 12px;
    z-index: 0;
    opacity: 0.9;
}

.theme-icon-sun {
    opacity: 1;
}

.theme-icon-moon {
    opacity: 0.5;
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 0.5;
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
}

.theme-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-left: var(--space-2);
    display: none;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 var(--space-4);
    }
    
    .nav-list {
        gap: var(--space-4);
    }

    .nav-footer {
        margin-left: var(--space-4);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-16) 0;
    }

    /* Header/Nav adjustments */
    .nav-toggle {
        display: flex;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-background);
        box-shadow: var(--shadow-xl);
        padding: 5rem var(--space-6) var(--space-6);
        flex-direction: column;
        align-items: flex-start;
        transition: right var(--transition-normal), background-color var(--transition-normal);
        overflow-y: auto;
        z-index: var(--z-fixed);
    }
    
    .navigation.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--space-3) 0;
        font-size: var(--font-size-md);
    }

    .nav-footer {
        margin-top: var(--space-6);
        margin-left: 0;
        justify-content: center;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .theme-label {
        display: inline-block;
    }

    /* Hero adjustments */
    .hero-wrapper {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-8);
    }
    
    .hero-quote {
        font-size: var(--font-size-md);
        padding: var(--space-4) var(--space-6);
        margin-bottom: var(--space-8);
    }
    
    .hero-quote::before, .hero-quote::after {
        width: 40px;
        height: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Section Header adjustments */
    .section-header {
        margin-bottom: var(--space-10);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-tagline {
        font-size: var(--font-size-md);
    }
    
    .section-description {
        font-size: var(--font-size-md);
    }

    /* Introduction adjustments */
    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .intro-content {
        order: 2;
    }
    
    .intro-visual {
        order: 1;
    }
    
    .intro-content p {
        font-size: var(--font-size-md);
    }
    
    .stages-visualization {
        max-width: 400px;
    }

    /* Stages Overview adjustments */
    .stage-navigator {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Assessment adjustments */
    .assessment-wrapper {
        margin: 0 var(--space-4);
    }
    
    .assessment-start, .quiz-container, .results-container {
        padding: var(--space-6);
    }
    
    .results-title {
        font-size: var(--font-size-2xl);
    }
    
    .results-subtitle {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-8);
    }
    
    .chart-wrapper {
        height: 300px;
    }
    
    .adjacent-stages-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .insight-tabs {
        flex-wrap: wrap;
    }
    
    .insight-tab {
        flex-grow: 1;
        text-align: center;
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-sm);
    }

    /* About section adjustments */
    .quote-content blockquote {
        font-size: var(--font-size-xl);
    }
    
    .quote-content cite {
        font-size: var(--font-size-md);
    }

    /* Newsletter adjustments */
    .newsletter-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .newsletter-content p {
        font-size: var(--font-size-md);
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-3);
    }
    
    .form-group .btn {
        border-radius: var(--radius-lg);
        width: 100%;
    }

    /* Footer adjustments */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links h3 {
        margin-bottom: var(--space-4);
    }
    
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Scroll to top adjustments */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* --- Timeline adjustments for small screens --- */
    .timeline__cover .timeline ul li {
        margin-left: 0 !important; /* Remove forced margin */
        width: 100%; /* Allow li to take full width */
        display: flex; /* Use flex to center content */
        justify-content: center; /* Center content horizontally */
        background: none; /* Remove center line */
        min-height: auto; /* Adjust height */
        margin-bottom: 40px;
        position: relative; /* Needed for absolute positioning of ::before */
        padding-top: 40px; /* Space for the dot above */
    }

    .timeline__cover .timeline ul li::before {
        left: 50%; /* Keep dot centered */
        transform: translateX(-50%);
        top: 0; /* Position dot at the very top of the li */
        box-shadow: 0 0 15px rgba(42, 157, 143, 0.3); /* Enhanced glow */
    }
    
    .timeline__cover .timeline ul li .content {
        position: relative; /* Back to relative for stacking */
        width: calc(100% - 40px); /* Adjust width, leave some padding */
        max-width: 400px; /* Max width */
        left: auto !important; /* Override specific positioning */
        transform: none !important; /* Override transform */
        top: 0; /* Reset top */
        margin: 0 auto; /* Center the card */
        box-shadow: var(--shadow-float); /* Enhanced shadow for cards */
    }
    
    .timeline__cover .timeline ul li:nth-child(odd) .content:before,
    .timeline__cover .timeline ul li:nth-child(even) .content:before {
       display: none; /* Hide connector lines */
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    overflow: hidden;
    /* Override the general section padding */
    padding-bottom: 0;
}

.hero-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 8rem 0 0; /* Remove bottom padding */
    z-index: var(--z-normal);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: var(--z-below);
    opacity: 0.6; /* Reduced opacity */
    transition: opacity var(--transition-normal), background var(--transition-normal);
}

[data-theme="dark"] .hero-background {
    opacity: 0.3;
}

.hero-content-container {
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-quote {
    max-width: 650px; /* Slightly narrower */
    /* Move below buttons - adjust margin-top significantly */
    margin: var(--space-16) auto var(--space-10); 
    position: relative;
    padding: var(--space-6) var(--space-8); /* Slightly reduced padding */
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg); /* Slightly smaller font */
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    font-style: italic;
    text-align: center; /* Ensure centered */
}

.hero-quote::before, .hero-quote::after {
    display: none; /* Remove corner borders */
}

/* Remove hover effect for borders */
/* .hero-quote:hover::before, .hero-quote:hover::after {
    opacity: 0.25;
    transform: scale(1.05);
} */

.hero-quote-author {
    display: block;
    margin-top: var(--space-4);
    font-style: normal;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
}

.hero-title {
    /* Add more margin below title to separate from subtitle */
    margin-bottom: var(--space-8); 
    font-size: var(--font-size-6xl);
    line-height: 1.1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-title span {
    position: relative;
    display: inline-block;
    color: var(--color-accent);
    z-index: 1;
    transform: translateZ(10px);
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.hero-title span::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(231, 111, 81, 0.15);
    z-index: -1;
    transition: height var(--transition-normal), background-color var(--transition-normal);
}

.hero-title:hover span {
    transform: translateZ(20px);
}

.hero-title:hover span::before {
    height: 80%;
    background-color: rgba(231, 111, 81, 0.1);
}

.hero-subtitle {
    max-width: 600px;
    /* Adjust margin below subtitle */
    margin: 0 auto var(--space-10); 
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    /* Ensure buttons are above the quote now */
    margin-bottom: 0; /* Remove bottom margin here */
}

.scroll-indicator {
    position: absolute;
    /* Move to bottom right */
    bottom: var(--space-6);
    right: var(--space-6); 
    left: auto; /* Override previous left: 50% */
    transform: none; /* Override previous transform: translateX(-50%) */
    /* Keep other styles */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    z-index: var(--z-normal); /* Ensure it's above background */
}

.scroll-indicator:hover {
    opacity: 1;
    /* Adjust hover transform for new position */
    transform: translateY(-5px); 
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 13px;
    margin-bottom: var(--space-3);
    position: relative;
    transition: border-color var(--transition-normal);
}

.scroll-indicator:hover .mouse {
    border-color: var(--color-secondary);
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease infinite;
    transition: background-color var(--transition-normal);
}

.scroll-indicator:hover .wheel {
    background-color: var(--color-secondary);
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.hero .fa-chevron-down {
    animation: bounce 2s infinite;
    margin-top: var(--space-3);
    transition: color var(--transition-normal);
}

.scroll-indicator:hover .fa-chevron-down {
    color: var(--color-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-quote {
        font-size: var(--font-size-lg);
        padding: var(--space-6) var(--space-8);
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-8);
    }
    
    .hero-quote {
        font-size: var(--font-size-md);
        padding: var(--space-4) var(--space-6);
        margin-bottom: var(--space-8);
    }
    
    .hero-quote::before, .hero-quote::after {
        width: 40px;
        height: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.btn:hover::before, .btn:focus::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn i {
    margin-left: var(--space-2);
    transition: transform var(--transition-bounce-normal);
}

.btn:hover i, .btn:focus i {
    transform: translateX(4px);
}

.btn-icon-left i {
    margin-right: var(--space-2);
    margin-left: 0;
}

.btn-icon-left:hover i, .btn-icon-left:focus i {
    transform: translateX(-4px);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(42, 157, 143, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-secondary-dark);
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.3);
    color: white;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
    transition: border-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.btn-secondary:hover, .btn-secondary:focus {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-secondary);
    padding: var(--space-2) 0;
    border-radius: 0;
    position: relative;
    box-shadow: none;
}

.btn-tertiary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-bounce-normal);
}

.btn-tertiary:hover::after, .btn-tertiary:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-tertiary::before {
    display: none;
}

.btn-pulse {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(42, 157, 143, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0);
    }
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-md);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::before {
    display: none;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    position: relative;
    z-index: 2;
    padding-bottom: var(--space-8);
}

.section-tagline {
    display: block;
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-6);
    position: relative;
    display: inline-block;
    z-index: 3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-text);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal), opacity var(--transition-normal);
}

.section-header:hover .section-title::after {
    width: 120px;
    opacity: 0.8;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--space-10);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-tagline {
        font-size: var(--font-size-md);
    }
    
    .section-description {
        font-size: var(--font-size-md);
    }
}

/* --- Introduction Section --- */
.introduction {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
    /* Remove padding-top */
    padding-top: 0; 
    padding-bottom: var(--space-20);
}

.introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(42, 157, 143, 0.05), transparent 70%);
    z-index: var(--z-below);
    transition: background var(--transition-normal);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.intro-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.intro-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stages-visualization {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
    transition: transform var(--transition-normal);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.stages-visualization img {
    width: 100%;
    height: auto;
    opacity: 0.95;
    transition: transform var(--transition-bounce-normal), opacity var(--transition-normal), filter var(--transition-normal);
}

.stages-visualization::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    transform: scale(0.95);
    pointer-events: none;
}

.stages-visualization:hover img {
    transform: scale(1.03);
    opacity: 1;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.stages-visualization:hover::after {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1024px) {
    .intro-grid {
        gap: var(--space-10);
    }
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .intro-content {
        order: 2;
    }
    
    .intro-visual {
        order: 1;
    }
    
    .intro-content p {
        font-size: var(--font-size-md);
    }
    
    .stages-visualization {
        max-width: 400px;
    }
}

/* --- Stages Overview --- */
.stages-overview {
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.stages-overview::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(231, 111, 81, 0.05), transparent 70%);
    z-index: var(--z-below);
    transition: background var(--transition-normal);
}

.stage-navigator {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.stage-card {
    background-color: var(--color-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    will-change: transform, box-shadow;
    position: relative;
    z-index: 3;
    margin-bottom: var(--space-8);
}

.stage-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-float);
}

.stage-card-header {
    padding: var(--space-6);
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

.stage-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    transform: scale(0.5);
}

.stage-card:hover .stage-card-header::before {
    opacity: 1;
    transform: scale(1);
}

.stage-color-1 { background: linear-gradient(135deg, var(--stage-1-color), #f3d799); }
.stage-color-2 { background: linear-gradient(135deg, var(--stage-2-color), #f8b980); }
.stage-color-3 { background: linear-gradient(135deg, var(--stage-3-color), #ed8c72); }
.stage-color-4 { background: linear-gradient(135deg, var(--stage-4-color), #4db5aa); }
.stage-color-5 { background: linear-gradient(135deg, var(--stage-5-color), #3c9996); }
.stage-color-6 { background: linear-gradient(135deg, var(--stage-6-color), #3973a3); }
.stage-color-7 { background: linear-gradient(135deg, var(--stage-7-color), #9161c8); }

.stage-number {
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--space-2);
}

.stage-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: 0;
    font-weight: var(--font-weight-bold);
}

.stage-card-body {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stage-description {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.stage-quote {
    background-color: var(--color-surface);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    border-radius: var(--radius-md);
    position: relative;
    border-left: 3px solid var(--color-secondary-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.stage-card:hover .stage-quote {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stage-quote i {
    color: var(--color-secondary-light);
    opacity: 0.3;
    font-size: var(--font-size-2xl);
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.stage-card:hover .stage-quote i {
    transform: scale(1.1) rotate(-5deg);
    opacity: 0.4;
}

.stage-quote blockquote {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    line-height: var(--line-height-relaxed);
    margin: 0 0 var(--space-3) var(--space-6);
    padding: 0;
    background: none;
    box-shadow: none;
}

.stage-quote blockquote::before {
    display: none;
}

.stage-quote cite {
    display: block;
    font-style: normal;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: right;
}

.stage-details {
    margin-top: auto;
}

.detail-item {
    margin-bottom: var(--space-4);
}

.detail-item h4 {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
}

.detail-item h4 i {
    margin-right: var(--space-3);
    color: var(--color-secondary);
    font-size: var(--font-size-lg);
    transition: transform var(--transition-normal);
}

.stage-card:hover .detail-item h4 i {
    transform: scale(1.2);
}

.detail-item p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
    line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
    .stage-navigator {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Assessment Section --- */
.assessment {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.assessment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 80%, rgba(42, 157, 143, 0.05), transparent 70%);
    z-index: var(--z-below);
    transition: background var(--transition-normal);
}

.assessment-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
    margin-top: var(--space-16);
    position: relative;
    z-index: 3;
}

.assessment-start {
    padding: var(--space-16) var(--space-10);
    text-align: center;
    position: relative;
    z-index: 4;
}

.assessment-intro-icon {
    width: 90px;
    height: 90px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-8);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.assessment-intro-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.1), transparent 70%);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.assessment-intro-icon:hover::before {
    opacity: 1;
    transform: scale(1);
}

.assessment-intro-icon i {
    font-size: var(--font-size-4xl);
    color: var(--color-secondary);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.assessment-start h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.assessment-start p {
    max-width: 500px;
    margin: 0 auto var(--space-8);
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* --- Quiz Container --- */
.quiz-container {
    padding: var(--space-10);
}

.progress-container {
    margin-bottom: var(--space-10);
}

.progress-bar-wrapper {
    height: 6px;
    background-color: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
    position: relative;
}

.progress-bar-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: progressShimmer 1.5s linear infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary-dark), var(--color-secondary-light));
    border-radius: var(--radius-full);
    transition: width 0.5s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.progress-text {
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-wide);
}

.question-area {
    min-height: 340px;
    margin-bottom: var(--space-8);
}

.question-content {
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    animation: fadeInQuestion 0.5s ease-out forwards;
}

@keyframes fadeInQuestion {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-text {
    margin-bottom: var(--space-8);
}

.question-text h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.question-text h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.question-content:hover .question-text h3::after {
    width: 60px;
}

.question-text p {
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.option-label {
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.option-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.option-content {
    display: flex;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.option-label:hover .option-content {
    background-color: rgba(42, 157, 143, 0.05);
    border-color: var(--color-secondary-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.option-label input[type="radio"] {
    display: none;
}

.option-label input[type="radio"]:checked + .option-content {
    background-color: rgba(42, 157, 143, 0.1);
    border-color: var(--color-secondary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.option-indicator {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    margin-right: var(--space-4);
    position: relative;
    transition: all var(--transition-normal);
}

.option-label:hover .option-indicator {
    border-color: var(--color-secondary-light);
    transform: scale(1.1);
}

.option-label input[type="radio"]:checked + .option-content .option-indicator {
    border-color: var(--color-secondary);
    background-color: var(--color-secondary);
    transform: scale(1.1);
}

.option-label input[type="radio"]:checked + .option-content .option-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: var(--radius-full);
    animation: pulseIndicator 0.3s var(--transition-bounce);
}

@keyframes pulseIndicator {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.option-text {
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    color: var(--color-text);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-8);
}

.error-message {
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    margin-top: var(--space-3);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* --- Results Container --- */
.results-container {
    padding: var(--space-10);
    overflow: hidden;
}

.results-title {
    font-size: var(--font-size-3xl);
    text-align: center;
    margin-bottom: var(--space-2);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.results-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.results-visualization {
    margin-bottom: var(--space-16);
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.results-visualization::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.03), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 0;
}

.results-visualization:hover::after {
    opacity: 1;
}

.results-visualization h4 {
    text-align: center;
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.chart-wrapper {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.primary-stage-info {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.08), rgba(42, 157, 143, 0.04));
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-16);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(42, 157, 143, 0.1);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.primary-stage-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.primary-stage-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-secondary-dark), var(--color-secondary-light));
}

.primary-stage-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(to right, transparent, rgba(42, 157, 143, 0.03));
    pointer-events: none;
}

.primary-stage-info h4 {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.primary-stage-info p {
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.insight-tabs-container {
    margin-bottom: var(--space-16);
}

.insight-tabs-container h4 {
    text-align: center;
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.insight-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
}

.insight-tab {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.insight-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-bounce-normal), opacity var(--transition-normal);
}

.insight-tab:hover {
    color: var(--color-secondary);
}

.insight-tab.active {
    color: var(--color-secondary);
    font-weight: var(--font-weight-medium);
}

.insight-tab.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.insight-content {
    padding: var(--space-6);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-light);
    min-height: 200px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    animation: fadeIn 0.5s ease;
}

.insight-content.active {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.adjacent-stages-info {
    margin-bottom: var(--space-16);
}

.adjacent-stages-info h4 {
    text-align: center;
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
}

.adjacent-stages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.previous-stage, .next-stage {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.previous-stage:hover, .next-stage:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.previous-stage::before, .next-stage::before {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
}

.previous-stage::before {
    left: 0;
    background: linear-gradient(to bottom, var(--color-accent-light), var(--color-accent));
}

.next-stage::before {
    right: 0;
    background: linear-gradient(to bottom, var(--color-secondary-light), var(--color-secondary));
}

.adjacent-stages-grid h5 {
    display: flex;
    align-items: center;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.previous-stage h5 {
    color: var(--color-accent);
}

.next-stage h5 {
    color: var(--color-secondary);
    justify-content: flex-end;
}

.previous-stage h5 i {
    margin-right: var(--space-2);
    transition: transform var(--transition-normal);
}

.next-stage h5 i {
    margin-left: var(--space-2);
    transition: transform var(--transition-normal);
}

.previous-stage:hover h5 i {
    transform: translateX(-3px);
}

.next-stage:hover h5 i {
    transform: translateX(3px);
}

.adjacent-stages-grid p {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
}

.adjacent-stages-grid .btn {
    display: inline-flex;
    margin-top: auto;
}

.development-recommendations {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.development-recommendations h4 {
    text-align: center;
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.development-recommendations ul {
    list-style: none;
    margin-bottom: var(--space-6);
}

.development-recommendations li {
    padding-left: 30px;
    margin-bottom: var(--space-4);
    position: relative;
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
}

.development-recommendations li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-secondary);
    transition: transform var(--transition-normal);
}

.development-recommendations li:hover::before {
    transform: scale(1.2);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.results-actions .btn {
    min-width: 180px;
}

.disclaimer {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .assessment-wrapper {
        margin: 0 var(--space-4);
    }
    
    .assessment-start, .quiz-container, .results-container {
        padding: var(--space-6);
    }
    
    .results-title {
        font-size: var(--font-size-2xl);
    }
    
    .results-subtitle {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-8);
    }
    
    .chart-wrapper {
        height: 300px;
    }
    
    .adjacent-stages-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .insight-tabs {
        flex-wrap: wrap;
    }
    
    .insight-tab {
        flex-grow: 1;
        text-align: center;
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-sm);
    }
}

/* --- About Section --- */
.about {
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(231, 111, 81, 0.05), transparent 70%);
    z-index: var(--z-below);
    transition: background var(--transition-normal);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.author-card {
    background-color: var(--color-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    will-change: transform, box-shadow;
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
}

.author-image-wrapper {
    position: relative;
    width: 100%;
    /* padding-top: 65%; Remove fixed padding */
    overflow: hidden;
    display: flex; /* Use flex for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically if needed */
    min-height: 200px; /* Adjust as needed */
}

.author-image-link {
    display: block; /* Make link a block element */
    width: 100%; /* Allow link to take full width */
    height: 100%; /* Allow link to take full height */
}

.author-image {
    /* Remove absolute positioning */
    /* position: absolute;
    top: 0;
    left: 0; */
    width: 100%;
    height: auto; /* Let image determine height */
    max-height: 100%; /* Prevent image overflow */
    object-fit: cover; /* Maintain aspect ratio, cover area */
    background-size: cover; /* Keep for background fallback */
    background-position: center;
    transition: transform var(--transition-normal);
    filter: saturate(0.9);
}

.author-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-normal);
}


.author-card:hover .author-image img {
    transform: scale(1.05);
}

/* Keep background fallbacks */
.kegan-image {
    /* background-image: url('./assets/kegan.jpg'); Remove if img tag is always used */
    position: relative;
}

.kegan-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(42, 157, 143, 0.25), transparent);
    transition: opacity var(--transition-normal);
}

.bach-image {
    background-image: url('/api/placeholder/400/320');
    position: relative;
}

.bach-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(29, 78, 111, 0.25), transparent);
    transition: opacity var(--transition-normal);
}

.hicks-image {
    background-image: url('/api/placeholder/400/320');
    position: relative;
}

.hicks-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(231, 111, 81, 0.25), transparent);
    transition: opacity var(--transition-normal);
}

.author-card:hover .author-image::after {
    opacity: 0.8;
}

.author-info {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.author-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-normal), width var(--transition-normal);
    z-index: -1;
}

.author-card:hover .author-info::before {
    opacity: 1;
    width: 80%;
}

.author-info h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-1);
    color: var(--color-primary);
    transition: color var(--transition-normal);
}

.author-card:hover .author-info h3 {
    color: var(--color-secondary);
}

.author-title {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.author-info p {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
    flex-grow: 1;
}

.author-focus {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-secondary);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(42, 157, 143, 0.2);
    transition: all var(--transition-normal);
}

.author-card:hover .author-focus {
    background-color: rgba(42, 157, 143, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* --- Quote Section --- */
.quote-section {
    position: relative;
    background-color: var(--color-background);
    padding: var(--space-20) 0;
    overflow: hidden;
    margin: var(--space-20) 0;
    z-index: 1;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(29, 78, 111, 0.85), rgba(42, 157, 143, 0.85)), url('/api/placeholder/1200/600');
    background-size: cover;
    background-position: center;
    z-index: var(--z-below);
    transform: translateZ(-1px) scale(1.2);
    transition: transform var(--transition-normal);
    will-change: transform;
}

.quote-section:hover .parallax-bg {
    transform: translateZ(-1px) scale(1.15);
}

.quote-content {
    position: relative;
    z-index: var(--z-normal);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-content blockquote {
    font-family: var(--font-secondary);
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-relaxed);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    position: relative;
}

.quote-content blockquote::before {
    content: '"';
    font-family: var(--font-secondary);
    font-size: 6rem;
    position: absolute;
    left: -40px;
    top: -40px;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: none;
    transition: transform var(--transition-normal);
}

.quote-content:hover blockquote::before {
    transform: translateY(-10px);
}

.quote-content blockquote::after {
    content: '"';
    font-family: var(--font-secondary);
    font-size: 6rem;
    position: absolute;
    right: -40px;
    bottom: -80px;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: none;
    transition: transform var(--transition-normal);
}

.quote-content:hover blockquote::after {
    transform: translateY(10px);
}

.quote-content cite {
    display: block;
    margin-top: var(--space-6);
    font-style: normal;
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-top: var(--space-3);
}

.quote-content cite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: width var(--transition-normal);
}

.quote-content:hover cite::before {
    width: 60px;
}

@media (max-width: 768px) {
    .quote-content blockquote {
        font-size: var(--font-size-xl);
    }
    
    .quote-content cite {
        font-size: var(--font-size-md);
    }

    .quote-content blockquote::before,
    .quote-content blockquote::after {
        font-size: 4rem;
    }
    
    .quote-content blockquote::before {
        left: -20px;
        top: -30px;
    }
    
    .quote-content blockquote::after {
        right: -20px;
        bottom: -60px;
    }
}

/* --- Newsletter Section --- */
.newsletter-section {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(42, 157, 143, 0.05), transparent 70%);
    z-index: var(--z-below);
    transition: background var(--transition-normal);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.newsletter-content p {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.form-group::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: radial-gradient(circle, rgba(42, 157, 143, 0.1), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-lg);
}

.form-group:hover::before {
    opacity: 1;
}

.form-group input {
    flex-grow: 1;
    height: 54px;
    padding: 0 var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    font-size: var(--font-size-md);
    color: var(--color-text);
    transition: all var(--transition-normal);
    background-color: var(--color-card);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.1);
}

.form-group .btn {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    height: 54px;
}

.privacy-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .newsletter-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .newsletter-content p {
        font-size: var(--font-size-md);
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-3);
    }
    
    .form-group .btn {
        border-radius: var(--radius-lg);
        width: 100%;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary-dark);
    color: white;
    position: relative;
    overflow: hidden;
    padding: var(--space-16) 0 var(--space-8);
    transition: background-color var(--transition-normal);
}

[data-theme="dark"] .footer {
    background-color: #0a1620; /* Darker shade for dark mode */
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center top;
    transform-origin: center bottom;
    transition: transform var(--transition-normal);
}

[data-theme="dark"] .footer-wave {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23121212'%3E%3C/path%3E%3C/svg%3E");
}

.footer:hover .footer-wave {
    transform: scaleY(1.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-3);
    color: white;
    position: relative;
    display: inline-block;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.footer-brand:hover .footer-logo::after {
    width: 100%;
}

.footer-tagline {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    z-index: 0;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links a:hover::before {
    transform: translateY(0);
}

.social-links a:hover i {
    transform: scale(1.2);
}

.footer-links h3 {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    color: white;
    margin-bottom: var(--space-6);
    position: relative;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal), background-color var(--transition-normal);
}

.footer-links:hover h3::after {
    width: 50px;
    background-color: var(--color-secondary-light);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-md);
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background-color: var(--color-secondary);
    border-radius: 50%;
    opacity: 0;
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: white;
    transform: translateX(10px);
    padding-left: 15px;
}

.footer-links a:hover::before {
    width: 6px;
    height: 6px;
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-final-quote {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.footer-final-quote::before, 
.footer-final-quote::after {
    content: '"';
    font-family: var(--font-secondary);
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    transition: transform var(--transition-normal);
}

.footer-final-quote::before {
    left: -15px;
    top: -10px;
}

.footer-final-quote::after {
    right: -15px;
    bottom: -20px;
}

.footer-final-quote:hover::before {
    transform: translateY(-3px);
}

.footer-final-quote:hover::after {
    transform: translateY(3px);
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright .fa-heart {
    color: var(--color-accent);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .footer-logo::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links h3 {
        margin-bottom: var(--space-4);
    }
    
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        transform: translateY(-3px);
        padding-left: 0;
    }

    .footer-links a::before {
        display: none;
    }
}

/* --- Scroll to Top --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-color: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
    overflow: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary-dark);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-normal);
    z-index: 0;
}

.scroll-to-top i {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.scroll-to-top:hover::before {
    transform: scaleY(1);
}

.scroll-to-top:hover i {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* --- Spinner --- */
.spinner {
    width: 40px;
    height: 40px;
    margin: 40px auto;
    border: 3px solid rgba(42, 157, 143, 0.1);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* --- Timeline Styles (Enhanced) --- */
.timeline__cover {
    background: var(--color-background);
    padding: 120px 0 350px; /* Further increased bottom padding */
    color: var(--color-text);
    position: relative;
    transition: background-color var(--transition-normal);
    /* overflow: hidden; */ /* Ensure overflow is not hidden if previously set */
}

.timeline__cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(42, 157, 143, 0.03), transparent 70%);
    z-index: 0;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.timeline__cover:hover::before {
    opacity: 1;
}

.timeline__cover .timeline__title {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    padding: 0 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.timeline__cover .timeline__title h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    letter-spacing: -0.5px;
    text-transform: capitalize;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-secondary-dark)); 
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: unset; 
    text-shadow: none;
    display: inline-block;
    position: relative; 
    z-index: 2; 
}

.timeline__cover .timeline__title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-text);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.timeline__cover:hover .timeline__title h2::after {
    width: 100px;
}

.timeline__cover .timeline__title p {
    font-size: 18px;
    font-weight: 400;
    line-height: 28.8px;
    color: var(--color-text-light);
}

.timeline__cover .timeline {
    padding-top: 64px;
    position: relative;
    z-index: 1;
    overflow: visible; /* Ensure timeline container doesn't clip */
}

.timeline__cover .timeline ul {
    padding-top: 100px;
    position: relative;
}

.timeline__cover .timeline ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px; /* Slightly thinner line */
    height: 100%;
    background: linear-gradient(to bottom, var(--color-border), transparent); /* Fade out at the bottom */
    z-index: 0;
    opacity: 0.7; /* Slightly softer */
    transition: background-color var(--transition-normal);
}

.timeline__cover .timeline ul li {
    background: var(--color-border);
    position: relative;
    margin: 0 auto;
    width: 2px;
    margin-bottom: 180px; /* Slightly increased spacing between items */
    list-style-type: none;
    min-height: 300px; 
    transition: background-color var(--transition-normal);
}

.timeline__cover .timeline ul li:last-child {
    padding-bottom: 7px;
    margin-bottom: 0;
}

.timeline__cover .timeline ul li:before {
    content: '';
    background: var(--stage-1-color); 
    position: absolute;
    left: 50%;
    top: -32px;
    transform: translateX(-50%);
    width: 20px; /* Slightly smaller dot */
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--color-background); /* Add border matching background for separation */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), var(--shadow-subtle); /* Refined shadow */
    z-index: 2;
    transition: transform 0.3s var(--transition-bounce), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.timeline__cover .timeline ul li:hover:before {
    transform: translateX(-50%) scale(1.3); /* Slightly larger scale on hover */
    box-shadow: 0 0 25px rgba(42, 157, 143, 0.4), var(--shadow-md); /* More pronounced glow */
}

/* Dot color overrides */
.timeline__cover .timeline ul li:nth-child(1):before { background: var(--stage-1-color); }
.timeline__cover .timeline ul li:nth-child(2):before { background: var(--stage-2-color); }
.timeline__cover .timeline ul li:nth-child(3):before { background: var(--stage-3-color); }
.timeline__cover .timeline ul li:nth-child(4):before { background: var(--stage-4-color); }
.timeline__cover .timeline ul li:nth-child(5):before { background: var(--stage-5-color); }
.timeline__cover .timeline ul li:nth-child(6):before { background: var(--stage-6-color); }
.timeline__cover .timeline ul li:nth-child(7):before { background: var(--stage-7-color); }

.timeline__cover .timeline ul li .hidden {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.8s ease, transform 0.8s ease; 
}

.timeline__cover .timeline ul li .content {
    position: absolute; 
    top: -28px; /* Adjust top position slightly to align with smaller dot */
    width: 400px;
    max-width: 80vw;
    background: var(--color-card); 
    border-radius: var(--radius-lg);
    padding: 2rem; /* Slightly reduced padding */
    box-shadow: var(--shadow-md); 
    border-top: 2px solid transparent; 
    transition: all var(--transition-normal);
    left: auto; 
    transform: none; 
    color: var(--color-text); 
    will-change: transform, box-shadow;
    z-index: 5;
}

/* Added styles for age info */
.timeline-age-info {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-surface);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(5px) scale(0.95);
    transition: opacity 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
    pointer-events: none; /* Don't block hover on content */
    z-index: 6;
}

.timeline__cover .timeline ul li .content:hover .timeline-age-info {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Keep colored top borders */
.timeline__cover .timeline ul li:nth-child(1) .content { border-top-color: var(--stage-1-color); } 
.timeline__cover .timeline ul li:nth-child(2) .content { border-top-color: var(--stage-2-color); }
.timeline__cover .timeline ul li:nth-child(3) .content { border-top-color: var(--stage-3-color); }
.timeline__cover .timeline ul li:nth-child(4) .content { border-top-color: var(--stage-4-color); }
.timeline__cover .timeline ul li:nth-child(5) .content { border-top-color: var(--stage-5-color); }
.timeline__cover .timeline ul li:nth-child(6) .content { border-top-color: var(--stage-6-color); }
.timeline__cover .timeline ul li:nth-child(7) .content { border-top-color: var(--stage-7-color); }

.timeline__cover .timeline ul li .content:hover {
    transform: translateY(-8px); 
    box-shadow: var(--shadow-float);
}

.timeline__cover .timeline ul li .content .badge {
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 1000px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.timeline__cover .timeline ul li .content .badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.timeline__cover .timeline ul li .content:hover .badge::after {
    transform: translateX(100%);
}

/* Badge background gradients */
.timeline__cover .timeline ul li:nth-child(1) .content .badge { background: linear-gradient(90deg, #FF9966, #FF5E62); }
.timeline__cover .timeline ul li:nth-child(2) .content .badge { background: linear-gradient(90deg, #FFCC33, #FF9966); }
.timeline__cover .timeline ul li:nth-child(3) .content .badge { background: linear-gradient(90deg, #00DBDE, #FC00FF); }
.timeline__cover .timeline ul li:nth-child(4) .content .badge { background: linear-gradient(90deg, #5433FF, #20BDFF); }
.timeline__cover .timeline ul li:nth-child(5) .content .badge { background: linear-gradient(90deg, #A8EDEA, #FED6E3); }
.timeline__cover .timeline ul li:nth-child(6) .content .badge { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.timeline__cover .timeline ul li:nth-child(7) .content .badge { background: linear-gradient(90deg, #8BC6EC, #9599E2); }

.timeline__cover .timeline ul li .content h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--color-primary-dark);
    margin: 0 0 16px;
    position: relative;
    display: inline-block;
}

.timeline__cover .timeline ul li .content h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: rgba(42, 157, 143, 0.3);
    transition: width var(--transition-normal), background-color var(--transition-normal);
}

.timeline__cover .timeline ul li .content:hover h3::after {
    width: 50%;
    background-color: var(--color-secondary);
}

.timeline__cover .timeline ul li .content p {
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 24px;
}

.timeline__cover .timeline ul li .content .quote {
    border-left: 3px solid var(--color-divider);
    padding-left: 16px;
    margin-bottom: 24px;
    position: relative;
    transition: border-left-color var(--transition-normal), transform var(--transition-normal);
}

.timeline__cover .timeline ul li .content:hover .quote {
    border-left-color: var(--color-secondary);
    transform: translateX(5px);
}

.timeline__cover .timeline ul li .content .quote i {
    position: absolute;
    top: 4px; 
    left: -12px; 
    background: none; 
    font-size: 20px; 
    color: var(--color-text-muted);
    opacity: 1;
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.timeline__cover .timeline ul li .content:hover .quote i {
    transform: scale(1.2) rotate(-5deg);
    color: var(--color-secondary);
}

.timeline__cover .timeline ul li .content .quote p {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 8px;
}

.timeline__cover .timeline ul li .content .quote .quote-author {
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: normal;
}

.timeline__cover .timeline ul li .content .quote .quote-context {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    font-style: normal;
    margin-top: 8px;
}

.timeline__cover .timeline ul li .content .stage-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.timeline__cover .timeline ul li .content .stage-details .detail-item {
    flex: 1;
    min-width: 45%;
    transition: transform var(--transition-normal);
}

.timeline__cover .timeline ul li .content:hover .stage-details .detail-item:hover {
    transform: translateY(-5px);
}

.timeline__cover .timeline ul li .content .stage-details .detail-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.timeline__cover .timeline ul li .content .stage-details .detail-item h4::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.timeline__cover .timeline ul li .content .stage-details .detail-item:hover h4::before {
    width: 100%;
}

.timeline__cover .timeline ul li .content .stage-details .detail-item p {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    color: var(--color-text-light);
}

.timeline__cover .timeline ul li:nth-child(odd) .content {
    left: 70px; 
    transform: none; 
}

.timeline__cover .timeline ul li:nth-child(even) .content {
    left: calc(-400px - 70px); 
    transform: none; 
}

.timeline__cover .timeline ul li:nth-child(odd) .content:before {
    content: '';
    position: absolute;
    top: 15px; /* Align vertically with the center of the dot */
    left: -20px; /* Adjust position */
    width: 20px; /* Make connector thinner */
    height: 1px;
    background: var(--color-border); /* Match central line color */
    transition: background var(--transition-normal), width var(--transition-normal);
}

.timeline__cover .timeline ul li:nth-child(even) .content:before {
    content: '';
    position: absolute;
    top: 15px; /* Align vertically with the center of the dot */
    right: -20px; /* Adjust position */
    width: 20px; /* Make connector thinner */
    height: 1px;
    background: var(--color-border); /* Match central line color */
    transition: background var(--transition-normal), width var(--transition-normal);
}

.timeline__cover .timeline ul li:hover .content:before {
    background: var(--color-secondary); /* Highlight connector on hover */
    width: 25px; /* Slightly extend connector on hover */
}

.horizontal-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: var(--color-card);
    padding: 16px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 2;
    border: 1px solid var(--color-border);
}

.horizontal-scroll-indicator:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
    background-color: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.horizontal-scroll-indicator span {
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-normal);
}

.horizontal-scroll-indicator i {
    animation: bounceArrowHorizontal 1.5s infinite;
}

@keyframes bounceArrowHorizontal {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(4px); }
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(var(--animation-slide-in-offset));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(calc(var(--animation-slide-in-offset) * -1));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(var(--animation-slide-in-offset));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(calc(var(--animation-slide-in-offset) * -1));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in { 
    animation: fadeIn var(--animation-fade-in-duration) ease forwards;
    animation-delay: calc(var(--delay, 0) * 1ms);
}

.fade-in-up { 
    animation: fadeInUp var(--animation-fade-in-duration) ease forwards;
    animation-delay: calc(var(--delay, 0) * 1ms);
}

.fade-in-down { 
    animation: fadeInDown var(--animation-fade-in-duration) ease forwards; 
    animation-delay: calc(var(--delay, 0) * 1ms);
}

.fade-in-left { 
    animation: fadeInLeft var(--animation-fade-in-duration) ease forwards; 
    animation-delay: calc(var(--delay, 0) * 1ms);
}

.fade-in-right { 
    animation: fadeInRight var(--animation-fade-in-duration) ease forwards; 
    animation-delay: calc(var(--delay, 0) * 1ms);
}

.zoom-in { 
    animation: zoomIn var(--animation-fade-in-duration) ease forwards; 
    animation-delay: calc(var(--delay, 0) * 1ms);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--delay, 0) * 1ms);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utility Classes --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.max-w-md { max-width: 768px; }
.max-w-lg { max-width: 1024px; }
.max-w-xl { max-width: 1280px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

.grid { display: grid; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }

.overflow-hidden { overflow: hidden; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.transition-all {
    transition-property: all;
    transition-timing-function: var(--transition-smooth);
    transition-duration: var(--transition-normal);
}

.shadow-hover {
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

/* --- Print Styles --- */
@media print {
    .header, .footer, .scroll-to-top, .nav-toggle, .theme-toggle, 
    .hero-buttons, .scroll-indicator, .newsletter-section, .preloader {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .hero, .section {
        padding: 20px 0;
        min-height: auto;
    }
    
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        break-after: avoid;
    }
    
    .results-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .timeline__cover .timeline ul::before,
    .timeline__cover .timeline ul li {
        background-color: #ccc;
    }
    
    .timeline__cover .timeline ul li .content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .timeline__cover .timeline ul li:before {
        box-shadow: none;
    }
    
    .timeline__cover .timeline ul li .content:before {
        background-color: #ccc;
    }
    
    .primary-stage-info,
    .development-recommendations,
    .results-visualization {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .quote-section {
        background: white !important;
    }
    
    .quote-content blockquote,
    .quote-content cite {
        color: black;
    }
    
    .footer-wave {
        display: none;
    }
}

/* --- Accessibility Enhancements --- */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .preloader {
        display: none;
    }
    
    body {
        overflow: visible !important;
    }
}

/* --- Final Polishing --- */
::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

input:not(:placeholder-shown) {
    border-color: var(--color-secondary-light);
}

button:active, a:active {
    transform: scale(0.98);
}

.smooth-shadow {
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.02),
        0 2px 2px rgba(0,0,0,0.02),
        0 4px 4px rgba(0,0,0,0.02),
        0 8px 8px rgba(0,0,0,0.02);
    transition: box-shadow var(--transition-normal);
}

.smooth-shadow:hover {
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.03),
        0 2px 2px rgba(0,0,0,0.03),
        0 4px 4px rgba(0,0,0,0.03),
        0 8px 8px rgba(0,0,0,0.03),
        0 16px 16px rgba(0,0,0,0.03);
}

/* Ensure high-quality font rendering */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix "Explore stage" button */
.explore-stage-button {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background-color: var(--color-card);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  z-index: 100;
  border: 1px solid var(--color-border);
}

.explore-stage-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

/* Standardize two-column layouts in cards */
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

/* Make Start Assessment button more prominent */
.btn-assessment {
  background: var(--gradient-secondary);
  color: white;
  padding: var(--space-4) var(--space-10);
  font-size: var(--font-size-md);
  transition: all var(--transition-normal), transform var(--transition-bounce-normal);
  box-shadow: var(--shadow-md);
}

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

.btn-assessment i {
  margin-left: var(--space-3);
  transition: transform var(--transition-bounce-normal);
}

.btn-assessment:hover i {
  transform: translateX(5px);
}

/* Add clearfix to prevent layout issues */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Ensure section transitions don't cause layout issues */
.section + .section {
  position: relative;
  margin-top: var(--space-16);
}


/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    /* ... existing 768px rules ... */

    /* Fix timeline on mobile */
    .timeline__cover .timeline ul li {
        margin-left: 0 !important; 
        width: 100%; 
        display: flex; 
        justify-content: center; 
        background: none; 
        min-height: auto; 
        margin-bottom: 60px; /* Increased spacing for mobile */
        position: relative; 
        padding-top: 40px; 
    }

    .timeline__cover .timeline ul li::before {
        left: 50%; 
        transform: translateX(-50%);
        top: 0; 
        box-shadow: 0 0 10px rgba(42, 157, 143, 0.2); /* Softer glow */
    }

    .timeline__cover .timeline ul li .content {
        position: relative; 
        width: calc(100% - 40px); 
        max-width: 400px; 
        left: auto !important; 
        transform: none !important; 
        top: 0; 
        margin: 0 auto; 
        box-shadow: var(--shadow-subtle); /* Use subtle shadow on mobile */
    }
    
    .timeline__cover .timeline ul li:nth-child(odd) .content:before,
    .timeline__cover .timeline ul li:nth-child(even) .content:before {
       display: none; /* Keep connectors hidden on mobile */
    }
  
    /* ... other 768px rules ... */
}

/* ... rest of file ... */

/* Insight Tabs Author Photos */
.insight-content .author-insight {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--accent-color);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.insight-content .author-insight:hover {
    background-color: var(--card-hover-bg-color);
}

.insight-content .author-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.insight-content .author-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.insight-content .kegan-photo {
    background-image: url('./assets/Robert-Kegan.png'); 
}

.insight-content .bach-photo {
    background-image: url('./assets/Joscha-Bach.png'); 
}

.insight-content .hicks-photo {
    background-image: url('./assets/Bill-Hicks.png'); 
}

.insight-content .author-insight p {
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.insight-content .author-insight ul {
    list-style: disc;
    margin-left: var(--space-4);
    margin-bottom: var(--space-2);
}

.insight-content .author-insight li {
    margin-bottom: var(--space-1);
}

/* Override margin between hero and intro */
.hero + .introduction {
    margin-top: 0;
}

@media (max-width: 768px) {
    /* ... existing 768px rules ... */
}

/* --- Enhanced Responsive Styling --- */

/* Extra large devices (large desktops, 1440px and up) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 900px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-quote {
        max-width: 800px;
        font-size: var(--font-size-xl);
    }
    
    .intro-grid {
        gap: var(--space-24);
    }
    
    .stages-visualization {
        max-width: 600px;
    }
    
    .timeline__cover .timeline ul li .content {
        width: 450px;
        max-width: 450px;
    }
    
    .timeline__cover .timeline ul li:nth-child(odd) .content {
        left: 80px;
    }
    
    .timeline__cover .timeline ul li:nth-child(even) .content {
        left: calc(-450px - 80px);
    }
}

/* Large devices (desktops, 1280px to 1440px) */
@media (max-width: 1440px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .stage-card {
        min-height: 500px;
    }
}

/* Medium devices (tablets, laptops, 1024px to 1279px) */
@media (max-width: 1279px) and (min-width: 1025px) {
    .container {
        max-width: var(--container-lg);
        padding: 0 var(--space-8);
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .stage-card {
        min-height: 520px;
    }
    
    .authors-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--space-8);
    }
}

/* Small devices (landscape tablets, 768px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 var(--space-6);
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        max-width: 85%;
    }
    
    .hero-quote {
        max-width: 85%;
    }
    
    .intro-grid {
        gap: var(--space-12);
    }
    
    .timeline__cover .timeline ul li .content {
        width: 350px;
        padding: 1.75rem;
    }
    
    .timeline__cover .timeline ul li:nth-child(odd) .content {
        left: 50px;
    }
    
    .timeline__cover .timeline ul li:nth-child(even) .content {
        left: calc(-350px - 50px);
    }
    
    .assessment-wrapper {
        margin: 0 var(--space-6);
    }
    
    .authors-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-6);
    }
    
    .stage-card {
        min-height: 550px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-links:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-links:last-child h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links:last-child ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-6);
    }
}

/* Extra small devices (portrait phones, 576px to 767px) */
@media (max-width: 768px) and (min-width: 577px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .hero-wrapper {
        padding: 6.5rem 0 3rem;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--space-6);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-8);
    }
    
    .hero-quote {
        margin: var(--space-12) auto var(--space-8);
        padding: var(--space-5);
    }
    
    .scroll-indicator {
        bottom: var(--space-4);
        right: var(--space-4);
    }
    
    .intro-content p {
        font-size: var(--font-size-base);
    }
    
    .timeline__cover {
        padding: 80px 0 280px;
    }
    
    .timeline__cover .timeline__title h2 {
        font-size: 2.5rem;
    }
    
    .timeline__cover .timeline ul li .content {
        width: 90%;
        max-width: 500px;
        padding: 1.5rem;
    }
    
    .insight-tab {
        padding: var(--space-2);
        font-size: var(--font-size-xs);
    }
}

/* Very small devices (small portrait phones, 480px and below) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    .section {
        padding: var(--space-10) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-4);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-tagline {
        font-size: var(--font-size-sm);
    }
    
    .section-description {
        font-size: var(--font-size-md);
    }
    
    .hero-wrapper {
        padding: 5rem 0 2rem;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--space-4);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-6);
    }
    
    .hero-quote {
        margin: var(--space-8) auto var(--space-6);
        padding: var(--space-4);
        font-size: var(--font-size-sm);
    }
    
    .hero-quote-author {
        font-size: var(--font-size-xs);
    }
    
    .btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-xs);
    }
    
    .scroll-indicator {
        bottom: var(--space-3);
        right: var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .mouse {
        width: 20px;
        height: 30px;
    }
    
    .intro-content p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-4);
    }
    
    .stages-visualization {
        max-width: 280px;
    }
    
    .timeline__cover {
        padding: 60px 0 200px;
    }
    
    .timeline__cover .timeline__title h2 {
        font-size: 2rem;
    }
    
    .timeline__cover .timeline__title p {
        font-size: var(--font-size-sm);
    }
    
    .timeline__cover .timeline ul li {
        margin-bottom: 50px;
    }
    
    .timeline__cover .timeline ul li .content {
        width: calc(100% - 20px);
        padding: 1.25rem;
    }
    
    .timeline__cover .timeline ul li .content h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-3);
    }
    
    .timeline__cover .timeline ul li .content p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-4);
    }
    
    .timeline__cover .timeline ul li .content .stage-details {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .assessment-wrapper {
        margin: 0;
        border-radius: var(--radius-xl);
    }
    
    .assessment-start, .quiz-container, .results-container {
        padding: var(--space-4);
    }
    
    .assessment-intro-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--space-4);
    }
    
    .assessment-start h3 {
        font-size: var(--font-size-2xl);
    }
    
    .assessment-start p {
        font-size: var(--font-size-sm);
    }
    
    .question-text h3 {
        font-size: var(--font-size-xl);
    }
    
    .question-text p {
        font-size: var(--font-size-sm);
    }
    
    .option-content {
        padding: var(--space-3) var(--space-4);
    }
    
    .option-text {
        font-size: var(--font-size-sm);
    }
    
    .results-title {
        font-size: var(--font-size-xl);
    }
    
    .results-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-6);
    }
    
    .results-visualization h4, 
    .primary-stage-info h4, 
    .insight-tabs-container h4, 
    .adjacent-stages-info h4, 
    .development-recommendations h4 {
        font-size: var(--font-size-lg);
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .insight-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: var(--space-2);
    }
    
    .insight-tab {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .insight-content {
        padding: var(--space-4);
        font-size: var(--font-size-xs);
    }
    
    .author-card {
        min-height: 400px;
    }
    
    .author-image-wrapper {
        min-height: 180px;
    }
    
    .author-info h3 {
        font-size: var(--font-size-lg);
    }
    
    .author-title {
        font-size: var(--font-size-sm);
    }
    
    .author-info p {
        font-size: var(--font-size-sm);
    }
    
    .author-focus {
        font-size: var(--font-size-xs);
    }
    
    .footer {
        padding: var(--space-10) 0 var(--space-4);
    }
    
    .footer-logo {
        font-size: var(--font-size-xl);
    }
    
    .footer-grid {
        gap: var(--space-6);
        margin-bottom: var(--space-8);
    }
    
    .footer-links h3 {
        font-size: var(--font-size-md);
        margin-bottom: var(--space-3);
    }
    
    .footer-links a {
        font-size: var(--font-size-sm);
    }
    
    .footer-final-quote {
        font-size: var(--font-size-md);
    }
    
    .footer-copyright {
        font-size: var(--font-size-xs);
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* Very small devices (tiny phones, 375px and below) */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .hero-quote {
        padding: var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .timeline__cover .timeline__title h2 {
        font-size: 1.8rem;
    }
    
    .timeline__cover .timeline ul li .content {
        padding: 1rem;
    }
    
    .timeline__cover .timeline ul li .content .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .assessment-intro-icon {
        width: 60px;
        height: 60px;
    }
    
    .assessment-start h3 {
        font-size: var(--font-size-xl);
    }
    
    .btn {
        padding: var(--space-2) var(--space-4);
    }
    
    .primary-stage-info, 
    .insight-content, 
    .development-recommendations {
        padding: var(--space-3);
    }
    
    .chart-wrapper {
        height: 220px;
    }
    
    .insight-tab {
        padding: var(--space-1) var(--space-2);
        font-size: 0.65rem;
    }
    
    .results-actions .btn {
        font-size: 0.7rem;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-wrapper {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-quote {
        margin: var(--space-8) auto;
    }
    
    .section {
        padding: var(--space-8) 0;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .timeline__cover {
        padding: 60px 0 200px;
    }
    
    .assessment-start {
        padding: var(--space-8) var(--space-6);
    }
    
    .navigation.active {
        height: 85vh;
        overflow-y: auto;
    }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS Safari viewport height issue */
    .hero-wrapper {
        min-height: -webkit-fill-available;
    }
    
    /* Fix for iOS Safari scrolling issues */
    .navigation.active {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix for iOS Safari button rendering */
    .btn {
        -webkit-appearance: none;
    }
}

/* Fix for Firefox */
@-moz-document url-prefix() {
    .timeline__cover .timeline ul li .content {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    
    .timeline__cover .timeline ul li:before {
        box-shadow: 0 0 10px rgba(42, 157, 143, 0.25);
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: more) {
    :root {
        --color-border: #444;
        --color-text: #000;
        --color-text-light: #222;
        --color-text-muted: #333;
    }
    
    [data-theme="dark"] {
        --color-text: #fff;
        --color-text-light: #ddd;
        --color-text-muted: #bbb;
        --color-border: #888;
    }
    
    .hero-title span::before,
    .highlight::after {
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    [data-theme="dark"] .hero-title span::before,
    [data-theme="dark"] .highlight::after {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Biblical View Toggle */
.biblical-view-toggle {
    position: relative;
    width: 40px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-4);
    padding: 0 var(--space-1);
    overflow: hidden;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.biblical-view-toggle i {
    color: white;
    font-size: 14px;
    opacity: 0.9;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.biblical-view-toggle.active {
    background-color: var(--color-accent);
}

.biblical-view-toggle.active i {
    transform: scale(1.1);
}

.biblical-view-toggle:hover i {
    transform: scale(1.2);
    opacity: 1;
}

.biblical-view-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-right: var(--space-4);
    display: none;
}

@media (max-width: 768px) {
    .biblical-view-label {
        display: inline-block;
    }
}

/* Biblical View Styles */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(1):before { background: #FFD700; } /* Gold for Day 1 (Light) */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(2):before { background: #87CEEB; } /* Sky Blue for Day 2 (Firmament) */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(3):before { background: #228B22; } /* Forest Green for Day 3 (Land & Plants) */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(4):before { background: #FFA500; } /* Orange for Day 4 (Sun & Moon) */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(5):before { background: #1E90FF; } /* Dodger Blue for Day 5 (Sea & Sky Life) */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(6):before { background: #CD853F; } /* Peru/Earth tone for Day 6 (Land Life & Humans) */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(7):before { background: #9370DB; } /* Medium Purple for Day 7 (Divine Rest) */

/* Badge background gradients for biblical view */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(1) .content .badge { background: linear-gradient(90deg, #FFD700, #FFA500); } /* Gold/Orange for Light */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(2) .content .badge { background: linear-gradient(90deg, #87CEEB, #4682B4); } /* Sky Blue/Steel Blue for Firmament */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(3) .content .badge { background: linear-gradient(90deg, #228B22, #006400); } /* Forest Green/Dark Green for Land */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(4) .content .badge { background: linear-gradient(90deg, #FFA500, #FF4500); } /* Orange/Red-Orange for Sun */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(5) .content .badge { background: linear-gradient(90deg, #1E90FF, #00008B); } /* Dodger Blue/Dark Blue for Sea Life */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(6) .content .badge { background: linear-gradient(90deg, #CD853F, #8B4513); } /* Peru/Saddle Brown for Humans */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(7) .content .badge { background: linear-gradient(90deg, #9370DB, #4B0082); } /* Medium Purple/Indigo for Rest */

/* Border colors for stages in biblical view */
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(1) .content { border-top-color: #FFD700; }
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(2) .content { border-top-color: #87CEEB; }
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(3) .content { border-top-color: #228B22; }
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(4) .content { border-top-color: #FFA500; }
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(5) .content { border-top-color: #1E90FF; }
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(6) .content { border-top-color: #CD853F; }
[data-view="biblical"] .timeline__cover .timeline ul li:nth-child(7) .content { border-top-color: #9370DB; }

/* Add subtle biblical background elements when biblical view is active */
[data-view="biblical"] .hero-background {
    background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.08), transparent 70%),
                radial-gradient(circle at 30% 70%, rgba(75, 0, 130, 0.08), transparent 70%);
}

[data-view="biblical"] .introduction::before {
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05), transparent 70%);
}

/* Biblical view button animation */
@keyframes biblicalPulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 111, 81, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0); }
}

.biblical-view-toggle.active {
    animation: biblicalPulse 2s infinite;
}