/* 
==============================================
JUNOFUNTERMINAL DESIGN SYSTEM 
Nature-Inspired Luxury x Arabian Mystique
==============================================
*/

:root {
    /* Base Colors */
    --bg-primary: #0b1d16; /* Deep Forest Green */
    --bg-secondary: #132a21; /* Dark Moss Green */
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-glass-hover: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(34, 197, 94, 0.15);
    
    /* Accent Colors */
    --accent-primary: #22c55e; /* Fresh Green */
    --accent-secondary: #84cc16; /* Lime Nature Glow */
    --accent-highlight: #facc15; /* Warm Sunlight Gold */
    
    /* Text Colors */
    --text-primary: #f0fdf4;
    --text-secondary: #bbf7d0;
    --text-muted: rgba(187, 247, 208, 0.6);
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif; /* Elegant, classic */
    --font-body: 'Outfit', sans-serif; /* Clean, modern editorial */
    
    /* Spacing */
    --section-spacing-desktop: 110px;
    --section-spacing-tablet: 80px;
    --section-spacing-mobile: 60px;
    
    /* Layout */
    --max-width: 1320px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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 {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.125rem;
}

.subheading {
    display: block;
    font-family: var(--font-body);
    color: var(--accent-highlight);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

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

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

.section {
    padding: var(--section-spacing-desktop) 0;
    position: relative;
    z-index: 10;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #2ce870, var(--accent-secondary));
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--surface-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Glass Cards */
.glass-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    height: 100%;
}

.glass-card:hover {
    background: var(--surface-glass-hover);
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* ================== HEADER ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(11, 29, 22, 0.85);
    backdrop-filter: blur(16px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--surface-border);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-links a {
    position: relative;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

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

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

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

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

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 29, 22, 0.95) 0%, rgba(11, 29, 22, 0.7) 50%, rgba(11, 29, 22, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

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

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.game-wrapper {
    position: relative;
    max-width: 1250px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(11, 29, 22, 0));
}

.game-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    border-radius: calc(var(--radius-lg) - 2px);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

.game-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.1;
    z-index: 1;
    border-radius: inherit;
    animation: pulseGlow 4s infinite alternate;
}

/* ================== ABOUT / STORY SECTION ================== */
.about-section {
    background: var(--bg-secondary);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-image {
    position: relative;
}

.rounded-img {
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.image-accent-border {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    z-index: 1;
    opacity: 0.3;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.list-icon {
    font-size: 1.5rem;
}

/* ================== MINDFUL ENGAGEMENT ================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

/* ================== FOOTER ================== */
.site-footer {
    background: #06110c;
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--surface-border);
}

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

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

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.footer-links a:hover {
    color: var(--accent-primary);
}

.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;
}

/* ================== ANIMATIONS ================== */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes pulseGlow {
    0% { opacity: 0.05; transform: translate(-50%, -50%) scale(0.98); }
    100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1.02); }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Particles */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

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

@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) translateX(20px); opacity: 0; }
}

/* ================== RESPONSIVENESS ================== */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .section { padding: var(--section-spacing-tablet) 0; }
    
    .split-layout {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: var(--section-spacing-mobile) 0; }
    
    /* Nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        z-index: 99;
        border-left: 1px solid var(--surface-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-cta { display: none; }
    .mobile-toggle { display: flex; z-index: 100; }
    
    /* Mobile Menu Toggle Animation */
    .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Layouts */
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(11, 29, 22, 0.8) 0%, rgba(11, 29, 22, 0.95) 100%);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .split-image {
        order: -1;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}