/* ==========================================================================
   THE NIGHTMARES — OFFICIAL GAME STYLESHEET
   Veddia Games Studio | games.veddia.com
   First-Person Psychological Horror Inspired by Real Nightmares
   ========================================================================== */

:root {
    /* Brand & Horror Palette */
    --horror-black: #04060a;
    --horror-dark-900: #070a12;
    --horror-dark-800: #0d121f;
    --horror-dark-700: #141c2e;
    
    /* Eerie Accent Colors */
    --eerie-crimson: #dc2626;
    --eerie-blood: #991b1b;
    --eerie-violet: #8b5cf6;
    --eerie-cyan: #06b6d4;
    --eerie-mist: #38bdf8;
    --eerie-amber: #f59e0b;

    /* Text Colors */
    --text-pure: #ffffff;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-ghost: #475569;

    /* Borders & Glassmorphism */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(220, 38, 38, 0.5);
    --border-violet: rgba(139, 92, 246, 0.35);
    --card-bg: rgba(13, 18, 31, 0.75);
    --card-hover: rgba(20, 28, 46, 0.9);

    /* Gradients */
    --nightmare-gradient: linear-gradient(135deg, #ef4444 0%, #a855f7 50%, #06b6d4 100%);
    --blood-gradient: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
    --veddia-gradient: linear-gradient(135deg, #14b8a6, #0ea5e9, #6366f1);
    --dark-vignette: radial-gradient(circle at center, transparent 40%, rgba(4, 6, 10, 0.95) 100%);
    --steam-gradient: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%);

    /* Shadows & Glows */
    --glow-crimson: 0 0 35px rgba(220, 38, 38, 0.35);
    --glow-violet: 0 0 35px rgba(139, 92, 246, 0.3);
    --shadow-card: 0 15px 35px -10px rgba(0, 0, 0, 0.8);

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-eerie: 'Cinzel', serif;
    --font-cyber: 'Rajdhani', sans-serif;

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--horror-black);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #04060a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc2626, #8b5cf6);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ef4444;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-pure);
    letter-spacing: -0.02em;
    font-weight: 700;
}

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

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

/* Particle Canvas (Dream Fog / Ash) */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* Ambient Dream Orbs */
.ambient-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
}
.ambient-orb-1 {
    top: -10%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #dc2626, #8b5cf6);
    animation: orbDrift 22s infinite alternate ease-in-out;
}
.ambient-orb-2 {
    bottom: 10%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4f46e5, #06b6d4);
    animation: orbDrift 28s infinite alternate-reverse ease-in-out;
}
.ambient-orb-3 {
    top: 45%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #991b1b, #4338ca);
    opacity: 0.14;
    animation: orbDrift 20s infinite alternate ease-in-out;
}

@keyframes orbDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -70px) scale(1.15); }
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   COMMON UTILITIES & BADGES
   ========================================================================== */
.gradient-text-nightmare {
    background: linear-gradient(135deg, #f87171 0%, #c084fc 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-blood {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 60%, #b91c1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-horror {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 40px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.badge-horror i {
    color: #ef4444;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text-pure);
}
@media (min-width: 992px) {
    .section-title {
        font-size: 3.2rem;
    }
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

/* Primary Action Buttons */
.btn-nightmare-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--blood-gradient);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 25px rgba(220, 38, 38, 0.45);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-nightmare-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(239, 68, 68, 0.65);
    color: #ffffff !important;
}

.btn-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--steam-gradient);
    border: 1px solid rgba(102, 192, 244, 0.4);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}
.btn-steam:hover {
    border-color: #66c0f4;
    color: #66c0f4 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 192, 244, 0.35);
}

.btn-nightmare-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}
.btn-nightmare-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   TOPBAR & MAIN NAVBAR
   ========================================================================== */
