@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

:root {
    /* Candy Premium Palette */
    --color-bg-dark: #1E0F12;
    --color-bg-chocolate: #2A161A;
    --color-primary-pink: #FF758F;
    --color-secondary-gum: #FF9EAA;
    --color-accent-gold: #F9C784;
    --color-text-cream: #FFF3F5;
    
    /* Glass & Shadows */
    --glass-bg: rgba(255, 243, 245, 0.03);
    --glass-border: rgba(255, 243, 245, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glow-pink: 0 0 20px rgba(255, 117, 143, 0.3);
    --glow-gold: 0 0 25px rgba(249, 199, 132, 0.4);

    /* Layout */
    --max-width: 1300px;
    --border-radius: 20px;
    --spacing-section: 120px;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background: radial-gradient(circle at top right, var(--color-bg-chocolate), var(--color-bg-dark));
    color: var(--color-text-cream);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Particles Container */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-secondary-gum) 0%, transparent 70%);
    opacity: 0.3;
    animation: floatUp 15s infinite linear;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    font-size: 1.1rem;
    color: rgba(255, 243, 245, 0.8);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--color-text-cream);
    transition: color 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

section {
    padding: var(--spacing-section) 0;
}

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

/* Glass Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow), var(--glow-pink);
}

/* Navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(42, 22, 26, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.header-nav.scrolled {
    background: rgba(30, 15, 18, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-pink);
    transition: width 0.3s ease;
    box-shadow: var(--glow-pink);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-cream);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-pink), var(--color-secondary-gum));
    color: var(--color-text-cream);
    box-shadow: 0 4px 15px rgba(255, 117, 143, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 117, 143, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--color-text-cream);
}

.btn-secondary:hover {
    background: rgba(255, 243, 245, 0.1);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title-highlight {
    background: linear-gradient(to right, var(--color-primary-pink), var(--color-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.candy-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--color-secondary-gum), var(--color-primary-pink));
    box-shadow: inset -20px -20px 40px rgba(0,0,0,0.2), var(--glow-pink);
    animation: floatOrb 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.candy-orb::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    filter: blur(5px);
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Game Showcase Section */
.game-section {
    position: relative;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(42,22,26,0.8), rgba(30,15,18,0.9));
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255, 117, 143, 0.2);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary-pink), transparent, var(--color-accent-gold));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.3;
}

.game-iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 16px;
    background: #11080A;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-pink), var(--color-accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
footer {
    background: #11080A;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links h4 {
    color: var(--color-primary-pink);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 243, 245, 0.6);
}

.footer-links a:hover {
    color: var(--color-text-cream);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 243, 245, 0.05);
    color: rgba(255, 243, 245, 0.4);
    font-size: 0.9rem;
}

/* Animations / Utils */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Internal Page Headers */
.page-header {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(42, 22, 26, 0.8), transparent);
}

/* Content Pages */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    color: var(--color-primary-pink);
    margin-top: 2rem;
}

.content-wrapper ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: rgba(255, 243, 245, 0.8);
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide default, show mobile */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    h1 { font-size: 2.5rem; }
    
    .game-iframe {
        height: 500px;
    }

    .glass-panel {
        padding: 2rem;
    }
}