:root {
    --royal-purple: #8B0000; /* Blood Red */
    --gold: #39FF14; /* Toxic Green */
    --text-color: #FFFFFF; /* White */
    --background: #000000; /* Black */
    --silver: #CCCCCC; /* Neutral Gray */
    --shimmer-white: #FFFFFF; /* White for shimmer */
    --shimmer-light: #E0E0E0; /* Light gray for shimmer */
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; color: inherit; }

#stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background-color: var(--royal-purple); 
    z-index: 1000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0 6px; 
    height: 80px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    max-width: 1200px; 
    position: relative; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}

.nav-links a { 
    font-family: 'Nosifer', sans-serif; 
    font-weight: normal; 
    transition: color 0.3s, transform 0.3s; 
    text-transform: uppercase; 
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5); 
}

.nav-links li { margin: 0 15px; }

.nav-links a:hover { 
    color: var(--gold); 
    transform: scale(1.1); 
}

.shill-text { 
    font-family: 'Nosifer', sans-serif; 
    font-size: 2.2em; 
    color: white; 
    font-weight: normal; 
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5); 
}

.logo { 
    flex-shrink: 0; 
    position: relative; 
    transform: translateY(20px); 
    padding: 10px; 
    cursor: pointer; 
}

.logo-flip {
    position: relative;
    width: 100px;
    height: 100px;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    pointer-events: auto;
}

.logo-front, .logo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
}

.logo-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.logo-back {
    transform: rotateY(180deg);
}

.logo:hover .logo-flip,
.logo.flipped .logo-flip {
    transform: rotateY(180deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    left: 10px;
}

.hamburger span {
    height: 3px;
    background-color: var(--text-color);
    width: 100%;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--royal-purple);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-family: 'Nosifer', sans-serif;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5);
}

.mobile-menu a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

section { padding: 40px 20px 40px; text-align: center; }

.section-title { 
    font-family: 'Nosifer', sans-serif; 
    font-size: 1.8em; 
    background: linear-gradient(45deg, var(--shimmer-white) 0%, var(--shimmer-light) 50%, var(--shimmer-white) 100%);
    background-size: 200% 200%;
    color: black;
    padding: 7px 21px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 40px;
    animation: shimmer 2s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5);
    border: none;
}

.section-title:hover { transform: scale(1.05); }

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

#hero { 
    position: relative; 
    height: 100vh; 
    background-image: url('/desktophero.png'); 
    background-size: cover; 
    width: 85%; 
    max-width: 1800px; 
    margin: 120px auto 0; 
    border-radius: 30px; 
    overflow: hidden; 
    overflow-x: hidden; 
    background-position: center; 
    padding: 0; 
    animation: heroFade 30s infinite; 
    will-change: background-image, opacity; 
}

#hero::before {
    content: '';
    position: absolute;
    top: -9999px;
    left: -9999px;
    background-image: url('/desktophero.png');
    visibility: hidden;
}

@media (max-width: 768px) {
    #hero {
        height: 100vh;
        background-position: center;
        background-size: cover;
        width: 100%;
        max-width: 100%;
        margin: 60px auto 0;
        border-radius: 10px;
        animation: heroFadeMobile 30s infinite ease-in-out;
        will-will-change: background-image, opacity;
    }
    #hero::before {
        content: '';
        position: absolute;
        top: -9999px;
        left: -9999px;
        background-image: url('/mobilehero.png');
        visibility: hidden;
    }
    .left-links, .right-links { display: none; }
    .hamburger { display: flex; }
    .logo { margin: 0 auto; transform: translateY(10px); }
    .cta-buttons { flex-direction: column; gap: 10px; }
    section { padding: 70px 10px 20px; }
    .images-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, auto); }
    .section-title { font-size: 1.5em; padding: 5px 15px; }
    .overview { font-size: 1.2em; }
    #about .section-title, #images .section-title { margin-top: -10px; }
    .video-placeholder { height: 30vh; margin-top: 10px; }
    .shill-text { font-size: 1.6em; font-weight: normal; }
}

.cta-container { 
    position: absolute; 
    bottom: 20%; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    display: flex; 
    justify-content: center; 
}

.cta-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.cta-button { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--gold);
    color: black; 
    padding: 10px 20px; 
    font-weight: bold; 
    border-radius: 5px; 
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    position: relative;
    animation: active-shimmer 1.5s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(57, 255, 20, 0.8);
    border-radius: 7px;
    box-shadow: 0 0 0 rgba(57, 255, 20, 0);
    z-index: -1;
}

.cta-button:hover { 
    transform: translateY(-5px); 
    background-color: #4CFF33;
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.7);
}

.cta-button:hover::before {
    animation: border-glow 0.8s ease-in-out infinite;
}

#about { background-color: transparent; }

#about .section-title { margin-top: -5px; }

.overview { 
    font-family: 'Poppins', sans-serif; 
    font-size: 1.5em; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 20px; 
    line-height: 1.6; 
    color: var(--text-color);
    background-color: rgba(139, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}

.about-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-top: 20px; 
}