.topbar {
    background: rgba(4, 6, 10, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1050;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.topbar-tag {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.topbar-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-social-links a {
    color: var(--text-muted);
}
.topbar-social-links a:hover {
    color: var(--eerie-crimson);
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-link {
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.topbar-link:hover {
    color: #ffffff;
}
.topbar-parent-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    border-left: 1px solid var(--border-subtle);
    padding-left: 15px;
}
.topbar-parent-link:hover {
    color: #38bdf8;
}

/* Main Navbar */
.navbar-nightmare {
    background: rgba(7, 10, 18, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}
.navbar-nightmare.scrolled {
    background: rgba(4, 6, 10, 0.97);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
    padding: 0.6rem 0;
}
.navbar-nightmare .navbar-brand {
    margin-right: 1.8rem;
    padding: 0;
    flex-shrink: 0;
}
.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.brand-badge {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: #ffffff;
    font-family: var(--font-cyber);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.nav-link-nightmare {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.55rem !important;
    position: relative;
    white-space: nowrap;
    transition: var(--transition-fast);
}
.nav-link-nightmare:hover,
.nav-link-nightmare.active {
    color: #f87171 !important;
}
.nav-link-nightmare::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nightmare-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-link-nightmare:hover::after,
.nav-link-nightmare.active::after {
    width: 60%;
}

/* Compact single-line Steam button in navbar */
.navbar-nightmare .btn-steam {
    padding: 0.45rem 1.05rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 50px;
    gap: 6px;
    letter-spacing: 0.2px;
}
.navbar-nightmare .btn-steam i {
    font-size: 0.95rem;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .nav-link-nightmare {
        font-size: 0.8rem;
        padding: 0.35rem 0.45rem !important;
    }
    .brand-logo-img {
        height: 28px;
    }
    .navbar-nightmare .btn-steam {
        padding: 0.38rem 0.85rem;
        font-size: 0.78rem;
    }
}

/* Sound Toggle */
.btn-sound-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-sound-toggle:hover {
    color: #ffffff;
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    z-index: 1060;
}
.hamburger-line {
    width: 26px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-toggle.active .line-1 {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active .line-2 {
    opacity: 0;
}
.mobile-menu-toggle.active .line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(4, 6, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
}
.mobile-nav-drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-pure);
}
.mobile-nav-links a:hover {
    color: #f87171;
}

/* ==========================================================================
   HERO SECTION — THE NIGHTMARES
   ========================================================================= */
.hero-horror-section {
    position: relative;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: 100px 0 70px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.28) contrast(1.2) saturate(0.9);
    transform: scale(1.04);
}
.hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(7, 10, 18, 0.35) 0%, rgba(4, 6, 10, 0.88) 75%, #04060a 100%),
                linear-gradient(180deg, rgba(4, 6, 10, 0.7) 0%, transparent 40%, rgba(4, 6, 10, 0.95) 85%, #04060a 100%);
}

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

.hero-game-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin: 1.2rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
@media (min-width: 992px) {
    .hero-game-title {
        font-size: 5rem;
    }
}
@media (min-width: 1200px) {
    .hero-game-title {
        font-size: 5.6rem;
    }
}

.hero-tagline {
    font-family: var(--font-eerie);
    font-size: 1.4rem;
    color: #fca5a5;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
}
@media (min-width: 992px) {
    .hero-tagline {
        font-size: 1.8rem;
    }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 2.2rem;
    line-height: 1.8;
}

.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2.8rem;
}

/* Atmospheric Status Box */
.hero-status-strip {
    background: rgba(13, 18, 31, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.4rem 1.8rem;
    backdrop-filter: blur(12px);
    max-width: 580px;
    box-shadow: var(--shadow-card);
}
.hero-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}
.hero-status-header .pulse-amber {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px #f59e0b;
    animation: blinkDot 1.8s infinite;
}
@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-status-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 576px) {
    .hero-status-badges-grid {
        grid-template-columns: 1fr;
    }
}
.hero-status-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-status-pill i {
    color: #ef4444;
}

/* Hero Right Visual Preview Card */
.hero-visual-horror-card {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(13, 18, 31, 0.7);
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), var(--glow-crimson);
    transition: var(--transition-slow);
}
.hero-visual-horror-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.65);
}
.hero-visual-horror-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition-slow);
}
.hero-visual-horror-card:hover .hero-visual-horror-img {
    transform: scale(1.05);
}
.hero-visual-horror-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 10, 0.96) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.2rem;
}
.hero-play-pulse-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(4, 6, 10, 0.65);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(239, 68, 68, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}
.hero-play-pulse-btn:hover {
    background: var(--eerie-crimson);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 45px rgba(239, 68, 68, 0.9);
}

