/* Base Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(96px);
    transition: all 1.0s cubic-bezier(0.2, 1, 0.8, 1.0);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Utilities */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

.text-stroke-neon {
    -webkit-text-stroke: 1px rgba(204, 255, 0, 0.7);
    color: transparent;
}


.grid-bg {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05), #ccff00);
    width: var(--progress);
    z-index: 9999;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(5, 5, 5, 0.5);
}

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

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccff00;
}

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

/* Cap h1 font size at 1920px max-width */
@media (min-width: 1920px) {
    #hero .hero-title {
        font-size: 192px !important;
    }
}

/* Cap Hero Title at 1280px size */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 128px !important;
    }
}

/* ========================================
   INTERACTIVE GRID BACKGROUND STYLES
   ======================================== */

/* Grid Container - positioned behind hero content */
#interactive-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    pointer-events: auto;
    overflow: hidden;
}

/* Individual Grid Cells */
.grid-cell {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Hover state for cells */
.grid-cell:hover {
    background: rgba(204, 255, 0, 0.08);
    border-color: rgba(204, 255, 0, 0.15);
}

/* Active/highlight state for cells */
.grid-cell.active-cell {
    background: rgba(204, 255, 0, 0.12);
    border-color: rgba(204, 255, 0, 0.25);
}

/* Ripple effect state */
.grid-cell.ripple {
    animation: cellRipple 0.6s ease-out forwards;
}

@keyframes cellRipple {
    0% {
        background: rgba(204, 255, 0, 0.3);
        border-color: rgba(204, 255, 0, 0.5);
    }

    100% {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.03);
    }
}

/* Cursor Glow Element */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle,
            rgba(204, 255, 0, 0.35) 0%,
            rgba(204, 255, 0, 0.20) 20%,
            rgba(204, 255, 0, 0.08) 40%,
            transparent 70%);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cursor-glow.visible {
    opacity: 1;
}

/* Ensure hero content stays above the grid */
#hero>*:not(#interactive-bg):not(#cursor-glow) {
    position: relative;
    z-index: 2;
}

/* ========================================
   CTA SECTION INTERACTIVE GRID (Dark on Lime)
   ======================================== */
#cta-interactive-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    pointer-events: auto;
    overflow: hidden;
}

.cta-grid-cell {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.cta-grid-cell:hover {
    background: rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.15);
}

.cta-grid-cell.active-cell {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.18);
}

.cta-grid-cell.ripple {
    animation: ctaCellRipple 0.6s ease-out forwards;
}

@keyframes ctaCellRipple {
    0% {
        background: rgba(0, 0, 0, 0.35);
        border-color: rgba(0, 0, 0, 0.5);
    }

    100% {
        background: transparent;
        border-color: rgba(0, 0, 0, 0.04);
    }
}

#cta-cursor-glow {
    position: fixed;
    width: 720px;
    height: 720px;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.12) 25%, rgba(0, 0, 0, 0.05) 45%, transparent 70%);
    mix-blend-mode: multiply;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cta-cursor-glow.visible {
    opacity: 1;
}

#cta-section>*:not(#cta-interactive-bg):not(#cta-cursor-glow) {
    position: relative;
    z-index: 2;
}

/* Card Hover Glow Effect */
.card-glow {
    position: relative;
    transition: box-shadow 0.4s ease;
}

.card-glow:hover {
    box-shadow: 0 0 40px 8px rgba(204, 255, 0, 0.15), 0 0 80px 20px rgba(204, 255, 0, 0.08);
}

/* Extracted Utility Classes */
.cursor-canvas-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}