@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Fredoka+One&display=swap');

:root {
    --bg-primary: #07050a;
    --bg-secondary: #140a1f;
    --card-bg: rgba(255, 255, 255, 0.06);
    --candy-pink: #ff4da6;
    --bubblegum: #a855f7;
    --candy-blue: #38bdf8;
    --lemon-glow: #fde047;
    --mint-green: #34d399;
    --text-primary: #fdf4ff;
    --text-secondary: #d8b4fe;
    
    --candy-gradient: linear-gradient(135deg, var(--candy-pink), var(--bubblegum), var(--candy-blue));
    --sweet-glow: linear-gradient(135deg, var(--lemon-glow), var(--candy-pink));
    
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none; /* Custom cursor used */
}

/* Custom Cursor & Particles */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,77,166,0.6) 0%, rgba(255,77,166,0) 70%);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

a, button {
    cursor: none; 
}

a:hover ~ #cursor-glow, button:hover ~ #cursor-glow {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(56,189,248,0.6) 0%, rgba(56,189,248,0) 70%);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.text-gradient {
    background: var(--candy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glass Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(20, 10, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,77,166,0.2);
    transition: all 0.3s ease;
}

.header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    max-width: 100%;
    padding: 10px 5%;
    background: rgba(7, 5, 10, 0.9);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
}

.logo span {
    background: var(--candy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

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

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

.cta-btn {
    background: var(--candy-gradient);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 77, 166, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    color: var(--text-primary);
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('images/photo-1579619312788-f23ebed6fcd0-hero-hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.4) saturate(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(7,5,10,0.2) 0%, var(--bg-primary) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 77, 166, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Floating Shapes (Decorative) */
.floating-candy {
    position: absolute;
    border-radius: 50%;
    background: var(--sweet-glow);
    filter: blur(10px);
    opacity: 0.6;
    animation: float 6s infinite ease-in-out alternate;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* Game Section */
.game-section {
    padding: 100px 20px;
    background: var(--bg-primary);
    position: relative;
}

.game-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    padding: 5px;
    background: var(--candy-gradient);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    transform-style: preserve-3d;
}

.game-iframe-wrapper {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    height: 700px;
    position: relative;
}

.game-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Feature Grid */
.features {
    padding: 80px 20px;
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tilt-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: border 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.tilt-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--candy-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.tilt-card:hover::before {
    opacity: 1;
}

.tilt-card:hover {
    box-shadow: 0 15px 35px rgba(255, 77, 166, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transform: translateZ(30px);
}

.tilt-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

.tilt-card p {
    color: var(--text-secondary);
    transform: translateZ(10px);
}

/* Parallax Image Section */
.parallax-section {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-image: url('images/photo-1552089123-2d26226fc2b7-parallax-parallax-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.3);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.parallax-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--bg-primary);
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--candy-pink);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--candy-blue);
}

.legal-notice {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Internal Pages (About, Terms, etc) */
.page-header {
    padding: 150px 20px 80px;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-content h2 {
    color: var(--candy-blue);
    margin: 30px 0 15px;
}

.page-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--candy-pink);
    box-shadow: 0 0 10px rgba(255, 77, 166, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(20, 10, 31, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .cta-btn {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .game-iframe-wrapper {
        height: 500px;
    }
    
    .parallax-content h2 {
        font-size: 2.2rem;
    }
}