/* =========================================
   VARIABLES & THEMING
========================================= */
:root {
    /* Brand Colors */
    --bg-primary: #050505;
    --bg-secondary: #0f0a08;
    --surface-glass: rgba(255, 120, 0, 0.06);
    --surface-glass-hover: rgba(255, 120, 0, 0.1);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #ff3c00, #ff9f1c);
    --secondary-gradient: linear-gradient(135deg, #ff7a18, #ffd166);
    
    /* Glow Effects */
    --glow: rgba(255, 80, 0, 0.6);
    --border-glow: rgba(255, 120, 0, 0.2);
    
    /* Typography */
    --text-primary: #fff7ed;
    --text-secondary: #fca5a5;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --max-width: 1320px;
    --section-spacing: 100px;
}

/* Tablet Spacing */
@media (max-width: 992px) {
    :root {
        --section-spacing: 70px;
    }
}

/* Mobile Spacing */
@media (max-width: 768px) {
    :root {
        --section-spacing: 50px;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* =========================================
   LAYOUT SYSTEM
========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.mt-4 {
    margin-top: 32px;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

/* =========================================
   COMPONENTS
========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* Glass Panel */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* Disclaimer Box */
.disclaimer-box {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #ff3c00;
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: padding 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

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

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

.nav-links a:hover {
    color: #ff9f1c;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* =========================================
   HERO SECTION
========================================= */
.hero {
    padding: calc(100px + var(--section-spacing)) 0 var(--section-spacing);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--glow);
    filter: blur(100px);
    z-index: 1;
    border-radius: 50%;
}

/* =========================================
   GAME SECTION
========================================= */
.game-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-secondary);
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 12px;
}

/* Inline CSS class for background image as requested */
.kung-fu-temple-bg {
    background-image: url('images/photo-1511512578047-dfb367046420-kung-temple-kung-fu-temple-.png');
    background-size: cover;
    background-position: center;
}

.game-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 10, 8, 0.7);
    z-index: 1;
    border-radius: 20px;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

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

/* =========================================
   FEATURES SECTION
========================================= */
.features {
    padding: var(--section-spacing) 0;
}

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

.feature-card {
    padding: 40px 32px;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--surface-glass-hover);
    border-color: rgba(255, 120, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* =========================================
   PAGE SECTIONS (About, Contact, Legal)
========================================= */
.page-header {
    padding: calc(120px + 40px) 0 40px;
    background: radial-gradient(circle at top, rgba(255, 60, 0, 0.1) 0%, var(--bg-primary) 70%);
}

.content-section {
    padding: 0 0 var(--section-spacing);
}

.text-content {
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.text-content h2 {
    margin-top: 40px;
    color: #ff9f1c;
    font-size: 1.75rem;
}

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

.text-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.text-content li {
    margin-bottom: 12px;
    list-style-type: disc;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-wrapper {
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

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

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff7a18;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.2);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-desc {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: #ff9f1c;
    transform: translateX(5px);
}

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

/* =========================================
   ANIMATIONS
========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .disclaimer-box {
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }
    
    .text-content, .form-wrapper {
        padding: 32px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}