/* Custom Fonts */
@font-face {
    font-family: 'Wedgie Regular';
    src: url('Wedgie Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: black;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(1);
}



/* Main Section Styles */
.main-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background Slideshow */
.background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}

.bg-slide.active {
    opacity: 0.7;
}

.synthwave-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.flash-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.particles-overlay {
    position: absolute;
    inset: 0;
    z-index: 3; /* above backgrounds & synthwave, below content */
    pointer-events: none;
}

.vignette-overlay {
    position: absolute;
    inset: 0;
    z-index: 3; /* sit with particles, below content */
    pointer-events: none;
    background:
      radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.0) 60%)
      , linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.85) 100%);
    mix-blend-mode: multiply;
}

.flash-text {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    text-shadow: 0 0 12px rgba(255,255,255,0.5);
    opacity: 0;
    filter: blur(0.5px);
    will-change: opacity, transform;
    width: 100%;
    text-align: center;
    margin: 0 1rem calc(16px + env(safe-area-inset-bottom));
    display: none; /* base stays hidden; ghosts render the trail */
}

/* Ghost clones for flash trail/scatter */
.flash-ghost {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    text-shadow: 0 0 12px rgba(255,255,255,0.45);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    filter: blur(var(--blur, 0.5px));
    will-change: opacity, transform, filter;
    mix-blend-mode: screen;
    animation: ghost-fade var(--dur, 1000ms) ease-out var(--delay, 0ms) forwards;
}

/* When scattered, we set left/top via inline styles; this keeps a consistent look */
@keyframes ghost-fade {
    0% { opacity: 0; transform: translate(-50%, var(--ty, 6px)) scale(var(--scale, 1)); }
    20% { opacity: var(--o, 0.9); transform: translate(-50%, 0) scale(var(--scale, 1)); }
    80% { opacity: calc(var(--o, 0.9) * 0.4); transform: translate(-50%, var(--tyEnd, -4px)) scale(var(--scale, 1)); }
    100% { opacity: 0; transform: translate(-50%, var(--tyEnd, -6px)) scale(var(--scale, 1)); }
}

/* Responsive sizing for flash text */
@media (min-width: 769px) {
    .flash-text { font-size: 1.35rem; }
}
@media (max-width: 768px) {
    .flash-text { font-size: 1.1rem; padding: 0 1rem; text-align: center; }
    /* Reduce trail (ghost) text size on mobile to prevent overflow */
    .flash-ghost { font-size: 0.9rem; }
}

/* Raise flash text slightly on mobile */
@media (max-width: 768px) {
    .flash-text { margin-bottom: calc(48px + env(safe-area-inset-bottom)); }
}

@keyframes flash-subliminal {
    0% { opacity: 0; transform: translateY(6px) scale(0.98); }
    15% { opacity: 0.95; transform: translateY(0) scale(1); }
    70% { opacity: 0.5; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(0) scale(1); }
}

.synthwave-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 110%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 40%, rgba(0, 0, 0, 0.6) 70%);
    mix-blend-mode: screen;
}

.synthwave-grid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10%;
    height: 60%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 100px 40px, 100px 40px;
    background-position: 0 0, 0 0;
    transform: perspective(600px) rotateX(60deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
    opacity: 0.5;
}

/* Make overlay participate in glitches during transitions */
.synthwave-overlay.glitch-1 .synthwave-gradient,
.synthwave-overlay.glitch-1 .synthwave-grid {
    animation: glitch-1 0.4s ease-in-out;
}

.synthwave-overlay.glitch-2 .synthwave-gradient,
.synthwave-overlay.glitch-2 .synthwave-grid {
    animation: glitch-2 0.6s ease-out;
}

