/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-blue: #00f2ff;
    --dark-red: #8B0000;
    --white: #ffffff;
    --black: #050505;
    --dark-gray: #1a1a1a;
    --card-bg: #111;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', cursive;
    letter-spacing: 2px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 2px 2px 0px var(--dark-red);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background Stars Effect */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    overflow: hidden;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--dark-red);
}

.logo {
    font-size: 1rem;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
    cursor: pointer;
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--neon-blue);
    transition: all 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

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

.neon-title {
    font-size: 6rem;
    line-height: 1;
    color: var(--white);
    text-shadow: 
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue),
        4px 4px 0 var(--dark-red);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-family: 'Bangers', cursive;
    background-color: var(--dark-red);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 4px 4px 0px var(--neon-blue);
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--neon-blue);
    background-color: #a00000;
}

.hero-cards {
    position: relative;
    width: 500px;
    height: 600px;
    z-index: 5;
}

.card {
    position: absolute;
    width: 260px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4), inset 0 0 10px rgba(139, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.card:hover {
    z-index: 10 !important;
    transform: scale(1.1) rotate(0deg) !important;
    animation-play-state: paused;
}

.card-1 {
    top: 50px;
    left: 20px;
    transform: rotate(-15deg);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.card-2 {
    top: 100px;
    left: 140px;
    transform: rotate(5deg);
    animation: float 7s ease-in-out infinite 1s;
    z-index: 3;
}

.card-3 {
    top: 150px;
    left: 260px;
    transform: rotate(20deg);
    animation: float 8s ease-in-out infinite 2s;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

/* Sections */
.section {
    padding: 6rem 10%;
    position: relative;
    z-index: 10;
}

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

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.reverse-grid {
    direction: rtl;
}

.reverse-grid > * {
    direction: ltr;
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.5;
}

.feature-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
    font-size: 1.2rem;
    top: 2px;
}

/* Box Art Container */
.box-art-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-art-image {
    max-width: 100%;
    height: auto;
    border: 4px solid var(--white);
    border-radius: 12px;
    box-shadow: -15px 15px 0 var(--neon-blue), 0 0 30px rgba(0, 242, 255, 0.2);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.box-art-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
}

/* Gameplay Section */
.gameplay-section {
    background: linear-gradient(to bottom, transparent, rgba(139, 0, 0, 0.15), transparent);
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.phases-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.phase-card {
    background: rgba(10, 10, 10, 0.85);
    border: 2px solid var(--dark-gray);
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.phase-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--dark-red);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.phase-header h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin: 0;
    text-shadow: none;
}

.phase-number {
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    right: 15px;
    top: -15px;
    user-select: none;
}

.phase-details {
    list-style: square;
    padding-left: 1.5rem;
}

.phase-details li {
    margin-bottom: 1rem;
    color: #ddd;
    font-size: 1.1rem;
}

.phase-details li::marker {
    color: var(--neon-blue);
}

.video-card {
    display: flex;
    flex-direction: column;
}

.video-placeholder {
    flex-grow: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.6);
    border: 2px dashed rgba(0, 242, 255, 0.5);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-placeholder:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.play-icon {
    font-size: 3rem;
    color: var(--dark-red);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--dark-red);
    transition: transform 0.3s ease;
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
}

/* Art Section */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid var(--dark-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.3);
    z-index: 10;
}

.gallery-item:hover .ship-img {
    transform: scale(1.1);
}

.ship-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.item-1 {
    grid-column: span 2;
    height: 100%;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(to top, transparent, rgba(0, 242, 255, 0.05), transparent);
    border-top: 1px solid rgba(0, 242, 255, 0.2);
}

.nav-cta {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 5px var(--neon-blue);
}

.incentive-text {
    font-size: 1.2rem;
    color: var(--white);
    background: rgba(139, 0, 0, 0.3);
    padding: 1rem;
    border-left: 4px solid var(--neon-blue);
    border-radius: 4px;
    margin-top: 1.5rem;
}

.foil-text {
    background: linear-gradient(90deg, #ff00cc, #3333ff, #00f2ff, #ff00cc);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s infinite linear;
    font-weight: bold;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.signup-form input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--dark-gray);
    border: 2px solid #444;
    color: var(--white);
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.signup-form input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.submit-btn {
    grid-column: span 2;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 242, 255, 0.2);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    color: var(--white);
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: opacity 0.5s, transform 0.5s;
}

.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.foil-card-container {
    position: relative;
    width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4), inset 0 0 10px rgba(139, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.foil-card-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.foil-card-img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.foil-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    overflow: hidden; /* Crop the sliding sheen */
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: opacity;
}

/* Show overlay and animate on hover OR when the newsletter section comes into view */
.newsletter-section:hover .foil-overlay,
.newsletter-section.in-view .foil-overlay {
    opacity: 1;
}

/* Use a GPU-accelerated pseudo-element to slide the holographic gradient */
.foil-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 300%;
    height: 100%;
    background: linear-gradient(125deg, 
        rgba(255,255,255,0) 35%, 
        rgba(255,255,255,0.3) 45%, 
        rgba(255,255,255,0.7) 50%, 
        rgba(255,255,255,0.3) 55%, 
        rgba(255,255,255,0) 65%);
    will-change: transform;
}

.newsletter-section:hover .foil-overlay::before,
.newsletter-section.in-view .foil-overlay::before {
    animation: shine-gpu 3.5s infinite linear;
}

@keyframes shine-gpu {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 2px solid var(--dark-red);
    background: #0a0a0a;
    position: relative;
    z-index: 10;
}

footer h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

footer p {
    color: #666;
}

@media (max-width: 960px) {
    .navbar {
        background: rgba(5, 5, 5, 0.96); /* Elegant solid dark gray */
        backdrop-filter: none; /* Disable expensive blur filter calculations on mobile */
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-bottom: 2px solid var(--dark-red);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .layout-grid, .phases-container {
        grid-template-columns: 1fr;
    }

    .art-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .item-1 {
        grid-column: auto;
    }

    .gallery-item {
        min-height: 250px;
        width: 100%;
    }
    
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 12rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-cards {
        width: 100%;
        height: 400px;
        display: flex;
        justify-content: center;
    }
    
    .card {
        width: 180px;
    }
    
    .card-1 { top: 20px; left: calc(50% - 150px); }
    .card-2 { top: 60px; left: calc(50% - 90px); }
    .card-3 { top: 100px; left: calc(50% - 30px); }
    
    .neon-title {
        font-size: 4.5rem;
    }
    
    .reverse-grid {
        direction: ltr;
    }
    
    .signup-form {
        grid-template-columns: 1fr;
    }
    
    .submit-btn {
        grid-column: span 1;
    }
}
