/* Narratum.io - v3 Complete Styles - FINAL Production Version */

:root {
    /* Color System - Dark Harbor Blue Theme */
    --bg-primary: #0a1520;
    --bg-secondary: #0d1825;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --accent-gold: #fbbf24;
    --accent-gold-subtle: rgba(251, 191, 36, 0.1);
    --accent-cyan: #7dd3fc;
    --accent-warm: #fb923c;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --content-width: 1200px;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Page load animation */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageReveal 1.5s ease;
}

@keyframes pageReveal {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Premium text selection */
::selection {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.3);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Loading Screen with Frequency Loader */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.frequency-loader {
    width: 120px;
    height: 120px;
    color: var(--accent-gold);
}

/* Animated core circle */
.loader-core {
    animation: loader-core-animation 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes loader-core-animation {
    0% {
        stroke-dashoffset: 75;
        transform: rotate(0deg);
    }
    50% {
        stroke-dashoffset: 0;
        transform: rotate(180deg);
    }
    100% {
        stroke-dashoffset: -75;
        transform: rotate(360deg);
    }
}

/* Frequency dots animation */
.freq-dot {
    opacity: 0;
    animation: freq-dot-pulse 2s ease-in-out infinite;
}

.freq-dot-1 { animation-delay: 0s; }
.freq-dot-2 { animation-delay: 0.2s; }
.freq-dot-3 { animation-delay: 0.4s; }
.freq-dot-4 { animation-delay: 0.6s; }
.freq-dot-5 { animation-delay: 0.8s; }
.freq-dot-6 { animation-delay: 1s; }

@keyframes freq-dot-pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Frequency lines animation */
.freq-lines {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: freq-lines-draw 2s ease-in-out infinite;
}

@keyframes freq-lines-draw {
    0%, 100% {
        stroke-dashoffset: 400;
        opacity: 0.1;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
}

.loader-text {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

/* Mouse Glow Effect */
.mouse-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.mouse-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(251, 191, 36, 0.15) 0%,
        rgba(251, 191, 36, 0.05) 30%,
        transparent 70%
    );
    filter: blur(20px);
}

.mouse-glow.active {
    opacity: 1;
}

/* Navigation Dots - Fixed */
.nav-dots {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-dot {
    width: 14px;
    height: 14px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.dot-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    transition: transform 0.3s var(--transition-bounce);
}

.nav-dot:hover,
.nav-dot:focus,
.nav-dot.active {
    border-color: var(--accent-gold);
    transform: scale(1.2);
}

.nav-dot:hover .dot-inner,
.nav-dot:focus .dot-inner,
.nav-dot.active .dot-inner {
    transform: translate(-50%, -50%) scale(1);
}

/* Anchor Menu */
.anchor-menu {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 32px;
    padding: 12px 24px;
    background: rgba(10, 21, 32, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.anchor-menu.visible {
    opacity: 1;
    visibility: visible;
}

.anchor-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.anchor-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.anchor-link:hover,
.anchor-link.active {
    color: var(--text-primary);
}

.anchor-link:hover::after,
.anchor-link.active::after {
    width: 100%;
}

.anchor-link.active {
    color: var(--accent-gold);
}

/* Audio Toggle */
.audio-toggle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.audio-icon {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.audio-toggle[data-state="active"] {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent-gold);
}

.audio-toggle[data-state="active"] .audio-icon {
    color: var(--accent-gold);
}

/* Color Mood Switcher - Updated with 6 themes */
.mood-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
    align-items: center;
    flex-wrap: wrap;
    max-width: 120px;
}

.mood-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.6;
}

.mood-dot:hover, 
.mood-dot.active {
    transform: scale(1.2);
    opacity: 1;
}

.mood-dot[data-mood="default"] {
    background-color: #fbbf24;
}

.mood-dot[data-mood="teal"] {
    background-color: #2dd4bf;
}

.mood-dot[data-mood="purple"] {
    background-color: #a78bfa;
}

.mood-dot[data-mood="gold"] {
    background-color: #f59e0b;
}

.mood-dot[data-mood="nocturne"] {
    background-color: #d97757;
}

.mood-dot[data-mood="botanical"] {
    background-color: #d4a574;
}

/* Sound Visualization */
.sound-visualization {
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 60px;
    height: 60px;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sound-visualization.active {
    opacity: 1;
}

.sound-bar {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, var(--accent-gold), transparent);
    width: 4px;
    border-radius: 2px;
    transform-origin: bottom;
    opacity: 0.5;
    transition: all 0.8s ease;
}

/* Signal Particles - Hidden */
.signal-particles {
    display: none;
}

/* Gold Line Through Page - Fixed to not show in hero */
.hero .gold-line {
    display: none !important;
}

.gold-line {
    position: fixed;
    top: 100vh;
    left: 50%;
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom, 
        rgba(251, 191, 36, 0),
        rgba(251, 191, 36, 0.3),
        rgba(251, 191, 36, 0.5),
        rgba(251, 191, 36, 0.3),
        rgba(251, 191, 36, 0));
    z-index: -1;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gold-line.visible {
    opacity: 1;
}

/* Interactive Background */
.interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cursor-follower {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1), transparent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Section entrance animations */
.section {
    position: relative;
    min-height: 100vh;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: sectionFadeIn 1s ease forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
    }
}

/* Stagger section animations */
.section:nth-child(1) { animation-delay: 0s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }

/* Reduce spacing between sections */
.infrastructure {
    padding-bottom: 40px;
}

.approach {
    padding-top: 80px;
}

.content-container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Section Titles - All centered */
.section-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Hero Section */
.hero {
    text-align: center;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

/* Hero titles remain centered */
.hero .section-title,
.hero .site-title,
.hero .site-tagline {
    text-align: center !important;
    padding-left: 0 !important;
}

/* Constellation Background */
.constellation-background {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    overflow: hidden;
}

/* Ensure the constellation background is centered */
.constellation-background {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}


/* Fix the hero section to be perfectly centered */
.hero {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; /* Changed from flex-start to center */
    padding-top: 0 !important; /* Remove the 100px top padding */
    padding-bottom: 0 !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Make sure the content container doesn't have any offsets */
.hero .content-container {
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
}


/* Override any mobile-specific rules that might affect desktop */
@media (min-width: 769px) {
    .hero {
        padding-top: 0 !important;
        justify-content: center !important;
    }
}


.orbital-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.02);
}

.orbital-ring.ring-1 {
    width: 300px;
    height: 300px;
    animation: rotate 120s linear infinite;
}

.orbital-ring.ring-2 {
    width: 500px;
    height: 500px;
    animation: rotate 180s linear infinite reverse;
}

.orbital-ring.ring-3 {
    width: 700px;
    height: 700px;
    animation: rotate 240s linear infinite;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orbital-ring::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.05);
    opacity: 0;
    animation: pulseRing 4s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.constellation-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.5s ease;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.star.twinkle {
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.geo-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.geo-shape.diamond {
    width: 180px;
    height: 180px;
    top: 20%;
    left: 15%;
    transform: rotate(45deg);
    animation: floatDiamond 30s ease-in-out infinite;
}

.geo-shape.square {
    width: 140px;
    height: 140px;
    top: 60%;
    left: 75%;
    animation: floatSquare 25s ease-in-out infinite;
}

.geo-shape.triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.05);
    top: 15%;
    left: 65%;
    animation: floatTriangle 35s ease-in-out infinite;
}

@keyframes floatDiamond {
    0%, 100% {
        transform: translate(0, 0) rotate(45deg) scale(1);
    }
    25% {
        transform: translate(80px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(120px, 60px) rotate(135deg) scale(0.95);
    }
    75% {
        transform: translate(40px, 80px) rotate(225deg) scale(1.05);
    }
}

@keyframes floatSquare {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-60px, 50px) rotate(45deg) scale(0.9);
    }
    50% {
        transform: translate(-100px, -40px) rotate(90deg) scale(1.15);
    }
    75% {
        transform: translate(-40px, -60px) rotate(180deg) scale(1);
    }
}

