/* DOTBULL WARZ - EPIC GAME THEME (LEFT/RIGHT MONSTERS + PERFECT MOBILE) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Creepster&family=Bungee&display=swap');

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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0a0a23 0%, #1a0033 50%, #0d1117 100%);
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body.loaded .background-monsters {
    opacity: 1;
}

/* LEFT/RIGHT MONSTER POSITIONING - NEVER BURIED */
.background-monsters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.monster-bg {
    position: absolute;
    animation: monsterFloat 25s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.6));
}

.monster-bg img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    animation: monsterIdle 3s ease-in-out infinite alternate;
}

/* LEFT SIDE MONSTERS */
.monster1 { top: 15%; left: 3%; animation-delay: 0s; }
.monster3 { top: 55%; left: 2%; animation-delay: 8s; }
.monster5 { bottom: 20%; left: 4%; animation-delay: 16s; transform: scale(0.85); }

/* RIGHT SIDE MONSTERS */
.monster2 { top: 10%; right: 3%; animation-delay: 4s; }
.monster4 { top: 60%; right: 2%; animation-delay: 12s; }
.monster6 { bottom: 15%; right: 4%; animation-delay: 20s; transform: scale(0.9); }

/* Monster Float Animation */
@keyframes monsterFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-25px) rotate(1deg) scale(1.02);
    }
    50% {
        transform: translateY(-10px) rotate(-0.5deg) scale(0.98);
    }
    75% {
        transform: translateY(-35px) rotate(0.8deg) scale(1.03);
    }
}

/* Monster Idle Bobble */
@keyframes monsterIdle {
    0% {
        transform: rotate(-2deg) scale(1);
    }
    100% {
        transform: rotate(2deg) scale(1.05);
    }
}

/* Monster Glow Effect */
.monster-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(107, 70, 193, 0.3) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

.monster-glow:nth-of-type(1) { animation-delay: 0s; }
.monster-glow:nth-of-type(2) { animation-delay: 1s; }
.monster-glow:nth-of-type(3) { animation-delay: 2s; }
.monster-glow:nth-of-type(4) { animation-delay: 3s; }
.monster-glow:nth-of-type(5) { animation-delay: 0.5s; }
.monster-glow:nth-of-type(6) { animation-delay: 2.5s; }

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Dynamic Monster Shadows */
.monster-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 110px;
    height: 22px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.7) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateX(-50%) scaleX(0.9);
    z-index: -2;
    animation: shadowPulse 2.5s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scaleX(0.85);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1.05);
    }
}

