:root {
    /* Main Cinematic Text Gold (Matched to the poster title) */
    --gold: #ffbf00;
    
    /* Deep background tone (A blend of the dark woods and volcanic ash) */
    --dark-bg: #070b0e;
    
    /* The Hot Fiery Amber Flare from the left side of the poster */
    --text-light: #ff6a00;
    --poster-fire: #ff6a00;
}

body {
    background-color: var(--dark-bg);
    color: #e0e6ed; /* Softer, highly readable off-white for body paragraphs */
    font-family: 'Raleway', sans-serif;
    margin: 0;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}

h1, h2, h3, .nav-links a {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Navigation --- */
.navbar {
    position: fixed; /* Keep it at the top even when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Higher than any other element */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background: linear-gradient(to bottom, rgba(7, 11, 14, 0.95) 0%, transparent 100%);
}

.nav-links a {
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 20px;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover { 
    color: #fff; 
    text-shadow: 0 0 8px var(--poster-fire); /* Glow matching the poster fire */
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 0 15px rgba(255, 106, 0, 0.25)); /* Warm amber drop shadow */
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;    /* Center horizontally */
    justify-content: flex-start; /* Start from the top! */
    
    background: 
        
        url('../img/munting-liwanag-hero-family-hidef.webp');
    background-size: cover;
    background-position: center top;
    padding-top: 80px; /* Space for your navbar */
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding-bottom: 20px;
}

/* Fixes the Video/About Row spacing */
.hero-media-row {
    display: flex;
    gap: 40px;
    /* This creates a healthy gap between the tagline and the video box */
    margin-top: 15vh; 
    padding-bottom: 100px;
    align-items: flex-start;
    max-width: 1200px;
    width: 90%;
}

/* Shared setup across both typography lines */

.main-title{
    position:relative;
    z-index:3;
}
.main-title .title-line-top,
.main-title .title-line-main {
    margin-top:-2px;
    margin-bottom:-12px;
    display: block;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 0.85; /* Keeps lines snug together like the poster */
    
    /* THE FIX: Highly saturated chiseled gold-to-copper linear gradient */
    background: linear-gradient(
        to bottom, 
        #e27c00 0%,     /* Bright white top highlight */
        #ffb71c 22%,    /* Pale gold shine */
        #ffaa00 48%,    /* Intense mid-gold */
        #ffaa00 52%,    /* Deep copper chisel line */
        #ffb71c 65%,    /* Warm lower reflection */
        #e27c00 85%,    /* Deep golden orange base */
        #3d1400 100%    /* Dark baseline burn edge */
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* A combination of a sharp dark shadow and a warm amber ambient glow */
    filter:
drop-shadow(0px 2px 2px rgba(0,0,0,.95))
drop-shadow(0px 0px 10px rgba(255,160,0,.55))
drop-shadow(0px 0px 24px rgba(255,120,0,.35));
}

/* "MUNTING" Positioning & Tracking */
.main-title .title-line-top {
    margin-top: 50vh; /* Retains your exact placement choice on screen */
    margin-bottom: 0;
    font-size: clamp(1.8rem, 5.5vw, 3rem); 
    letter-spacing: 0.18em;
    text-indent: 0.18em; /* Perfectly centers the text with letter-spacing */
}

/* "LIWANAG" Sizing */
.main-title .title-line-main {
    margin-top: 8px; /* Safe, tight gap under MUNTING */
    margin-bottom: 0;
    font-size: clamp(3.2rem, 10vw, 5.8rem); 
    letter-spacing: 0.02em;
}

/* Base Wrapper for Flare Alignment */
.title-divider{
    width:100%;
    max-width:420px;
    margin:-2px auto 0 auto;
    position:relative;
    z-index:2;
}

/* BIG CINEMATIC LIGHT SPREAD */
.flare-ambient{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);

    width:380px;
    height:90px;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255,190,40,0.55) 0%,
            rgba(255,140,0,0.30) 28%,
            rgba(255,120,0,0.12) 50%,
            rgba(255,120,0,0.03) 72%,
            rgba(255,120,0,0) 100%
        );

    filter: blur(18px);

    pointer-events:none;
    z-index:1;

    mix-blend-mode: screen;
}

.poster-flare{
    position:relative;
    z-index:2;
    width:100%;
    overflow:visible;
}



