:root {
    --bg-light: #F4F7F6;
    --text-dark: #2A2D34;
    --text-muted: #6B7280;
    
    --theme-green: #81E827;
    --theme-green-dark: #6BD01A;
    --theme-orange: #FF9E00;
    --theme-blue: #00B4D8;
    --theme-purple: #9D4EDD;
    
    --card-bg: #FFFFFF;
    
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --radius-lg: 30px;
    --radius-md: 20px;
    
    --shadow-soft: 0 10px 30px rgba(42, 45, 52, 0.08);
    --shadow-hover: 0 20px 40px rgba(42, 45, 52, 0.12);
    
    --transition: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Minimalist Artsy Ambient Glows */
.ambient-glow-1, .ambient-glow-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
.ambient-glow-1 {
    top: -20%; left: -10%;
    width: 60vw; height: 60vw;
    background: rgba(129, 232, 39, 0.2);
    animation: floatAmbient 25s infinite alternate ease-in-out;
}
.ambient-glow-2 {
    bottom: -20%; right: -10%;
    width: 70vw; height: 70vw;
    background: rgba(0, 180, 216, 0.15);
    animation: floatAmbientReverse 30s infinite alternate ease-in-out;
}
@keyframes floatAmbient {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 15%); }
}
@keyframes floatAmbientReverse {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, -10%); }
}

/* Ambient Floating Particles */
.particles-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.4;
    will-change: transform;
    animation: driftAmbient infinite ease-in-out;
}
.particle.bg-green-soft { background: var(--theme-green); }
.particle.bg-blue-soft { background: var(--theme-blue); }
.particle.bg-orange-soft { background: var(--theme-orange); }
.particle.bg-purple-soft { background: var(--theme-purple); }

@keyframes driftAmbient {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -80px) scale(1.2); }
    66% { transform: translate(-40px, 60px) scale(0.8); }
}

/* Typography */
h1, h2, h3, h4, .logo-text, .brand-title { 
    font-family: var(--font-heading); 
    color: var(--text-dark);
}
p { color: var(--text-muted); font-size: 1.1rem; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; font-weight: 700; }

.highlight-text { color: var(--theme-green-dark); }
.text-dark { color: var(--text-dark) !important; }
.text-white { color: #fff !important; }
.highlight-white { color: #ccff99; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section { padding: 100px 0; position: relative; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* Casual Cards & Shadows */
.bouncy-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    transition: transform 0.4s var(--transition), box-shadow 0.4s ease;
    border: 4px solid #fff;
}
.bouncy-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Navbar */
.navbar {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1200px; z-index: 1000; padding: 15px 30px;
    background: var(--card-bg);
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    top: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-splat { width: 45px; height: 45px; transition: transform 0.4s var(--transition); object-fit: contain; }
.logo:hover .logo-splat { transform: scale(1.1) rotate(10deg); }
.logo-text { font-size: 1.7rem; letter-spacing: 1px; color: var(--theme-green-dark); }

.nav-links { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav-links a:hover { color: var(--theme-green-dark); }
.nav-btn {
    padding: 10px 24px; background: var(--theme-green); color: #fff !important;
    border-radius: 30px; box-shadow: 0 4px 15px rgba(129, 232, 39, 0.3);
}
.nav-btn:hover { background: var(--theme-green-dark); transform: scale(1.05); }
.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-dark); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: 100px; font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading); cursor: pointer; 
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.primary-btn {
    background: var(--theme-green); color: #fff;
    box-shadow: 0 8px 25px rgba(129, 232, 39, 0.4); border: none;
}
.primary-btn:hover { box-shadow: 0 12px 30px rgba(129, 232, 39, 0.5); transform: translateY(-3px) scale(1.03); }
.jelly-btn:active { transform: scale(0.95); }

.white-btn {
    background: #fff; color: var(--theme-green-dark); font-weight: 800;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.white-btn:hover { color: var(--theme-green-dark); transform: translateY(-3px) scale(1.03); }

/* Hero Section */
.hero { min-height: 90vh; display: flex; align-items: center; position: relative; padding-top: 100px; }
.hero-container { display: flex; justify-content: center; text-align: center; }
.brand-header { position: relative; display: inline-block; margin-bottom: 20px; }
.hero-splat { position: absolute; top: -80px; left: -80px; width: 250px; height: 250px; z-index: -1; opacity: 0.85; filter: drop-shadow(0 15px 25px rgba(129, 232, 39, 0.2)); object-fit: contain; }
.brand-title { font-size: clamp(4rem, 8vw, 7rem); line-height: 1; color: var(--text-dark); letter-spacing: -1px; text-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.tagline { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--text-muted); margin-bottom: 50px; font-weight: 700; }

.featured-game-card { max-width: 600px; margin: 0 auto; text-align: left; position: relative; }
.badge.fun-bg { background: var(--theme-orange); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 800; display: inline-block; margin-bottom: 15px; }
.featured-game-card h2 { font-size: 2.2rem; margin-bottom: 12px; }
.featured-game-card p { margin-bottom: 25px; font-size: 1.15rem; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--theme-green-dark); transform: translateX(-50%); }
.scroll-indicator i { font-size: 2rem; }
.scroll-text { font-size: 0.9rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

/* Section Headers */
.section-header { margin-bottom: 50px; }
.section-header.center { margin: 0 auto 50px; text-align: center; }
.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 10px; }
.section-subtitle { font-size: 1.25rem; }

/* Games Showcase Grid */
.games-section { position: relative; z-index: 10; padding: 120px 0; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.game-card { display: flex; flex-direction: column; gap: 20px; padding: 30px; text-align: left; }
.game-feature-img { width: 100%; height: 220px; object-fit: cover; border-radius: 20px; border: 4px solid #fff; box-shadow: var(--shadow-soft); }
.game-feature-placeholder { width: 100%; height: 220px; background: linear-gradient(135deg, var(--theme-purple), var(--theme-blue)); border-radius: 20px; border: 4px solid #fff; display: flex; justify-content: center; align-items: center; box-shadow: var(--shadow-soft); }
.placeholder-icon { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3)); transform: rotate(5deg); }
.game-card-info { display: flex; flex-direction: column; margin-top: 5px; }
.game-icon { width: 68px; height: 68px; border-radius: 18px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); object-fit: cover; border: 2px solid #fff; transform: translateY(-30px); margin-top: -10px; }
.game-card-info h3 { font-size: 1.8rem; margin-bottom: 12px; margin-top: -30px; color: var(--theme-green-dark); }
.game-card-info p { font-size: 1.1rem; line-height: 1.6; font-weight: 600; color: var(--text-muted); }

/* Features Section */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card { background: var(--card-bg); border-radius: var(--radius-md); padding: 40px 30px; transition: transform 0.4s var(--transition); box-shadow: var(--shadow-soft); text-align: center; }
.feature-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: var(--shadow-hover); }
.icon-wrapper { width: 80px; height: 80px; border-radius: 25px; display: inline-flex; justify-content: center; align-items: center; font-size: 2.5rem; margin-bottom: 25px; color: #fff; }
.green-pop { background: var(--theme-green); box-shadow: 0 10px 20px rgba(129, 232, 39, 0.3); }
.orange-pop { background: var(--theme-orange); box-shadow: 0 10px 20px rgba(255, 158, 0, 0.3); }
.blue-pop { background: var(--theme-blue); box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3); }
.purple-pop { background: var(--theme-purple); box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; }

/* About & Contact */
.about-content { padding: 60px; }
.about-visual-center { display: flex; justify-content: center; margin-bottom: 30px; }
.about-splat { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 15px 20px rgba(129, 232, 39, 0.25)); }

