/* ===== Self-hosted Fonts ===== */
@font-face {
    font-family: 'Bangers';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Bangers.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/SpaceGrotesk.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== Page Load Animations ===== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        letter-spacing: 0.5em;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        letter-spacing: 0.2em;
        filter: blur(0);
    }
}

.animate-title {
    animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.animate-subtitle {
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.animate-mascot {
    animation: bounceIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.1s;
}

.animate-bubble {
    animation: fadeSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

/* Planet entrance + float animations combined below */

.animate-social {
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-social:nth-child(1) { animation-delay: 1s; }
.animate-social:nth-child(2) { animation-delay: 1.1s; }
.animate-social:nth-child(3) { animation-delay: 1.2s; }
.animate-social:nth-child(4) { animation-delay: 1.3s; }

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

/* Gradient fade overlays for smooth edge transitions */
.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #0a0a0f 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #0a0a0f 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.parallax-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.65) 0%,
        rgba(10, 10, 15, 0.55) 30%,
        rgba(15, 61, 62, 0.45) 70%,
        rgba(10, 10, 15, 0.7) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ===== Infinite Masonry Background ===== */
.masonry-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -3;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px;
    opacity: 0.35;
    filter: brightness(0.7) saturate(1.2);
    transform: translate3d(0, 0, 0);
}

.masonry-bg .masonry-tile {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.6s ease;
    min-height: 140px;
}

.masonry-bg .masonry-tile.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .masonry-bg {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        opacity: 0.25;
        filter: brightness(0.6) saturate(1.1);
    }

    .masonry-bg .masonry-tile {
        min-height: 100px;
    }
}

/* Subtle starfield overlay - reduced since background has stars */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.stars {
    background: transparent;
    box-shadow: 
        100px 100px #fff, 250px 150px #fff, 400px 80px #fff,
        600px 200px #fff, 800px 100px #fff, 950px 250px #fff,
        150px 300px #fff, 350px 400px #fff, 550px 350px #fff,
        700px 450px #fff, 900px 400px #fff, 1100px 350px #fff;
    width: 1px;
    height: 1px;
    animation: animateStars 80s linear infinite;
}

.stars2 {
    background: transparent;
    box-shadow: 
        200px 50px #49E5AC, 400px 200px #49E5AC, 650px 120px #49E5AC,
        850px 180px #49E5AC, 1000px 280px #49E5AC;
    width: 2px;
    height: 2px;
    animation: animateStars 120s linear infinite;
    opacity: 0.4;
}

.stars3 {
    background: transparent;
    box-shadow: 
        300px 100px #70C8A5, 500px 250px #70C8A5, 750px 150px #70C8A5;
    width: 1px;
    height: 1px;
    animation: animateStars 150s linear infinite;
    opacity: 0.25;
}

@keyframes animateStars {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-1000px);
    }
}

/* Floating Particles Layer */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(73, 229, 172, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}

.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-duration: 22s; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation-duration: 17s; animation-delay: 0s; }
.particle:nth-child(9) { left: 90%; animation-duration: 19s; animation-delay: 4s; }
.particle:nth-child(10) { left: 15%; animation-duration: 21s; animation-delay: 1s; }
.particle:nth-child(11) { left: 45%; animation-duration: 12s; animation-delay: 3s; }
.particle:nth-child(12) { left: 75%; animation-duration: 25s; animation-delay: 6s; }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
}

/* Ambient Glow Pulse */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(73, 229, 172, 0.08) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* Nebula color shift */
.nebula-glow {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        0deg,
        rgba(73, 229, 172, 0.05) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    animation: nebulaShift 12s ease-in-out infinite alternate;
}

@keyframes nebulaShift {
    0% {
        filter: hue-rotate(0deg);
        opacity: 0.6;
    }
    100% {
        filter: hue-rotate(20deg);
        opacity: 0.8;
    }
}

/* Header */
header {
    text-align: left;
    padding: 85px 20px 20px 30px;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    max-width: 600px;
    margin: 0;
    position: relative;
}

/* Wallet Button - Upper Right Corner */
/* Ultra Compact Social Icons - Header Top Left */
.social-icons-header {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(73, 229, 172, 0.1);
    border: 1px solid rgba(73, 229, 172, 0.3);
    border-radius: 8px;
    color: #49E5AC;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon-mini:hover {
    background: rgba(73, 229, 172, 0.2);
    border-color: rgba(73, 229, 172, 0.5);
    transform: translateY(-2px);
}

.social-icon-mini svg {
    width: 18px;
    height: 18px;
}

