/* --- SCALING & GENERAL SETUP --- */
:root {
    --canvas-width: 1920; /* The design resolution width */
    --cyber-yellow: #FFD700;
    --electric-purple: #8A2BE2;
    --carbon-black: #0E0E0E;
    --neon-mint: #00FFA3;
    --glitch-red: #FF3131;
    --font-headline: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-pixel: 'VT323', monospace;
    color-scheme: dark;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background: var(--carbon-black); /* Match site background */
    overflow: hidden; /* CRITICAL: Disables the main body scrollbar */
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

/* --- Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--carbon-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out;
}

#loading-screen img {
    width: 200px; /* Or adjust as needed */
    max-width: 80%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); }
    70% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}


/* This is the viewport-sized "window" that contains the scrollbar */
#scaling-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--carbon-black);
}

/* This wrapper's height is set by JS to create the correct scrollable area */
#scroll-wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    /* Height is set dynamically by JavaScript */
}

/* This is your actual content that gets positioned and scaled */
#content-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--canvas-width) * 1px);
    background-color: var(--carbon-black);
    transform-origin: top left;
    /* transform: scale() is set by JavaScript */
}

/* --- General Element Styling --- */
* { box-sizing: border-box; }
main { 
    font-family: var(--font-body); 
    font-weight: 400; 
    font-size: 18px; 
    line-height: 1.7; 
    padding-top: 90px;
    color: #FFFFFF;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }

/* --- Scroll & Keyframe Animations --- */
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes heroFloat { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes scroll-paws { 0% { background-position: 0 0; } 100% { background-position: -500px 500px; } }

/* --- Header --- */
.header { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    padding: 25px 0;
    background-color: transparent; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}
.header--scrolled { 
    background-color: rgba(14, 14, 14, 0.85); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.header__container { 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    position: relative; 
}

.header__logo { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none;
    flex: 0 0 auto;
}
.header__logo img { max-height: 60px; }
.header__logo-text { 
    font-family: var(--font-headline); 
    font-size: 2.5rem; 
    color: #FFFFFF; 
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* --- Buttons & Common Elements --- */
.btn-cta { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-family: var(--font-headline); 
    font-size: 1.5rem; 
    padding: 12px 28px; 
    border-radius: 12px; 
    background-color: transparent;
    color: var(--neon-mint); 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    border: 2px solid var(--neon-mint); 
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.4), inset 0 0 5px rgba(0, 255, 163, 0.3);
    transition: all 0.2s ease; 
}
.btn-cta:hover { 
    background-color: var(--neon-mint);
    color: var(--carbon-black);
    transform: translateY(-2px); 
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.7), inset 0 0 8px rgba(0, 255, 163, 0.5); 
}
.btn-icon { width: 20px; height: 20px; margin-right: 10px; }
.icon-white { filter: brightness(0) invert(1); }
.section-title { 
    font-family: var(--font-headline); 
    font-size: 5rem; 
    font-weight: 400; 
    text-align: center; 
    margin-bottom: 60px; 
    color: #FFFFFF; 
}
.section-title span { color: var(--cyber-yellow); }

/* --- Hero Section --- */
.hero { 
    position: relative; 
    padding: 80px 0; 
    text-align: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 1080px; 
    overflow: hidden;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.4);
}

#particles-js { 
    display: none; 
}
.hero__container { 
    position: relative; 
    z-index: 2; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    margin-top: -100px;
}
.hero__image-container { 
    width: 400px; 
    height: 400px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    animation: heroFloat 7s ease-in-out infinite;
}
.hero__image { max-width: 100%; height: auto; }
.hero__content { 
    margin-top: 10px;
}
.hero__title { 
    font-family: var(--font-headline); 
    font-size: 5rem;
    color: var(--cyber-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    line-height: 1.2; 
}
.hero__description { 
    font-size: 1.5rem;
    font-weight: 400; 
    color: #EAEAEA; 
    margin: 25px auto 45px auto;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); 
}
.hero__cta-group { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

/* --- About Section --- */
.about { 
    padding: 100px 0; 
    background: var(--carbon-black) url('https://www.transparenttextures.com/patterns/cubes.png');
}
.about__grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    grid-template-areas: "card1 image card2" "card3 image card4"; 
    gap: 30px; 
    align-items: stretch; 
    max-width: 100%; 
}
.about__card { 
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--electric-purple);
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}
.about__card:nth-child(1) { grid-area: card1; }
.about__card--center-image { 
    grid-area: image; 
    background: none; 
    border: none; 
    box-shadow: none; 
    padding: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.about__center-image { animation: float 6s ease-in-out infinite; }
.about__card:nth-child(3) { grid-area: card2; }
.about__card:nth-child(4) { grid-area: card3; }
.about__card:nth-child(5) { grid-area: card4; }
.about__card-title { 
    font-family: var(--font-headline); 
    font-size: 2.5rem; 
    color: var(--cyber-yellow); 
    margin-bottom: 15px; 
}
.about__card--large-num { 
    background-color: var(--electric-purple); 
    color: var(--cyber-yellow); 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.about__card-number { 
    font-family: var(--font-headline); 
    font-size: 8rem; 
    font-weight: 400; 
    line-height: 0.8; 
    color: rgba(255, 215, 0, 0.8);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.meme-index-font {
    font-family: var(--font-pixel);
    font-size: 9rem;
}

/* --- Articles Section --- */
.articles {
    padding: 100px 0;
    background-color: var(--carbon-black);
    position: relative;
}
.articles .section-title span {
    color: var(--neon-mint);
}
.articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.article-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: rgba(138, 43, 226, 0.05);
    border: 1px solid var(--electric-purple);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: #FFFFFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
}
.article-card__logo-container {
    height: 50px;
    margin-bottom: 20px;
}
.article-card__logo {
    max-height: 100%;
    width: 100%; /* CHANGED */
    object-fit: contain; /* ADDED */
    object-position: left; /* ADDED */
}
.article-card__title {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    color: var(--cyber-yellow);
    line-height: 1.3;
    margin-bottom: 15px;
}
.article-card__description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #CCCCCC;
    line-height: 1.6;
}
.article-card__read-more {
    margin-top: auto; /* Pushes to the bottom */
    padding-top: 20px;
    font-weight: 700;
    color: var(--neon-mint);
    text-transform: uppercase;
    font-size: 1rem;
}


/* --- Tokenomics Section --- */
.tokenomics { 
    padding: 100px 0; 
    position: relative; 
    background-color: var(--carbon-black); 
    color: #FFFFFF; 
    overflow: hidden; 
}
.tokenomics .container { position: relative; z-index: 1; }
.tokenomics .section-title { color: #FFFFFF; }
.tokenomics .section-title span { color: var(--cyber-yellow); }
.tokenomics__wrapper { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
    background: rgba(138, 43, 226, 0.1); 
    border: 1px solid var(--electric-purple); 
    border-radius: 20px; 
    padding: 40px; 
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.2); 
}
.tokenomics__image-container { 
    flex: 0 0 40%; 
    max-width: 400px; 
    margin: 0 auto; 
}
.tokenomics__content { 
    flex: 1; 
    width: 100%; 
}
.tokenomics__supply-amount { 
    font-family: var(--font-headline); 
    font-size: 3.5rem; 
    color: var(--cyber-yellow); 
    line-height: 1; 
    text-shadow: 0 0 8px var(--cyber-yellow);
}
.tokenomics__supply-label { 
    font-family: var(--font-headline); 
    text-transform: uppercase; 
    font-weight: 400; 
    margin-bottom: 20px; 
    font-size: 1.5rem; 
}
.tokenomics__contract { 
    display: flex; 
    align-items: center; 
    background-color: var(--carbon-black); 
    border: 1px solid var(--neon-mint); 
    border-radius: 12px; 
    padding: 4px; 
    margin-bottom: 30px; 
    font-family: var(--font-body); 
}
#contract-address { 
    flex-grow: 1; 
    font-size: 1rem; 
    font-weight: 500; 
    color: #FFFFFF; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    padding: 0 15px; 
}
.btn-copy { 
    flex-shrink: 0; 
    background-color: var(--neon-mint); 
    color: var(--carbon-black); 
    border: none;
    padding: 10px 25px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 1.1rem; 
    cursor: pointer; 
}
.tokenomics__list { 
    list-style: none; 
    font-family: var(--font-headline);
    padding: 0;
}
.tokenomics__item { 
    padding: 20px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.tokenomics__item:first-child { 
    border-top: 1px solid rgba(255,255,255,0.1); 
}
.tokenomics__item-title { 
    font-size: 2rem; 
}
.tokenomics__item-value { 
    font-family: var(--font-body); 
    font-size: 1.8rem; 
    font-weight: 700; 
}
.ownership-color { color: var(--neon-mint); text-shadow: 0 0 5px var(--neon-mint); }
.liquidity-color { color: var(--neon-mint); text-shadow: 0 0 5px var(--neon-mint); } 

/* --- Footer --- */
.footer { 
    padding: 40px 0; 
    background-color: var(--carbon-black); 
    color: #FFFFFF; 
    position: relative; 
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
}
.footer__wrapper { 
    position: relative; 
    z-index: 1; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.footer__copyright { 
    font-size: 1rem; 
    color: #AAAAAA;
    text-align: left;
}
.footer__socials { 
    display: flex; 
    gap: 20px; 
    justify-content: flex-end;
}
.footer__socials img { 
    height: 32px; 
    width: auto; 
    transition: transform 0.2s ease, filter 0.2s ease; 
}
.footer__socials a:hover img { 
    transform: scale(1.15); 
    filter: drop-shadow(0 0 8px var(--neon-mint)); 
}
.footer__email {
    text-align: center;
}
.footer__email a {
    font-family: var(--font-body);
    color: #AAAAAA;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer__email a:hover {
    color: var(--neon-mint);
    text-shadow: 0 0 5px var(--neon-mint);
}


/* --- Responsive & Mobile Optimizations --- */
@media (max-width: 992px) {
    .articles__grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile scaling fixes */
@media (max-width: 768px) {
    html, body {
        background-color: var(--carbon-black);
        width: 100vw;
        overflow-x: hidden;
    }
    
    #scaling-container {
        background-color: var(--carbon-black);
        width: 100vw;
        overflow-x: hidden;
    }
    
    #scroll-wrapper {
        width: 100vw;
        overflow-x: hidden;
    }
    
    #content-canvas {
        width: 1920px !important;
        min-width: 1920px !important;
        background-color: var(--carbon-black);
        left: 0 !important;
        right: auto !important;
    }
    
    /* Ensure sections fill properly */
    .hero, .about, .articles, .tokenomics, .footer {
        width: 100%;
        min-width: 1920px;
    }

    .footer__wrapper {
        flex-direction: column;
        gap: 25px;
    }
}