:root {
    --gold: #FF0033;
    /* Neon Red */
    --gold-dim: #99001f;
    --silver: #E0E0E0;
    /* Bright White/Silver */
    --silver-dim: #A0A0A0;
    --dark-bg: #000000;
    --darker-bg: #000000;
    --accent-glow: rgba(255, 0, 51, 0.5);
    --font-dragon: 'DRAGON', sans-serif;
    --font-body: 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--silver-dim);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-dragon);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: black;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Gradient Fade into Black */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, black 100%);
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.main-title {
    font-size: 4rem;
    color: #FFFFFF;
    text-shadow: var(--fire-glow);
    animation: firePulse 3s infinite;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--silver);
    margin-top: 10px;
    font-family: var(--font-dragon);
    text-shadow: 0 0 5px var(--silver);
}

@keyframes firePulse {
    0% {
        text-shadow: 0 0 4px #FFFF00, 0 0 10px #FF8C00, 0 0 15px #FF0000;
    }

    50% {
        text-shadow: 0 0 8px #FFFF00, 0 0 15px #FF8C00, 0 0 25px #FF0000;
    }

    100% {
        text-shadow: 0 0 4px #FFFF00, 0 0 10px #FF8C00, 0 0 15px #FF0000;
    }
}

/* Scroll Indicator */
/* Scroll Indicator */
.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 1;
}

.scroll-indicator span {
    font-family: var(--font-dragon);
    font-size: 1.2rem;
    color: #FFFFFF;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #FF4500;
}

.arrow-down {
    width: 30px;
    height: 30px;
    border-right: 4px solid #FF4500;
    border-bottom: 4px solid #FF4500;
    transform: rotate(45deg);
    animation: scrollPulse 2s infinite;
    filter: drop-shadow(0 0 5px #FF0000);
}

@keyframes scrollPulse {
    0% {
        transform: translateY(0) rotate(45deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(5px) rotate(45deg);
    }

    80% {
        opacity: 1;
        transform: translateY(20px) rotate(45deg);
    }

    100% {
        transform: translateY(25px) rotate(45deg);
        opacity: 0;
    }
}

/* --- NAVIGATION --- */
nav {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-dim);
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-dragon);
    font-size: 2rem;
    color: #FFFFFF;
    text-decoration: none;
    text-shadow: var(--fire-glow);
    animation: firePulse 3s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--silver);
    text-decoration: none;
    font-family: var(--font-dragon);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px var(--gold);
}

.buy-btn {
    background: transparent;
    border: 2px solid #FF4500;
    color: #FFFFFF;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-dragon);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #FF4500;
    text-decoration: none;
    display: inline-block;
}

.social-icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.5));
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon-img {
    transform: scale(1.1) rotate(5deg);
}

.buy-btn:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 15px var(--gold);
}

/* --- LORE SECTION --- */
.lore-section {
    position: relative;
    padding: 100px 20px;
    background: var(--dark-bg);
    overflow: hidden;
    text-align: center;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 3rem;
    text-shadow: var(--fire-glow);
    animation: firePulse 3s infinite;
}

.lore-text {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-dragon);
    text-shadow: none;
    line-height: 1.8;
}

.gold-text {
    color: #FFFFFF;
    font-weight: bold;
    text-shadow: var(--fire-glow);
    animation: firePulse 3s infinite;
}

/* Cave Background with Mask */
.cave-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/cave_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse closest-side at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse closest-side at center, black 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.lore-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #FF4500;
    color: #FFFFFF;
    padding: 10px 25px;
    font-family: var(--font-dragon);
    font-size: 1.2rem;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #FF4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.lore-btn:hover {
    background: #FF4500;
    color: black;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.8);
    transform: scale(1.05);
}

/* --- CLASSIC DRAGON CONTRACT UI (Refined) --- */
.contract-container {
    margin-top: 30px;
    background: rgba(10, 0, 0, 0.85);
    padding: 15px 25px;
    border: 1px solid #8B0000;
    display: inline-block;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    max-width: 95%;
    /* Mobile friendly constraint */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.contract-label {
    font-family: var(--font-dragon);
    color: #FFD700;
    margin-bottom: 8px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: inline-block;
    padding-bottom: 2px;
}

.contract-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.contract-box:hover {
    border-color: #FF4500;
    background: rgba(255, 69, 0, 0.05);
}

.contract-box:active {
    transform: scale(0.99);
}

#contract-address {
    font-family: 'Courier New', monospace;
    color: #ccc;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    word-break: break-all;
    /* Ensures mobile friendliness */
    text-align: left;
}

.contract-box:hover #contract-address {
    color: #fff;
}

.copy-icon {
    font-size: 1rem;
    opacity: 0.7;
    transition: transform 0.3s;
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

.contract-box:hover .copy-icon {
    transform: scale(1.1);
    opacity: 1;
    color: #FF4500;
}

/* --- WISDOM SECTION --- */
.wisdom-section {
    padding: 100px 20px;
    background: black;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.wisdom-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Dragon Floating Animation */
.dragon-avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dragon-float {
    max-width: 100%;
    max-height: 100%;
    filter: none;
    /* Removed glow/shadow */
    animation: float 6s ease-in-out infinite;
}

.dragon-glow {
    display: none;
    /* Removed background glow */
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulseBG {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.wisdom-box {
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.dialog-container {
    min-height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gameboy-text {
    font-family: var(--font-dragon);
    font-size: 1.3rem;
    /* Increased slightly for readability with new font */
    color: #FFFFFF;
    text-shadow: 2px 2px 0px #000000;
    /* Retro shadow */
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent backing for readability */
    padding: 10px;
    border-radius: 4px;
    border: 2px solid #FFFFFF;
    display: inline-block;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* SLEEK BUTTON */
.sleek-btn {
    background: transparent;
    border: 1px solid #FF4500;
    color: #FF4500;
    padding: 8px 20px;
    font-family: var(--font-dragon);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.1);
}

.sleek-btn:hover {
    background: rgba(255, 69, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
    transform: translateY(-1px);
    color: #FFD700;
    border-color: #FFD700;
}

.sleek-btn:active {
    transform: scale(0.95);
}

/* --- COMMUNITY SECTION --- */
.community-section {
    position: relative;
    padding: 100px 20px;
    background: black;
    overflow: hidden;
    text-align: center;
}

.community-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/community_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse closest-side at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse closest-side at center, black 40%, transparent 100%);
    z-index: 1;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.social-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--silver-dim);
    padding: 30px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.social-card:hover {
    border-color: #FF4500;
    background: rgba(30, 30, 30, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4);
}

.social-icon {
    font-size: 3rem;
}

.social-card span {
    font-family: var(--font-dragon);
    color: var(--silver);
    font-size: 1.2rem;
}

.social-card:hover span {
    color: #FF4500;
    text-shadow: 0 0 5px #FF0000;
}

/* Footer */
footer {
    background: black;
    color: #555;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 1rem;
    }

    .dragon-avatar-container {
        width: 200px;
        height: 200px;
    }

    .hero-video {
        object-position: left center;
    }
}