.about-card { 
    background-color: var(--royal-purple);
    padding: 20px; 
    border-radius: 10px; 
    transition: transform 0.3s, box-shadow 0.3s; 
    color: var(--text-color);
}

.about-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(57, 255, 20, 0.3); 
}

.about-card img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    aspect-ratio: 3/2;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: filter 0.3s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    overflow: hidden;
    clip-path: inset(0 0 0 0 round 10px);
}

.about-card img:hover { filter: brightness(1.2); }

.about-card p { font-family: 'Poppins', sans-serif; }

.about-card h3 { font-family: 'Nosifer', sans-serif; font-weight: normal; text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5); }

#legend {
    background-color: transparent;
    color: #000000;
}

#legend .section-title { margin-top: -20px; }

#legend .about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#legend .about-card {
    background-color: var(--gold);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #000000;
}

#legend .about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#legend .about-card img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    aspect-ratio: 3/2;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: filter 0.3s, transform 0.3s;
    animation: pulse 3s ease-in-out infinite;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    overflow: hidden;
    clip-path: inset(0 0 0 0 round 10px);
}

#legend .about-card img:hover {
    filter: brightness(1.2);
    animation-play-state: paused;
}

#legend .about-card p { font-family: 'Poppins', sans-serif; }

#legend .about-card h3 { font-family: 'Nosifer', sans-serif; font-weight: normal; text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5); }

#images { background-color: rgba(0, 0, 0, 0.6); }

#images .section-title { margin-top: -20px; }

.images-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    grid-template-rows: repeat(4, auto); 
    gap: 10px; 
    max-width: 1800px; 
    margin: 0 auto; 
}

.images-grid img { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    border-radius: 5px; 
    transition: transform 0.3s, box-shadow 0.3s; 
    cursor: pointer; 
}

.images-grid img:hover { 
    transform: scale(1.1); 
    box-shadow: 0 5px 15px var(--gold); 
}

#video {
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 40px;
}

.video-container {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

.video-item {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-spacing {
    height: 20px;
}

@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        padding: 0 10px;
        max-width: 100vw;
    }
    .video-item {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 5px;
        background: #000;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 80vw;
    max-height: 80vh;
    height: auto;
    margin-top: 10vh;
    aspect-ratio: 1/1;
    object-fit: contain;
    box-sizing: border-box;
}

.close {
    color: var(--gold);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 90vw;
        max-height: 90vh;
        margin-top: 5vh;
        aspect-ratio: 1/1;
        object-fit: contain;
    }
}

footer { background-color: rgba(139, 0, 0, 0.6); padding: 20px; text-align: center; }

.social-icons { display: flex; justify-content: center; gap: 40px; }

.social-icon { display: inline-block; transition: transform 0.3s; }

.social-logo { width: 32px; height: 32px; transition: filter 0.3s; }

.social-icon:hover .social-logo { filter: brightness(1.5); transform: rotate(15deg) scale(1.2); }

.social-icon:hover { color: #FFF; }

@keyframes active-shimmer {
    0% {
        box-shadow: 0 0 3px rgba(57, 255, 20, 0.2), 0 0 8px rgba(57, 255, 20, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 3px rgba(57, 255, 20, 0.2), 0 0 8px rgba(57, 255, 20, 0.1);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

@keyframes border-glow {
    0% {
        box-shadow: 0 0 8px rgba(57, 255, 20, 0.5), 0 0 15px rgba(57, 255, 20, 0.3);
        border-color: rgba(57, 255, 20, 0.8);
    }
    50% {
        box-shadow: 0 0 20px rgba(57, 255, 20, 0.9), 0 0 30px rgba(57, 255, 20, 0.7);
        border-color: rgba(57, 255, 20, 1);
    }
    100% {
        box-shadow: 0 0 8px rgba(57, 255, 20, 0.5), 0 0 15px rgba(57, 255, 20, 0.3);
        border-color: rgba(57, 255, 20, 0.8);
    }
}

#tokenomics {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
    text-align: center;
}

.tokenomics-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    color: var(--gold);
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.6;
    position: relative;
    min-height: 2em;
}

.typing-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: none;
}

.cursor {
    display: inline-block;
    font-size: 1.8em;
    color: var(--gold);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.ca-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.ca-button {
    font-family: 'Nosifer', sans-serif;
    background-color: var(--royal-purple);
    color: var(--text-color);
    padding: 10px 20px;
    font-weight: normal;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    max-width: 500px;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    animation: none;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5);
}

.ca-button:hover {
    background-color: #A40000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.5);
}

.copy-button {
    font-family: 'Nosifer', sans-serif;
    background-color: var(--gold);
    color: black;
    padding: 10px 20px;
    font-weight: normal;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    animation: active-shimmer 1.5s ease-in-out infinite;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.5);
    box-sizing: border-box;
}

.copy-button:hover {
    background-color: #4CFF33;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.7);
}

.copy-button.copied {
    background-color: var(--royal-purple);
    color: var(--text-color);
    animation: none;
}