.contact-box.bg-green { background: linear-gradient(135deg, var(--theme-green), var(--theme-green-dark)); border: none; padding: 70px 40px; }

/* Footer */
.footer { padding: 60px 0 30px; background: #fff; margin-top: 50px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.footer-brand .logo-text { font-size: 2.2rem; color: var(--theme-green-dark); }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--theme-green); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(0,0,0,0.05); }

/* Animations */
.bounce-in { animation: bounceIn 1s var(--transition) forwards; opacity: 0; }
.slide-up-bounce { animation: slideUpBounce 1s var(--transition) forwards; opacity: 0; }
.slide-up { animation: slideUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); }
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }

.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.8s; }

.bounce-float { animation: bounceFloat 3s ease-in-out infinite; }
.float-slow { animation: floatSlow 6s ease-in-out infinite; }

@keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3) rotate(-30deg); } 50% { opacity: 1; transform: scale(1.1) rotate(5deg); } 100% { opacity: 0.9; transform: scale(1) rotate(-15deg); } }
@keyframes slideUpBounce { 0% { opacity: 0; transform: translateY(60px); } 60% { opacity: 1; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes bounceFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-20px) rotate(2deg); } }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(50px) scale(0.95); transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

/* Custom Trailing Cursor */
.custom-cursor {
    position: fixed; top: 0; left: 0;
    width: 20px; height: 20px;
    background: var(--theme-orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: multiply;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
    margin-left: -10px; margin-top: -10px;
    opacity: 0.8;
}
.custom-cursor.cursor-hover {
    width: 45px; height: 45px;
    background: var(--theme-green);
    margin-left: -22.5px; margin-top: -22.5px;
    opacity: 0.5;
}

/* Base Card Perspective Fix */
.bouncy-card {
    transform-style: preserve-3d;
    will-change: transform;
}


/* Mobile */
@media (max-width: 992px) {
    .game-grid { grid-template-columns: 1fr; }
    .game-feature-img, .game-feature-placeholder { height: 260px; }
    .game-card h3 { margin-top: -20px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--card-bg); flex-direction: column; padding: 25px;
        border-radius: 20px; box-shadow: var(--shadow-hover); gap: 15px; text-align: center;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .brand-title { font-size: 3.5rem; }
    .hero-splat { width: 100px; height: 100px; top: -30px; left: -30px; }
    .section { padding: 80px 0; }
    .bouncy-card { padding: 30px 20px; }
}
