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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #1a1a1a 0%, #1a3a2a 50%, #1a1a1a 100%);
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Custom Cursor */
.cursor-orb {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #d4a574, #c9a961);
    box-shadow: 0 0 15px #d4a574, 0 0 30px rgba(212, 165, 116, 0.5), 0 0 45px rgba(212, 165, 116, 0.2);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-orb.hovering {
    width: 26px;
    height: 26px;
    box-shadow: 0 0 20px #d4a574, 0 0 40px rgba(212, 165, 116, 0.7), 0 0 60px rgba(212, 165, 116, 0.4);
}

.cursor-orb.clicking {
    animation: cursorPulse 0.3s ease-out;
}

@keyframes cursorPulse {
    0% { box-shadow: 0 0 15px #d4a574, 0 0 30px rgba(212, 165, 116, 0.5); }
    50% { box-shadow: 0 0 30px #d4a574, 0 0 60px rgba(212, 165, 116, 0.8), 0 0 90px rgba(212, 165, 116, 0.4); }
    100% { box-shadow: 0 0 15px #d4a574, 0 0 30px rgba(212, 165, 116, 0.5); }
}

.cursor-trail-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.6);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

/* Hero Animation */
@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg {
    background: linear-gradient(-45deg, #1a1a1a, #1a3a2a, #4a2c5e, #1a1a1a, #6b4423);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Particle */
@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d4a574;
    box-shadow: 0 0 6px #d4a574;
    animation: particleFloat linear infinite;
}

/* Gallery horizontal scroll */
.gallery-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d4a574 #1a1a1a;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 3px;
}

/* Card hover */
.nft-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nft-card:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Timeline */
.timeline-line {
    background: linear-gradient(to bottom, #d4a574, #c9a961, rgba(212, 165, 116, 0.2));
}

/* Button glow */
.btn-glow {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.6), 0 0 40px rgba(212, 165, 116, 0.3);
}

.btn-glow:active {
    transform: scale(0.98);
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Dragon roar */
@keyframes dragonRoar {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px) rotate(-1deg); }
    20% { transform: translateX(5px) rotate(1deg); }
    30% { transform: translateX(-5px) rotate(-1deg); }
    40% { transform: translateX(5px) rotate(1deg); }
    50% { transform: translateX(-3px); }
    60% { transform: translateX(3px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-1px); }
}

.dragon-roar {
    animation: dragonRoar 0.6s ease;
}

/* Wood texture background */
.wood-texture {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(107, 68, 35, 0.05) 2px,
        rgba(107, 68, 35, 0.05) 4px
    ),
    repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        rgba(107, 68, 35, 0.03) 10px,
        rgba(107, 68, 35, 0.03) 12px
    );
}

/* Shimmer for legendary */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-gold {
    background: linear-gradient(90deg, #c9a961, #ffd700, #c9a961, #ffd700, #c9a961);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll to top */
.scroll-top-btn {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mobile cursor hide */
@media (hover: none) and (pointer: coarse) {
    .cursor-orb, .cursor-trail-dot {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}

@media (max-width: 768px) {
    .cursor-orb, .cursor-trail-dot {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}

/* Trait card flip */
.trait-card {
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.trait-card:hover {
    transform: scale(1.05);
}

.trait-card-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trait-card:hover .trait-card-inner {
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.4);
}