/* ==========================================================================
   PHILOSOPHY & COMPARISON SECTION (WHAT MAKES IT DIFFERENT)
   ========================================================================== */
.philosophy-section {
    padding: 100px 0;
    position: relative;
}
.quote-banner {
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.12) 0%, rgba(13, 18, 31, 0.8) 70%),
                rgba(7, 10, 18, 0.9);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    backdrop-filter: blur(16px);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.quote-icon {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 1.2rem;
    opacity: 0.7;
}
.quote-text {
    font-family: var(--font-eerie);
    font-size: 1.8rem;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
}
@media (min-width: 992px) {
    .quote-text {
        font-size: 2.2rem;
    }
}
.quote-author {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Comparison Cards */
.comparison-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    backdrop-filter: blur(14px);
    transition: var(--transition);
}
.comparison-card.highlight {
    border-color: rgba(220, 38, 38, 0.4);
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.08) 0%, rgba(13, 18, 31, 0.85) 100%);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), var(--glow-crimson);
}
.comparison-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.comparison-list li i {
    margin-top: 5px;
    flex-shrink: 0;
}

/* ==========================================================================
   KEY FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 100px 0;
    position: relative;
}
.feature-horror-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
}
.feature-horror-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--nightmare-gradient);
    opacity: 0;
    transition: var(--transition);
}
.feature-horror-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.85), var(--glow-crimson);
}
.feature-horror-card:hover::before {
    opacity: 1;
}

.feature-horror-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.feature-horror-card:hover .feature-horror-icon-box {
    background: var(--blood-gradient);
    color: #ffffff;
    transform: scale(1.1) rotate(4deg);
    border-color: transparent;
}
.feature-horror-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-pure);
}
.feature-horror-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   EXPLORE NIGHTMARES (EPISODE SHOWCASE TABS)
   ========================================================================== */
.episodes-section {
    padding: 100px 0;
    position: relative;
}
.episodes-tabs-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}
.episodes-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}
.episode-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.episode-nav-btn:hover {
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.05);
}
.episode-nav-btn.active {
    color: #ffffff;
    background: var(--blood-gradient);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.episode-pane {
    display: none;
}
.episode-pane.active {
    display: block;
    animation: fadeIn 0.45s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.episode-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-subtle);
}
.episode-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
}
.episode-badge-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(4, 6, 10, 0.8);
    backdrop-filter: blur(8px);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #fca5a5;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   UNPREDICTABLE DREAM LOGIC (MECHANICS SECTION)
   ========================================================================== */
.logic-section {
    padding: 100px 0;
    position: relative;
}
.logic-card {
    background: rgba(13, 18, 31, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}
.logic-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), var(--glow-violet);
}
.logic-number {
    font-family: var(--font-cyber);
    font-size: 1.8rem;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 0.5rem;
}
.logic-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: #ffffff;
}
.logic-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ==========================================================================
   SHARE YOUR NIGHTMARE (COMMUNITY SUBMISSION FORM)
   ========================================================================== */
