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

:root {
    --gold: #f5a623;
    --gold-light: #ffd700;
    --blue: #00aaff;
    --blue-dark: #0077cc;
    --blue-deeper: #004a80;
    --dark: #0a0e1a;
    --dark-card: #111827;
    --white: #ffffff;
    --gray: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Ocean Background Bubbles ===== */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -80px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 170, 255, 0.15), rgba(0, 170, 255, 0.05));
    border-radius: 50%;
    animation: float-up linear infinite;
}

.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.bubble:nth-child(2) { width: 25px; height: 25px; left: 25%; animation-duration: 15s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 55px; height: 55px; left: 40%; animation-duration: 18s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 35px; height: 35px; left: 55%; animation-duration: 13s; animation-delay: 1s; }
.bubble:nth-child(5) { width: 20px; height: 20px; left: 70%; animation-duration: 16s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 45px; height: 45px; left: 85%; animation-duration: 14s; animation-delay: 5s; }
.bubble:nth-child(7) { width: 30px; height: 30px; left: 5%; animation-duration: 17s; animation-delay: 6s; }
.bubble:nth-child(8) { width: 50px; height: 50px; left: 60%; animation-duration: 20s; animation-delay: 2s; }

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

/* ===== Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 166, 35, 0.2);
}

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

.nav-logo {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--gold);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
    letter-spacing: 2px;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.1);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 8rem 2rem 2rem;
}

.hero-content {
    animation: fade-in 1s ease-out;
}

.logo {
    width: 320px;
    max-width: 80vw;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 170, 255, 0.3)) drop-shadow(0 0 80px rgba(245, 166, 35, 0.2));
    animation: logo-float 4s ease-in-out infinite;
}

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

.tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray);
    margin: 1.5rem 0 2rem;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 25px rgba(245, 166, 35, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 40px rgba(245, 166, 35, 0.6);
}

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

/* ===== Section Titles ===== */
.section-title {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 30px rgba(245, 166, 35, 0.3);
}

/* ===== Games Section ===== */
.games-section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 170, 255, 0.2);
    border-color: var(--blue);
}

.game-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--blue-deeper), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-icon {
    font-size: 4rem;
}

.jumper-thumb {
    background: linear-gradient(160deg, #060412, #130828 50%, #060d1f) !important;
}

.wizardry-thumb {
    background: linear-gradient(160deg, #1a0530, #2a1045 50%, #0d0020) !important;
}

.wizardry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--dark);
    font-weight: 900;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card h3 {
    padding: 1.2rem 1.2rem 0.5rem;
    font-size: 1.3rem;
    color: var(--white);
}

.game-card p {
    padding: 0 1.2rem 1.2rem;
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== About Section ===== */
.about-section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(0, 170, 255, 0.15);
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--gold);
}

/* ===== Footer ===== */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-logo {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .logo {
        width: 240px;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .logo {
        width: 200px;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }
}
