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

:root {
    /* Colors - Dark theme with acid green & violet (warm tones, no blue) */
    --bg-base: #0B0D10;
    --bg-surface: #15121f; /* Warmer dark purple-gray, no blue */
    --text-primary: #E8EEF6;
    --text-muted: #6B7280;
    --accent-primary: #B7FF4A;
    --accent-secondary: #A78BFA;
    --accent-primary-dark: #8FCC3A;
    --accent-secondary-dark: #8B6DF5;
    --accent-glow: rgba(183, 255, 74, 0.4);
    --accent-glow-secondary: rgba(167, 139, 250, 0.4);
    
    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-max: 1400px;
    --section-padding: 8rem 2rem;
    
    /* Transitions */
    --transition-slow: 800ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent iOS font size adjustment */
    -ms-text-size-adjust: 100%;
}

/* Ensure HTML is full height */
html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor when mouse trail is active */
}

body.show-cursor,
a, button, input, textarea {
    cursor: pointer;
}

body.show-cursor {
    cursor: default;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Navigation - More Premium */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 13, 16, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(183, 255, 74, 0.08);
    transition: var(--transition-base);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

.nav-logo {
    height: 2.25rem;
    width: auto;
    display: block;
}

.nav-brand a::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
    filter: blur(8px);
}

.nav-brand a:hover::before {
    opacity: 0.3;
}

.nav-brand a:hover {
    transform: translateY(-1px);
}

.nav-brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: transform var(--transition-base);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* Hero Section - Experimental & Abstract */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(183, 255, 74, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(167, 139, 250, 0.03) 0%, transparent 50%),
                linear-gradient(135deg, var(--bg-base) 0%, var(--bg-surface) 100%);
    z-index: -3;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -4;
    opacity: 0.3;
    /* Shift away from blue toward purple/green tones */
    filter: grayscale(20%) brightness(0.7) hue-rotate(-15deg) saturate(1.1);
    /* Subtle zoom in/out animation */
    animation: subtleZoom 20s ease-in-out infinite;
    transform-origin: center center;
}

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

/* Warm color overlay to neutralize blue tones */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(183, 255, 74, 0.05) 0%,
        rgba(167, 139, 250, 0.08) 50%,
        rgba(183, 255, 74, 0.05) 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -3;
    opacity: 0.6;
}

/* Disable animation on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .background-image {
        animation: none;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Fallback for browsers that don't support video background */
@supports not (object-fit: cover) {
    .background-video {
        display: none;
    }
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/noise.png');
    background-repeat: repeat;
    opacity: 0.04;
    z-index: -1;
}

/* Floating Gradient Orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    /* Removed CSS animation to prevent conflicts with JS parallax */
    z-index: -2;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -300px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -250px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.15;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    z-index: 1;
    position: relative;
}

.hero-brand-wrapper {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    animation: fadeInUp 1s ease-out 0.05s both;
    filter: drop-shadow(0 0 30px rgba(183, 255, 74, 0.15));
}

