/* ========================================
   COLISEUM STUDIOS — NO QUARTER
   Coming Soon Landing Page
   ======================================== */

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #080810;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 700px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

/* Background image — show full scene */
.hero-bg {
    position: absolute;
    inset: -40px;                      /* extend beyond section for parallax room */
    background: url('../images/hero-bg.jpg?v=5') center center / cover no-repeat;
    z-index: 0;
}

/* Soft vignette overlay — lighter so more image shows */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* Top: subtle darkening for contrast */
        linear-gradient(180deg,
            rgba(8,8,16,0.55) 0%,
            rgba(8,8,16,0.15) 18%,
            rgba(0,0,0,0.0)   40%,
            rgba(0,0,0,0.0)   62%,
            rgba(8,8,16,0.30) 82%,
            rgba(8,8,16,0.85) 100%),
        /* Radial edge vignette */
        radial-gradient(ellipse 70% 65% at 50% 46%,
            transparent 0%,
            rgba(8,8,16,0.40) 100%);
}

/* Bottom fade for clean transition to dark divider area */
.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 3;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(8,8,16,0.4) 40%,
        rgba(8,8,16,0.85) 75%,
        #080810 100%);
    pointer-events: none;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 20px 200px;
    margin-top: 0;
}

/* Extra spacing between logo and coming soon */
.logo-container {
    margin-bottom: 60px;
}

/* --- Logo: 1/3 viewport width --- */
.logo-container {
    width: 33.33vw;
    min-width: 250px;
    max-width: 550px;
}

.main-logo {
    width: 100%;
    height: auto;
    display: block;
    filter:
        drop-shadow(0 0 50px rgba(80,220,40,0.30))
        drop-shadow(0 0 110px rgba(80,220,40,0.12));
}

/* --- COMING SOON --- */
.coming-soon {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 2.2rem);
    letter-spacing: 0.22em;
    /* Gradient: creamy off-white top → yellowish-green bottom */
    background: linear-gradient(180deg, #FFFDE0 0%, #E8E8A0 30%, #C5E384 60%, #7DBF4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Glow applied via filter since text-shadow won't work with gradient text */
    filter: drop-shadow(0 0 8px rgba(50,205,50,0.7))
            drop-shadow(0 0 25px rgba(50,205,50,0.4))
            drop-shadow(0 0 60px rgba(50,205,50,0.2))
            drop-shadow(0 0 100px rgba(50,205,50,0.1));
}

/* =============================================
   GREEN SECTION DIVIDER LINES
   ============================================= */
.section-divider {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    background: #080810;
}

.section-divider-inner {
    background: transparent;
    padding: 14px 0 8px;
}

.divider-line-green {
    display: block;
    width: 88%;
    max-width: 1200px;
    height: 1.5px;
    /* Bright white-green core fading to transparent at both ends */
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(124,252,0,0.15) 8%,
        rgba(124,252,0,0.6) 20%,
        #7CFC00 35%,
        #AEFF60 50%,
        #7CFC00 65%,
        rgba(124,252,0,0.6) 80%,
        rgba(124,252,0,0.15) 92%,
        transparent 100%);
    box-shadow:
        0 0 4px rgba(124,252,0,0.6),
        0 0 10px rgba(50,205,50,0.35),
        0 0 25px rgba(50,205,50,0.15);
}

/* =============================================
   DEVELOPMENT UPDATES SECTION
   ============================================= */
.dev-updates-section {
    position: relative;
    width: 100%;
    padding: 50px 20px 45px;
    overflow: hidden;
}

/* Dark atmospheric background */
.dev-updates-bg {
    position: absolute;
    inset: 0;
    background: url('../images/pirate-scene.jpg?v=4') center center / cover no-repeat;
    z-index: 0;
    opacity: 0.18;
}

.dev-updates-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            #080810 0%,
            rgba(8,8,16,0.88) 8%,
            rgba(8,8,16,0.82) 50%,
            rgba(8,8,16,0.88) 92%,
            #080810 100%),
        radial-gradient(ellipse 80% 70% at 50% 50%,
            rgba(20,30,15,0.3) 0%,
            rgba(8,8,16,0.6) 100%);
}

.dev-updates-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Title with decorative lines --- */
.dev-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.dev-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 3.2vw, 2rem);
    color: #E8F0C6;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(124,252,0,0.2), 0 2px 6px rgba(0,0,0,0.5);
    letter-spacing: 0.06em;
}