@keyframes floatTriangle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(-100px, 80px) rotate(60deg) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-150px, -20px) rotate(120deg) scale(0.85);
        opacity: 0.2;
    }
    75% {
        transform: translate(-50px, 40px) rotate(240deg) scale(1.1);
        opacity: 0.4;
    }
}

.site-title {
    font-family: var(--font-serif);
    font-size: 96px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-smooth) forwards;
    animation-delay: 0.5s;
}

.site-tagline {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--transition-smooth) forwards;
    animation-delay: 0.8s;
}

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

/* Gentle stars with enhanced magic */
.gentle-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Hero particles for hospitality magic */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(251, 191, 36, 0.3), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(125, 211, 252, 0.2), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(251, 191, 36, 0.2), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(125, 211, 252, 0.3), transparent);
    background-size: 200% 200%;
    animation: sparkleMove 30s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes sparkleMove {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Enhanced scroll indicator with pulsing glow */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 80px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2s;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

.scroll-line {
    position: relative;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0), 
        rgba(255,255,255,0.3)
    );
    margin: 0 auto;
}

.scroll-drop {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(to bottom, 
        rgba(251, 191, 36, 0.8),
        rgba(251, 191, 36, 0)
    );
    border-radius: 10px;
    animation: dropAnimation 2.5s ease-in-out infinite;
}