@media (max-width: 768px) {
    .tokenomics-text {
        font-size: 1.4em;
    }
    .cursor {
        font-size: 1.4em;
    }
    .ca-container {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 10px;
    }
    .ca-button {
        font-size: 0.9em;
        padding: 8px 15px;
        max-width: 90vw;
        width: 100%;
        animation: none;
    }
    .copy-button {
        font-size: 0.9em;
        padding: 8px 15px;
        width: 100%;
        max-width: 90vw;
    }
}

@keyframes heroFade {
    0% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczNeJXxXTVxMgtIgDu9J_qBEjZDyNiPnHp6VenRhsuH3Q2EzKRXSug-ahovknddw-uTCTmQ4OlrMWKMVEL6YtGmvVWob0CJLYn0_WthTJrfrhoz35cKKEi5PiwCy2lOrUEAP5HIrS3FFyzWa4P-KntQI=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    28% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczNeJXxXTVxMgtIgDu9J_qBEjZDyNiPnHp6VenRhsuH3Q2EzKRXSug-ahovknddw-uTCTmQ4OlrMWKMVEL6YtGmvVWob0CJLYn0_WthTJrfrhoz35cKKEi5PiwCy2lOrUEAP5HIrS3FFyzWa4P-KntQI=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    33.33% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczPvIkkhf5NAF7noBZ5XZWRzBqYjsMXC4c9IYftIMCmwI1uYz46fxbeKpA7s9MkJxhdLErJQfkvd2bOCyA6jD7TK8qez_TO5kyRl0ksza4K8S0ckcOZHskv28t75zYaZEB8RxByhEpRYlSNeB-uGZ2Mr=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    38% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczPvIkkhf5NAF7noBZ5XZWRzBqYjsMXC4c9IYftIMCmwI1uYz46fxbeKpA7s9MkJxhdLErJQfkvd2bOCyA6jD7TK8qez_TO5kyRl0ksza4K8S0ckcOZHskv28t75zYaZEB8RxByhEpRYlSNeB-uGZ2Mr=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    61.33% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczPvIkkhf5NAF7noBZ5XZWRzBqYjsMXC4c9IYftIMCmwI1uYz46fxbeKpA7s9MkJxhdLErJQfkvd2bOCyA6jD7TK8qez_TO5kyRl0ksza4K8S0ckcOZHskv28t75zYaZEB8RxByhEpRYlSNeB-uGZ2Mr=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    66.66% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczNeMGhXvPHU67pCl2dy0sGEcwcKB2jW9arBBlD1VIIsn9mh_tc149bD12johUYylDO0zU76m1Bf9h8qkhQ4GoojgqETbnxGg3GDI2hyoY78IDuZ3rMHjt-0ULYKebS6O8uk2WmBqZTpFYmzKgUMxA9s=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    71.33% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczNeMGhXvPHU67pCl2dy0sGEcwcKB2jW9arBBlD1VIIsn9mh_tc149bD12johUYylDO0zU76m1Bf9h8qkhQ4GoojgqETbnxGg3GDI2hyoY78IDuZ3rMHjt-0ULYKebS6O8uk2WmBqZTpFYmzKgUMxA9s=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    94.66% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczNeMGhXvPHU67pCl2dy0sGEcwcKB2jW9arBBlD1VIIsn9mh_tc149bD12johUYylDO0zU76m1Bf9h8qkhQ4GoojgqETbnxGg3GDI2hyoY78IDuZ3rMHjt-0ULYKebS6O8uk2WmBqZTpFYmzKgUMxA9s=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
    100% { background-image: url('https://lh3.googleusercontent.com/pw/AP1GczNeJXxXTVxMgtIgDu9J_qBEjZDyNiPnHp6VenRhsuH3Q2EzKRXSug-ahovknddw-uTCTmQ4OlrMWKMVEL6YtGmvVWob0CJLYn0_WthTJrfrhoz35cKKEi5PiwCy2lOrUEAP5HIrS3FFyzWa4P-KntQI=w1536-h1024-s-no-gm?authuser=0'); opacity: 1; }
}

@keyframes heroFadeMobile {
    0% { background-image: url('/fudmobilehero.png'); opacity: 1; }
    30% { background-image: url('/fudmobilehero.png'); opacity: 1; }
    33.33% { background-image: url('/fudmobilehero2.png'); opacity: 1; }
    36.66% { background-image: url('/fudmobilehero2.png'); opacity: 1; }
    63.33% { background-image: url('/fudmobilehero2.png'); opacity: 1; }
    66.66% { background-image: url('/fudmobilehero3.png'); opacity: 1; }
    70% { background-image: url('/fudmobilehero3.png'); opacity: 1; }
    96.66% { background-image: url('/fudmobilehero3.png'); opacity: 1; }
    100% { background-image: url('/fudmobilehero.png'); opacity: 1; }
}

*, *::before, *::after {
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .cta-button {
        font-size: 1.5em;
        padding: 15px 30px;
        border-radius: 2.5px;
    }
    .cta-buttons {
        gap: 30px;
        max-width: 100%;
        flex-wrap: wrap;
    }
    .cta-container {
        padding: 0 10px;
        box-sizing: border-box;
    }

}


