/* ===== CSS Variables ===== */
:root {
    --gold: #FFD700;
    --gold-dark: #F4A300;
    --gold-light: #FFE55C;
    --black: #0a0a0a;
    --black-light: #151515;
    --black-lighter: #1a1a1a;
    --white: #ffffff;
    --white-dim: #cccccc;
    --gray: #888888;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.3),
                    0 0 80px rgba(255, 215, 0, 0.2),
                    0 0 120px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.5),
                    0 0 100px rgba(255, 215, 0, 0.3),
                    0 0 150px rgba(255, 215, 0, 0.2);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes spin-reel {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Audio Waves Canvas ===== */
#audioWaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Mute Button ===== */
.mute-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    transition: all var(--transition-fast);
}

.mute-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
}

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

.mute-btn.playing {
    animation: pulse-btn 1s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(255, 215, 0, 0.8); }
}

/* ===== Particles ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 24px;
    animation: particle-float linear infinite;
    opacity: 0.6;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all var(--transition-fast);
}

.nav-social:hover {
    background: var(--gold);
    color: var(--black);
    transform: scale(1.1);
}

.nav-social::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    font-weight: 500;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 20px 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 10;
    text-align: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
    border-radius: 50%;
}

.hero-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    animation: scale-in 1s ease-out;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--white);
    letter-spacing: 2px;
    animation: fade-in-up 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    animation: fade-in-up 1s ease-out 0.5s both;
}

.hero-ca {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    padding: 12px 20px;
    margin-top: 15px;
    animation: fade-in-up 1s ease-out 0.6s both;
}

.ca-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold);
}

.ca-address {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--white-dim);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-copy-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border-radius: 5px;
}

.ca-copy-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    animation: fade-in-up 1s ease-out 0.7s both;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    padding: 15px 40px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border-color: var(--gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.8rem;
    animation: fade-in-up 1s ease-out 1s both;
    z-index: 20;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

/* ===== About Section ===== */
.about {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
    position: relative;
}

.about-main {
    text-align: center;
    margin-bottom: 50px;
}

.about-big-text {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.about-description {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-description p {
    font-size: 1.1rem;
    color: var(--white-dim);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-quote {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
}

.about-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--gold);
    text-transform: lowercase;
}

/* ===== Game Section ===== */
.game {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
}

.game-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.slot-machine {
    max-width: 500px;
    margin: 0 auto;
}

.slot-frame {
    background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
    border: 3px solid var(--gold);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2),
                inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.slot-top-decoration {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent);
    border-radius: 10px;
}

.slot-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: var(--black);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

.slot-reel {
    width: 100px;
    height: 100px;
    background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
    border-radius: 10px;
    border: 2px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slot-symbol {
    font-size: 3rem;
    transition: all 0.1s ease;
}

.slot-reel.spinning .slot-symbol {
    animation: spin-symbol 0.1s linear infinite;
}

@keyframes spin-symbol {
    0% { transform: translateY(-50%); opacity: 0.5; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(50%); opacity: 0.5; }
}

.slot-result {
    min-height: 30px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slot-result.win {
    color: var(--gold);
    animation: pulse-text 0.5s ease infinite;
}

@keyframes pulse-text {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.slot-button {
    width: 100%;
    padding: 20px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slot-button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.slot-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.slot-messages {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--white-dim);
    min-height: 30px;
}

#slotMessage {
    transition: all var(--transition-fast);
}

.game-legend {
    margin-top: 50px;
    text-align: center;
}

.game-legend h4 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 20px;
}

.legend-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white-dim);
}

.legend-item span {
    font-size: 1.5rem;
}

/* ===== Buy Section ===== */
.buy {
    padding: 120px 0;
    background: var(--black);
}

.buy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.buy-step {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--black-lighter), var(--black-light));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    transition: all var(--transition-medium);
    position: relative;
}

.buy-step:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.buy-step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.buy-step p {
    color: var(--white-dim);
    line-height: 1.7;
}

.buy-step a {
    color: var(--gold);
    text-decoration: underline;
}

.buy-step a:hover {
    color: var(--gold-light);
}

.contract-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contract-box h3 {
    font-family: var(--font-display);
    color: var(--gold);
    margin-bottom: 20px;
}

.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--black-lighter);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

.contract-address span {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--white-dim);
}

.copy-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    color: var(--gold);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.copy-btn.copied {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.contract-note {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    background: var(--black-light);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.footer-logo p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.footer-social:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-disclaimer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 30px;
}

.footer-disclaimer p {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.85rem;
}

/* ===== Confetti Canvas ===== */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 20px 80px;
    }

    .hero-image {
        width: 220px;
        height: 220px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .tokenomics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-reel {
        width: 80px;
        height: 80px;
    }

    .slot-symbol {
        font-size: 2.5rem;
    }

    .buy-steps {
        grid-template-columns: 1fr;
    }

    .contract-address {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        margin-bottom: 40px;
    }

    .hero-image {
        width: 180px;
        height: 180px;
    }

    .tokenomics-grid {
        grid-template-columns: 1fr;
    }

    .slot-display {
        gap: 5px;
        padding: 15px;
    }

    .slot-reel {
        width: 70px;
        height: 70px;
    }

    .slot-symbol {
        font-size: 2rem;
    }
}