.dev-title-line {
    flex: 1;
    max-width: 180px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(124,252,0,0.5) 30%, #7CFC00 50%, rgba(124,252,0,0.5) 70%, transparent 100%);
}

/* --- Three content cards --- */
.dev-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.dev-card {
    position: relative;
    border: 1px solid rgba(164,198,57,0.55);
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.dev-card:hover {
    border-color: rgba(164,198,57,0.9);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(124,252,0,0.12);
}

.dev-card-img-wrap {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.dev-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dev-card:hover .dev-card-img-wrap img {
    transform: scale(1.05);
}

.dev-card-label {
    display: block;
    padding: 10px 8px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(0.7rem, 1.6vw, 0.92rem);
    letter-spacing: 0.08em;
    color: #E8E0D0;
    background: rgba(8,8,16,0.6);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* --- Four feature items --- */
.dev-features {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 5vw, 60px);
    flex-wrap: wrap;
}

.dev-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dev-feature-icon {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: #C8D86A;
    text-shadow: 0 0 8px rgba(124,252,0,0.25);
}

.dev-feature-icon-img {
    width: clamp(36px, 5vw, 52px);
    height: clamp(36px, 5vw, 52px);
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(124,252,0,0.15));
}

.dev-feature-text {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(0.6rem, 1.3vw, 0.8rem);
    letter-spacing: 0.06em;
    color: #E8E0D0;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* --- Dev Updates scroll animations --- */
.dev-updates-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.dev-updates-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   GAME SECTION — NO QUARTER
   ============================================= */
.game-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Background image — wide 16:9 pirate scene, center it so captain is visible */
.game-bg {
    position: absolute;
    inset: -40px;
    background: url('../images/pirate-scene.jpg?v=4') center center / cover no-repeat;
    z-index: 0;
}

/* Overlay — lighter to show more of the image */
.game-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(8,8,16,0.80) 0%,
            rgba(8,8,16,0.18) 14%,
            rgba(0,0,0,0.0)   28%,
            rgba(0,0,0,0.0)   52%,
            rgba(8,8,16,0.15) 68%,
            rgba(8,8,16,0.50) 82%,
            rgba(8,8,16,0.85) 93%,
            rgba(8,8,16,1.0)  100%),
        radial-gradient(ellipse 80% 75% at 50% 40%,
            transparent 0%,
            rgba(8,8,16,0.25) 100%);
}

/* Top fade — blends from dark divider into game scene */
.game-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    z-index: 3;
    background: linear-gradient(to bottom,
        #080810 0%,
        rgba(8,8,16,0.7) 35%,
        rgba(8,8,16,0.2) 70%,
        transparent 100%);
    pointer-events: none;
}

/* Title block — near top */
.game-content {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
    padding-top: 12vh;
    flex-shrink: 0;
}

.game-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nq-logo {
    width: 33.33vw;
    min-width: 200px;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 2px 16px rgba(0,0,0,0.5));
}

.game-subtitle {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(0.55rem, 1.4vw, 0.85rem);
    letter-spacing: 0.40em;
    color: #E8E0D0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* Decorative lines flanking subtitle */
.subtitle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
    width: 100%;
    max-width: 600px;
}

.subtitle-line {
    flex: 1;
    height: 1px;
    max-width: 180px;
    background: linear-gradient(90deg, transparent 0%, rgba(232,224,208,0.5) 20%, rgba(232,224,208,0.7) 50%, rgba(232,224,208,0.5) 80%, transparent 100%);
}

/* =============================================
   GAME TOP CONTENT — Subscribe area at top of
   pirate section, above the pirate's head.
   ============================================= */
.game-top-content {
    position: relative;
    z-index: 5;
    width: 100%;
    text-align: center;
    padding: 30px 20px 0;
}

.game-top-content .subscribe-area {
    max-width: 480px;
    margin: 0 auto;
}

/* =============================================
   GAME FOOTER ZONE — overlaps bottom of game
   No separate black footer section.
   Subscribe/social/logo sit at the bottom of the
   pirate image with a dark gradient behind them.
   ============================================= */
.game-footer-zone {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: auto;    /* pushes to bottom of game-section */
}

/* Dark gradient behind footer content — blends into pirate image */
.game-bottom-fade {
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(8,8,16,0.25) 20%,
        rgba(8,8,16,0.60) 45%,
        rgba(8,8,16,0.88) 70%,
        #080810 92%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px 55px;
}

/* --- Subscribe --- */
.subscribe-area { margin-bottom: 38px; }