.hero-summary {
    flex: 1;
    text-align: left; /* Aligns text to match the design */
}

.hero-summary h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: -webkit-center;
    padding-top: 50px;
}

.hero-summary p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 15px;
    text-align: -webkit-center;
}

/* --- Video Components --- */

/* ==========================================================================
   THE TRAILER SYMMETRY FIX
   ========================================================================== */

/* 1. Ensure all video wrapper blocks scale responsively on all screens */
.video-frame {
    position: relative;
    width: 100%;
    /* Enforces a perfect widescreen frame dimension across all elements */
    aspect-ratio: 16 / 9; 
    background: #000000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* 2. Forces standard HTML5 video elements to expand cleanly to the frame edges */
.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents awkward letterboxing on local files */
    display: block;
}

/* 3. Forces the YouTube Iframe to expand perfectly into the exact same layout boundaries */
.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-container {
    flex: 1.2; /* Makes the video slightly wider than the text block */
}

.video-container video {
    width: 100%;
    border: 1px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.25); /* Fire glow shadow */
    background: #000;
}

/* Makes sure the video has the gold border */
.video-frame {
    border: 1px solid var(--gold);
    box-shadow: 0 0 25px rgba(255, 106, 0, 0.3); /* Vibrant poster-glow accent */
    background: #000;
    line-height: 0;
    overflow: hidden;
    /* This ensures the box is the right size before playing */
    aspect-ratio: 16 / 9; 
    width: 100%;
}

.video-frame video {
    width: 100%;
    height: 100%; /* Ensures it fills the aspect-ratio box */
    object-fit: cover; /* Prevents stretching */
    display: block;
}

/* --- Trailers Section --- */
.section-trailer {
    justify-content: center;
    background: 
    linear-gradient(to bottom, rgba(7, 11, 14, 0.5) 0%, rgba(7, 11, 14, 0.5) 100%), 
    url('../img/munting-liwanag-orange-forest.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 60px 20px;
    text-align: center;
    border-top: 10px solid rgba(223, 178, 96, 0.4);
    border-bottom: 10px solid rgba(223, 178, 96, 0.4);
}

/* The flex container for the videos */
.section-trailer .hero-media-row {
    display: flex;
    justify-content: center; /* Centers the videos horizontally */
    flex-wrap: wrap;         /* Allows stacking on mobile */
    gap: 30px;               /* Space between trailer boxes */
    max-width: 1200px;       /* Keeps it from getting too wide on desktop */
    margin: 0 auto;          /* Centers the entire row on the page */
}

/* The individual video boxes */
.section-trailer .video-container {
    flex: 1;
    min-width: 300px;        /* Prevents squashing on tablet */
    max-width: 380px;        /* Keeps them from getting too huge on desktop */
    margin-bottom: 20px;
}

/* Ensure headings are gold and centered */
.section-trailer h2.section-title {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* --- Section Dividers --- */
.section-divider {
    height: 200px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(to bottom, rgba(7, 11, 14, 0.4) 0%, rgba(7, 11, 14, 0.4) 100%), 
        url('../img/diamond-forge-section-background.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    z-index: 10; /* Keeps it in the right layer stack */
    border-top: 10px solid rgba(223, 178, 96, 0.2);
    border-bottom: 10px solid rgba(223, 178, 96, 0.2);
    margin-top: 0; 
}

@media (max-width: 768px) {
    .section-divider {
        height: 150px; /* Shrinks the strip slightly so it doesn't take up the whole phone screen */
    }
    .diamond-forge-logo img {
        width: 100px; /* Makes the logo fit better on small screens */
    }
}

.diamondforge-row {
    padding-top: 30px;
    padding-bottom: 30px;
}   

.diamond-forge-logo img {
    width: 150px; 
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
}

.diamond-forge-logo img:hover {
    transform: scale(1.05);
}

.diamond-forge-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between text and logo */
}

.diamond-text {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    
    /* Diamond Gradient Effect */
    background: linear-gradient(
        135deg, 
        #ffffff 0%, 
        #a8a8a8 25%, 
        #ffffff 50%, 
        #a8a8a8 75%, 
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Sparkling Shadow */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    margin: 0;
    animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
    0% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)); }
    100% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); }
}