/* FLOATING PARTICLES */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #a855f7;
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 80%; animation-delay: 4s; }
.particle:nth-child(4) { right: 10%; animation-delay: 6s; }
.particle:nth-child(5) { left: 60%; animation-delay: 8s; }
.particle:nth-child(6) { right: 30%; animation-delay: 10s; }
.particle:nth-child(7) { left: 40%; animation-delay: 12s; }
.particle:nth-child(8) { right: 60%; animation-delay: 1s; }
.particle:nth-child(9) { left: 70%; animation-delay: 3s; }
.particle:nth-child(10) { right: 20%; animation-delay: 5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* EPIC NAVIGATION */
.header-epic {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #6b46c1;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-epic {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-epic {
    font-family: 'Bungee', cursive;
    font-size: 2rem;
    font-weight: 400;
}

.logo-glow {
    background: linear-gradient(45deg, #a855f7, #06b6d4, #fbbf24, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(360deg) brightness(1.2); }
}

.logo-text {
    color: #fbbf24;
    text-shadow: 0 0 20px #fbbf24;
}

.nav-center {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: #a855f7;
    text-shadow: 0 0 15px #a855f7;
    transform: translateY(-2px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    box-shadow: 0 0 10px #a855f7;
}

.btn-epic {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(145deg, #a855f7, #7c3aed);
    color: white;
    text-decoration: none;
    font-weight: 900;
    border-radius: 50px;
    border: 2px solid #c4b5fd;
    box-shadow:
        0 10px 30px rgba(168, 85, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-epic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-epic:hover::before {
    left: 100%;
}

.btn-epic:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(168, 85, 247, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.btn-secondary {
    background: linear-gradient(145deg, #06b6d4, #0891b2);
    border-color: #67e8f9;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #a855f7;
    border-radius: 3px;
    transition: 0.3s;
}

/* HERO SECTION */
.hero-epic {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    z-index: 10;
    background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
                linear-gradient(135deg, #0a0a23 0%, #1a0033 100%);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 20;
    position: relative;
}

.title-epic {
    font-family: 'Bungee', cursive;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 30px rgba(251, 191, 36, 0.5),
        0 0 60px rgba(239, 68, 68, 0.3);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 20px #fbbf24);
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 40px #ef4444);
    }
}

.title-line {
    display: block;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #a855f7;
    margin-top: 1rem;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.hero-text {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #e5e7eb;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.battle-stats {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    padding: 2rem 3rem;
    border: 2px solid #6b46c1;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-number2 {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* FEATURES SECTION */
.features-epic {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Bungee', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #06b6d4 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.epic-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid #374151;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.epic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #06b6d4, #fbbf24);
}

.epic-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #a855f7;
    box-shadow:
        0 30px 60px rgba(168, 85, 247, 0.3),
        0 0 30px rgba(168, 85, 247, 0.2);
}

.card-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px currentColor);
}

.epic-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.epic-card p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-status {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-status.live {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.card-status.coming-soon {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    animation: pulse 2s infinite;
}

/* FOOTER */
.footer-epic {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid #374151;
    text-align: center;
    padding: 2rem;
    font-family: 'Orbitron', monospace;
    color: #9ca3af;
}

/* PERFECT RESPONSIVE SCALING */

/* TABLET (1024px and below) */
@media (max-width: 1024px) {
    .monster-bg img {
        width: 130px;
        height: 130px;
    }

    /* LEFT SIDE */
    .monster1 { top: 10%; left: 2%; }
    .monster3 { top: 50%; left: 1%; }
    .monster5 { bottom: 25%; left: 2%; transform: scale(0.8); }

    /* RIGHT SIDE */
    .monster2 { top: 15%; right: 2%; }
    .monster4 { top: 55%; right: 1%; }
    .monster6 { bottom: 20%; right: 2%; transform: scale(0.85); }
}

/* MOBILE LARGE (768px and below) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-center {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(17, 24, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-center.nav-active {
        left: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .battle-stats {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* MOBILE MONSTER SCALING - ALL 6 VISIBLE BUT SMALLER */
    .monster-bg img {
        width: 100px;
        height: 100px;
    }

    /* LEFT SIDE - Tighter spacing */
    .monster1 { top: 5%; left: 1%; }
    .monster3 { top: 40%; left: 0.5%; }
    .monster5 { bottom: 30%; left: 1%; transform: scale(0.75); }

    /* RIGHT SIDE - Tighter spacing */
    .monster2 { top: 10%; right: 1%; }
    .monster4 { top: 50%; right: 0.5%; }
    .monster6 { bottom: 25%; right: 1%; transform: scale(0.75); }
}

/* MOBILE SMALL (480px and below) */
@media (max-width: 480px) {
    .monster-bg img {
        width: 80px;
        height: 80px;
    }

    /* LEFT SIDE - Ultra compact */
    .monster1 { top: 2%; left: 0.5%; }
    .monster3 { top: 35%; left: 0%; }
    .monster5 { bottom: 35%; left: 0.5%; transform: scale(0.7); }

    /* RIGHT SIDE - Ultra compact */
    .monster2 { top: 8%; right: 0.5%; }
    .monster4 { top: 45%; right: 0%; }
    .monster6 { bottom: 30%; right: 0.5%; transform: scale(0.7); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a23 0%, #1a0033 100%);
    z-index: 9999;
    animation: fadeOut 1s ease-out 1s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}


/* 🆕 MOBILE PERFECT FIXES */
@media (max-width: 768px) {
    /* FAQ TITLE */
    .faq-hero h1,
    .faq-hero .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        padding: 0 1rem !important;
        margin-bottom: 1.5rem !important;
        letter-spacing: -0.02em !important;
    }

    /* HOME PAGE CARDS */
    .hero-grid {
        margin-top: 3rem !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .hero-grid .card {
        margin-bottom: 2.5rem !important;
        position: relative !important;
        z-index: 10 !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    }

    /* Push hero text above cards */
    .hero-content {
        margin-bottom: 4rem !important;
        position: relative !important;
        z-index: 20 !important;
    }

    /* Monsters page canvas */
    #game {
        height: 420px !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 2rem !important;
    }

    .hero-grid {
        margin-top: 4rem !important;
        padding: 0 0.5rem !important;
    }
}