.synthwave-overlay.glitch-3 .synthwave-gradient,
.synthwave-overlay.glitch-3 .synthwave-grid {
    animation: glitch-3 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.synthwave-overlay.glitch-4 .synthwave-gradient,
.synthwave-overlay.glitch-4 .synthwave-grid {
    animation: glitch-4 0.7s ease-in;
}

/* Make particles canvas glitch with transitions */
.particles-overlay.glitch-1 { animation: glitch-1 0.4s ease-in-out; }
.particles-overlay.glitch-2 { animation: glitch-2 0.6s ease-out; }
.particles-overlay.glitch-3 { animation: glitch-3 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.particles-overlay.glitch-4 { animation: glitch-4 0.7s ease-in; }

.bg-slide.glitch-1 {
    animation: glitch-1 0.4s ease-in-out;
}

.bg-slide.glitch-2 {
    animation: glitch-2 0.6s ease-out;
}

.bg-slide.glitch-3 {
    animation: glitch-3 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-slide.glitch-4 {
    animation: glitch-4 0.7s ease-in;
}

/* Glitch Animation Variations */

/* Extreme RGB separation glitch */
@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0) scale(1) skew(0deg);
        filter: hue-rotate(0deg) contrast(100%);
    }
    8% {
        transform: translate(-15px, 8px) scale(1.05) skew(2deg);
        filter: hue-rotate(180deg) contrast(300%) brightness(200%) blur(1px);
    }
    16% {
        transform: translate(20px, -5px) scale(0.95) skew(-1.5deg);
        filter: hue-rotate(0deg) brightness(50%) saturate(300%) invert(0.2);
    }
    24% {
        transform: translate(-12px, 12px) scale(1.08) skew(3deg);
        filter: hue-rotate(90deg) saturate(400%) contrast(250%);
    }
    32% {
        transform: translate(18px, -8px) scale(0.92) skew(-2deg);
        filter: hue-rotate(270deg) invert(0.3) brightness(180%);
    }
    40% {
        transform: translate(-25px, 3px) scale(1.1) skew(1deg);
        filter: hue-rotate(135deg) contrast(350%) blur(2px);
    }
    48% {
        transform: translate(22px, 15px) scale(0.88) skew(-3deg);
        filter: hue-rotate(225deg) saturate(500%) brightness(70%);
    }
    56% {
        transform: translate(-8px, -10px) scale(1.06) skew(2.5deg);
        filter: hue-rotate(315deg) invert(0.4) contrast(280%);
    }
    64% {
        transform: translate(30px, 5px) scale(0.9) skew(-1deg);
        filter: hue-rotate(45deg) brightness(220%) blur(1.5px);
    }
    72% {
        transform: translate(-18px, -12px) scale(1.12) skew(4deg);
        filter: hue-rotate(160deg) saturate(350%) contrast(320%);
    }
    80% {
        transform: translate(10px, 20px) scale(0.85) skew(-2.5deg);
        filter: hue-rotate(200deg) invert(0.25) brightness(150%);
    }
    88% {
        transform: translate(-5px, 8px) scale(1.03) skew(1.5deg);
        filter: hue-rotate(75deg) contrast(180%);
    }
}

/* Intense digital corruption */
@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0) skew(0deg) scaleX(1);
        filter: hue-rotate(0deg) contrast(100%);
    }
    10% {
        transform: translate(-8px, 6px) skew(3deg) scaleX(1.15);
        filter: hue-rotate(120deg) contrast(250%) blur(2px);
    }
    20% {
        transform: translate(12px, -4px) skew(-2deg) scaleX(0.8);
        filter: hue-rotate(240deg) brightness(300%) saturate(400%) invert(0.3);
    }
    30% {
        transform: translate(-15px, 10px) skew(5deg) scaleX(1.25);
        filter: hue-rotate(60deg) contrast(350%) sepia(0.5);
    }
    40% {
        transform: translate(20px, -8px) skew(-4deg) scaleX(0.7);
        filter: hue-rotate(300deg) brightness(50%) saturate(500%);
    }
    50% {
        transform: translate(-10px, 15px) skew(6deg) scaleX(1.3);
        filter: hue-rotate(180deg) contrast(400%) blur(3px);
    }
    60% {
        transform: translate(25px, -12px) skew(-3deg) scaleX(0.75);
        filter: hue-rotate(0deg) invert(0.4) brightness(200%);
    }
    70% {
        transform: translate(-18px, 8px) skew(4deg) scaleX(1.2);
        filter: hue-rotate(90deg) saturate(300%) contrast(280%);
    }
    80% {
        transform: translate(5px, 12px) skew(-1deg) scaleX(0.9);
        filter: hue-rotate(270deg) brightness(150%) blur(1px);
    }
    90% {
        transform: translate(-6px, -5px) skew(2deg) scaleX(1.1);
        filter: hue-rotate(45deg) contrast(200%);
    }
}