@keyframes dropAnimation {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: calc(100% - 20px);
        opacity: 0;
    }
}

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

/* Infrastructure Section */
.infrastructure {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.prose p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--text-secondary);
}

.prose .lead {
    font-size: 28px;
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin-bottom: 48px;
    font-weight: 400;
}

/* What We Build Section - Integrated with Infrastructure */
.build-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 80px auto 0;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

/* Ensure symbol popups appear above all other content */
.symbol-content {
    z-index: 1000 !important;
}

/* Add more space below the symbol grid to prevent overlap */
.symbol-grid {
    margin-bottom: 120px;
}

/* Make sure the approach section has proper stacking context */
.approach {
    position: relative;
    z-index: 10;
    overflow: visible !important; /* Allow popups to extend outside */
}

.build-pillar {
    text-align: center;
    padding: 32px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    animation: pillarReveal 0.8s ease forwards;
}

.build-pillar:nth-child(1) { animation-delay: 0.6s; }
.build-pillar:nth-child(2) { animation-delay: 0.8s; }
.build-pillar:nth-child(3) { animation-delay: 1s; }

@keyframes pillarReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.build-pillar:hover {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.1);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--accent-gold);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.build-pillar:hover .pillar-icon {
    opacity: 0.8;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.build-pillar h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.build-pillar p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Approach Section */
.approach {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.intro-text {
    font-size: 24px;
    font-family: var(--font-serif);
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.symbol-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.symbol-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.symbol-glyph {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glyph-svg {
    width: 100%;
    height: 100%;
}

.glyph-svg .outer-ring,
.glyph-svg .inner-ring {
    transition: all 0.3s ease;
}

.symbol-item:hover .outer-ring {
    stroke: var(--accent-gold);
    stroke-width: 2;
}

.symbol-item:hover .inner-ring {
    stroke: var(--accent-cyan);
    stroke-width: 1;
}

.symbol-item:hover .symbol-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
}

.symbol-icon {
    transition: all 0.3s ease;
    transform-origin: center;
}

.symbol-label {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-tertiary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.symbol-item:hover .symbol-label {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-primary);
}

/* Symbol Content - Enhanced */
.symbol-content {
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: rgba(10, 21, 32, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 40px;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    z-index: 100;
    text-align: left;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5), 
        0 0 80px rgba(251, 191, 36, 0.1),
        inset 0 0 30px rgba(251, 191, 36, 0.02);
}

.symbol-item.active .symbol-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.symbol-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(251, 191, 36, 0.2);
}

.symbol-content h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--accent-gold);
    letter-spacing: -0.01em;
}

.symbol-content p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.symbol-content ul {
    list-style: none;
    margin-top: 20px;
    padding-left: 0;
}

.symbol-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-tertiary);
    font-size: 15px;
}

.symbol-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    opacity: 0.6;
}

/* Capabilities Section */
.capabilities {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.capability-block {
    padding: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.capability-block[data-visible="true"] {
    opacity: 1;
    transform: translateY(0);
}

.capability-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.capability-block:hover::before {
    transform: translateX(0);
}

.capability-block:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-4px);
}

.capability-number {
    font-family: var(--font-serif);
    font-size: 56px;
    color: rgba(251, 191, 36, 0.2);
    position: absolute;
    top: 24px;
    right: 24px;
    line-height: 1;
}

.capability-block h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
}

.capability-block ul {
    list-style: none;
}

.capability-block li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.capability-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 1px;
    background-color: var(--accent-gold);
}

