:root {
    --primary-dark: #0a0a0a;
    --accent-red: #8B0000;
    --blood-red: #DC143C;
    --fog-gray: #2c2c2c;
    --ghost-white: #f8f8f8;
    --font-title: 'Cinzel', serif;
    --font-horror: 'Creepster', cursive;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1a1a 50%, var(--fog-gray) 100%);
    color: var(--ghost-white);
    overflow-x: hidden;
    line-height: 1.2;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 85%;
    margin: 0 auto;
}
/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-horror);
    font-size: 2rem;
    color: var(--blood-red);
    text-shadow: 0 0 20px var(--blood-red);
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--ghost-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.rem; /* Adjust this */
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--blood-red);
    text-shadow: 0 0 10px var(--blood-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--blood-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--ghost-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION - FITS ALL SCREEN SIZES
   ============================================ */
.hero {
    /* Use min-height so it never goes smaller than screen */
    min-height: 100vh;
    width: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
        linear-gradient(to bottom, #0a0a0a, #1a1a1a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(10,10,10,0.8) 50%, transparent 70%);
    animation: shimmer 6s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-horror);
    /* clamp(min, responsive, max) - automatically scales */
    font-size: clamp(2.5rem, 6vw, 6rem);
    color: var(--blood-red);
    text-shadow: 0 0 30px var(--blood-red), 0 0 60px var(--blood-red);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    line-height: 1.1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-content p {
    /* Responsive font sizing */
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--blood-red), var(--accent-red));
    color: var(--ghost-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.6);
}