/* Extreme chaos glitch */
@keyframes glitch-3 {
    0%, 100% {
        transform: translate(0) rotate(0deg) scale(1);
        filter: hue-rotate(0deg) contrast(100%);
    }
    5% {
        transform: translate(-25px, 18px) rotate(2deg) scale(1.15);
        filter: hue-rotate(90deg) sepia(0.8) contrast(300%) blur(2px);
    }
    10% {
        transform: translate(30px, -10px) rotate(-1.5deg) scale(0.8);
        filter: hue-rotate(180deg) contrast(400%) brightness(50%) invert(0.3);
    }
    15% {
        transform: translate(-20px, 25px) rotate(3deg) scale(1.25);
        filter: hue-rotate(270deg) brightness(250%) blur(4px) saturate(500%);
    }
    20% {
        transform: translate(35px, -15px) rotate(-2deg) scale(0.75);
        filter: hue-rotate(45deg) saturate(600%) contrast(350%);
    }
    25% {
        transform: translate(-18px, 12px) rotate(1deg) scale(1.2);
        filter: hue-rotate(315deg) invert(0.5) brightness(180%);
    }
    30% {
        transform: translate(28px, 20px) rotate(-3deg) scale(0.85);
        filter: hue-rotate(135deg) contrast(450%) sepia(0.6);
    }
    40% {
        transform: translate(-32px, -8px) rotate(2.5deg) scale(1.3);
        filter: hue-rotate(225deg) brightness(70%) blur(3px);
    }
    50% {
        transform: translate(15px, 30px) rotate(-1deg) scale(0.9);
        filter: hue-rotate(60deg) saturate(400%) invert(0.2);
    }
    60% {
        transform: translate(-22px, -18px) rotate(4deg) scale(1.18);
        filter: hue-rotate(300deg) contrast(380%) brightness(200%);
    }
    70% {
        transform: translate(40px, 8px) rotate(-2.5deg) scale(0.82);
        filter: hue-rotate(150deg) blur(2px) saturate(350%);
    }
    80% {
        transform: translate(-12px, 22px) rotate(1.5deg) scale(1.12);
        filter: hue-rotate(210deg) invert(0.35) contrast(250%);
    }
    90% {
        transform: translate(8px, -12px) rotate(-0.5deg) scale(1.05);
        filter: hue-rotate(75deg) brightness(160%);
    }
}