/* Header Buttons Container (Donate + Wallet) */
.header-buttons-corner {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donate-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(73, 229, 172, 0.1);
    border: 1px solid rgba(73, 229, 172, 0.4);
    border-radius: 12px;
    color: #49E5AC;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.donate-button:hover {
    background: rgba(73, 229, 172, 0.2);
    border-color: rgba(73, 229, 172, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(73, 229, 172, 0.3);
}

.donate-icon {
    font-size: 1rem;
}


@media (max-width: 768px) {
    .header-buttons-corner {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .donate-button {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .donate-text {
        display: none;
    }
    
    .social-icons-header {
        top: 10px;
        left: 10px;
        gap: 6px;
    }
    
    .social-icon-mini {
        width: 28px;
        height: 28px;
    }
    
    .social-icon-mini svg {
        width: 14px;
        height: 14px;
    }
}

.mascot-container {
    position: absolute;
    top: -45px;
    left: -25px;
    z-index: 30;
}

.mascot-left {
    order: 1;
}

.header-text {
    order: 2;
    position: relative;
    z-index: 10;
    padding-left: 60px;
    padding-top: 3px;
}

.mascot-right {
    order: 3;
}

.kasmo-mascot {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: floatMascot 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(73, 229, 172, 0.4));
    position: relative;
    z-index: 5;
}

.kasmo-mirrored {
    transform: scaleX(-1);
}

@keyframes floatMascot {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.kasmo-mirrored {
    animation: floatMascotMirrored 4s ease-in-out infinite;
}

@keyframes floatMascotMirrored {
    0%, 100% {
        transform: scaleX(-1) translateY(0px);
    }
    50% {
        transform: scaleX(-1) translateY(-15px);
    }
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: 15px;
    right: -100px;
    transform: none;
    background: linear-gradient(135deg, rgba(73, 229, 172, 0.15) 0%, rgba(73, 229, 172, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(73, 229, 172, 0.4);
    border-radius: 10px;
    padding: 5px 8px;
    font-size: 0.65rem;
    color: #49E5AC;
    white-space: nowrap;
    box-shadow: 
        0 2px 10px rgba(73, 229, 172, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1;
    /* No animation - stays fixed, behind mascot */
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: rgba(73, 229, 172, 0.3);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(73, 229, 172, 0.1);
}

.speech-bubble strong {
    color: #fff;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(73, 229, 172, 0.5);
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.header-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title {
    font-family: 'Bangers', cursive, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #49E5AC 0%, #70C8A5 50%, #3F8B77 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
    text-shadow: 
        0 0 60px rgba(73, 229, 172, 0.5),
        0 0 10px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    animation: glow 3s ease-in-out infinite alternate;
    line-height: 1.1;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(73, 229, 172, 0.5));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(73, 229, 172, 0.8));
    }
}

.subtitle {
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    color: rgba(112, 200, 165, 0.85);
    margin-top: 5px;
    letter-spacing: 0.2em;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 
        0 0 15px rgba(73, 229, 172, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ===== Star Wars Scroll Narrative ===== */
.scroll-narrative {
    position: relative;
    min-height: 400vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 5;
    perspective: 500px;
}

.scroll-perspective {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.scroll-text {
    width: 92vw;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.8rem);
    line-height: 1.45;
    color: #ffffff;
    transform-origin: 50% 100%;
    transform: rotateX(18deg) translateY(45vh) scale(1.0);
    padding: 0 2vw;
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(73, 229, 172, 0.15),
        0 0 60px rgba(73, 229, 172, 0.08);
}

.scroll-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.6rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 35px;
    color: #49E5AC;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(73, 229, 172, 0.4),
        0 0 50px rgba(73, 229, 172, 0.2);
}

.scroll-text p {
    margin-bottom: 28px;
}

.scroll-cta {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 1.8vw + 0.3rem, 1.8rem);
    font-weight: 400;
    color: #49E5AC;
    margin-top: 35px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(73, 229, 172, 0.4),
        0 0 40px rgba(73, 229, 172, 0.2);
}

/* ===== Floating Planets Overlay ===== */
.scroll-planets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: visible;
}

.scroll-planets .planet {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    perspective: 800px;
    transform-style: preserve-3d;
    pointer-events: auto;
    will-change: transform;
    transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
}

.scroll-planets .planet:hover {
    transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1.15) translateZ(20px);
}

/* Planet positions — clustered in lower area where text is visible */
.scroll-planets .planet[data-id="homepage"] {
    left: 5%;
    top: 58%;
}

.scroll-planets .planet[data-id="resources"] {
    right: 6%;
    top: 65%;
    left: auto;
}

.scroll-planets .planet[data-id="nft-helper"] {
    left: 42%;
    top: 80%;
}

/* ===== Floating Stickers ===== */
.floating-stickers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    overflow: visible;
}

.floating-stickers .sticker {
    position: absolute;
    opacity: 0.75;
    filter: drop-shadow(0 0 8px rgba(73, 229, 172, 0.3)) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) rotate(var(--parallax-rot, 0deg));
    will-change: transform;
    transition: opacity 0.3s ease;
}