/* Mobile Fix for hero layouts */
@media (max-width: 850px) {
    .hero-media-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-summary {
        text-align: center;
    }
    
    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

/* --- Section Divider (The Film Strip) --- */
.section-divider-strip {
    position: relative;
    z-index: 20;
    margin-top: -100px; /* Pulls strip up to overlap hero */
    display: flex;
    justify-content: center;
}

.strip-logo {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* --- Foliage Sections --- */
.foliage-section, .foliage-section-gallery {
    position: relative; /* CRITICAL: Allows sparkles to anchor here */
    background: linear-gradient(rgba(7, 11, 14, 0.4), rgba(7, 11, 14, 0.4)), url('../img/munting-liwanag-orange-forest.webp');
    background-size: cover;
    padding: 0px 6%;
    overflow: hidden; /* Prevents sparkles from "leaking" out of the section */
    z-index: 1;
}

.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 106, 0, 0.6) 1.5px, transparent 1.5px), /* Fire sparkles */
        radial-gradient(circle at 70% 50%, rgba(223, 178, 96, 0.5) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 150px 150px; 
    z-index: 2; /* Sits above the background */
    opacity: 1;
    animation: sparkleFloat 6s infinite ease-in-out;
}

/* Ensure your text/images stay on TOP of the sparkles */
.foliage-section .container, 
.foliage-section h2, 
.foliage-section .gallery-grid,
.foliage-section-gallery .container, 
.foliage-section-gallery h2, 
.foliage-section-gallery .gallery-grid {
    position: relative;
    z-index: 3;
}

.gallery-block { text-align: center; }

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    border: 1px solid var(--gold);
    padding: 15px;
    background: rgba(0,0,0,0.5);
    margin: 30px 0;
}

.side-imgs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(223, 178, 96, 0.3);
}

.view-more {
    background: radial-gradient(circle, #fee9b2 0%, #d07f2a 60%, #f6a106 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 8px rgba(253, 189, 57, 0.8)) drop-shadow(0px 0px 20px rgba(253, 189, 57, 0.4));
    text-decoration: none;
    font-size: 1.8rem;
    margin: 0 20px;
    transition: color 0.3s;
	padding-bottom: 20px;
}

.view-more a:hover { color: white; }

/* --- Sub-page Heroes --- */
.sub-hero {
    height: 250px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Room for fixed navbar */
    background-size: cover;
    background-position: center 20%; /* Safely keeps faces visible */
    position: relative;
    overflow: hidden;
}

/* Modifier classes just for changing the background photo */
.trailer-hero, .about-hero, .gallery-hero, .cast-hero, .contact-hero { 
    background-image:url('../img/sub-hero-header.webp'); 
	background-size: cover;
    background-position: center top;
}

@media (max-width: 600px) {
    .sub-hero {
        height: 300px; /* Taller on mobile to fit the stacked menu */
        padding-top: 100px;
    }
    
    .sub-hero h1 {
        font-size: 1.6rem;
        padding: 0 15px;
    }
}

.row {
    max-width: 960px;
    margin-left: auto;  /* Pushes from the left */
    margin-right: auto; /* Pushes from the right */
    text-align: center; /* Centers the text inside the row */
    display: block;     /* Ensures it behaves like a container */
}

.about-container {
    text-align: center;
    background: 
        linear-gradient(to bottom, rgba(7, 11, 14, 0.5) 0%, rgba(7, 11, 14, 0.5) 100%), 
        url('../img/amy-and-daniel.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    border-top: 10px solid rgba(223, 178, 96, 0.5);
    border-bottom: 10px solid rgba(223, 178, 96, 0.5);
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-cast {
    background: 
        linear-gradient(to bottom, rgba(7, 11, 14, 0.5) 0%, rgba(7, 11, 14, 0.5) 100%), 
        url('../img/munting-liwanag-deep-forest.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    border-top: 10px solid rgba(223, 178, 96, 0.5);
    border-bottom: 10px solid rgba(223, 178, 96, 0.5);
}

.cast-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #fff;
}

.section-title {
    text-align: center;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.cast-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* This is the key for responsiveness */
}

.cast-image {
    flex: 0 0 200px; /* Image stays 200px wide */
}

.cast-image img {
    border: 1px solid var(--gold);
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.2); /* Soft fireglow on portrait frames */
}

.cast-info {
    flex: 1; /* Text takes up the remaining space */
    min-width: 300px; /* Prevents text from becoming too skinny */
    background-color: rgba(7, 11, 14, 0.6); /* Smoky container matching backdrop */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(223, 178, 96, 0.15);
}

.cast-info h3 {
    color: #fff;
    margin-bottom: 10px;
}

.cast-info h3 span {
    color: var(--text-light); /* Warm fire tone for titles */
    font-size: 0.9rem;
    background-color: #000;
    padding-right: 6px;
    padding-left: 6px;
    border-radius: 2px;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .cast-row {
        justify-content: center;
        text-align: center;
    }
    
    .cast-info {
        min-width: 100%;
    }
}

/* --- Gallery Grid Layouts --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    padding: 40px 0;
    max-width: 1200px; 
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 2 / 1; 
    overflow: hidden;    
    border: 1px solid rgba(223, 178, 96, 0.3); 
    border-radius: 4px;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1); 
    filter: brightness(1.15) contrast(1.05);
}

/* Tablet Adjustment */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Mobile Adjustment */

/* --- Footer --- */
.coal-footer {
    background:linear-gradient(rgba(7, 11, 14, 0.5) 0%, rgba(7, 11, 14, 0.5) 100%) center center / cover, url('../img/munting-liwanag-footer-image.webp') center bottom;
    background-size: cover;
    padding: 60px 10%;
    border-top: 1px solid rgb(246 161 6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f6a106;
    padding-top: 30px;
}

.social-box h4 {
    color: #f6a106;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.social-box .icons a {
    color: #f6a106 !important; 
    font-size: 1.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    padding-right: 20px;
}

.social-box .icons a:hover {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px var(--poster-fire));
    transform: translateY(-3px);
}

.contact-box {
    color: #f6a106;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;    
}

/* --- Responsive Media Queries --- */

/* Tablet Viewports */
@media (max-width: 800px) {
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 9999;
        padding: 10px 0;
        flex-direction: row; 
        justify-content: center;
        gap: 10px;
        background: rgba(7, 11, 14, 0.95);
    }

    .nav-links {
        display: flex; 
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.7rem; 
        letter-spacing: 1px;
    }

    .nav-logo img {
        height: 30px; 
    }

    .about-row { flex-direction: column; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr; }
    
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: 80% top;
        min-height: 80vh;
        padding-top: 80px; 
    }
}