/* Extreme wave corruption */
@keyframes glitch-4 {
    0%, 100% {
        transform: translate(0) scaleY(1) scaleX(1) skew(0deg);
        filter: hue-rotate(0deg) contrast(100%);
    }
    8% {
        transform: translate(-12px, 8px) scaleY(1.2) scaleX(0.8) skew(4deg);
        filter: hue-rotate(60deg) contrast(280%) blur(2px);
    }
    16% {
        transform: translate(18px, -6px) scaleY(0.7) scaleX(1.3) skew(-3deg);
        filter: hue-rotate(120deg) brightness(250%) saturate(400%);
    }
    24% {
        transform: translate(-20px, 12px) scaleY(1.35) scaleX(0.6) skew(5deg);
        filter: hue-rotate(180deg) saturate(500%) invert(0.3);
    }
    32% {
        transform: translate(25px, -10px) scaleY(0.6) scaleX(1.4) skew(-2deg);
        filter: hue-rotate(240deg) contrast(350%) brightness(80%);
    }
    40% {
        transform: translate(-15px, 20px) scaleY(1.5) scaleX(0.5) skew(6deg);
        filter: hue-rotate(300deg) blur(3px) sepia(0.7);
    }
    48% {
        transform: translate(22px, -8px) scaleY(0.75) scaleX(1.25) skew(-4deg);
        filter: hue-rotate(30deg) invert(0.4) brightness(200%);
    }
    56% {
        transform: translate(-8px, 15px) scaleY(1.25) scaleX(0.75) skew(3deg);
        filter: hue-rotate(90deg) contrast(300%) saturate(350%);
    }
    64% {
        transform: translate(30px, -12px) scaleY(0.8) scaleX(1.2) skew(-1deg);
        filter: hue-rotate(150deg) brightness(150%) blur(1px);
    }
    72% {
        transform: translate(-18px, 6px) scaleY(1.15) scaleX(0.85) skew(2deg);
        filter: hue-rotate(210deg) saturate(250%) contrast(220%);
    }
    80% {
        transform: translate(10px, 18px) scaleY(0.9) scaleX(1.1) skew(-3deg);
        filter: hue-rotate(270deg) invert(0.2) brightness(180%);
    }
    88% {
        transform: translate(-5px, -8px) scaleY(1.08) scaleX(0.92) skew(1deg);
        filter: hue-rotate(330deg) contrast(160%);
    }
}

/* Additional glitch layers for more complex effect */
.bg-slide::before,
.bg-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    opacity: 0;
    pointer-events: none;
}

.bg-slide.glitch-1::before {
    animation: glitch-layer-1a 0.4s ease-in-out;
    mix-blend-mode: multiply;
}

.bg-slide.glitch-1::after {
    animation: glitch-layer-1b 0.4s ease-in-out;
    mix-blend-mode: screen;
}

.bg-slide.glitch-2::before {
    animation: glitch-layer-2a 0.6s ease-out;
    mix-blend-mode: overlay;
}

.bg-slide.glitch-2::after {
    animation: glitch-layer-2b 0.6s ease-out;
    mix-blend-mode: difference;
}

.bg-slide.glitch-3::before {
    animation: glitch-layer-3a 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    mix-blend-mode: color-dodge;
}

.bg-slide.glitch-3::after {
    animation: glitch-layer-3b 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    mix-blend-mode: multiply;
}

.bg-slide.glitch-4::before {
    animation: glitch-layer-4a 0.7s ease-in;
    mix-blend-mode: soft-light;
}

.bg-slide.glitch-4::after {
    animation: glitch-layer-4b 0.7s ease-in;
    mix-blend-mode: screen;
}

/* Extreme layer animations for dramatic corruption */
@keyframes glitch-layer-1a {
    0%, 100% { opacity: 0; transform: translate(0) scale(1); }
    15% { opacity: 0.8; transform: translate(-20px, 15px) scale(1.2); filter: hue-rotate(180deg) contrast(300%) blur(2px); }
    35% { opacity: 0.9; transform: translate(25px, -10px) scale(0.8); filter: hue-rotate(270deg) invert(0.4); }
    55% { opacity: 0.7; transform: translate(-15px, 20px) scale(1.15); filter: hue-rotate(90deg) saturate(500%); }
    75% { opacity: 0.85; transform: translate(18px, -8px) scale(0.85); filter: hue-rotate(45deg) brightness(250%); }
}

