/* --------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: linear-gradient(160deg, #0c0f3a 0%, #1b1e6b 40%, #5b1fb0 100%);
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Layout container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 100px 0;
}

#settings h2,
#tokenomics h2,
#faq h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* --------------------------------------------------
   GLASS NAVBAR
-------------------------------------------------- */
.glass-nav {
    width: 100%;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.glass-nav .logo {
    font-size: 30px;
    font-weight: 800;
}

.glass-nav i {
    font-size: 32px;
    color: white;
}

/* Offset content below fixed navbar */
#home {
    padding-top: 160px;
}

/* --------------------------------------------------
   ANIMATED BACKGROUND (Wave Overlay)
-------------------------------------------------- */
.bg-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 130%;
    height: 130%;
    pointer-events: none;
    z-index: -1;

    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 45%);

    animation: bgMove 12s infinite alternate ease-in-out;
    opacity: 0.4;
}

@keyframes bgMove {
    0% {
        transform: translate(-30px, -30px) scale(1.1);
    }
    100% {
        transform: translate(30px, 30px) scale(1.08);
    }
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 600px;
}

.home-text {
    max-width: 600px;
}

.home-text h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.0;
}

.home-text p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Meme Frame */
.meme-frame {
    width: 420px;
    height: 420px;
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.7);
    box-shadow: 0 0 35px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
}

.meme-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------
   BUY BUTTON (placeholder pre-launch)
-------------------------------------------------- */
#buy-button {
    width: fit-content;
    margin: 30px auto;
    padding: 14px 30px;

    border-radius: 14px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
    text-align: center;
    font-size: 20px;
    font-weight: 600;

    border: 2px solid rgba(255,255,255,0.25);
    color: white;

    animation: glowPulse 3s infinite ease-in-out;
    cursor: default;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 22px rgba(255,255,255,0.5); }
    100% { box-shadow: 0 0 10px rgba(255,255,255,0.3); }
}

/* --------------------------------------------------
   GRID CARDS
-------------------------------------------------- */
.card-grid,
.token-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.card,
.token-card {
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 30px 40px;
    min-width: 240px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: 0.25s ease;
    cursor: pointer;
}

#settings, #tokenomics {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

#settings .card-grid, 
#tokenomics .token-grid {
    margin-top: 20px;
}

/* Neon hover */
.neon-hover:hover {
    transform: translateY(-6px);
    border-color: white;
    box-shadow: 0 0 18px rgba(255,255,255,0.55);
}

/* --------------------------------------------------
   FUNNY STATS
-------------------------------------------------- */
#stats .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.stat {
    padding: 14px 22px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 18px;
    backdrop-filter: blur(4px);
}

/* --------------------------------------------------
   GALLERY
-------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.25s;
    border: 2px solid rgba(255,255,255,0.2);
}

.gallery-grid img:hover {
    transform: scale(1.03);
    border-color: white;
}

/* --------------------------------------------------
   Stats
-------------------------------------------------- */

#stats h2 {
    text-align: center;
    margin-bottom: 25px;
}

#stats .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.stat {
    padding: 14px 26px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 19px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: 0.25s ease;
    cursor: pointer;
}

/* FEATURES SECTION */
#features h2 {
    text-align: center;
    margin-bottom: 30px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.feature-card {
    padding: 30px;
    width: 260px;
    border-radius: 18px;

    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);

    text-align: center;
    transition: 0.25s ease;
    cursor: pointer;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    opacity: 0.85;
    line-height: 1.4;
}

/* TESTIMONIAL MARQUEE */
#testimonials h2 {
    text-align: center;
    margin-bottom: 30px;
}

.testimonial-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: marqueeScroll 22s linear infinite;
}

.testimonial-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    border-radius: 16px;

    padding: 22px 26px;
    min-width: 280px;
    max-width: 330px;
    white-space: normal;
    opacity: 0.9;

    font-size: 18px;
    text-align: left;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card span {
    margin-top: 10px;
    font-size: 15px;
    opacity: 0.7;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* RIZZ METER */
#rizz h2 {
    text-align: center;
    margin-bottom: 25px;
}

.rizz-box {
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    max-width: 600px;
    margin: auto;
    padding: 25px 30px;
    text-align: center;
}

#rizz-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    outline: none;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#rizz-slider::-webkit-slider-runnable-track {
    height: 10px;
}

#rizz-slider::-moz-range-track {
    height: 10px;
    background: transparent;
}

/* Progress fill */
#rizz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    margin-top: -4px;
    box-shadow: 
        -2000px 0 0 2000px rgba(255,255,255,0.45); /* fills left side */
    transition: 0.25s ease;
}

/* Firefox thumb */
#rizz-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    border: none;
    transition: 0.25s ease;
}

