/* Custom CSS for GRINCH */

body {
    font-family: 'Luckiest Guy', cursive;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

.heading-font {
    font-family: 'Rubik Bubbles', cursive;
}

h2 {
    margin-block-start: 0 em;
    margin-block-end: 0 em;
}

.hero-text {
    position: relative;
    left: 2%;
    top: 36%;
    transform: translateY(-50%);
    max-width: 520px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}


.text-gradient {
    background-image: linear-gradient(to right, rgb(34, 197, 94), rgb(134, 239, 172));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.neon-glow-effect {
    box-shadow: 0 0 10px rgba(var(--theme-rgb), 0.5),
        0 0 20px rgba(var(--theme-rgb), 0.3),
        0 0 30px rgba(var(--theme-rgb), 0.1);
    transition: all 0.3s ease;
}

.neon-glow-effect:hover {
    box-shadow: 0 0 15px rgba(var(--theme-rgb), 0.7),
        0 0 25px rgba(var(--theme-rgb), 0.5),
        0 0 35px rgba(var(--theme-rgb), 0.3);
}

.social img {
    transition: transform 0.3s ease;
}

.social:hover img {
    transform: scale(1.2);
}

.nav-main {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}


#about {
    background: radial-gradient(circle at center, #0b3d2e, #021a12);
    z-index: 1;
    position: relative;   /* 🔑 creates local stacking context */
    overflow: visible;
}

.hero-section {
    background: url('images/hero-section.png') center/contain no-repeat;
    aspect-ratio: 14/9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f2302;
}

.grinch-heist-section {
    position: relative;
    background: url('images/grinch-bg.jpg') center/contain no-repeat;
    text-align: center;
}

.heist-frame {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tokenomics {
    background:
        rgb(16 28 47)
        url('images/tokenomics.png') center / contain no-repeat;

    aspect-ratio: 3 / 1;
    padding: 2%;
    margin: 0.5%;
    box-shadow: 0 0 0 100vmax rgb(16 28 47);
    clip-path: inset(0 -100vmax);
}

/* This is the runway */
.grinch-track {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;

    padding-top: 12%;
    padding-left: 25%;
}

/* Grinch stays in flow */
.grinch {
    width: 35%;
    transition: transform 0.12s linear;
    will-change: transform;
}

button:active {
    transform: scale(1.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 20px;
}

.section-subtitle {
    padding-top: 2%;
    font-weight: 600;
    color: white;
    opacity: 0.8;
}

/* Neon Separators */
.neon-separator {
    width: 100%;
    margin: 2rem 0;
}

.neon-separator.thin {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgb(34, 197, 94), rgb(134, 239, 172), transparent);
    box-shadow: 0 0 10px rgba(var(--theme-rgb), 0.7);
}

.neon-separator.thick {
    height: 4px;
    background: linear-gradient(90deg, transparent, rgb(34, 197, 94), rgb(134, 239, 172), transparent);
    box-shadow: 0 0 15px rgba(var(--theme-rgb), 0.8);
}

.neon-separator.dashed {
    height: 3px;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 10px,
            rgba(var(--theme-rgb), 0.8) 10px,
            rgba(var(--theme-rgb), 0.8) 20px);
    box-shadow: 0 0 10px rgba(var(--theme-rgb), 0.6);
}

.neon-separator.gradient {
    height: 6px;
    background: linear-gradient(90deg,
            #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff00ff);
    border-radius: 3px;
}

.neon-separator.pulse {
    height: 3px;
    background: rgb(34, 197, 94), rgb(134, 239, 172);
    box-shadow: 0 0 10px rgba(var(--theme-rgb), 0.7);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 10px rgba(var(--theme-rgb), 0.7);
    }

    to {
        box-shadow: 0 0 20px rgba(var(--theme-rgb), 1), 0 0 30px rgba(var(--theme-rgb), 0.5);
    }
}

.heist-coin {
    width: 42px;
    position: absolute;
    bottom: 22%;
    animation: coin-bounce 1.4s ease-in-out infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Spread coins horizontally */
.coin-1 {
    left: 68%;
    animation-delay: 0s;
}

.coin-2 {
    left: 73%;
    animation-delay: 0.2s;
}

.coin-3 {
    left: 70%;
    animation-delay: 0.4s;
}

@keyframes coin-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-60px);
    }

}

.coin-hidden {
    opacity: 0;
    transform: scale(0.5);
}

.snow-layer {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 30;

    background-image:
        radial-gradient(2px 2px at 10% 20%, white 50%, transparent 51%),
        radial-gradient(2px 2px at 30% 80%, white 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 50% 40%, white 50%, transparent 51%),
        radial-gradient(2.5px 2.5px at 70% 60%, white 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 90% 30%, white 50%, transparent 51%);

    animation: snow-fall 14s linear infinite;

    background-size: 200px 200px;
    animation-duration: 10s;
    opacity: 0.6;

}

/* Default = SLOW */
.snow-slow {
    opacity: 0.5;
    animation-duration: 12s;
    background-size: 220px 220px;
}

.snow-wind {
    opacity: 0.75;
    animation-duration: 8s;
    background-size: 150px 150px;
}

.snow-storm {
    opacity: 0.9;
    animation-duration: 4s;
    background-size: 100px 100px;
}

.snow-off {
    display: none;
}

.snow-back {
    opacity: 0.25;
    filter: blur(1px);
    background-size: 400px 400px;
    animation-duration: 28s;
}

footer{
z-index: 40;
}
.grinch-box {
  position: absolute;   /* 🔑 removed from normal flow */
  bottom: -1px;        /* adjust this */
  width: 100%;
  height: 200px;
  z-index: 5;           /* above about background */
  pointer-events: auto;
}

#grinchCanvas {
    width: 100%;
    cursor: pointer;
}

/* Wind + fall */
@keyframes snow-fall {
    0% {
        background-position: 0 -300px;
    }

    50% {
        background-position: 180px 50vh;
    }

    100% {
        background-position: 120px 100vh;
    }
}

/* Theme-specific variables */
:root {
    --theme-rgb: 34, 197, 94;
}

@media (max-width: 768px) {
  #tokenomics {
     background:
        rgb(16 28 47)
        url('images/tokenomics_orignal.png') center / contain no-repeat;
        aspect-ratio: 1/2;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Only apply the offset positioning on Desktop */
@media (min-width: 1024px) {
    .hero-section {
        aspect-ratio: 14/9;
        min-height: auto;
    }
    .hero-text {
        left: 2%;
        top: 36%;
        transform: translateY(-50%);
        margin: 0;
    }
}

