/* FLUID DESIGN SYSTEM - JELLIBOOSTLOOP */

:root {
    /* Colors */
    --bg-primary: #0f0e0a;
    --bg-secondary: #1a1812;
    --card-bg: rgba(25, 22, 18, 0.92);
    --border-accent: rgba(241, 196, 15, 0.3);
    --glow-effect: rgba(241, 196, 15, 0.15);
    
    --accent-emerald: #2ecc71;
    --accent-ruby: #e74c3c;
    --accent-sapphire: #3498db;
    --accent-gold: #f1c40f;
    --accent-amethyst: #9b59b6;
    --accent-copper: #e67e22;
    --accent-diamond: #ecf0f1;

    --text-primary: #f5ede8;
    --text-secondary: #b9ad9a;

    /* Fluid Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    --text-h1: clamp(2rem, 5vw, 3.5rem);
    --text-h2: clamp(1.5rem, 4vw, 2.5rem);
    --text-h3: clamp(1.25rem, 3vw, 1.75rem);
    --text-lg: clamp(1rem, 2.5vw, 1.125rem);
    --text-base: clamp(0.875rem, 2vw, 1rem);
    --text-sm: clamp(0.75rem, 1.5vw, 0.875rem);

    /* Fluid Spacing */
    --space-4: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-8: clamp(0.5rem, 1vw, 0.75rem);
    --space-12: clamp(0.75rem, 1.5vw, 1rem);
    --space-16: clamp(1rem, 2vw, 1.25rem);
    --space-20: clamp(1.25rem, 2.5vw, 1.5rem);
    --space-24: clamp(1.5rem, 3vw, 2rem);
    --space-32: clamp(2rem, 4vw, 2.5rem);
    --space-40: clamp(2.5rem, 5vw, 3rem);
    --space-48: clamp(3rem, 6vw, 4rem);
    --space-64: clamp(4rem, 8vw, 6rem);
    
    /* Layout */
    --container-padding: clamp(1rem, 4vw, 5rem);
    --header-height: clamp(56px, 8vh, 90px);
    --border-radius: clamp(8px, 2vw, 16px);
    --border-radius-lg: clamp(12px, 3vw, 24px);
    
    /* Gradients */
    --gradient-gold-copper: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(15,14,10,0) 0%, var(--bg-primary) 100%);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 50% 0%, rgba(26, 24, 18, 0.8) 0%, var(--bg-primary) 70%);
}

img, picture, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

h1 { font-size: var(--text-h1); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: var(--space-20); }
h2 { font-size: var(--text-h2); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: var(--space-16); }
h3 { font-size: var(--text-h3); line-height: 1.3; margin-bottom: var(--space-12); }
p { font-size: var(--text-base); color: var(--text-secondary); margin-bottom: var(--space-16); }
.text-lg { font-size: var(--text-lg); }
.text-sm { font-size: var(--text-sm); }
.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-64) 0;
}

/* HEADER & NAVIGATION */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 14, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-accent);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-icon {
    width: clamp(24px, 4vw, 36px);
    height: auto;
    fill: var(--accent-gold);
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
}

.nav-link {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--space-8) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-gold-copper);
    color: var(--bg-primary);
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    font-size: var(--text-base);
    border-radius: var(--border-radius);
    min-height: 48px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.btn-large {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: var(--text-lg);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.menu-open .hamburger { background: transparent; }
.menu-open .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-open .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-primary);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: var(--space-24);
    overflow-y: auto;
}