/* Loyalty Systems Section - Enhanced Design */
.loyalty {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.loyalty-journey {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 60px 0;
}

.journey-path {
    position: relative;
}

.journey-line {
    position: absolute;
    left: 48px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(251, 191, 36, 0.1) 10%,
        rgba(251, 191, 36, 0.1) 90%,
        transparent 100%);
}

.journey-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(251, 191, 36, 0.4) 50%,
        transparent 100%);
    opacity: 0;
    animation: lineFlow 3s ease-in-out infinite;
}

@keyframes lineFlow {
    0%, 100% {
        opacity: 0;
        transform: translateY(-10%);
    }
    50% {
        opacity: 1;
        transform: translateY(10%);
    }
}

.journey-node {
    position: relative;
    padding-left: 120px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.journey-node[data-visible="true"] {
    opacity: 1;
    transform: translateX(0);
}

.node-dot {
    position: absolute;
    left: 40px;
    top: 40px;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
}

.journey-node:hover .node-dot {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Enhanced icon container */
.node-icon {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    z-index: 2;
    background: transparent;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.journey-node:hover .node-icon {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.5);
    transform: rotate(5deg) scale(1.05);
}

.node-icon svg {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.journey-node:hover .node-icon svg {
    opacity: 1;
}

.node-content h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.node-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 17px;
    font-weight: 300;
}

/* Loyalty closing statement */
.loyalty-statement {
    max-width: 800px;
    margin: 80px auto 0;
    text-align: center;
    padding-top: 60px;
    position: relative;
}

.loyalty-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--accent-gold);
}

.loyalty-statement p {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Partnerships Section */
.partnerships {
    background: var(--bg-primary);
}

.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 0 auto 120px auto;
    max-width: 1000px;
}

.partnership-category {
    padding: 56px 48px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

/* Ultra-subtle gradient overlay */
.partnership-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(251, 191, 36, 0.02) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

/* Delicate border highlight */
.partnership-category::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
        135deg,
        rgba(251, 191, 36, 0.05),
        rgba(125, 211, 252, 0.05)
    );
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: -1;
}

.partnership-category:hover {
    background: rgba(255, 255, 255, 0.015);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.08);
}

.partnership-category:hover::before {
    opacity: 1;
}

.partnership-category:hover::after {
    opacity: 0.5;
}

.partnership-category h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.partnership-category p {
    color: var(--text-secondary);
    margin-bottom: auto;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 300;
}

.partnership-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 300;
    color: rgba(251, 191, 36, 0.8);
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    transition: color 0.6s ease;
}

.partnership-category:hover .stat-number {
    color: rgba(251, 191, 36, 0.9);
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}

/* Testimonial Quote - Simple text style */
.testimonial-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote blockquote {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.testimonial-quote cite {
    color: var(--text-tertiary);
    font-style: normal;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-email {
    margin-top: 20px;
}

.contact-email a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    opacity: 0.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Styling - Premium Hospitality Experience */
.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-label {
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 12px;
    color: var(--accent-gold);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label,
.form-select:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label,
.form-select:valid + .form-label {
    opacity: 1;
    transform: translateY(0);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
    transition: opacity 0.3s ease;
}

.form-input:focus::placeholder,
.form-textarea:focus::placeholder {
    opacity: 0.5;
}

/* Enhanced Select Styling */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-color: transparent;
}

.form-select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 12px;
}

.form-select option:hover {
    background-color: rgba(251, 191, 36, 0.1);
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.form-select:focus ~ .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.form-select:focus ~ .select-arrow svg {
    color: var(--accent-gold);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 20px;
}

/* Character Counter */
.character-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.character-count.warning {
    color: var(--accent-warm);
}

.character-count.error {
    color: #ff6b6b;
}

/* Submit Button - Premium Animation */
.submit-button {
    align-self: flex-start;
    padding: 16px 48px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-sans);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 32px;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background: rgba(251, 191, 36, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.button-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-button.loading .button-text {
    opacity: 0;
}

.submit-button.loading .button-loading {
    display: block;
}

.spinner-circle {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        stroke-dashoffset: -30;
    }
}

/* Founder Statement - Floating paragraph */
.founder-statement {
    margin-top: 80px;
    text-align: center;
}

.founder-statement p {
    font-family: var(--font-sans);
    font-size: 19px;
    line-height: 1.9;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    max-width: 800px;
    margin: 0 auto;
}

.founder-statement strong {
    color: var(--accent-gold);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Form Success Animation - Premium */
.form-success {
    text-align: center;
    padding: 60px 40px;
    animation: fadeInUp 0.6s ease;
}

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    position: relative;
    transform: rotate(-45deg);
}

.success-circle {
    stroke: var(--accent-gold);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    stroke: var(--accent-gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    to {
        stroke-dashoffset: 0;
    }
}

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

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent-gold);
}

.form-success p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
}

