/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #7214ff;
    --secondary-color: #ff1e56;
    --accent-color: #00eeff;
    --dark-bg: #0a0a14;
    --darker-bg: #05050a;
    --light-text: #ffffff;
    --gray-text: #a0a0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 3rem; /* Increased from 2.5rem */
    text-align: center;
    margin-bottom: 3rem; /* Increased spacing */
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

p {
    margin-bottom: 1rem;
    color: var(--gray-text);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section.dark {
    background: linear-gradient(135deg, #0f0f1e, #121228);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
    padding-bottom: 40px; /* Increased padding for grid hover effect */
}

@media (min-width: 992px) {
    .section.dark {
        padding-bottom: 50px; /* Even more padding on desktop */
    }
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(5, 5, 10, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    flex: 0 0 150px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--gray-text);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--light-text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta-container {
    display: flex;
    gap: 0.8rem;
    margin-left: 1.5rem;  /* Add margin to create space between menu and buttons */
}

.nav-cta {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 30, 86, 0.4);
    color: white;
}

.nav-cta.nav-discord {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.2);
}

.nav-cta.nav-discord:hover {
    background-color: rgba(0, 238, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 238, 255, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 5, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-cta-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
    padding-top: 70px; /* Account for fixed navigation */
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg)); /* Fallback background */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    /* Using this to maintain 16:9 aspect ratio in container */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-black-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 0;
}

.background-video {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
    filter: brightness(0.5);
    pointer-events: none; /* Prevent video from capturing mouse events */
    opacity: 1; /* Ensure video is visible */
    display: block; /* Explicitly set display */
    object-fit: contain; /* Maintain aspect ratio without stretching */
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease;
}

.video-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a14, #05050a, #14073a);
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(10, 10, 20, 1) 0%,
        rgba(10, 10, 20, 0.8) 20%,
        rgba(10, 10, 20, 0.4) 50%,
        rgba(10, 10, 20, 0.8) 80%,
        rgba(10, 10, 20, 1) 100%
    );
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 10;
    animation: fadeIn 2s ease;
}

.game-logo {
    max-width: 400px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(114, 20, 255, 0.7));
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button.primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 30, 86, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 30, 86, 0.6);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.2);
}

.cta-button.secondary:hover {
    background-color: rgba(0, 238, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 238, 255, 0.3);
}

.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.featured-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-image img {
    display: block;
    width: 100%;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default 1 column for mobile */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2x2 grid on wider screens */
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem; /* row-gap column-gap */
    }
}

.feature {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    transition: transform 0.3s ease;
    margin-bottom: 0; /* Reset margin since we're using grid gap */
}

.feature:hover {
    transform: translateY(-8px); /* Slightly reduced movement for grid layout */
}

/* Adjust the transform origin to prevent overflow in grid */
@media (min-width: 992px) {
    .feature:hover {
        transform: translateY(-5px) scale(1.02); /* More subtle lift, add slight scale */
    }
}

.feature-image {
    width: 85%; /* Wider for the grid layout */
    margin: 0 auto 20px; /* Added bottom margin */
    display: block;
    position: relative; /* For proper scaling behavior */
}

/* Make images slightly smaller on desktop for the 2x2 grid */
@media (min-width: 992px) {
    .feature-image {
        width: 75%;
    }
}

/* Wrapper for the image to handle overflow */
.feature-image::before {
    content: '';
    display: block;
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 12px;
    z-index: -1;
}

.feature-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
    border-radius: 8px;
}

.feature:hover .feature-image img {
    transform: scale(1.03); /* Reduced scale effect */
    filter: brightness(1.1); /* Added brightness for visual impact */
}

/* Simplify content area since we're removing headers */
.feature-content {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Adjust content for grid layout */
@media (min-width: 992px) {
    .feature-content {
        padding: 0 1rem 1.5rem;
    }
}

.feature:hover .feature-content {
    transform: scale(1.02);
}

.feature-content p {
    font-size: 1.1rem; /* Slightly smaller for grid */
    line-height: 1.6;
    max-width: 95%; /* Wider for grid layout */
    margin: 0 auto;
}

@media (min-width: 992px) {
    .feature-content p {
        font-size: 1rem; /* Slightly smaller on desktop grid */
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== GAMEPLAY SECTION ===== */
.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.gameplay-text {
    font-size: 1.1rem;
}

.gameplay-features {
    margin-top: 2rem;
}

.gameplay-feature {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.gameplay-feature:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.gameplay-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gameplay-shot {
    transition: all 0.5s ease;
}

.gameplay-image:hover .gameplay-shot {
    transform: scale(1.05);
}

/* ===== SHIPS SECTION ===== */
.ships-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ship {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ship:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(114, 20, 255, 0.2);
    border-color: var(--accent-color);
}

.ship-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ship-image {
    width: 80%;
    max-width: 150px;
    filter: drop-shadow(0 5px 15px rgba(0, 238, 255, 0.5));
    transition: all 0.5s ease;
    position: absolute;
}

.ship-mode {
    opacity: 1;
}

.tank-mode {
    opacity: 0;
}

.ship:hover .ship-mode {
    opacity: 0;
}

.ship:hover .tank-mode {
    opacity: 1;
    filter: drop-shadow(0 10px 25px rgba(255, 30, 86, 0.8));
}

.ship-image-container:hover {
    transform: translateY(-8px);
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* ===== TRAILER SECTION ===== */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Removed fallback background */

/* ===== CTA SECTION ===== */
.cta-text {
    text-align: center;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons.centered {
    justify-content: center;
}

.release-date {
    text-align: center;
    margin-top: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* ===== FOOTER SECTION ===== */
.footer {
    background-color: var(--darker-bg);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.company-logo {
    max-width: 150px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--gray-text);
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

.social-link:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .about-content, .gameplay-content {
        grid-template-columns: 1fr;
    }
    
    .featured-image, .gameplay-image {
        margin-top: 2rem;
        order: -1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* All screens use the same video styling for consistency */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .game-logo {
        max-width: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links, .social-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .game-logo {
        max-width: 250px;
    }
}

/* ===== PLATFORM BADGES ===== */
.platform-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.platform {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.platform:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.platform-icon {
    height: 40px;
    width: auto;
    margin-right: 1rem;
}

.platform span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--light-text);
}

@media (max-width: 768px) {
    .platform-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .platform {
        width: 80%;
        justify-content: center;
    }
}

/* ===== SCREENSHOT MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    user-select: none;
}

.modal-nav:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-loading {
    color: white;
    font-size: 18px;
    font-family: 'Orbitron', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