/* Hover glow */
#rizz-slider::-webkit-slider-thumb:hover {
    box-shadow: 
        -2000px 0 0 2000px rgba(255,255,255,0.6),
        0 0 12px white;
}

#rizz-slider::-moz-range-thumb:hover {
    box-shadow: 0 0 12px white;
}

/* Active (dragging) */
#rizz-slider:active::-webkit-slider-thumb {
    transform: scale(1.15);
}

#rizz-slider:active::-moz-range-thumb {
    transform: scale(1.15);
}

#rizz-status {
    font-size: 18px;
    opacity: 0.9;
}

/* QUOTE GENERATOR */
#quotes h2 {
    text-align: center;
    margin-bottom: 25px;
}

.quote-box {
    padding: 30px 40px;
    max-width: 700px;
    margin: auto;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    text-align: center;
}

#quote-text {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.quote-btn {
    padding: 12px 26px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    color: white;
    background: rgba(255,255,255,0.14);
    border: 2px solid rgba(255,255,255,0.35);
    cursor: pointer;
    transition: 0.25s ease;
}

.quote-btn:hover {
    transform: scale(1.07);
    border-color: white;
    box-shadow: 0 0 18px rgba(255,255,255,0.55);
}

/* GALLERY SECTION */
#gallery h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* SINGLE IMAGE GALLERY */

#single-gallery-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: opacity, transform;
}

#single-gallery-img {
    width: 420px;
    height: 420px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease; /* no opacity here */
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Animation: slide out left */
#single-gallery-wrapper.gallery-slide-out {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
}

/* Animation: slide in right */
#single-gallery-wrapper.gallery-slide-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

#gallery-hint {
    text-align: center;
    margin-top: 12px;
    opacity: 0.7;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

#gallery-hint:hover {
    opacity: 1;
}

/* Switch animation: scale + fade */
.gallery-switch-out {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-switch-in {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Tilt effect */
#single-gallery-img:hover {
    box-shadow: 0 0 25px rgba(255,255,255,0.35);
}


/* --------------------------------------------------
   FAQ
-------------------------------------------------- */
.faq-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 20px 25px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}

.faq-item:hover {
    background: rgba(255,255,255,0.09);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
}

.faq-answer {
    margin-top: 12px;
    display: none;
    opacity: 0.85;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
    text-align: center;
    padding: 50px 0;
    margin-top: 50px;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin-bottom: 20px;
}

footer i {
    color: white;
    font-size: 36px;
    transition: 0.25s;
}

footer i:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* SECTION DIVIDER */
.section-divider {
    width: 100%;
    text-align: center;
    margin: 0px 0 40px 0;
    opacity: 0.5;
    animation: fadeIn 1s ease;
}

.section-divider::before {
    content: "✦ ✦ ✦";
    letter-spacing: 20px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
}

/* SUBTLE BACKGROUND NOISE */
.noise-overlay {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    z-index: 2;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mN0dXf3HwAE8ALgYTSrsQAAAABJRU5ErkJggg==");
    background-repeat: repeat;
}

/* PARTICLE BACKGROUND */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

/* FLOATING CTA BUTTON */
#cta-floating {
    position: fixed;
    bottom: 26px;
    right: 26px;
    padding: 14px 22px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    outline: none;
    color: white;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 1000;

    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 16px rgba(255,255,255,0.4);

    transition: 0.25s ease;
}

#cta-floating:hover {
    transform: scale(1.07);
    box-shadow: 0 0 22px rgba(255,255,255,0.6);
    border-color: white;
}

/* --------------------------------------------------
   SCROLL ANIMATIONS
-------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    transform: translateY(40px);
}

.slide-up.visible {
    transform: translateY(0);
}

#alt-text {
    border-right: 2px solid white;
    padding-right: 5px;
    animation: caretBlink 0.8s infinite;
}

@keyframes caretBlink {
    0%, 100% { border-color: transparent; }
    50% { border-color: white; }
}

#alt-text {
    display: inline-block;
    position: relative;
}

#alt-text.glitchy {
    animation: glitchJump 0.2s infinite alternate;
}

@keyframes glitchJump {
    0% { transform: translateX(0px); }
    100% { transform: translateX(1px); }
}

/* ==================================================
   PRELOADER
================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0c0f3a, #1b1e6b, #5b1fb0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.loader-ring {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 20px;
    opacity: 0.85;
    letter-spacing: 1px;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Preloader message animation */
#preloader-line {
    opacity: 0;
    animation: fadeInOut 2.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 1000px) {
    #home {
        flex-direction: column;
        text-align: center;
    }

    .meme-frame {
        margin-top: 40px;
        width: 330px;
        height: 330px;
    }

    .home-text h1 {
        font-size: 60px;
    }

    .card,
    .token-card {
        min-width: 200px;
    }
}
