@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Space+Grotesk:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cosmic-purple: #7b2cbf;
    --bright-purple: #9d4edd;
    --teal: #06d6a0;
    --bright-teal: #1be4b4;
    --deep-space: #10002b;
    --space-blue: #240046;
    --light-lavender: #e0aaff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #10002b 0%, #240046 50%, #3c096c 100%);
    color: var(--light-lavender);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 5s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    background: rgba(36, 0, 70, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 5px 30px rgba(6, 214, 160, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal) 0%, var(--bright-purple) 50%, var(--light-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 10px rgba(6, 214, 160, 0.5));
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--light-lavender);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--teal);
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--teal);
    color: var(--teal);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5.5rem 0;
    background: radial-gradient(circle at center, rgba(157, 78, 221, 0.2) 0%, transparent 60%);
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--teal) 0%, var(--bright-purple) 50%, var(--light-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(6, 214, 160, 0.4));
    text-transform: lowercase;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal) 0%, var(--cosmic-purple) 100%);
    color: white;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: lowercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(6, 214, 160, 0.6);
}

/* Content Sections */
.content-section {
    padding: 4.5rem 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--teal) 0%, var(--bright-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: lowercase;
}

.cosmic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cosmic-card {
    background: rgba(36, 0, 70, 0.5);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(6, 214, 160, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cosmic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 214, 160, 0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.6s ease;
}

.cosmic-card:hover::before {
    transform: rotate(180deg);
}

.cosmic-card:hover {
    border-color: var(--teal);
    box-shadow: 0 10px 40px rgba(6, 214, 160, 0.3);
    transform: translateY(-8px);
}

.cosmic-card h3 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 1;
}

.cosmic-card p {
    position: relative;
    z-index: 1;
}

.info-bubble {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.3) 0%, rgba(6, 214, 160, 0.2) 100%);
    border: 2px solid var(--bright-purple);
    padding: 2.5rem;
    border-radius: 25px;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
}

.info-bubble h3 {
    color: var(--teal);
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
}

.info-bubble ul {
    list-style: none;
    padding-left: 0;
}

.info-bubble li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.info-bubble li::before {
    content: '✨';
    position: absolute;
    left: 0;
}

/* Game Container */
.game-container {
    background: rgba(36, 0, 70, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    border: 3px solid var(--teal);
    box-shadow: 0 0 40px rgba(6, 214, 160, 0.3);
}

.game-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 15px;
}

/* Footer */
footer {
    background: rgba(16, 0, 43, 0.95);
    backdrop-filter: blur(10px);
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
    border-top: 3px solid var(--teal);
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
}

.footer-section a {
    display: block;
    color: var(--light-lavender);
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--teal);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(6, 214, 160, 0.3);
    opacity: 0.8;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 0, 43, 0.97);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, #240046 0%, #3c096c 100%);
    padding: 3.5rem;
    border-radius: 25px;
    text-align: center;
    max-width: 550px;
    border: 3px solid var(--teal);
    box-shadow: 0 0 60px rgba(6, 214, 160, 0.5);
}

.age-modal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--teal) 0%, var(--bright-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.age-modal-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.age-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.age-buttons button {
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-yes {
    background: linear-gradient(135deg, var(--teal) 0%, var(--cosmic-purple) 100%);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.5);
}

.btn-no {
    background: transparent;
    color: var(--light-lavender);
    border: 2px solid var(--light-lavender);
}

.btn-no:hover {
    background: rgba(224, 170, 255, 0.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(36, 0, 70, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 0;
        display: none;
        border-bottom: 3px solid var(--teal);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(6, 214, 160, 0.2);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .logo {
        font-size: 2rem;
    }

    .cosmic-grid {
        grid-template-columns: 1fr;
    }

    .game-container iframe {
        height: 400px;
    }

    .age-modal-content {
        margin: 1.5rem;
        padding: 2.5rem;
    }

    .age-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Legal Content Styling */
.legal-content {
    background: rgba(36, 0, 70, 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
    border: 2px solid rgba(6, 214, 160, 0.3);
}

.legal-content h2 {
    color: var(--teal);
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
}

.legal-content h3 {
    color: var(--bright-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.legal-content p {
    margin-bottom: 1.2rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2.5rem;
    margin-bottom: 1.2rem;
}

.legal-content li {
    margin-bottom: 0.6rem;
}

.legal-content a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid var(--teal);
}

.legal-content a:hover {
    color: var(--bright-teal);
    border-bottom-color: var(--bright-teal);
}