/* --- FONT IMPORT --- */
@font-face {
    font-family: 'WW2Poster';
    src: url('https://cdn.jsdelivr.net/gh/libnoon/Walden-Font-Co@master/ww2-poster/ww2.ttf') format('truetype');
}

/* --- ROOT VARIABLES & RESETS --- */
:root {
    --bg-soot: #111111;
    --bg-soot-darker: #080808;
    --bg-soot-lighter: #1a1a1a;
    --color-parchment: #C9BBA0;
    --color-parchment-dark: #b0a381;
    --color-briefing-bg: #c9bba0; 
    --color-briefing-text: #2a2a2a;
    --color-blood-red: #8B0000;
    --color-olive-drab: #656346;
    --font-heading: 'WW2Poster', 'Impact', sans-serif;
    --font-body: 'IBM Plex Mono', monospace;
}

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

body {
    background-color: var(--bg-soot);
    color: var(--color-parchment);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    transition: filter 0.1s ease-in-out; /* For flashback effect */
}

/* Flashback Effect */
body.flashback {
    filter: invert(1);
}

/* Darker grunge texture applied as a pseudo-element */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://www.transparenttextures.com/patterns/grunge-wall.png');
    opacity: 0.04; 
    z-index: -1;
    pointer-events: none;
}


/* --- CUSTOM CURSOR --- */
.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    background-image: url('https://img.icons8.com/ios/50/ffffff/crosshairs.png');
    background-size: contain;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

.crack-decal {
    position: fixed;
    width: 100px;
    height: 100px;
    background-image: url('https://pngimg.com/uploads/cracked_glass/cracked_glass_PNG45.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
}

/* --- NAVIGATION --- */
.main-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-link {
    color: var(--color-parchment);
    text-decoration: none;
    font-family: var(--font-body);
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border: 1px solid var(--color-parchment-dark);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--color-parchment);
    color: var(--bg-soot);
}


/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.85;
    z-index: 2;
}

.hero-video iframe {
    width: 100vw;
    height: 56.25vw;
    min-width: 177.77vh;
    min-height: 100vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 700px;
    width: 90%; 
    height: auto;
    margin-bottom: 20px;
    mix-blend-mode: screen; 
}

.tagline {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0; /* For GSAP fade-in */
}

.steam-button {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bg-soot);
    background-color: var(--color-parchment);
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid var(--color-parchment-dark);
    transition: all 0.3s ease;
}

/* --- GENERAL SECTION STYLING --- */
section {
    padding: 80px 0;
    position: relative;
}

section:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(221, 209, 168, 0.15), transparent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-parchment);
    letter-spacing: 2px;
}

/* --- SUMMARY/BRIEFING SECTION (OVERHAULED) --- */
.summary-section {
    background-color: var(--color-briefing-bg);
    color: var(--color-briefing-text);
    padding: 100px 5%; /* Use percentage padding for responsiveness */
}

.briefing-container {
    max-width: 1400px; /* Increase max width for larger screens */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.briefing-text {
    flex: 2; /* Takes up 2/3 of the space */
}

.briefing-text .section-title {
    color: var(--color-briefing-text);
    text-align: left;
    margin-bottom: 20px;
}

.briefing-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.briefing-text p {
    font-size: 1.1rem;
}

.briefing-logo {
    flex: 1; /* Takes up 1/3 of the space */
    text-align: center;
}

.briefing-logo img {
    width: 100%;
    height: auto;
}

.briefing-socials {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* In case screen is too small */
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-briefing-text);
    font-family: var(--font-body);
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.social-link img {
    height: 22px;
    width: 22px;
    /* This CSS filter converts the white SVG to black */
    filter: brightness(0);
}


/* --- VIDEO SECTIONS --- */
.video-section {
    padding: 80px 20px;
}

.video-section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trenches-section {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/EXPWT_BloodTrenches_Color.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.video-section.reactions {
    background-color: var(--bg-soot-lighter);
}
.video-section:nth-of-type(4) { 
     background-color: var(--bg-soot);
}

.video-description {
    max-width: 700px;
    margin: -20px auto 40px;
    font-style: italic;
    color: #aaa;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 4px solid var(--color-parchment);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.crt-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
}

.blood-splatter {
    color: var(--color-blood-red);
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
}

.exp-text {
    color: var(--color-blood-red);
    display: inline-block;
    animation: tilt-shaking 0.2s infinite;
}

/* --- JITTER ANIMATION --- */
@keyframes tilt-shaking {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(1px, 1px) rotate(1deg); }
  50% { transform: translate(-1px, -1px) rotate(-1deg); }
  75% { transform: translate(1px, -1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.steam-button:hover,
.icon-item:hover {
    animation: tilt-shaking 0.2s infinite;
}

.reduced-motion .steam-button:hover,
.reduced-motion .exp-text,
.reduced-motion .icon-item:hover {
    animation: none;
}

/* --- VIDEO GALLERY --- */
.gallery-section {
    padding: 80px 20px;
    /* New background */
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/EXPWT_BloodTrenches_Color.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--color-parchment-dark);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.7);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid white;
}

.gallery-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(139, 0, 0, 0.7);
}


/* --- PTSD AWARENESS SECTION --- */
.ptsd-awareness {
    background-color: var(--bg-soot);
    text-align: center;
    padding: 80px 20px;
}

.awareness-intro {
    max-width: 600px;
    margin: 0 auto 40px;
}

.icon-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.icon-item {
    max-width: 250px;
    border: 1px solid var(--color-parchment-dark);
    padding: 20px;
    background: var(--bg-soot);
    transition: transform 0.2s ease-out;
    cursor: pointer;
}

.icon-placeholder {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-blood-red);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.icon-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-parchment);
    margin: 10px 0;
}

.crisis-line {
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--color-blood-red);
    color: var(--color-parchment);
    padding: 20px;
    max-width: 800px;
    margin: 40px auto 0;
}

.control-button {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--color-parchment);
    color: var(--color-parchment);
    padding: 10px 15px;
    cursor: pointer;
    font-family: var(--font-body);
}

/* --- FOOTER --- */
.end-of-tour {
    background: var(--bg-soot-darker);
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-socials img {
    height: 28px; /* <-- CORRECTED SIZE */
    width: 28px;  /* <-- CORRECTED SIZE */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-socials a:hover img {
    opacity: 1;
}


.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--color-parchment-dark);
    margin: 0 15px;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--color-parchment);
}

.footer-legal {
    font-size: 0.8rem;
    color: #666;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 900px) {
    .briefing-container {
        flex-direction: column;
        text-align: center;
    }

    .briefing-text .section-title {
        text-align: center;
    }
    
    .briefing-socials {
        justify-content: center;
    }

    .briefing-logo {
        margin-top: 40px;
    }
}


/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
    .steam-button:hover,
    .exp-text,
    .icon-item:hover {
        animation: none;
    }
    .custom-cursor {
        display: none;
    }
    .trenches-section, .gallery-section {
        background-attachment: scroll; /* Disable parallax */
    }
}