.footer-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.62rem, 1.8vw, 0.8rem);
    letter-spacing: 0.32em;
    color: #c8c8c8;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.subscribe-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid rgba(170,170,170,0.4);
    border-right: none;
    border-radius: 2px 0 0 2px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: #333;
}

.email-input::placeholder {
    color: #888;
    font-style: italic;
    font-size: 0.76rem;
}

.subscribe-btn {
    padding: 10px 20px;
    background: #42e835;
    border: 1.5px solid #42e835;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s;
}

.subscribe-btn:hover { background: #35cc28; }

/* --- Social --- */
.social-area { margin-bottom: 38px; }

.follow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.green-rule {
    display: block;
    height: 1.5px;
    width: 50px;
    background: #42e835;
}

.follow-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.62rem, 1.8vw, 0.8rem);
    letter-spacing: 0.32em;
    color: #c8c8c8;
    text-transform: uppercase;
    white-space: nowrap;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
}

.social-icon:hover {
    color: #42e835;
    transform: translateY(-2px);
}

/* --- Footer logo --- */
.footer-logo-area { padding-top: 4px; }

.footer-logo {
    width: 180px;
    height: auto;
    opacity: 0.82;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% {
        filter:
            drop-shadow(0 0 8px rgba(50,205,50,0.7))
            drop-shadow(0 0 25px rgba(50,205,50,0.4))
            drop-shadow(0 0 60px rgba(50,205,50,0.2))
            drop-shadow(0 0 100px rgba(50,205,50,0.1));
    }
    50% {
        filter:
            drop-shadow(0 0 12px rgba(50,205,50,0.85))
            drop-shadow(0 0 35px rgba(50,205,50,0.5))
            drop-shadow(0 0 75px rgba(50,205,50,0.25))
            drop-shadow(0 0 120px rgba(50,205,50,0.12));
    }
}

.hero-content     { animation: fadeIn 1.4s ease-out; }
.main-logo        { animation: fadeInUp 1.2s ease-out; }
.coming-soon      { animation: fadeInUp 1.3s ease-out 0.25s both, glowPulse 4s ease-in-out infinite; }
.nq-logo          { animation: fadeInUp 1s ease-out; }
.game-subtitle    { animation: fadeInUp 1.2s ease-out 0.2s both; }

/* Scroll-triggered */
.subscribe-area,
.social-area,
.footer-logo-area {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.subscribe-area.visible,
.social-area.visible,
.footer-logo-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-area       { transition-delay: 0.12s; }
.footer-logo-area  { transition-delay: 0.24s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 1400px) {
    .logo-container { width: 33.33vw; max-width: 600px; }
    .nq-logo { max-width: 520px; }
}

@media (max-width: 768px) {
    .hero-section { height: auto; min-height: 80vh; }
    .hero-content { padding-top: 12vh; padding-bottom: 14vh; }
    .logo-container { width: 50vw; }
    .nq-logo { width: 45vw; }
    .game-content { padding-top: 8vh; }
    .subscribe-form { max-width: 340px; }
    .footer-logo { width: 150px; }
    .hero-bottom-fade { height: 140px; }
    .game-top-fade { height: 120px; }
    .divider-line-green { width: 90%; }
    /* Dev Updates */
    .dev-cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .dev-card-label { font-size: 0.72rem; padding: 8px 6px; }
    .dev-features { gap: 20px; }
}

@media (max-width: 480px) {
    .hero-section { min-height: 65vh; }
    .logo-container { width: 65vw; min-width: 220px; }
    .hero-content { gap: 18px; padding-top: 8vh; padding-bottom: 12vh; }
    .nq-logo { width: 55vw; min-width: 180px; }
    .game-content { padding-top: 6vh; }
    .subscribe-form { max-width: 100%; }
    .green-rule { width: 32px; }
    .footer-content { padding: 0 16px 40px; }
    .footer-logo { width: 130px; }
    .hero-bottom-fade { height: 110px; }
    .game-top-fade { height: 90px; }
    /* Dev Updates */
    .dev-cards { grid-template-columns: 1fr; gap: 14px; max-width: 320px; margin-left: auto; margin-right: auto; margin-bottom: 35px; }
    .dev-features { gap: 16px; }
    .dev-title-line { max-width: 80px; }
    .divider-line-green { width: 92%; }
}

/* =============================================
   FILM GRAIN OVERLAY
   ============================================= */
.hero-section::after,
.game-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}
