/* CSS Variables - Light "Ocean Freedom" Theme */
:root {
    /* Backgrounds */
    --bg-main: rgba(255, 255, 255, 0.85);
    /* High transparency white */
    --bg-alt: rgba(240, 249, 255, 0.85);
    /* Very light sky blue with transparency */
    --bg-card: rgba(255, 255, 255, 0.9);

    /* Text */
    --text-primary: #0C4A6E;
    /* Deep Ocean Blue */
    --text-secondary: #475569;
    /* Slate Blue-Grey */
    --text-on-dark: #FFFFFF;

    /* Accents */
    --accent-cyan: #0EA5E9;
    /* Bright Sky Blue */
    --accent-yellow: #F59E0B;
    /* Sun Amber */

    /* Effects */
    --glow-cyan: 0 4px 20px rgba(14, 165, 233, 0.2);
    --shadow-card: 0 10px 30px -5px rgba(12, 74, 110, 0.08);
    --shadow-hover: 0 20px 40px -5px rgba(12, 74, 110, 0.12);

    --font-main: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #020617;
    /* Fallback dark */
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('images/gameplay2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
.text-highlight {
    color: var(--accent-cyan);
    background: -webkit-linear-gradient(45deg, var(--accent-cyan), #0284C7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    gap: 10px;
    border-radius: 50px;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background-color: #FBBF24;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: #FFF;
    color: #FFF;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-white {
    background-color: #FFF;
    color: var(--accent-cyan);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 18px 45px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 20px 60px;
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--accent-cyan);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFF;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Blur background image slightly to separate text */
    filter: brightness(1.05) blur(3px);
    transform: scale(1.05);
    /* Prevent blur edges */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* stronger overlay for readability */
    background: linear-gradient(to bottom, rgba(240, 249, 255, 0.5), rgba(224, 242, 254, 0.6) 70%, #FFFFFF 100%);
    backdrop-filter: blur(5px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* Soft shadow to lift text off the light background */
    text-shadow: 0 10px 30px rgba(12, 74, 110, 0.2);
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.95;
    margin: 24px 0;
    color: #FFF;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #FFF;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Content Sections */
.section {
    padding: 120px 0;
    position: relative;
    /* Ensure sections sit above background */
}

/* Add subtle backing to text-heavy sections if needed, or rely on variables */
.bg-light-alt {
    background-color: var(--bg-alt);
    backdrop-filter: blur(5px);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -24px;
}

.items-center {
    align-items: center;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 24px;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 24px;
}

/* About Styling */
.image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(12, 74, 110, 0.15);
}

.content-box p.lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.content-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.tech-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    display: inline-flex;
}

.tech-item {
    display: flex;
    flex-direction: column;
}

.tech-val {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-cyan);
}

.tech-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-top: 5px;
}

.tech-divider {
    width: 1px;
    background: #E2E8F0;
}

/* Features/Gameplay */
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    height: 100%;
    transition: var(--transition);
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.6);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-cyan);
}

.card-icon {
    color: var(--accent-cyan);
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: rgba(224, 242, 254, 0.8);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Gallery - Minimal Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: 280px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
    color: var(--accent-cyan);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284C7 100%);
    color: #FFF;
    text-align: center;
}

.download-box {
    max-width: 600px;
    margin: 0 auto;
}

.download-box h2 {
    color: #FFF;
    margin-bottom: 20px;
    font-size: 3rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
}

.shadow-glow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.small-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

/* Footer */
.footer {
    background: #020617;
    /* Very dark blue, almost black */
    padding: 80px 0 40px;
    text-align: center;
}

.footer h3 {
    margin-bottom: 10px;
    color: #FFF;
    font-size: 1.5rem;
}

.footer p {
    color: #94A3B8;
    font-size: 0.9rem;
}

/* Mobile & Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFF;
        flex-direction: column;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .hamburger span {
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        left: 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 9px;
    }

    .hamburger span:nth-child(3) {
        top: 18px;
    }

    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }
}

/* Animations Helpers */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Trailer Section */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--radius-sm);
    background: #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.trailer-frame {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}