/* ============================
   DEMO 7: DARK & MOODY / AVANT-GARDE
   ============================ */

   :root {
    --bg-color: #050505; /* True Black */
    --bg-alt: #111111; /* Dark Grey */
    --text-primary: #e0e0e0; /* Off-White */
    --text-muted: #888888;
    --accent: #b58c5c; /* Antique Gold / Bronze */
    --border: #333333;
    
    --font-heading: 'Oswald', sans-serif; /* Brutalist Tall */
    --font-serif: 'Cinzel', serif; /* Cinematic */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-heading); /* Oswald for most text */
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.accent { color: var(--accent); }
.mt-3 { margin-top: 1.5rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.text-center { text-align: center; }

/* ============================
   PRELOADER
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s;
}

.split-text {
    font-family: var(--font-serif);
    font-size: 4rem;
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
}

.split-text .left { transform: translateY(100%); animation: slideUp 0.8s forwards; }
.split-text .right { transform: translateY(-100%); animation: slideDown 0.8s forwards 0.2s; }

@keyframes slideUp { to { transform: translateY(0); } }
@keyframes slideDown { to { transform: translateY(0); } }

.progress-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: var(--accent);
    width: 0;
    animation: fillProgress 1.5s forwards 0.5s;
}
@keyframes fillProgress { to { width: 100%; } }

/* ============================
   NAVIGATION
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.4s;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 15px 5%;
}

.logo {
    font-size: 2rem;
    letter-spacing: 5px;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.btn-brutal {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 10px 20px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
}
.btn-brutal:hover { background: var(--accent); color: #fff !important; }

.demo-badge {
    position: absolute;
    top: 0;
    right: 5%;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    padding: 5px 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: #fff; }

/* ============================
   HERO / HOME
   ============================ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    filter: grayscale(80%) contrast(120%) brightness(60%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(5,5,5,0) 0%, rgba(5,5,5,0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 10%;
}

.massive-text {
    font-family: var(--font-heading);
    font-size: 9rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -2px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.8);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-content p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    max-width: 500px;
    color: #fff;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.fade-up-hero { opacity: 0; transform: translateY(40px); transition: 1.5s ease; }
.fade-up-hero.active { opacity: 1; transform: translateY(0); }

.scroll-down {
    position: absolute;
    bottom: 40px;
    right: 10%;
    z-index: 3;
    text-align: center;
    color: #fff;
    animation: bounce 2s infinite;
}
.scroll-down p {
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-bottom: 5px;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    padding: 150px 0;
    position: relative;
    background: var(--bg-color);
    overflow: hidden;
}

.bg-text {
    position: absolute;
    top: 10%;
    left: -5%;
    font-size: 15rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: rgba(255,255,255,0.02);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-img {
    position: relative;
}
.about-img img {
    width: 100%;
    filter: grayscale(100%) contrast(150%);
    border: 1px solid var(--border);
}
.img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: #000;
    padding: 20px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.about-text h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-text p {
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif; /* Clean contrast */
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--text-primary);
    padding: 12px 30px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--text-primary); color: var(--bg-color); }

/* ============================
   HORIZONTAL GALLERY
   ============================ */
.horizontal-section {
    padding: 120px 0;
    background: var(--bg-alt);
    overflow: hidden;
}

.section-title {
    margin-bottom: 60px;
}
.section-title h2 { font-size: 3rem; color: #fff; }
.subtitle { color: var(--text-muted); font-family: 'Arial', sans-serif; letter-spacing: 1px; }

.horizontal-scroll-wrapper {
    display: flex;
    gap: 30px;
    padding: 0 5%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.horizontal-scroll-wrapper::-webkit-scrollbar { display: none; /* Chrome */ }

.h-card {
    min-width: 600px;
    height: 600px;
    position: relative;
    scroll-snap-align: center;
    cursor: grab;
}
.h-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(120%);
    transition: 0.5s;
}
.h-card:hover img { filter: brightness(1) contrast(130%); }

.h-caption {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--bg-color);
    padding: 15px 30px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--accent);
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

/* ============================
   FILM SECTION
   ============================ */
.film-section {
    padding: 150px 0;
    background: var(--bg-color);
}

.cinematic-box {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border);
    padding: 15px;
}
.cine-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: sepia(30%) grayscale(50%);
}

.play-overlay {
    position: absolute;
    inset: 15px;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.play-overlay i {
    font-size: 4rem;
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
}
.play-overlay:hover { background: rgba(0,0,0,0.2); }
.play-overlay:hover i { color: var(--accent); transform: scale(1.1); }

.cine-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    pointer-events: none;
}
.cine-text h3 { font-size: 2.5rem; color: #fff; }
.cine-text p { font-family: 'Arial', sans-serif; color: var(--text-muted); letter-spacing: 2px; }

/* ============================
   CONTACT
   ============================ */
.contact-section {
    padding: 120px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}
.contact-header h2 { font-size: 3.5rem; color: #fff; margin-bottom: 20px; }
.gold-line {
    width: 2px;
    height: 80px;
    background: var(--accent);
    margin: 0 auto;
}

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

.brutal-input {
    margin-bottom: 40px;
}
.brutal-input label {
    display: block;
    font-family: var(--font-serif);
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.brutal-input input, .brutal-input textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.brutal-input input:focus, .brutal-input textarea:focus {
    outline: none;
    border-bottom-color: var(--text-primary);
}

.btn-brutal.block {
    width: 100%;
    padding: 25px;
    font-size: 1.5rem;
    margin-top: 20px;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    padding: 60px 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer .logo { font-size: 3rem; margin-bottom: 20px; }
.socials {
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif;
    color: var(--border);
}
.socials a { color: var(--text-muted); margin: 0 10px; font-weight: bold; }
.socials a:hover { color: var(--text-primary); }
.copyright { font-size: 0.8rem; letter-spacing: 2px; color: var(--text-muted); }

/* ============================
   LIGHTBOX & EXTRAS
   ============================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background-color: rgba(5,5,5,0.98);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin-top: 50px;
    border: 1px solid var(--border);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
.close-lightbox:hover { color: var(--accent); }

.back-to-master {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--text-primary);
    padding: 10px 15px;
    color: var(--bg-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1000;
}
.back-to-master:hover { background: var(--accent); color: #fff; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(50px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .massive-text { font-size: 6rem; }
    .about-grid { grid-template-columns: 1fr; }
    .bg-text { font-size: 8rem; top: 0; }
    .h-card { min-width: 400px; height: 400px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .massive-text { font-size: 4rem; -webkit-text-stroke: 1px rgba(255,255,255,0.8); }
    .hero-content { padding: 0 5%; }
    .h-card { min-width: 300px; height: 300px; }
    .h-caption { font-size: 0.9rem; left: -15px; bottom: 15px; }
    .cinematic-box { padding: 5px; }
    .cine-text h3 { font-size: 1.5rem; }
}