@keyframes glitch-layer-1b {
    0%, 100% { opacity: 0; transform: translate(0) scale(1); }
    20% { opacity: 0.6; transform: translate(22px, 8px) scale(1.3); filter: hue-rotate(90deg) contrast(350%); }
    45% { opacity: 0.75; transform: translate(-18px, 12px) scale(0.7); filter: hue-rotate(45deg) sepia(0.6); }
    70% { opacity: 0.8; transform: translate(12px, -15px) scale(1.1); filter: hue-rotate(225deg) brightness(200%); }
}

@keyframes glitch-layer-2a {
    0%, 100% { opacity: 0; transform: translate(0) skew(0deg) scaleX(1); }
    25% { opacity: 0.7; transform: translate(-25px, 8px) skew(6deg) scaleX(1.4); filter: hue-rotate(120deg) contrast(400%); }
    50% { opacity: 0.8; transform: translate(30px, -12px) skew(-4deg) scaleX(0.6); filter: hue-rotate(240deg) brightness(300%); }
    75% { opacity: 0.6; transform: translate(-15px, 18px) skew(5deg) scaleX(1.2); filter: hue-rotate(60deg) saturate(400%); }
}

@keyframes glitch-layer-2b {
    0%, 100% { opacity: 0; transform: translate(0) skew(0deg) scaleX(1); }
    30% { opacity: 0.65; transform: translate(20px, 15px) skew(-3deg) scaleX(0.8); filter: hue-rotate(60deg) invert(0.3); }
    60% { opacity: 0.75; transform: translate(-22px, -5px) skew(4deg) scaleX(1.3); filter: hue-rotate(300deg) contrast(350%); }
}

@keyframes glitch-layer-3a {
    0%, 100% { opacity: 0; transform: translate(0) rotate(0deg) scale(1); }
    18% { opacity: 0.9; transform: translate(-30px, 20px) rotate(3deg) scale(1.25); filter: hue-rotate(90deg) blur(3px) contrast(450%); }
    38% { opacity: 0.85; transform: translate(35px, -15px) rotate(-2deg) scale(0.75); filter: hue-rotate(270deg) invert(0.5); }
    58% { opacity: 0.8; transform: translate(-20px, 25px) rotate(4deg) scale(1.15); filter: hue-rotate(180deg) saturate(600%); }
    78% { opacity: 0.7; transform: translate(25px, -18px) rotate(-1deg) scale(0.9); filter: hue-rotate(45deg) brightness(280%); }
}

@keyframes glitch-layer-3b {
    0%, 100% { opacity: 0; transform: translate(0) rotate(0deg) scale(1); }
    25% { opacity: 0.75; transform: translate(28px, 12px) rotate(-3deg) scale(1.3); filter: hue-rotate(180deg) sepia(0.8); }
    50% { opacity: 0.8; transform: translate(-25px, -10px) rotate(2deg) scale(0.7); filter: hue-rotate(45deg) contrast(380%); }
    75% { opacity: 0.65; transform: translate(15px, 22px) rotate(-1.5deg) scale(1.1); filter: hue-rotate(315deg) brightness(220%); }
}

@keyframes glitch-layer-4a {
    0%, 100% { opacity: 0; transform: translate(0) scaleY(1) scaleX(1) skew(0deg); }
    20% { opacity: 0.8; transform: translate(-18px, 12px) scaleY(1.4) scaleX(0.6) skew(5deg); filter: hue-rotate(60deg) contrast(300%); }
    45% { opacity: 0.9; transform: translate(25px, -8px) scaleY(0.6) scaleX(1.5) skew(-4deg); filter: hue-rotate(300deg) brightness(250%); }
    70% { opacity: 0.7; transform: translate(-12px, 20px) scaleY(1.3) scaleX(0.7) skew(3deg); filter: hue-rotate(120deg) saturate(500%); }
}