/* Tablet */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }
    
    .hero {
        padding: 1rem;
        padding-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Large monitors */
@media (min-width: 1200px) {
    .hero-content {
        max-width: 900px;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
}

/* Extra large monitors */
@media (min-width: 1920px) {
    .hero-content h1 {
        font-size: 6rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
    .hero {
    max-width: none;
    width: 100%;
    margin: 0;
}

h2 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--blood-red), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--blood-red);
}

/* ============================================
   GALLERY - WITH PLACEHOLDER BOXES
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.gallery-item:last-child:nth-child(3n + 1) {

    grid-column: 2;

}
.gallery-item:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* Fallback background in case image doesn't load */
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.4);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.7), rgba(220, 20, 60, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* When no image loads - show placeholder box */
.gallery-item.no-image {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border: 2px solid var(--accent-red);
}

.gallery-item.no-image::after {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: var(--accent-red);
    opacity: 0.5;
    position: absolute;
    z-index: 0;
}

.gallery-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.character-card {
    position: relative;
    height: 350px; 
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.character-card .default-img,
.character-card .hover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.character-card .hover-img {
    opacity: 0;
}

.character-card:hover .default-img {
    opacity: 0;
}

.character-card:hover .hover-img {
    opacity: 1;
}

.character-card::before {
    display: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}


.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}


.about-image {
    height: 400px;
    background: linear-gradient(45deg, var(--fog-gray), var(--accent-red));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

/* Responsive for about */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   FAQs SECTION
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: rgba(139, 0, 0, 0.2);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(139, 0, 0, 0.4);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 200px;
    padding: 1.5rem;
    background: rgba(44, 44, 44, 0.5);
}

/* ============================================
   GAMEPLAY SECTION
   ============================================ */
.gameplay-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(44, 44, 44, 0.5);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.feature-card:hover {
    background: rgba(139, 0, 0, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: var(--blood-red);
    margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary-dark);
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--ghost-white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--blood-red);
    transform: translateY(-5px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 1s ease-out;
}
/* =====================================================
MODAL SYSTEM
===================================================== */

.modal {
display: none;
position: fixed;
inset: 0;
z-index: 5000;
background: rgba(0,0,0,0.92);
backdrop-filter: blur(8px);
justify-content: center;
align-items: center;
padding: 2rem;
}

.modal.active {
display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px; /* smaller box */
    background: linear-gradient(
        135deg,
        rgba(20,20,20,.98),
        rgba(40,40,40,.98)
    );
    border: 1px solid rgba(220,20,60,.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(220,20,60,.3);
    animation: modalFade .3s ease;
}

.modal-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-content h2 {
    margin: 1rem;
    font-size: 1.4rem;
}

.modal-content p {
    padding: 0 1rem 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.close-modal {
position: absolute;
top: 20px;
right: 30px;
color: white;
font-size: 2rem;
cursor: pointer;
z-index: 2;
}

/* =====================================================
TEAM SECTION
===================================================== */

.team-section {
display: grid;
grid-template-columns: 400px 1fr;
gap: 2rem;
align-items: start;
}

.team-list {
display: flex;
flex-direction: column;
gap: 1rem;
}

.team-card {
display: flex;
align-items: center;
gap: 1rem;
background: rgba(255,255,255,.03);
border: 1px solid rgba(220,20,60,.2);
padding: 1rem;
border-radius: 12px;
cursor: pointer;
transition: .3s;
}

.team-card:hover {
border-color: var(--blood-red);
transform: translateX(8px);
}

.team-card.active {
border-color: var(--blood-red);
background: rgba(220,20,60,.08);
}

.team-card img {
width: 70px;
height: 70px;
border-radius: 50%;
object-fit: cover;
}

.team-detail {
background: rgba(255,255,255,.03);
border: 1px solid rgba(220,20,60,.2);
border-radius: 15px;
overflow: hidden;
}

.team-detail img {
width: 100%;
height: 350px;
object-fit: cover;
}

.team-detail h3,
.team-detail h4,
.team-detail p {
padding-left: 1.5rem;
padding-right: 1.5rem;
}

.team-detail h3 {
margin-top: 1rem;
}

.team-detail h4 {
color: var(--blood-red);
margin-top: .5rem;
}

.team-detail p {
margin-top: 1rem;
margin-bottom: 2rem;
line-height: 1.7;
}

/* =====================================================
AUTH SECTION
===================================================== */

.auth-box {
max-width: 550px;
margin: auto;
background: rgba(255,255,255,.03);
border: 1px solid rgba(220,20,60,.2);
border-radius: 15px;
padding: 2rem;
}

.auth-tabs {
display: flex;
margin-bottom: 2rem;
}

.auth-tab {
flex: 1;
padding: 1rem;
background: #111;
color: white;
border: 1px solid rgba(220,20,60,.2);
cursor: pointer;
}

.auth-tab.active {
background: var(--blood-red);
}

.auth-form {
display: none;
flex-direction: column;
gap: 1rem;
}

.auth-form.active {
display: flex;
}

.auth-form input {
background: rgba(255,255,255,.05);
border: 1px solid rgba(220,20,60,.2);
color: white;
padding: 1rem;
border-radius: 8px;
}

.auth-form button {
background: linear-gradient(
45deg,
var(--blood-red),
var(--accent-red)
);
border: none;
padding: 1rem;
color: white;
cursor: pointer;
border-radius: 10px;
font-weight: bold;
}

/* =====================================================
FORUM SECTION
===================================================== */

.forum-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.forum-post {
background: rgba(255,255,255,.03);
border: 1px solid rgba(220,20,60,.2);
border-radius: 15px;
padding: 1.5rem;
transition: .3s;
}

.forum-post:hover {
transform: translateY(-5px);
border-color: var(--blood-red);
box-shadow: 0 10px 25px rgba(220,20,60,.15);
}

.forum-post h3 {
margin-bottom: .8rem;
}

.forum-post span {
color: var(--blood-red);
font-size: .9rem;
}

/* =====================================================
HORROR AMBIANCE IMPROVEMENTS
===================================================== */

.hero::after {
content: "";
position: absolute;
inset: 0;
background:
radial-gradient(
circle at center,
transparent,
rgba(0,0,0,.65)
);
pointer-events: none;
}

.gallery-item:hover {
box-shadow:
0 0 25px rgba(220,20,60,.25),
0 0 50px rgba(220,20,60,.12);
}

.feature-card:hover {
box-shadow:
0 0 25px rgba(220,20,60,.15);
}

/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width: 900px) {


.team-section {
    grid-template-columns: 1fr;
}

.team-detail img {
    height: 280px;
}

}
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    min-width: 190px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 10px;
    list-style: none;
    padding: 0.8rem 0;
    display: none;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1rem;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(220, 20, 60, 0.15);
}

.portfolio-showcase {
    margin-top: 2rem;
}

.portfolio-showcase h4 {
    color: var(--blood-red);
    margin-bottom: 1rem;
}

.showcase-image-container {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(220,20,60,.3);
}

.showcase-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.showcase-controls button {
    background: rgba(220,20,60,.15);
    border: 1px solid var(--blood-red);
    color: white;
    padding: .8rem 1.2rem;
    cursor: pointer;
    border-radius: 10px;
}

.showcase-controls button:hover {
    background: var(--blood-red);
}
.work-box {
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
}

.work-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.forum-locked {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.forum-locked p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.forum-auth-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.forum-header-box {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(220,20,60,.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.forum-header-box h3 {
    color: var(--blood-red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.forum-header-box p {
    font-weight: 300;
    opacity: 0.85;
}

.logout-btn {
    background: rgba(220,20,60,.15);
    border: 1px solid var(--blood-red);
    color: white;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
}

.logout-btn:hover {
    background: var(--blood-red);
}

.forum-post h3 i {
    color: var(--blood-red);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .forum-header-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
#forum-locked {
    padding-top: 120px;
    min-height: 80vh;
}
.auth-links {
    text-align: center;
    margin-top: 12px;
}

.auth-links p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.auth-links a {
    color: #b30000;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}
.auth-links {
  text-align: center;
  margin-top: 10px;
}

.auth-links p {
  margin: 5px 0;
  font-size: 0.95rem;
}

.register-link {
  color: #c1121f;
  text-decoration: none;
  font-weight: 600;
}

.forgot-link {
  color: #9abc2a;
  text-decoration: none;
  font-weight: 600;
}

.register-link:hover,
.forgot-link:hover {
  text-decoration: underline;
}

.qr-section {
    width: 100%;
    padding: 40px 8%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-section img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(220, 0, 0, 0.35);
}