.hero-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-brand {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    line-height: 0.9;
    position: relative;
    display: block;
    text-shadow: 0 0 40px rgba(183, 255, 74, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-brand-accent {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    filter: blur(20px);
    transform: translate(4px, 4px);
    z-index: -1;
    pointer-events: none;
}

.hero-brand-subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    margin-top: 1rem;
    display: block;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-weight: 300;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.tagline-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

.tagline-line-sub {
    margin-top: 0.25em;
}

.tagline-word {
    transition: var(--transition-base);
    cursor: default;
}

.tagline-word:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

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

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* Buttons - Premium with Glow */
.btn {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-base);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(183, 255, 74, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary-dark), var(--accent-primary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent-primary);
    border-radius: 50px;
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 50px rgba(183, 255, 74, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after {
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: 0;
}

.btn-secondary:hover {
    color: var(--bg-base);
    transform: translateY(-3px);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.btn-outline {
    background: transparent;
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: 0;
}

.btn-outline:hover {
    color: var(--bg-base);
    transform: translateY(-3px);
}

.btn-outline:hover::before {
    transform: scaleX(1);
}

/* Sections with Abstract Backgrounds */
.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
    min-height: 400px; /* Ensure sections have minimum height */
    display: block; /* Ensure sections are displayed */
    visibility: visible; /* Force visibility */
}

.section-alt {
    background: var(--bg-surface);
}

.section-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    width: 800px;
    height: 800px;
    background: var(--accent-primary);
    top: -400px;
    right: -400px;
    animation: floatSlow 30s ease-in-out infinite;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-secondary);
    bottom: -300px;
    left: -300px;
    animation: floatSlow 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 700px;
    height: 700px;
    background: var(--accent-secondary);
    top: -350px;
    left: -350px;
    animation: floatSlow 35s ease-in-out infinite;
}

.shape-4 {
    width: 650px;
    height: 650px;
    background: var(--accent-primary);
    bottom: -325px;
    right: -325px;
    animation: floatSlow 28s ease-in-out infinite reverse;
}

.shape-5 {
    width: 750px;
    height: 750px;
    background: var(--accent-secondary);
    top: -375px;
    left: 50%;
    transform: translateX(-50%);
    animation: floatSlow 32s ease-in-out infinite;
}

.shape-6 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    bottom: -300px;
    right: -300px;
    animation: floatSlow 27s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.title-number {
    font-size: 0.5em;
    color: var(--accent-primary);
    opacity: 0.5;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.title-text {
    position: relative;
}

.title-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.3;
}

.section-intro {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Scroll Reveal States - ensure visible on load if JS fails */
[data-scroll] {
    opacity: 1 !important; /* Visible by default, GSAP will handle animation */
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Only hide if JS is fully loaded and ScrollTrigger is ready */
.js-loaded [data-scroll] {
    opacity: 0;
    transform: translateY(50px);
}

.js-loaded [data-scroll].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Pillars - More Abstract & Premium */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.pillar-card {
    background: rgba(18, 23, 34, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(183, 255, 74, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(183, 255, 74, 0.05), rgba(167, 139, 250, 0.05));
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0;
    filter: blur(60px);
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.pillar-card:hover .pillar-glow {
    opacity: 0.3;
}

.pillar-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.3;
}

.pillar-icon-wrapper {
    margin: 2rem auto 2rem;
    width: 80px;
    height: 80px;
    position: relative;
}

.pillar-icon {
    width: 100%;
    height: 100%;
    color: var(--accent-primary);
    transition: var(--transition-base);
    filter: drop-shadow(0 0 20px rgba(183, 255, 74, 0.3));
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(183, 255, 74, 0.5));
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pillar-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.pillar-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    border-color: rgba(183, 255, 74, 0.3);
    box-shadow: 0 30px 60px rgba(183, 255, 74, 0.15);
}

/* Perspective Cards (3D Tilt) */
.perspective-card {
    transform-style: preserve-3d;
    transition: transform var(--transition-base);
}

.perspective-card.is-tilting {
    transition: transform 0.1s ease-out;
}

/* Glitch Effects */
.glitch,
[data-glitch] {
    position: relative;
}

.glitch::before,
.glitch::after,
[data-glitch]::before,
[data-glitch]::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-secondary), 2px 2px var(--accent-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(10px, 9999px, 63px, 0); }
    5% { clip: rect(42px, 9999px, 83px, 0); }
    10% { clip: rect(91px, 9999px, 93px, 0); }
    15% { clip: rect(63px, 9999px, 74px, 0); }
    20% { clip: rect(24px, 9999px, 24px, 0); }
    25% { clip: rect(10px, 9999px, 43px, 0); }
    30% { clip: rect(62px, 9999px, 51px, 0); }
    35% { clip: rect(84px, 9999px, 94px, 0); }
    40% { clip: rect(41px, 9999px, 96px, 0); }
    45% { clip: rect(10px, 9999px, 63px, 0); }
    50% { clip: rect(42px, 9999px, 83px, 0); }
    55% { clip: rect(91px, 9999px, 93px, 0); }
    60% { clip: rect(63px, 9999px, 74px, 0); }
    65% { clip: rect(24px, 9999px, 24px, 0); }
    70% { clip: rect(10px, 9999px, 43px, 0); }
    75% { clip: rect(62px, 9999px, 51px, 0); }
    80% { clip: rect(84px, 9999px, 94px, 0); }
    85% { clip: rect(41px, 9999px, 96px, 0); }
    90% { clip: rect(10px, 9999px, 63px, 0); }
    95% { clip: rect(42px, 9999px, 83px, 0); }
    100% { clip: rect(10px, 9999px, 43px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(25px, 9999px, 37px, 0); }
    10% { clip: rect(92px, 9999px, 71px, 0); }
    15% { clip: rect(85px, 9999px, 12px, 0); }
    20% { clip: rect(44px, 9999px, 25px, 0); }
    25% { clip: rect(65px, 9999px, 100px, 0); }
    30% { clip: rect(25px, 9999px, 37px, 0); }
    35% { clip: rect(92px, 9999px, 71px, 0); }
    40% { clip: rect(85px, 9999px, 12px, 0); }
    45% { clip: rect(44px, 9999px, 25px, 0); }
    50% { clip: rect(65px, 9999px, 100px, 0); }
    55% { clip: rect(25px, 9999px, 37px, 0); }
    60% { clip: rect(92px, 9999px, 71px, 0); }
    65% { clip: rect(85px, 9999px, 12px, 0); }
    70% { clip: rect(44px, 9999px, 25px, 0); }
    75% { clip: rect(65px, 9999px, 100px, 0); }
    80% { clip: rect(25px, 9999px, 37px, 0); }
    85% { clip: rect(92px, 9999px, 71px, 0); }
    90% { clip: rect(85px, 9999px, 12px, 0); }
    95% { clip: rect(44px, 9999px, 25px, 0); }
    100% { clip: rect(65px, 9999px, 100px, 0); }
}

/* Glitch effect on hover - simpler version */
.glitch-on-hover:hover {
    animation: glitch-shake 0.3s ease-in-out;
}

@keyframes glitch-shake {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-2px, -2px); }
    40% { transform: translate(2px, 2px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
    90% { transform: translate(-2px, 2px); }
}

/* Magnetic Buttons */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Mouse Trail Canvas */
.mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

/* Music Visualizer */
.music-visualizer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 300px;
    height: 150px;
    background: rgba(11, 13, 16, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(183, 255, 74, 0.2);
    border-radius: 16px;
    padding: 1rem;
    overflow: hidden;
}

#visualizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.visualizer-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(183, 255, 74, 0.1);
    border: 1px solid rgba(183, 255, 74, 0.3);
    border-radius: 50%;
    color: var(--accent-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    font-size: 1.25rem;
}

.visualizer-toggle:hover {
    background: rgba(183, 255, 74, 0.2);
    transform: scale(1.1);
}

/* Phosphor Icons */
.pillar-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon-wrapper i.ph {
    font-size: 3.5rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 20px rgba(183, 255, 74, 0.3));
    transition: var(--transition-base);
    display: block;
}

.pillar-card:hover .pillar-icon-wrapper i.ph {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(183, 255, 74, 0.5));
}

