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

:root {
    /* Color System (Strictly No Blue) */
    --bg-primary: #04120c;
    --bg-secondary: #0f2a1f;
    
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --accent-green-1: #16a34a;
    --accent-green-2: #4ade80;
    --grad-green: linear-gradient(135deg, var(--accent-green-1), var(--accent-green-2));
    
    --accent-orange-1: #f59e0b;
    --accent-orange-2: #fbbf24;
    --grad-orange: linear-gradient(135deg, var(--accent-orange-1), var(--accent-orange-2));
    
    --accent-purple-1: #7c3aed;
    --accent-purple-2: #c084fc;
    --grad-purple: linear-gradient(135deg, var(--accent-purple-1), var(--accent-purple-2));
    
    --glow-green: rgba(22, 163, 74, 0.45);
    --glow-orange: rgba(245, 158, 11, 0.45);
    --glow-purple: rgba(124, 58, 237, 0.35);
    
    --text-primary: #ecfdf5;
    --text-secondary: #bbf7d0;
    --text-muted: #6b7280; /* Adjusted to fit the no-blue constraint better, pure neutral/warm gray */
    
    /* Layout */
    --max-width: 1280px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(22, 163, 74, 0.15), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    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: clamp(1.5rem, 3vw, 2rem); }

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--accent-orange-2);
}

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

.text-center { text-align: center; }
.text-gradient-green { background: var(--grad-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-orange { background: var(--grad-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.content-image {
    width: 100%;
    max-height: 450px;
    border-radius: var(--radius-md);
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    object-fit: cover;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--grad-orange);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--glow-orange);
}

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-green-2);
    color: var(--accent-green-2);
}

.btn-outline:hover {
    background: rgba(74, 222, 128, 0.1);
    box-shadow: 0 0 15px var(--glow-green);
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 30px;
    border-radius: var(--radius-lg);
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    z-index: 101;
}

/* Subtle Monkey Element */
.monkey-icon {
    width: 40px;
    height: 40px;
    animation: monkeySwing 4s ease-in-out infinite alternate;
    transform-origin: top center;
}

.monkey-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent-orange-2);
    filter: drop-shadow(0 0 5px var(--glow-orange));
}

@keyframes monkeySwing {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

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

.nav-links li a {
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-green);
    transition: width 0.3s ease;
}

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

.nav-links li a:hover {
    text-shadow: 0 0 8px var(--glow-green);
}

.nav-actions {
    display: flex;
    align-items: center;
}

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

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        url('images/dark-jungle-background-texture.jpg'),
        radial-gradient(circle at 20% 50%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    z-index: -1;
    opacity: 0.8;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.6;
}

.particle {
    position: absolute;
    background: var(--accent-green-2);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
}

.particle:nth-child(1) { width: 8px; height: 8px; left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { width: 12px; height: 12px; left: 30%; animation-duration: 20s; animation-delay: -5s; }
.particle:nth-child(3) { width: 6px; height: 6px; left: 60%; animation-duration: 12s; animation-delay: -2s; }
.particle:nth-child(4) { width: 10px; height: 10px; left: 85%; animation-duration: 18s; animation-delay: -8s; }

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1) rotate(360deg); opacity: 0; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid var(--accent-green-1);
    border-radius: 50px;
    color: var(--accent-green-2);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 4px; /* Space for gradient border */
    border-radius: 28px;
    background: linear-gradient(135deg, var(--accent-green-1), var(--accent-orange-1), var(--accent-purple-1));
    background-size: 200% 200%;
    animation: gradientBorder 5s ease infinite;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.game-container:hover {
    transform: translateY(-5px);
}

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

.game-inner {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.game-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-title h2 {
    margin: 0;
    font-size: 1.8rem;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-green-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-green);
    animation: pulse 2s infinite;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.how-to-play h4 {
    color: var(--accent-orange-2);
    margin-bottom: 5px;
}

.how-to-play p {
    font-size: 0.9rem;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    position: relative;
}

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

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

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--grad-green);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:nth-child(2)::before { background: var(--grad-orange); }
.feature-card:nth-child(3)::before { background: var(--grad-purple); }
.feature-card:nth-child(4)::before { background: var(--grad-green); }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(22, 163, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--accent-green-2);
}

.feature-card:nth-child(2) .feature-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange-2); }
.feature-card:nth-child(3) .feature-icon { background: rgba(124, 58, 237, 0.1); color: var(--accent-purple-2); }

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

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

.footer-brand p {
    margin-top: 20px;
    max-width: 300px;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-green-2);
    padding-left: 5px;
}

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

.company-info {
    background: rgba(0,0,0,0.2);
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.company-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.legal-warning {
    color: var(--accent-orange-2);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Pages (About, Terms, etc.) */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.content-section {
    padding: 60px 0 100px;
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--radius-md);
}

.content-box h2 {
    margin-top: 30px;
    color: var(--accent-green-2);
}

.content-box ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.content-box li {
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green-2);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 100px 30px;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--glass-border);
    }
    
    /* Mobile menu active class toggled via JS */
    .nav-links.active { right: 0; }
    
    .nav-actions {
        display: none; /* Hide CTA in header on small screens */
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .game-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .content-box {
        padding: 30px 20px;
    }
}