/* ROOT VARIABLES - KUNG FU THEME PALETTE */
:root {
    /* Colors */
    --ink-black: #0b0f0c;
    --dark-jade: #102a1f;
    --shadow-green: #0f1f17;
    --jade-green: #1f7a5c;
    --bamboo-green: #2faa6d;
    --warm-gold: #d4af37;
    --soft-amber: #f6c453;
    --deep-red: #7a1f1f;
    
    /* Text Colors */
    --text-primary: #f4f7f5;
    --text-secondary: #c7e3d4;
    --text-muted: #7fb59e;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--jade-green) 0%, var(--bamboo-green) 100%);
    --glass-bg: rgba(16, 42, 31, 0.45);
    --glass-border: rgba(244, 247, 245, 0.08);

    /* Layout */
    --max-width: 1320px;
    --border-radius: 16px;
    --border-radius-lg: 20px;

    /* Spacing (Mobile First Defaults) */
    --padding-x: 16px;
    --section-spacing: 60px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--ink-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ATMOSPHERIC BACKGROUNDS */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 50% 30%, var(--shadow-green) 0%, var(--ink-black) 70%);
}

.mist-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 120vw;
    height: 100vh;
    z-index: -1;
    background: url('images/photo-1476611317561-60117649dd94.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    mix-blend-mode: screen;
    animation: mist-drift 30s infinite alternate ease-in-out;
    pointer-events: none;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: var(--warm-gold);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 8px var(--warm-gold);
    animation: particle-rise 10s infinite linear;
}

/* LAYOUT & UTILITIES */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-gold { color: var(--warm-gold); }
.text-jade { color: var(--bamboo-green); }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; color: var(--text-primary); }
p { color: var(--text-secondary); margin-bottom: 1rem; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(31, 122, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 170, 109, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--warm-gold);
    color: var(--warm-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* HEADER - GLASS TEMPLE NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(11, 15, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(47, 170, 109, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--warm-gold);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(47, 170, 109, 0.4);
}

.nav-links {
    display: none; /* Mobile default */
}

.nav-cta {
    display: none; /* Mobile default */
}

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

/* MOBILE NAV OVERLAY */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(11, 15, 12, 0.98);
    backdrop-filter: blur(15px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    margin: 15px 0;
    font-weight: 500;
    color: var(--text-secondary);
}

.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--warm-gold);
}

.mobile-nav .btn {
    margin-top: 30px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: var(--padding-x);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* MAIN SECTIONS */
section {
    padding: var(--section-spacing) 0;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-text-col {
    text-align: center;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bamboo-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-text-col p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.hero-visual-col {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-top: 40px;
}

.hero-visual-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    opacity: 0.8;
    mix-blend-mode: luminosity;
    border: 1px solid var(--glass-border);
}

/* GAME SECTION */
.game-section {
    position: relative;
    z-index: 10;
}

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

.game-container {
    width: 100%;
    aspect-ratio: 16/9;
    padding: 4px;
    background: linear-gradient(135deg, rgba(31,122,92,0.3) 0%, rgba(212,175,55,0.1) 100%);
    border-radius: calc(var(--border-radius-lg) + 4px);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--jade-green), transparent, var(--warm-gold), transparent);
    z-index: -1;
    border-radius: calc(var(--border-radius-lg) + 6px);
    opacity: 0.3;
    animation: pulse-glow 8s infinite alternate;
}

.game-iframe-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: #000;
}

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

/* FEATURES SECTION */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(31, 122, 92, 0.1);
    border: 1px solid rgba(47, 170, 109, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
    color: var(--warm-gold);
}

/* CONTENT PAGES (About, Legal) */
.page-hero {
    padding: 120px 0 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.content-wrapper h2 {
    color: var(--warm-gold);
    margin-top: 30px;
    font-size: 1.5rem;
}

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

.content-wrapper ul {
    padding-left: 20px;
}

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

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--bamboo-green);
    box-shadow: 0 0 10px rgba(47, 170, 109, 0.2);
}

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

/* FOOTER */
footer {
    background: rgba(11, 15, 12, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px 0;
    margin-top: 60px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

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

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}