/* WEBDOK TEMPLATE STYLES */
/* Base Variables corresponding to theme */
:root {
    --webdok-font-family: 'Inter', sans-serif;
    --webdok-title-font: 'Syne', sans-serif;
}

/* Light & Dark Modes */
.theme-dark {
    --wd-bg: #111111;
    --wd-text: #f0f0f0;
    --wd-accent: #333333;
    --wd-overlay: rgba(0, 0, 0, 0.4);
    background-color: var(--wd-bg);
    color: var(--wd-text);
}

.theme-light {
    --wd-bg: #f9f9f9;
    --wd-text: #222222;
    --wd-accent: #dddddd;
    --wd-overlay: rgba(255, 255, 255, 0.2);
    background-color: var(--wd-bg);
    color: var(--wd-text);
}

/* Reset for WebDok */
body.wd-body {
    margin: 0;
    padding: 0;
    font-family: var(--webdok-font-family);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.wd-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 1000;
    pointer-events: none; /* Allows clicking behind it */
}

.wd-back-btn {
    pointer-events: auto;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wd-text);
    mix-blend-mode: difference;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.wd-back-btn:hover {
    opacity: 0.7;
}

/* Hero Section */
.wd-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wd-hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.wd-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wd-overlay);
    z-index: -1;
}

.wd-hero-title {
    font-family: var(--webdok-title-font);
    font-size: 6vw;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    padding: 0 5vw;
    color: #ffffff; /* Typically white on hero to contrast media */
    mix-blend-mode: normal;
}
.theme-light .wd-hero-title {
    color: var(--wd-text);
}

.wd-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    opacity: 0.8;
}

/* Narrative Container */
.wd-narrative {
    position: relative;
    z-index: 10;
    background-color: var(--wd-bg);
}

.wd-text-block {
    max-width: 700px;
    margin: 0 auto;
    padding: 10vh 20px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.wd-text-block p {
    margin-bottom: 2rem;
}

.wd-byline {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 4rem;
    font-size: 1rem;
}

/* Sticky Backgrounds (Scrollytelling) */
.wd-scrollytelling {
    position: relative;
}

.wd-sticky-media-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 0;
}

.wd-sticky-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd-scrolling-content {
    position: relative;
    z-index: 1;
    margin-top: -100vh; /* Pulls content over the sticky media */
}

/* Darker backgrounds for reading text over images */
.wd-text-panel {
    max-width: 700px;
    margin: 100vh auto 0 auto; /* Margin ensures spacing between text panels */
    background-color: var(--wd-bg);
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.theme-light .wd-text-panel {
    padding-bottom: 80px;
}

/* Pull Quotes */
.wd-pull-quote {
    font-family: var(--webdok-title-font);
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 4rem 0;
    padding: 0;
    text-align: center;
}

/* Responsive Overrides */
@media screen and (max-width: 768px) {
    .wd-hero-title {
        font-size: 10vw;
    }
    .wd-pull-quote {
        font-size: 2rem;
    }
    .wd-text-panel {
        margin: 80vh 20px 0 20px;
        padding: 2rem;
    }
}

/* Split Scrollytelling Layout */
.wd-split-scrollytelling {
    position: relative;
    display: flex;
    width: 100%;
}

.wd-split-left {
    position: sticky;
    top: 0;
    width: 50vw;
    height: 100vh;
    overflow: hidden;
}

.wd-split-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd-split-right {
    width: 50vw;
    margin-left: 0; /* Handled by flex layout */
    padding: 10vh 5vw;
    background-color: var(--wd-bg);
}

.wd-split-text-panel {
    margin-bottom: 15vh; /* Reduced spacing between text blocks in split view */
    max-width: 600px;
}

/* SVG Filter Animation Transition */
.wd-filter-anim {
    transition: filter 0.8s ease-in-out;
}

.wd-filter-active {
    filter: url(#graphic-effect) contrast(1.5);
}

@media screen and (max-width: 768px) {
    .wd-split-scrollytelling {
        flex-direction: column;
    }
    .wd-split-left {
        width: 100%;
        height: 50vh;
        z-index: 0;
    }
    .wd-split-right {
        width: 100%;
        margin-left: 0;
        z-index: 1;
        margin-top: -10vh;
    }
}

/* Footer Navigation Button */
.wd-footer-back-btn {
    display: inline-block;
    margin-top: 2rem;
    font-family: var(--webdok-title-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    color: var(--wd-text);
    padding: 1rem 2.5rem;
    border: 1px solid var(--wd-text);
    background-color: transparent;
    transition: all 0.3s ease;
}

.wd-footer-back-btn:hover {
    background-color: var(--wd-text);
    color: var(--wd-bg);
}

/* ------------------------------------- */
/* VIDEO SHOWCASE (NEON THEME) STYLES    */
/* ------------------------------------- */

.theme-neon {
    --wd-bg: #000000;
    --wd-text: #ffffff;
    --wd-neon: #001BFF;
    background-color: var(--wd-bg);
    color: var(--wd-text);
}

.wd-neon-handwriting {
    font-family: 'Caveat', cursive, sans-serif;
    color: var(--wd-neon);
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 27, 255, 0.4), 0 0 20px rgba(0, 27, 255, 0.2);
    text-align: left;
    width: 40%;
    padding: 0 20px;
}

.wd-video-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    padding: 5vh 0;
    gap: 15vh;
}

.wd-video-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90vw;
    max-width: 1200px;
    gap: 5vw;
}

.wd-video-row.row-reverse {
    flex-direction: row-reverse;
}

.wd-video-container {
    position: relative;
    width: 50%;
    max-width: 500px;
    border: 1px solid #222;
    background: #111;
    cursor: pointer;
    overflow: hidden;
}

.wd-video-container video {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.wd-video-container:hover video {
    opacity: 1;
}

/* Custom Play Button Overlay */
.wd-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--webdok-title-font);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 27, 255, 0.8);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    pointer-events: none; /* Let clicks pass through to the container */
    transition: all 0.3s ease;
    z-index: 10;
}

.wd-video-container.is-playing .wd-video-play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

.wd-video-container.is-playing video {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .wd-video-row, .wd-video-row.row-reverse {
        flex-direction: column;
        gap: 3rem;
    }
    .wd-video-container {
        width: 100%;
        max-width: 100%;
    }
    .wd-neon-handwriting {
        width: 100%;
        text-align: center;
    }
}
