/* =========================================
   VARIABLES & DESIGN SYSTEM: "TREASURE LUX"
   ========================================= */
:root {
    /* Base Colors */
    --ocean-blue: #0b1f2a;
    --midnight-navy: #07141c;
    --wooden-brown: #2b1d14;
    
    /* Accent Colors */
    --treasure-gold: #d4af37;
    --burnt-amber: #c2410c;
    --ocean-teal: #0ea5a4;
    
    /* Support Colors */
    --rope-beige: #e5d3a1;
    --foam-white: #f8fafc;
    
    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #cbd5f5;

    /* Layout Variables */
    --container-max: 1320px;
    --spacing-desktop: 110px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.text-gold { color: var(--treasure-gold); }
.text-foam { color: var(--foam-white); }
.text-rope { color: var(--rope-beige); }
.text-secondary { color: var(--text-secondary); }
.text-amber { color: var(--burnt-amber); }
.text-center { text-align: center; }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }

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

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

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 20, 28, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: background 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--treasure-gold);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--treasure-gold);
    transition: 0.3s;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b88a20);
    color: var(--midnight-navy);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #e3c051, #d4af37);
}

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

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(7, 20, 28, 0.7), var(--midnight-navy)), url('../images/ocean-sunset-bg.webp') center/cover no-repeat;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    background: rgba(43, 29, 20, 0.5);
    font-size: 0.9rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.legal-notice {
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.85rem;
    color: var(--rope-beige);
    opacity: 0.8;
}

.hero-visual img {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* =========================================
   GAME SECTION (CORE)
   ========================================= */
.game-section {
    position: relative;
    background: radial-gradient(circle at center, var(--ocean-blue) 0%, var(--midnight-navy) 70%);
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.game-wrapper {
    background: linear-gradient(135deg, rgba(43, 29, 20, 0.95), rgba(11, 31, 42, 0.95));
    border: 2px solid var(--treasure-gold);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

.game-title h3 {
    font-size: 1.5rem;
    color: var(--treasure-gold);
}

.game-icon {
    width: 30px;
    height: 30px;
}

.status-badge {
    background: rgba(14, 165, 164, 0.1);
    color: var(--ocean-teal);
    border: 1px solid var(--ocean-teal);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.iframe-container iframe {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 12px;
    background: #000;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.wooden-bg {
    background: linear-gradient(rgba(7, 20, 28, 0.9), rgba(7, 20, 28, 0.9)), url('../images/wooden-deck-texture.webp') center/cover;
}

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

.feature-card {
    background: rgba(43, 29, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-icon-wrapper img {
    width: 40px;
    height: 40px;
}

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

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section {
    background: var(--ocean-blue);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.stat-label {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rope-beige);
}

/* =========================================
   INNER PAGES (ABOUT, CONTACT, LEGAL)
   ========================================= */
.page-hero {
    padding: 180px 0 100px;
    background: linear-gradient(to bottom, rgba(11, 31, 42, 0.9), var(--midnight-navy)), url('../images/treasure-map-texture.webp') center/cover;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

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

.wood-panel {
    background: rgba(43, 29, 20, 0.5);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.text-container {
    max-width: 800px;
    margin: 0 auto;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.custom-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--treasure-gold);
}

/* Contact Specific */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.glass-panel {
    background: rgba(11, 31, 42, 0.6);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 164, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-item img {
    width: 24px;
    height: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(7, 20, 28, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--treasure-gold);
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background: #050e14;
    padding: 80px 0 40px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

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

.footer-brand .logo {
    font-size: 1.6rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

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

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

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

.footer-links a:hover {
    color: var(--treasure-gold);
}

.footer-disclaimer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: rgba(43, 29, 20, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(194, 65, 12, 0.2);
    margin-bottom: 40px;
}

.disclaimer-icon {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

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