/* Mixes Section */
.mixes-placeholder,
.events-placeholder {
    text-align: center;
    padding: 6rem 3rem;
    background: rgba(18, 23, 34, 0.3);
    backdrop-filter: blur(20px);
    border: 1px dashed rgba(167, 139, 250, 0.2);
    border-radius: 24px;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.mixes-visual,
.events-visual {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave-form {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 100px;
}

.wave-bar {
    width: 8px;
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 4px;
    animation: wavePulse 1.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes wavePulse {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: 80px; opacity: 1; }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 12px;
    justify-content: center;
}

.grid-item {
    width: 60px;
    height: 60px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 8px;
    transition: var(--transition-base);
}

.grid-item.active {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

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

.mixes-coming-soon,
.events-coming-soon {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Join Section */
.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.join-card {
    background: rgba(18, 23, 34, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(183, 255, 74, 0.1);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.join-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0;
    filter: blur(80px);
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.join-card:hover .join-card-glow {
    opacity: 0.2;
}

.join-card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.join-card-text {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Forms - Premium Style */
.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(11, 13, 16, 0.6);
    border: 1px solid rgba(183, 255, 74, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(183, 255, 74, 0.1), 0 0 30px rgba(183, 255, 74, 0.2);
    background: rgba(11, 13, 16, 0.8);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.email-form .form-group {
    display: flex;
    gap: 1rem;
}

.email-form .form-input {
    flex: 1;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(183, 255, 74, 0.1);
    border: 1px solid rgba(183, 255, 74, 0.3);
    color: var(--accent-primary);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(18, 23, 34, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 139, 250, 0.1);
    border-radius: 20px;
    transition: var(--transition-base);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 20px 40px rgba(167, 139, 250, 0.1);
}

.contact-item-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
    display: block;
    font-size: 1rem;
}

.contact-link:hover {
    color: var(--accent-secondary);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 1rem;
}

.social-link:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid rgba(183, 255, 74, 0.1);
    padding: 4rem 2rem 2rem;
    margin-top: 8rem;
    position: relative;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 3rem;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: var(--transition-base);
}

.footer-logo:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(183, 255, 74, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-credit {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-credit a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-credit a:hover {
    color: var(--accent-primary-dark);
}

/* About Page Styles */
.page-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.page-header-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(183, 255, 74, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(167, 139, 250, 0.03) 0%, transparent 50%),
                linear-gradient(135deg, var(--bg-base) 0%, var(--bg-surface) 100%);
    z-index: -3;
    overflow: hidden;
}

.page-header-background .background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -4;
    opacity: 0.3;
    filter: grayscale(20%) brightness(0.7) hue-rotate(-15deg) saturate(1.1);
    animation: subtleZoom 20s ease-in-out infinite;
    transform-origin: center center;
}

.page-header-background .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(183, 255, 74, 0.05) 0%,
        rgba(167, 139, 250, 0.08) 50%,
        rgba(183, 255, 74, 0.05) 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -3;
    opacity: 0.6;
}

.page-header-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    z-index: 1;
    position: relative;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(183, 255, 74, 0.2);
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
}

.about-content {
    padding-top: 6rem;
}

.about-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.about-author {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.about-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
}

.about-sections {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 5rem;
}

.about-section {
    background: rgba(18, 23, 34, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(183, 255, 74, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
}

.about-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(183, 255, 74, 0.2);
}

.about-section-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-item {
    position: relative;
}

.about-item-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.about-item p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.about-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(18, 23, 34, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 139, 250, 0.1);
    border-radius: 20px;
}

.about-cta-text {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
    .page-header-background .background-image {
        animation: none;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile-first improvements */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* Better mobile scaling */
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Ensure all content is visible on mobile */
    .section {
        padding: 4rem 1.5rem;
        min-height: auto;
    }
    
    .hero {
        min-height: 100dvh; /* Use dynamic viewport height */
        padding-top: 70px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Better touch targets */
    .btn, .nav-links a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }
    
    /* Better mobile typography */
    .hero-brand {
        font-size: clamp(2.5rem, 10vw, 5rem) !important;
    }
    
    .hero-logo {
        max-width: 140px;
    }
    
    .nav-logo {
        height: 1.875rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .section {
        padding: 6rem 2rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        border-bottom: 1px solid rgba(183, 255, 74, 0.1);
        backdrop-filter: blur(20px);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .join-grid {
        grid-template-columns: 1fr;
    }
    
    .email-form .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        height: 2rem;
    }
    
    .pillars {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-number {
        font-size: 0.8em;
    }
    
    /* Ensure all content containers are visible */
    .section-header,
    .section-intro,
    .pillars,
    .mixes-placeholder,
    .events-placeholder,
    .join-grid,
    .contact-grid {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Mobile-specific fixes for scroll reveals */
    [data-scroll] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .about-section {
        padding: 2rem 1.5rem;
    }
    
    .page-header {
        min-height: 40vh;
        padding-top: 70px;
    }
}