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

:root {
    /* Color System */
    --bg-primary: #07110B;
    --bg-secondary: #132A1B;
    --bg-atmos: #1F3A25;
    
    /* Glass UI */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    
    /* Accents */
    --grad-emerald: linear-gradient(135deg, #166534, #22c55e);
    --grad-gold: linear-gradient(135deg, #ca8a04, #fde047);
    --grad-bronze: linear-gradient(135deg, #78350f, #d97706);
    --grad-sky: linear-gradient(135deg, #0284c7, #7dd3fc);
    --nav-border-grad: linear-gradient(135deg, #fde047, #22c55e, #ca8a04);
    
    /* Glows */
    --glow-green: rgba(34, 197, 94, 0.4);
    --glow-gold: rgba(250, 204, 21, 0.45);
    --glow-sky: rgba(56, 189, 248, 0.35);
    
    /* Typography */
    --text-primary: #fefce8;
    --text-secondary: #dcfce7;
    --text-muted: #a3a3a3;
    
    /* Spacing */
    --spacing-desktop: 120px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-mobile);
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-tablet);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-desktop);
    }
    .page-wrapper {
        padding-left: 100px; /* Space for side nav */
    }
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Typography Classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.text-gradient-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: var(--grad-emerald);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--grad-gold);
    color: #422006; /* Dark brown for contrast */
    box-shadow: 0 4px 15px var(--glow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-gold);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--grad-emerald);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--glow-green);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-green);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header-scrolled {
    background: rgba(7, 17, 11, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-primary);
    font-family: 'Fredoka', sans-serif;
}

.logo-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon-img {
    transform: scale(1.1) rotate(5deg);
}

/* Side Navigation (Desktop) */
.side-nav-wrapper {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    padding: 2px;
    background: var(--nav-border-grad);
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    display: none;
}

@media (min-width: 1024px) {
    .side-nav-wrapper {
        display: block;
    }
}

.side-nav {
    background: rgba(7, 17, 11, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 38px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.side-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.side-nav a svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.side-nav a:hover, .side-nav a.active {
    color: var(--text-primary);
    transform: scale(1.08);
}

.side-nav a:hover svg, .side-nav a.active svg {
    stroke: #fde047;
    filter: drop-shadow(0 0 8px var(--glow-gold));
}

.side-nav a::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--grad-gold);
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.side-nav a.active::after {
    height: 20px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 17, 11, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 150;
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    padding-bottom: env(safe-area-inset-bottom, 15px);
}

@media (min-width: 1024px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-nav a.active, .mobile-nav a:hover {
    color: #fde047;
}

.mobile-nav a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('images/cartoon-farm-slot-bright-colorful-background.png') center/cover no-repeat;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7,17,11,0.3) 0%, rgba(7,17,11,0.8) 60%, var(--bg-primary) 100%);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-image: radial-gradient(circle, var(--glow-gold) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: particleDrift 30s linear infinite;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes particleDrift {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-notice {
    margin-top: 60px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-flex;
    border: 1px solid var(--glass-border);
}

/* Internal Page Hero */
.page-hero {
    padding: 180px 0 80px;
    background: linear-gradient(to bottom, rgba(19, 42, 27, 0.8), var(--bg-primary)),
                url('images/cartoon-farm-slot-game-landscape-banner.png') center/cover;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 15px;
}

/* Game Section */
.section-game {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.game-showcase {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 26px;
    padding: 2px;
    background: linear-gradient(135deg, #ca8a04, #22c55e, #ca8a04);
    background-size: 200% 200%;
    animation: borderGradient 5s ease infinite;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--glow-green);
    transition: transform 0.3s ease;
}

.game-showcase:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 50px var(--glow-gold);
}

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

.game-inner {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.game-header-bar {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-header-bar h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-controls button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.game-controls button:hover {
    background: rgba(255,255,255,0.1);
}

.iframe-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Features Section */
.section-features {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/cartoon-farm-slot-ui-element-background.png') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px var(--glow-gold);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    color: #fde047;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Content Pages (Legal/Text) */
.content-section {
    padding: 80px 0;
}

.text-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
}

.text-panel h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.text-panel h2:first-child {
    margin-top: 0;
}

.text-panel p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.text-panel ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-muted);
}

.text-panel li {
    margin-bottom: 10px;
    list-style-type: disc;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 10px var(--glow-green);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: #040906;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fde047;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.eighteen-plus {
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
}