/* Form Error Styling */
.form-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: shakeError 0.5s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Hover Ripple Effect */
.hover-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    transform: scale(0);
    animation: rippleExpand 1s ease-out;
    pointer-events: none;
}

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

/* Letter Animation for Titles */
.letter {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.section-title:hover .letter:nth-child(even) {
    transform: translateY(-2px) rotate(-2deg);
}

.section-title:hover .letter:nth-child(odd) {
    transform: translateY(2px) rotate(2deg);
}

/* Enhanced Interactive Elements with Glow */
.capability-block,
.partnership-category,
.journey-node,
.build-pillar {
    position: relative;
    overflow: hidden;
}

.capability-block::after,
.partnership-category::after,
.journey-node::after,
.build-pillar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.capability-block:hover::after,
.partnership-category:hover::after,
.journey-node:hover::after,
.build-pillar:hover::after {
    width: 200%;
    height: 200%;
}

/* Micro-interaction for stats */
.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number.counted {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Premium scroll reveal */
[data-visible="true"] {
    animation: revealElement 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Premium cursor on interactive elements */
button, a, .symbol-item, .capability-block, .partnership-category, .journey-node, .build-pillar, input, select, textarea {
    cursor: pointer;
}

/* Subtle ambient glow for sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    opacity: 0;
    transition: opacity 1s ease;
}

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

/* MODERN MINIMALISTIC FOOTER */
.footer {
    padding: 80px 24px 40px;
    background: transparent;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.6;
}

.footer-content {
    max-width: var(--content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

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

.footer-brand {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-line {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 300;
}

.footer-center {
    text-align: center;
}

.footer-email {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    transition: opacity 0.3s ease;
    letter-spacing: 0.02em;
    font-family: var(--font-sans);
}

.footer-email:hover {
    opacity: 0.7;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
}

.social-link {
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

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

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
    font-family: var(--font-sans);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--text-secondary);
}

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

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 300;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 21, 32, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    z-index: 999;
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cookie-content p {
    flex: 1;
    color: var(--text-secondary);
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    gap: 16px;
}

.cookie-button {
    padding: 8px 24px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.cookie-button.accept {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.cookie-button.accept:hover {
    background: var(--accent-warm);
}

.cookie-button.settings {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-button.settings:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Legal Modal - Enhanced Design */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.legal-modal-content {
    background: var(--bg-primary);
    margin: 40px auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: rotate(90deg) scale(1.1);
}

/* Modal Body Content Styling */
.modal-body {
    padding: 80px 60px 60px;
    max-height: 80vh;
    overflow-y: auto;
    font-family: var(--font-sans);
    position: relative;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.2);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.3);
}

.modal-body h2 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-align: center;
}

.modal-body h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    margin: 40px 0 20px;
    color: var(--accent-gold);
    opacity: 0.9;
}

.modal-body p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-weight: 300;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.modal-body li {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    padding-left: 24px;
}

.modal-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    opacity: 0.6;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

.legal-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    font-style: italic;
    text-align: center;
    opacity: 0.8;
}

/* Cookie Table - Enhanced */
.cookie-table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table thead {
    background: rgba(251, 191, 36, 0.05);
}

.cookie-table th {
    text-align: left;
    padding: 20px;
    font-weight: 500;
    color: var(--accent-gold);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-table td {
    padding: 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 15px;
    font-weight: 300;
}

/* Cookie Preferences - Enhanced */
.cookie-preferences {
    margin: 40px 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
}

.cookie-option input[type="checkbox"] {
    margin-right: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.cookie-option span {
    font-weight: 400;
    color: var(--text-primary);
    font-size: 17px;
}

.cookie-option p {
    margin-left: 36px;
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.save-preferences {
    padding: 14px 40px;
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.save-preferences:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
}

/* Highlight Text - No effects */
.highlight-text {
    position: relative;
}

/* Highlight Words - Simple gold color, no glow */
.highlight-word {
    position: relative;
    display: inline-block;
    color: var(--accent-gold);
}

/* Magical Particles */
.magical-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 90;
    transition: transform 1s ease, opacity 1s ease;
}

/* Lazy Loading */
.lazy-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-element.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimizations */
@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;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .symbol-item:hover .symbol-icon {
        transform: none;
        filter: none;
    }
    
    .capability-block:hover,
    .partnership-category:hover,
    .journey-node:hover,
    .build-pillar:hover {
        transform: none;
    }
}
    
    /* Keep mood dots smaller even on touch */
    .mood-dot {
        min-width: 20px;
        min-height: 20px;
    }
}

/* STEP 3: Ensure mood dots stay correct size on desktop */
@media (hover: hover) {
    .mood-dot {
        width: 16px;
        height: 16px;
        min-width: unset;
        min-height: unset;
    }
}

/* OPTIONAL: If the above doesn't work, add this more specific override: */
.mood-switcher .mood-dot {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .partnerships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .symbol-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .build-pillars {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Hero mobile optimizations */
    .hero {
        padding-top: 100px;
        justify-content: flex-start;
    }

    .constellation-background {
        top: -20%;
    }
    
    /* Navigation adjustments */
    .nav-dots {
        right: 16px;
        gap: 16px;
    }
    
    .nav-dot {
        width: 12px;
        height: 12px;
    }
    
    /* Typography adjustments */
    .section-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .site-title {
        font-size: 48px;
        letter-spacing: 0.05em;
    }
    
    .site-tagline {
        font-size: 18px;
    }
    
    /* Content adjustments */
    .prose {
        padding: 0 16px;
    }
    
    .prose p {
        font-size: 17px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .prose .lead {
        font-size: 22px;
        margin-bottom: 32px;
    }
    
    .intro-text {
        font-size: 20px;
        padding: 0 16px;
        margin-bottom: 40px;
    }
    
    /* Symbol grid mobile */
    .symbol-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .symbol-content {
        width: 280px;
        padding: 32px 24px;
        top: 120%;
    }
    
    /* What We Build mobile */
    .build-pillars {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 60px;
    }
    
    .build-pillar {
        padding: 24px 20px;
    }
    
    .pillar-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .build-pillar h3 {
        font-size: 20px;
    }
    
    .build-pillar p {
        font-size: 14px;
    }
    
    /* Capabilities mobile */
    .capability-block {
        padding: 32px 24px;
    }
    
    .capability-block h3 {
        font-size: 24px;
    }
    
    /* Journey nodes mobile */
    .journey-node {
        padding-left: 80px;
        margin-bottom: 60px;
    }
    
    .node-content h3 {
        font-size: 24px;
    }
    
    .node-content p {
        font-size: 16px;
    }
    
    /* Partnerships mobile */
    .partnerships-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .partnership-category {
        padding: 32px 24px;
        min-height: auto;
    }
    
    .partnership-category h3 {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* Contact form mobile */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .submit-button {
        width: 100%;
        padding: 16px;
        font-size: 18px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 60px 16px 32px;
    }
    
    .footer-links {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    /* Modal mobile */
    .legal-modal-content {
        margin: 20px auto;
        width: 95%;
        border-radius: 16px;
    }
    
    .modal-body {
        padding: 60px 24px 40px;
    }
    
    .modal-body h2 {
        font-size: 32px;
    }
    
    .close-modal {
        width: 40px;
        height: 40px;
        top: 16px;
        right: 16px;
    }
    
    /* Audio and mood controls - mobile positioning */
    .audio-toggle {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .mood-switcher {
        bottom: 20px;
        left: 20px;
        gap: 8px;
        max-width: 120px;
    }
    
    .mood-dot {
        width: 14px;
        height: 14px;
    }
    
    /* Sound visualization */
    .sound-visualization {
        display: none;
    }
    
    /* Cookie banner mobile */
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-button {
        width: 100%;
        padding: 12px;
    }
    
    /* Testimonial mobile */
    .testimonial-quote blockquote {
        font-size: 22px;
    }
    
    /* Loyalty statement mobile */
    .loyalty-statement p {
        font-size: 17px;
    }
    
    /* Founder statement mobile */
    .founder-statement p {
        font-size: 16px;
        padding: 0 16px;
    }
    
    /* Hide anchor menu on mobile */
    .anchor-menu {
        display: none;
    }
    
    /* Constellation background mobile */
    .orbital-ring.ring-1 {
        width: 200px;
        height: 200px;
    }
    
    .orbital-ring.ring-2 {
        width: 300px;
        height: 300px;
    }
    
    .orbital-ring.ring-3 {
        width: 400px;
        height: 400px;
    }
    
    /* Hide mouse glow on mobile */
    .mouse-glow {
        display: none;
    }
    
    /* Section spacing mobile */
    .section {
        padding: 60px 16px;
    }
    
    .infrastructure {
        padding-bottom: 40px;
    }
    
    .approach {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile optimizations */
    :root {
        --section-padding: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .site-title {
        font-size: 36px;
    }
    
    .site-tagline {
        font-size: 16px;
    }
    
    /* Simplify animations on small screens */
    .symbol-item:hover .symbol-icon {
        transform: none;
        filter: none;
    }
    
    .capability-block:hover {
        transform: none;
    }
    
    .partnership-category:hover {
        transform: none;
    }
    
    /* Adjust node layout for small screens */
    .journey-node {
        padding-left: 60px;
    }
    
    .node-icon {
        width: 40px;
        height: 40px;
        left: 10px;
        top: 10px;
    }
    
    .node-dot {
        left: 24px;
        top: 24px;
        width: 12px;
        height: 12px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .nav-dots,
    .anchor-menu,
    .audio-toggle,
    .mood-switcher,
    .sound-visualization,
    .mouse-glow,
    .cookie-banner,
    .footer-links,
    .social-links {
        display: none !important;
    }
}

/* Additional Premium Enhancements */

/* Refined highlight word animations */
.highlight-word {
    position: relative;
    display: inline-block;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.highlight-word:hover::after {
    width: 100%;
}

/* Enhanced form success icon */
.form-success .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    color: var(--accent-gold);
}

/* Mobile-specific touch enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .symbol-item:hover .symbol-icon,
    .capability-block:hover,
    .partnership-category:hover,
    .build-pillar:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav-dot,
    .mood-dot,
    .audio-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Optimize for touch scrolling */
    .section {
        -webkit-overflow-scrolling: touch;
    }
}

/* Correct body styling */
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* NO position: fixed! */
}

/* Touch targets only for actual touch devices */
@media (hover: none) and (pointer: coarse) {
    button, a, input, select, textarea {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Ensure proper sizes for nav elements on all devices */
.nav-dot {
    width: 14px !important;
    height: 14px !important;
}

.mood-dot {
    width: 16px !important;
    height: 16px !important;
}

.audio-toggle {
    width: 48px !important;
    height: 48px !important;
}

/* Performance optimizations */
@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;
    }
    
    .orbital-ring,
    .geo-shape,
    .star {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --accent-gold: #ffdc00;
        --text-secondary: rgba(255, 255, 255, 0.95);
        --border-color: rgba(255, 255, 255, 0.3);
    }
    
    .nav-dot,
    .form-input,
    .submit-button {
        border-width: 2px;
    }
}

/* Dark mode enhancements (already dark by default, but for system preferences) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme even if system is light */
    :root {
        color-scheme: dark;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1920px) {
    :root {
        --content-width: 1400px;
    }
    
    .section-title {
        font-size: 72px;
    }
    
    .site-title {
        font-size: 120px;
    }
    
    .prose p {
        font-size: 22px;
    }
}

/* Sticky header for anchor menu on large screens */
@media (min-width: 1200px) {
    .anchor-menu.visible {
        position: fixed;
        backdrop-filter: blur(20px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Enhanced loading states */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(251, 191, 36, 0.2);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Ensure all interactive elements have proper focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Final performance and compatibility fixes */
.section {
    will-change: transform;
}

.orbital-ring,
.geo-shape {
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden;
}

/* Ensure smooth scrolling on all browsers */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed elements */
}

/* REPLACE WITH THIS CORRECTED VERSION: */
body {
    /* REMOVED position: fixed - this was breaking scrolling! */
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Final touch: Premium loading shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* End of styles.css */