.submit-nightmare-section {
    padding: 100px 0;
    position: relative;
}
.submit-nightmare-box {
    background: radial-gradient(circle at 85% 15%, rgba(220, 38, 38, 0.2) 0%, rgba(13, 18, 31, 0.95) 60%),
                linear-gradient(135deg, rgba(20, 28, 46, 0.7) 0%, rgba(7, 10, 18, 0.98) 100%);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 32px;
    padding: 4.5rem 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), var(--glow-crimson);
}
@media (max-width: 768px) {
    .submit-nightmare-box {
        padding: 2.5rem 1.8rem;
    }
}

.nightmare-form-control {
    background: rgba(7, 10, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}
.nightmare-form-control:focus {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.35);
    background: rgba(13, 18, 31, 0.95);
}
.nightmare-form-control::placeholder {
    color: var(--text-muted);
}

.nightmare-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-feedback-message {
    padding: 1.2rem;
    border-radius: 14px;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    display: none;
    text-align: center;
}
.form-feedback-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.form-feedback-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* ==========================================================================
   PORTAL IN DEVELOPMENT & DISABLED FORM STYLES
   ========================================================================== */
.portal-dev-banner {
    background: radial-gradient(circle at 50% 0%, rgba(220, 38, 38, 0.22) 0%, rgba(13, 17, 28, 0.9) 100%);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(220, 38, 38, 0.12);
    position: relative;
    overflow: hidden;
}
.portal-dev-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, #dc2626, transparent);
}
.portal-dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(220, 38, 38, 0.45);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ff6b6b;
    text-transform: uppercase;
}
.portal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    display: inline-block;
    animation: portalPulse 1.8s infinite ease-in-out;
}
@keyframes portalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }
}
.nightmare-form-control:disabled,
.nightmare-form-control[disabled] {
    background: rgba(8, 11, 18, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
    user-select: none;
}
.nightmare-form-control:disabled::placeholder {
    color: rgba(255, 255, 255, 0.22) !important;
}
.btn-nightmare-disabled {
    background: linear-gradient(135deg, rgba(32, 18, 22, 0.95) 0%, rgba(18, 14, 20, 0.95) 100%);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 50px;
    padding: 0.95rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    user-select: none;
    transition: var(--transition-fast);
}
.btn-nightmare-disabled:hover {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

/* ==========================================================================
   DEVELOPMENT STATUS & RELEASE MODEL
   ========================================================================== */
.status-section {
    padding: 100px 0;
    position: relative;
}
.status-timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.2rem;
    backdrop-filter: blur(14px);
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.status-timeline-card.active-phase {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 18, 31, 0.85) 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}
.status-badge-state {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}
.state-current {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.state-planned {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.engine-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 3rem;
}
.engine-spec-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.4rem;
    text-align: center;
}
.engine-spec-icon {
    font-size: 1.8rem;
    color: #38bdf8;
    margin-bottom: 0.6rem;
}
.engine-spec-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}
.engine-spec-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   FOOTER (Faithfully mirroring www.veddia.com design in English)
   ========================================================================== */
.footer-section {
    background: #030408;
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 30px;
    position: relative;
    z-index: 2;
}
.footer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1.2rem;
}
.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 1.4rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover {
    color: #f87171;
    transform: translateX(4px);
}
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.contact-info span,
.contact-info a {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
}
.contact-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.social-link:hover {
    background: var(--eerie-crimson);
    color: #ffffff;
    border-color: var(--eerie-crimson);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 25px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-brand-text {
    color: var(--text-primary);
    font-weight: 600;
}
.footer-brand-text:hover {
    color: #f87171;
}
.footer-legal {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }
}
.footer-legal a {
    color: var(--text-muted);
}
.footer-legal a:hover {
    color: var(--text-primary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blood-gradient);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1000;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.7);
}

/* Mobile Sticky Bar */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 6, 10, 0.96);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-subtle);
    padding: 10px 16px;
    z-index: 999;
    display: flex;
    gap: 10px;
}
.mobile-sticky-action-bar a {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.65rem 0.5rem;
    border-radius: 40px;
    text-align: center;
}
@media (min-width: 992px) {
    .mobile-sticky-action-bar {
        display: none !important;
    }
}