@keyframes glitch-layer-4b {
    0%, 100% { opacity: 0; transform: translate(0) scaleY(1) scaleX(1) skew(0deg); }
    30% { opacity: 0.75; transform: translate(22px, 5px) scaleY(0.8) scaleX(1.2) skew(-2deg); filter: hue-rotate(120deg) invert(0.3); }
    60% { opacity: 0.85; transform: translate(-20px, 15px) scaleY(1.2) scaleX(0.8) skew(4deg); filter: hue-rotate(240deg) contrast(350%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
    padding: 2rem;
}

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

.hero-title {
    font-family: 'Orbitron', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Force mobile line break before Web5 World Fair */
@media (max-width: 768px) {
    .hero-title .mobile-break { display: block; }
}

.hero-subtitle {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.8px;
}



/* New Hero Sections */
.hero-section {
    margin: 2.5rem 0;
}

.hero-secondary {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.hero-cta {
    margin: 0 0 2.5rem 0;
}

.post-cta .hero-section {
    margin-top: 0;
}

.hero-contact {
    margin-top: 3rem;
}

.contact-link {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: #00cc6a;
    border-bottom: 1px solid #00cc6a;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.contact-text {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.4rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* CTA Buttons */
.cta-button {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    display: inline-block;
    padding: 0.9rem 24px;
    margin: 0.4rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: auto;
    width: fit-content;
}

.cta-button.primary {
    font-family: 'Wedgie Regular', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: #fff;
    border: 2px solid transparent;
    /* Fluorescent green rotating border using conic gradient */
    --angle: 0deg;
    background:
      linear-gradient(#000,#000) padding-box,
      conic-gradient(from var(--angle), #39ff14 0%, #0a7a32 50%, #39ff14 100%) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 0 rgba(255,255,255,0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.button-icon {
    height: 18px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(1);
    transition: all 0.3s ease;
}

.cta-button.primary::before,
.cta-button.primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,0,128,0.15), rgba(0,200,255,0.15), rgba(0,255,204,0.15));
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cta-button.primary::after {
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.15) 0px,
        rgba(255,255,255,0.15) 2px,
        rgba(255,255,255,0.0) 3px,
        rgba(255,255,255,0.0) 6px
    );
    opacity: 0;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.25), 0 0 40px rgba(10, 122, 50, 0.2);
    animation: border-rotate 6s linear infinite;
}

.cta-button.primary:hover::before { display: none; }

.cta-button.primary:hover::after { display: none; }

/* Animated gradient border rotation via CSS custom property */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes border-rotate { to { --angle: 360deg; } }

@keyframes button-glitch {
    0% { clip-path: inset(0 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(10% 0 60% 0); transform: translate(3px, -1px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(-4px, 2px); }
    60% { clip-path: inset(60% 0 20% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(80% 0 0 0); transform: translate(-1px, -2px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
}

@keyframes button-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {

    html, body {
        height: 100%;
        overflow: hidden;
    }

    .main-section {
        height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: 0.8px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.4rem;
    }

    .hero-secondary {
        font-size: 1rem;
        letter-spacing: 0.4px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .contact-text {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 260px;
        margin: 0.7rem auto;
        display: block;
        font-size: 0.85rem;
    }

    /* Mobile default = hover look for primary button */
    .cta-button.primary {
        transform: translateY(-2px);
        animation: border-rotate 6s linear infinite;
        box-shadow: 0 0 30px rgba(57, 255, 20, 0.25), 0 0 40px rgba(10, 122, 50, 0.2);
    }
    .cta-button.primary::before,
    .cta-button.primary::after { display: none; }
    .cta-button.primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 30px rgba(255, 0, 128, 0.25), 0 0 40px rgba(0, 200, 255, 0.2);
    }
    .cta-button.primary:hover::before,
    .cta-button.primary:hover::after {
        opacity: inherit;
        animation: inherit;
    }



    .nav-container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 24px 1rem;
    }

    .bg-slide {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.6px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-secondary {
        font-size: 0.9rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .contact-text {
        font-size: 0.9rem;
    }

    .nav-container {
        height: 70px;
    }

    .logo {
        height: 36px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Scrolled navbar style */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
