/* Custom scrollbar for thumbnail row */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth fade/slide animations */
.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }

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

/* SHINY CTA BUTTON STYLES */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-angle-offset {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 20%;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: #9BFA37;
    inherits: false;
}

.shiny-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    --gradient-angle: 0deg;
    --gradient-angle-offset: 0deg;
    --gradient-percent: 20%;
    --gradient-shine: #9BFA37;
    --shadow-size: 2px;
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem; /* Adjusted for navbar */
    font-size: 0.875rem; /* Text sm */
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(#000000, #000000) padding-box, conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)), transparent 0%, #9BFA37 5%, var(--gradient-shine) 15%, #9BFA37 30%, transparent 40%, transparent 100%) border-box;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px #1a1818;
    outline: none;
    transition: --gradient-angle-offset 800ms cubic-bezier(0.25, 1, 0.5, 1), --gradient-percent 800ms cubic-bezier(0.25, 1, 0.5, 1), --gradient-shine 800ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
    cursor: pointer;
    isolation: isolate;
    outline-offset: 4px;
    font-family: 'Inter', 'sans-serif';
    z-index: 0;
    animation: border-spin 2.5s linear infinite;
}

@keyframes border-spin {
    to {
        --gradient-angle: 360deg;
    }
}

.shiny-cta:active {
    transform: translateY(1px);
}

.shiny-cta::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    --size: calc(100% - 6px);
    --position: 2px;
    --space: 4px;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at var(--position) var(--position), white 0.5px, transparent 0) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
    border-radius: inherit;
    opacity: 0.4;
    pointer-events: none;
}

.shiny-cta::after {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, #9BFA37, transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: 0.6;
    animation: shimmer 4s linear infinite;
    animation-play-state: running;
}

.shiny-cta span {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.shiny-cta span::before {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px #9BFA37;
    opacity: 0;
    border-radius: inherit;
    transition: opacity 800ms cubic-bezier(0.25, 1, 0.5, 1);
    animation: breathe 4.5s linear infinite;
}

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

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

/* Video carousel styles */
.video-element {
    -webkit-appearance: none;
    appearance: none;
}

.video-element::-webkit-media-controls {
    display: none !important;
}

.video-element::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-element::-webkit-media-controls-panel {
    display: none !important;
}

.video-element::-webkit-media-controls-play-button {
    display: none !important;
}

.video-element::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.video-element::--webkit-media-controls {
    display: none !important;
}

/* Hero Section Styles from Template */
/* Subtle Grid Background */
.bg-grid {
    background-size: 4rem 4rem;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Staggered Immersive Animation */
.stagger-in {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(10px);
    animation: immersiveEnter 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-0 { animation-delay: 0ms; }
.delay-100 { animation-delay: 150ms; }
.delay-200 { animation-delay: 300ms; }
.delay-300 { animation-delay: 450ms; }
.delay-400 { animation-delay: 600ms; }
@keyframes immersiveEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Hero Interaction Styles */
#hero {
    --x: 50%;
    --y: 50%;
}
.hero-spotlight {
    background: radial-gradient(
        800px circle at var(--x) var(--y),
        rgba(155, 250, 55, 0.06),
        transparent 40%
    );
    z-index: 1;
}
.hero-grid-highlight {
    background-size: 4rem 4rem;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    mask-image: radial-gradient(
        300px circle at var(--x) var(--y),
        black,
        transparent
    );
    -webkit-mask-image: radial-gradient(
        300px circle at var(--x) var(--y),
        black,
        transparent
    );
    z-index: 2;
}

/* Border gradient shared style */
.border-gradient {
    position: relative;
}
.border-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.0) 100%);
    pointer-events: none;
}
