:root {
    --deep-purple: #2E0854;
    --mid-purple: #480048;
    --indigo: #4B0082;
    --vibrant-turquoise: #40E0D0;
    --bright-cyan: #00FFFF;
    --glow-color: var(--vibrant-turquoise);
    --text-light: #f0f8ff; /* AliceBlue for soft white */
    --text-dark: #1a1a2e;
    --accent-magenta: #ff00ff;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--deep-purple); /* Fallback */
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll from aurora */
    position: relative;
}

.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 80%, var(--vibrant-turquoise) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--mid-purple) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, var(--indigo) 0%, transparent 40%);
    background-color: var(--deep-purple);
    opacity: 0.6;
    animation: auroraShift 20s infinite alternate linear;
}

@keyframes auroraShift {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%; }
    100% { background-position: 100% 100%, -100% 50%, 50% -100%; }
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    padding: 60px 0 40px;
    text-align: center;
    position: relative; /* For potential pseudo-elements */
    background: linear-gradient(180deg, rgba(46, 8, 84, 0.5) 0%, transparent 100%);
}

header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 0.25em;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--bright-cyan), 0 0 20px var(--bright-cyan), 0 0 30px var(--vibrant-turquoise);
}

.gradient-text {
    background: linear-gradient(45deg, var(--bright-cyan), var(--vibrant-turquoise), var(--accent-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header .tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--vibrant-turquoise);
    opacity: 0.9;
}

.content-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* For elements that might poke out */
}

.content-section:nth-child(odd) {
   /* Could have a slightly different background tint or pattern if desired */
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--vibrant-turquoise);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--vibrant-turquoise), var(--bright-cyan));
    border-radius: 2px;
}

.content-section p, .content-section li {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 1em;
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(75, 0, 130, 0.2); /* Indigo with transparency */
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(64, 224, 208, 0.2); /* Turquoise border */
    border-radius: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 255, 255, 0.15); /* Cyan glow */
}

.glass-panel .container {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Game Types Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
}

.game-card {
    background: linear-gradient(145deg, var(--mid-purple), var(--indigo));
    padding: 25px 20px;
    border-radius: 10px;
    border: 1px solid var(--vibrant-turquoise);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.4);
    border-color: var(--bright-cyan);
}

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--vibrant-turquoise);
    margin: 0;
}

/* Feature List */
.feature-list, .benefits-list {
    list-style: none;
    padding-left: 0;
}
.feature-list li, .benefits-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.feature-list li::before, .benefits-list li::before {
    content: '✧'; /* Sparkle or other cool unicode */
    position: absolute;
    left: 0;
    color: var(--vibrant-turquoise);
    font-size: 1.5em;
    line-height: 1;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.feature-list .highlight {
    font-weight: 600;
    color: var(--bright-cyan);
}

/* 3D Button */
#cta {
    text-align: center;
}
#cta .small-text {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 20px;
}

.btn-3d {
    display: inline-block;
    text-decoration: none;
    position: relative;
    perspective: 1000px; /* Essential for 3D effect */
    margin-top: 30px;
}

.btn-3d-face-front,
.btn-3d-face-back {
    display: block;
    padding: 18px 40px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d; /* Children also participate in 3D */
}

.btn-3d-face-front {
    background: linear-gradient(45deg, var(--vibrant-turquoise), var(--bright-cyan));
    color: var(--deep-purple);
    transform: rotateX(0deg) translateZ(15px); /* Initial front face, slightly pushed forward */
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3), 
                inset 0 0 10px rgba(255,255,255,0.3); /* Outer glow and inner highlight */
}

.btn-3d-face-back {
    background: linear-gradient(45deg, var(--accent-magenta), var(--mid-purple));
    color: var(--text-light);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateX(-90deg) translateZ(15px) translateY(15px); /* Positioned below and rotated */
    box-shadow: 0 10px 20px rgba(72, 0, 72, 0.4);
}

.btn-3d:hover .btn-3d-face-front {
    transform: rotateX(90deg) translateZ(15px) translateY(-15px); /* Rotate front face up and away */
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2), 
                inset 0 0 5px rgba(255,255,255,0.1);
}

.btn-3d:hover .btn-3d-face-back {
    transform: rotateX(0deg) translateZ(15px); /* Rotate back face into view */
    box-shadow: 0 10px 25px rgba(255, 0, 255, 0.5),
                inset 0 0 10px rgba(255,255,255,0.3);
}


footer {
    background: var(--deep-purple); /* Solid for contrast */
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 2px solid var(--vibrant-turquoise);
    margin-top: 50px;
}

footer p {
    margin-bottom: 0.5em;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 40px 0 30px;
    }
    .content-section {
        padding: 40px 0;
    }
    .content-section h2 {
        margin-bottom: 30px;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .game-card {
        padding: 20px 15px;
    }
    .btn-3d-face-front, .btn-3d-face-back {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .feature-list li, .benefits-list li {
        padding-left: 25px;
        font-size: 1rem;
    }
    .feature-list li::before, .benefits-list li::before {
        font-size: 1.2em;
    }
}