@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cosmic-blue: #4169E1;
    --deep-purple: #6A0DAD;
    --star-white: #F0F8FF;
    --nebula-pink: #FF1493;
    --space-black: #0B0C10;
    --sidebar-width: 250px;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(to bottom right, #0B0C10, #1a1a2e, #16213e);
    color: var(--star-white);
    min-height: 100vh;
    display: flex;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(65, 105, 225, 0.1) 0%, rgba(106, 13, 173, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-right: 2px solid var(--cosmic-blue);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 2rem 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cosmic-blue);
    text-decoration: none;
    display: block;
    text-shadow: 0 0 20px rgba(65, 105, 225, 0.8);
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav a {
    display: block;
    color: var(--star-white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 400;
}

.sidebar nav a:hover {
    background: rgba(65, 105, 225, 0.2);
    border-left-color: var(--cosmic-blue);
    padding-left: 2rem;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--cosmic-blue);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem;
    width: calc(100% - var(--sidebar-width));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.2) 0%, rgba(255, 20, 147, 0.2) 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border: 1px solid rgba(65, 105, 225, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--cosmic-blue), var(--nebula-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Alert Boxes */
.alert {
    background: rgba(65, 105, 225, 0.15);
    border: 2px solid var(--cosmic-blue);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.alert h3 {
    color: var(--cosmic-blue);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(22, 33, 62, 0.6);
    border: 1px solid rgba(65, 105, 225, 0.4);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--cosmic-blue);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h2 {
    color: var(--cosmic-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    line-height: 1.9;
    font-weight: 300;
}

/* Game Section */
.game-wrapper {
    background: rgba(22, 33, 62, 0.8);
    border: 2px solid var(--cosmic-blue);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.game-wrapper h2 {
    color: var(--nebula-pink);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-wrapper iframe {
    width: 100%;
    max-width: 900px;
    height: 650px;
    border: none;
    border-radius: 12px;
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background: rgba(11, 12, 16, 0.9);
    border-top: 2px solid var(--cosmic-blue);
    padding: 2.5rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    color: var(--cosmic-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--star-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--cosmic-blue);
    text-shadow: 0 0 10px rgba(65, 105, 225, 0.6);
}

/* Age Modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.age-modal.show {
    display: flex;
}

.modal-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 3px solid var(--cosmic-blue);
    border-radius: 20px;
    padding: 3rem;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 0 60px rgba(65, 105, 225, 0.6);
}

.modal-box h2 {
    color: var(--cosmic-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.modal-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--cosmic-blue), var(--deep-purple));
    color: white;
}

.btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(65, 105, 225, 0.7);
}

.btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--star-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .game-wrapper iframe {
        height: 450px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