.menu-open .mobile-nav-overlay {
    transform: translateX(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.mobile-nav-link {
    display: block;
    font-size: var(--text-lg);
    font-family: var(--font-heading);
    padding: var(--space-12) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* HERO SECTION */
.hero {
    padding-top: calc(var(--header-height) + var(--space-48));
    padding-bottom: var(--space-48);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-subtitle {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-12);
    display: block;
}

.legal-notice {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-24);
    opacity: 0.8;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-accent);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inset 0 0 50px rgba(0,0,0,0.8);
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

/* GAME SECTION */
.game-section {
    background: var(--bg-secondary);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.game-container-wrapper {
    max-width: clamp(300px, 90%, 1000px);
    margin: 0 auto;
    position: relative;
}

.instant-play-badge {
    text-align: center;
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: var(--space-8) var(--space-16);
    border-radius: 40px;
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: var(--space-16);
    backdrop-filter: blur(4px);
}

.badge-wrapper {
    text-align: center;
    width: 100%;
}

.game-frame {
    background: #000;
    border-radius: var(--border-radius-lg);
    padding: clamp(4px, 1vw, 12px);
    box-shadow: 0 clamp(10px, 2vw, 20px) clamp(20px, 4vw, 40px) rgba(0,0,0,0.6),
                0 0 0 1px var(--border-accent);
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: calc(var(--border-radius-lg) - 8px);
    background: #111;
}

/* Wood frame decoration */
.frame-decor {
    position: absolute;
    background: #2a1f1a;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 4px);
    z-index: -1;
    border-radius: 4px;
}
.frame-left { top: -10px; bottom: -10px; left: -15px; width: 30px; box-shadow: 5px 0 10px rgba(0,0,0,0.5); }
.frame-right { top: -10px; bottom: -10px; right: -15px; width: 30px; box-shadow: -5px 0 10px rgba(0,0,0,0.5); }

/* FEATURES SECTION */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-20);
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: var(--border-radius-lg);
    padding: var(--space-24);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(241, 196, 15, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

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

.feature-icon-wrapper {
    width: clamp(48px, 6vw, 64px);
    height: clamp(48px, 6vw, 64px);
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-16);
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-icon {
    width: 60%;
    height: 60%;
    fill: var(--accent-gold);
}

.gem-emerald { fill: var(--accent-emerald); }
.gem-ruby { fill: var(--accent-ruby); }
.gem-sapphire { fill: var(--accent-sapphire); }

/* EXPERIENCE SECTION */
.experience-section {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><rect width="100" height="100" fill="%230f0e0a"/><path d="M0 0l50 50L100 0v100L50 50 0 100z" fill="%23f1c40f"/></svg>') repeat, var(--bg-secondary);
    background-attachment: fixed;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.experience-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 14, 10, 0.85);
    padding: var(--space-40) var(--space-24);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(241, 196, 15, 0.2);
}

/* PAGE WRAPPERS (About, Legal, etc) */
.page-hero {
    padding-top: calc(var(--header-height) + var(--space-48));
    padding-bottom: var(--space-32);
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 24, 18, 0.8) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.content-block {
    background: var(--card-bg);
    padding: var(--space-32);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: var(--space-32);
}

.content-block h2 { color: var(--accent-gold); }
.content-block h3 { color: var(--text-primary); margin-top: var(--space-24); }
.content-block ul { margin-left: var(--space-20); margin-bottom: var(--space-16); list-style-type: disc; color: var(--text-secondary); }
.content-block li { margin-bottom: var(--space-8); }

/* CONTACT FORM */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
}

.form-group {
    margin-bottom: var(--space-20);
}

.form-label {
    display: block;
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: var(--space-12) var(--space-16);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-16);
    margin-bottom: var(--space-20);
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-gold);
    flex-shrink: 0;
}

/* FOOTER */
.site-footer {
    background: #080705;
    padding-top: var(--space-48);
    border-top: 2px solid var(--border-accent);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
    margin-bottom: var(--space-40);
}

.footer-col-title {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-16);
    font-family: var(--font-heading);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer-link {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.footer-link:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: var(--space-12);
    margin-top: var(--space-16);
}

.social-icon {
    width: clamp(32px, 4vw, 40px);
    height: clamp(32px, 4vw, 40px);
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: fill 0.3s;
}

.social-icon:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

.social-icon:hover svg {
    fill: var(--bg-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: var(--space-20) 0;
    text-align: center;
}

.footer-disclaimer {
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: rgba(255,255,255,0.4);
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

/* ANIMATIONS */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.2); }
    50% { box-shadow: 0 0 20px rgba(241, 196, 15, 0.6); }
    100% { box-shadow: 0 0 5px rgba(241, 196, 15, 0.2); }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE MEDIA QUERIES */

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
    .mobile-menu-toggle {
        display: none;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    .game-frame {
        aspect-ratio: 16/9;
    }
    .frame-decor {
        display: block;
    }
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .footer-disclaimer {
        margin: 0;
        text-align: left;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}