@media (min-width: 600px) and (max-width: 768px) {
    .hero {
        background: 
            
            url('../img/munting-liwanag-hero-tablets.webp'); 
        background-size: cover;
        background-position: center top;
        min-height: 80vh; 
		margin-top: 50px;
    }
	
	.main-title .title-line-top {
    margin-top: 25vh;
	}

}

@media (min-width: 769px) and (max-width: 850px) {
    .hero {
        background: 
            
            url('../img/munting-liwanag-hero-tablets.webp');
        background-size: cover;
        background-position: center top;
        min-height: 100vh;
    }

}

/* Smartphone Viewports */
@media (max-width: 600px) {
    .hero {
        background: 
            
            url('../img/munting-liwanag-hero-mobile.webp');
        background-size: cover;
        background-position: center top;
    }

	
	    .gallery-container {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .coal-footer { padding: 40px 15px; text-align: center; }
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .contact-box, .social-box { width: 100%; }
    .social-box .icons { display: flex; justify-content: center; gap: 20px; }
    .social-box .icons a { font-size: 1.8rem; padding-right: 0 !important; }
}

/* Strict mobile centering & container size rules */
@media (max-width: 480px) {
    .navbar {
        position: relative; 
        background: #070b0e; 
        flex-direction: column; 
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-logo img {
        height: 25px;
        margin-bottom: 5px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
        gap: 10px;
        width: 95%;
    }

    .nav-links a {
        font-size: 0.65rem; 
        letter-spacing: 1px;
        padding: 5px;
    }

    .hero {
        margin-top: 0;
        min-height: 70vh; 
        background-position: center top;
    }

    .main-title .title-line-top  {
        margin-top: 25vh; 
        font-size: 1.8rem;
    }
    
    /* Centering fix from your active development test */
    .video-container {
        min-width: 0 !important; 
        width: 90%; 
        margin: 0 auto 20px auto; 
    }

    .hero-media-row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
	



}