.floating-stickers .sticker:hover {
    opacity: 1;
}

.planet-visual {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(73, 229, 172, 0.3);
    aspect-ratio: 1 / 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.scroll-planets .planet.large .planet-visual {
    width: 120px;
    height: 120px;
}

.scroll-planets .planet.medium .planet-visual {
    width: 100px;
    height: 100px;
}

.scroll-planets .planet.small .planet-visual {
    width: 80px;
    height: 80px;
}

/* Planet images */
.planet[data-id="homepage"] .planet-visual {
    background-image: url('images/KASMOHEADPNG 72dpi.webp');
    background-size: 110%;
    box-shadow: 
        0 0 40px rgba(73, 229, 172, 0.6),
        0 0 80px rgba(73, 229, 172, 0.4),
        inset -20px -20px 50px rgba(0, 0, 0, 0.3);
}






.planet[data-id="resources"] .planet-visual {
    background-image: url('images/KASMOBTC.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 0 40px rgba(63, 139, 119, 0.6),
        0 0 80px rgba(63, 139, 119, 0.4),
        inset -20px -20px 50px rgba(0, 0, 0, 0.3);
}

.planet[data-id="nft-helper"] .planet-visual {
    background-image: url('images/preview-16 (1).webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 
        0 0 40px rgba(255, 107, 157, 0.6),
        0 0 80px rgba(255, 107, 157, 0.4),
        inset -20px -20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.planet:hover {
    transform: scale(1.15) translateZ(20px);
    z-index: 10;
}

.planet:hover .planet-visual {
    animation-play-state: paused;
    border-color: rgba(73, 229, 172, 0.8);
    box-shadow: 
        0 0 60px rgba(73, 229, 172, 0.8),
        0 0 120px rgba(73, 229, 172, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset -20px -20px 50px rgba(0, 0, 0, 0.3);
}

/* Planet glow ring on hover */
.planet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    border: 2px solid transparent;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.planet:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: rgba(73, 229, 172, 0.4);
    opacity: 1;
    box-shadow: 0 0 30px rgba(73, 229, 172, 0.3);
}

/* Planet name glow on hover */
.planet:hover .planet-name {
    text-shadow:
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(73, 229, 172, 0.8);
    -webkit-text-stroke: 1px #ffffff;
}

.planet-name {
    margin-top: -35px;
    font-family: 'Bangers', cursive, sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
    -webkit-text-stroke: 0.8px #ffffff;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 200px;
    line-height: 1.3;
    position: relative;
    z-index: 10;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: rgba(73, 229, 172, 0.08);
    border: 2px solid rgba(73, 229, 172, 0.25);
    border-radius: 50px;
    color: #49E5AC;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Shimmer effect on hover */
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(73, 229, 172, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(73, 229, 172, 0.2);
    border-color: #49E5AC;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(73, 229, 172, 0.4),
        0 0 0 1px rgba(73, 229, 172, 0.2);
}

.social-link svg {
    width: 28px;
    height: 28px;
    fill: #49E5AC;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(73, 229, 172, 0.6));
}

.social-link.giveaway-bot {
    background: rgba(73, 229, 172, 0.15);
    border: 2px solid #49E5AC;
    box-shadow: 0 0 15px rgba(73, 229, 172, 0.3);
}

.social-link.giveaway-bot:hover {
    background: rgba(73, 229, 172, 0.25);
    box-shadow: 0 5px 25px rgba(73, 229, 172, 0.5);
}

.badge-small {
    font-size: 0.65rem;
    background: linear-gradient(135deg, #49E5AC 0%, #70C8A5 100%);
    color: #0a0a0f;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 6px;
}

/* Orbit animation for each planet */
.planet:nth-child(1) {
    animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, float 6s ease-in-out infinite;
    animation-delay: 0.4s, 1.1s;
}

.planet:nth-child(2) {
    animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, float 8s ease-in-out infinite;
    animation-delay: 0.55s, 1.25s;
}

.planet:nth-child(3) {
    animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, float 7s ease-in-out infinite;
    animation-delay: 0.7s, 1.4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #70C8A5;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-main {
    font-size: 1rem;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(112, 200, 165, 0.8);
    margin-bottom: 20px;
}

.legal-disclaimer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(73, 229, 172, 0.2);
}

.disclaimer-details {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.disclaimer-summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: #49E5AC;
    text-align: center;
    padding: 10px;
    background: rgba(73, 229, 172, 0.1);
    border-radius: 8px;
    user-select: none;
    transition: all 0.3s ease;
}

.disclaimer-summary:hover {
    background: rgba(73, 229, 172, 0.2);
}

.disclaimer-content {
    margin-top: 15px;
    padding: 20px;
    background: rgba(10, 10, 15, 0.5);
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.disclaimer-content p {
    margin-bottom: 12px;
}

.disclaimer-content p:last-child {
    margin-bottom: 0;
}

.disclaimer-content strong {
    color: #49E5AC;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 70px 15px 20px 20px;
    }

    .header-content {
        flex-direction: row;
        gap: 0;
    }

    .mascot-container {
        top: -35px;
        left: -15px;
    }

    .kasmo-mascot {
        width: 80px;
        height: 80px;
    }

    .header-text {
        padding-left: 55px;
    }

    .title {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .scroll-planets .planet {
        width: 90px;
        height: 90px;
    }

    .scroll-planets .planet[data-id="homepage"] {
        left: 2%;
        top: 55%;
    }

    .scroll-planets .planet[data-id="resources"] {
        right: 3%;
        top: 62%;
        left: auto;
    }

    .scroll-planets .planet[data-id="nft-helper"] {
        left: 38%;
        top: 78%;
    }

    .planet-visual {
        width: 90px;
        height: 90px;
    }

    .scroll-planets .planet.large .planet-visual {
        width: 90px;
        height: 90px;
    }

    .scroll-planets .planet.medium .planet-visual {
        width: 75px;
        height: 75px;
    }

    .scroll-planets .planet.small .planet-visual {
        width: 60px;
        height: 60px;
    }

    .floating-stickers .sticker {
        opacity: 0.6;
    }

    .planet-name {
        font-family: 'Bangers', cursive, sans-serif;
        font-size: 0.95rem;
        font-weight: 400;
        letter-spacing: 0.1em;
        margin-top: -25px;
        -webkit-text-stroke: 0.6px #ffffff;
    }


    .scroll-text {
        width: 94vw;
        font-size: clamp(1.15rem, 2.5vw + 0.5rem, 1.6rem);
        line-height: 1.7;
        transform: rotateX(16deg) translateY(40vh) scale(1.0);
        padding: 0 2vw;
    }
    .scroll-title {
        font-size: clamp(1.2rem, 3vw + 0.3rem, 1.8rem);
        letter-spacing: 0.1em;
    }

    .disclaimer-content {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .kasmo-mascot {
        width: 70px;
        height: 70px;
    }

    .header-text {
        padding-left: 40px;
    }

    .title {
        font-size: 1.8rem;
    }

    .scroll-planets .planet {
        width: 70px;
        height: 70px;
    }

    .scroll-planets .planet.large .planet-visual {
        width: 70px;
        height: 70px;
    }

    .scroll-planets .planet.medium .planet-visual {
        width: 58px;
        height: 58px;
    }

}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-bg {
        transform: none !important;
    }
    
    .stars, .stars2, .stars3 {
        animation: none;
    }
    
    .particles {
        display: none;
    }
    
    .animate-on-load {
        opacity: 1;
    }
    
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
    .scroll-text {
        transform: none;
        opacity: 1 !important;
    }
    .scroll-narrative {
        min-height: auto;
        padding: 60px 20px;
    }
    .scroll-perspective {
        position: relative;
        height: auto;
    }
    .floating-stickers .sticker {
        transform: none !important;
        opacity: 0.5;
    }
}

/* ===== Mobile-Specific Tweaks ===== */
@media (max-width: 768px) {
    /* Adjust speech bubble for mobile */
    .speech-bubble {
        position: absolute;
        top: 10px;
        right: -80px;
        transform: none;
        font-size: 0.6rem;
        padding: 4px 7px;
    }
    
    .speech-bubble::before,
    .speech-bubble::after {
        display: none;
    }
    
    /* Simplify particles on mobile */
    .particles .particle:nth-child(n+7) {
        display: none;
    }
    
    /* Reduce ambient effects on mobile */
    .ambient-glow {
        width: 300px;
        height: 300px;
    }
    
    /* Disable 3D tilt on touch devices */
    .planet-visual {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .speech-bubble {
        top: 8px;
        right: -60px;
        font-size: 0.55rem;
        padding: 3px 5px;
    }
    
    /* Further simplify on small screens */
    .particles .particle:nth-child(n+4) {
        display: none;
    }
    
    .nebula-glow,
    .ambient-glow {
        display: none;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work on touch */
    .planet:hover {
        transform: scale(1);
    }
    
    .planet:active {
        transform: scale(0.95);
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .social-link:active {
        transform: scale(0.98);
        background: rgba(73, 229, 172, 0.2);
    }
}

/* ===== Legacy Badge ===== */
.legacy-badge {
    position: absolute;
    top: 5px;
    right: -5px;
    background: linear-gradient(135deg, #8B9A8B 0%, #A8B8A8 100%);
    color: #0a0a0f;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Bangers', cursive, sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(139, 154, 139, 0.5);
    z-index: 20;
    pointer-events: none;
}

/* ===== Soon Badge ===== */
.soon-badge {
    position: absolute;
    top: 5px;
    right: -5px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FAB 100%);
    color: #0a0a0f;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Bangers', cursive, sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.5);
    z-index: 20;
    pointer-events: none;
}

/* ===== Base Modal Styles ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #0f1f1f 0%, #0a0a0f 100%);
    border: 2px solid rgba(73, 229, 172, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow:
        0 0 60px rgba(73, 229, 172, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #fff;
    background: rgba(73, 229, 172, 0.15);
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #49E5AC 0%, #70C8A5 50%, #3F8B77 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Donate Modal Styles ===== */
.donate-modal {
    max-width: 500px;
    text-align: center;
}

.donate-message {
    margin-bottom: 25px;
}

.donate-message p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.donate-message strong {
    color: #49E5AC;
}

.donate-coffee-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(73, 229, 172, 0.2) 0%, rgba(73, 229, 172, 0.1) 100%);
    border: 2px solid rgba(73, 229, 172, 0.5);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 25px;
}

.donate-coffee-link:hover {
    background: linear-gradient(135deg, rgba(73, 229, 172, 0.3) 0%, rgba(73, 229, 172, 0.2) 100%);
    border-color: #49E5AC;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(73, 229, 172, 0.3);
}

.coffee-icon {
    font-size: 1.5rem;
}

.donate-coffee-link strong {
    color: #49E5AC;
}

.donate-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.donate-divider::before,
.donate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(73, 229, 172, 0.3);
}

.donate-divider span {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.donate-wallet {
    margin-bottom: 15px;
    text-align: left;
}

.wallet-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #49E5AC;
    margin-bottom: 8px;
}

.wallet-address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(73, 229, 172, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
}

.wallet-address-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(73, 229, 172, 0.15);
    border: 1px solid rgba(73, 229, 172, 0.4);
    border-radius: 6px;
    color: #49E5AC;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(73, 229, 172, 0.25);
    border-color: #49E5AC;
}

.copy-btn.copied {
    background: rgba(73, 229, 172, 0.3);
    color: #fff;
}

.donate-thanks {
    margin-top: 25px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Resources / Trading Links ===== */
.resources-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.resources-disclaimer p {
    color: rgba(255, 235, 167, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.trading-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.link-section h3 {
    color: #49E5AC;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.trading-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(73, 229, 172, 0.1);
    border: 1px solid rgba(73, 229, 172, 0.3);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
}

.trading-link:hover {
    background: rgba(73, 229, 172, 0.2);
    border-color: #49E5AC;
    transform: translateX(5px);
}

.trading-link.best-option {
    background: rgba(73, 229, 172, 0.2);
    border: 2px solid #49E5AC;
    box-shadow: 0 0 20px rgba(73, 229, 172, 0.3);
}

.trading-link.best-option:hover {
    background: rgba(73, 229, 172, 0.3);
    box-shadow: 0 0 30px rgba(73, 229, 172, 0.5);
}

.badge {
    margin-left: auto;
    background: linear-gradient(135deg, #49E5AC 0%, #70C8A5 100%);
    color: #0a0a0f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(73, 229, 172, 0.4);
}

.link-icon {
    font-size: 1.3rem;
    min-width: 24px;
}

/* ===== Modal Responsive ===== */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .trading-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== Airdrop Discontinued Banner ===== */
.airdrop-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(238, 90, 111, 0.4);
    animation: fadeSlideDown 0.5s ease-out;
}

.airdrop-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}

.airdrop-banner-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.airdrop-banner-text {
    font-weight: 500;
}

.airdrop-banner-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.airdrop-banner-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

.airdrop-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    margin-left: 8px;
}

.airdrop-banner-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 1.5rem;
    }

    .trading-link {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .airdrop-banner-content {
        font-size: 0.85rem;
        gap: 8px;
    }

    .airdrop-banner-close {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
}
