/**
 * Blacktalon Landing Page V3 - Alternating Sections Style
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #141414;
    --color-bg-card: #1a1a1a;
    --color-gold: #c9a227;
    --color-gold-light: #e6c84a;
    --color-gold-dark: #8b7019;
    --color-red: #8b1a1a;
    --color-red-dark: #5c1111;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-text-dim: #555555;
    --font-display: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fixed background image behind all sections */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/header_background.jpeg') center center / cover no-repeat;
    opacity: 0.6;
    filter: blur(3px);
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 95%, transparent 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

img, video {
    max-width: 100%;
    display: block;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.15em;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(1);
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-flag:hover {
    opacity: 1;
    transform: scale(1.3);
    border-color: var(--color-gold-dark);
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.3);
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(180deg, #8b2020 0%, var(--color-red) 50%, var(--color-red-dark) 100%);
    color: var(--color-gold);
    border: 2px solid var(--color-gold-dark);
    box-shadow:
        0 5px 20px rgba(139, 26, 26, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow:
        0 5px 30px rgba(201, 162, 39, 0.3),
        0 5px 20px rgba(139, 26, 26, 0.5);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text);
}

.btn-ghost:hover {
    border-color: var(--color-gold-dark);
    color: var(--color-gold);
    background: rgba(201, 162, 39, 0.05);
}

.btn-feature {
    background: linear-gradient(180deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    border: 1px solid var(--color-gold-dark);
    color: var(--color-gold);
    padding: 12px 28px;
}

.btn-feature:hover {
    background: linear-gradient(180deg, #8b2020 0%, var(--color-red) 100%);
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
    color: var(--color-gold-light);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-feature:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-download {
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #0a0808;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
}

.btn-download:hover {
    background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

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

/* Smooth blend between hero (header_background2) and body (header_background) */
.hero-blend {
    position: relative;
    z-index: 15;
    height: 80px;
    margin-top: -40px;
    margin-bottom: -40px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 25%,
        rgba(0, 0, 0, 0.8) 45%,
        rgba(0, 0, 0, 0.8) 55%,
        rgba(0, 0, 0, 0.3) 75%,
        transparent 100%
    );
    pointer-events: none;
}

.bottom-blend {
    z-index: 5;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    animation: heroKenBurns 25s ease-in-out infinite alternate;
    transform-origin: center center;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Rain & Lightning */
.hero-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: white;
    opacity: 0;
}

.hero-lightning.flash {
    animation: lightningFlash 0.15s ease-out;
}

@keyframes lightningFlash {
    0%   { opacity: 0.7; }
    20%  { opacity: 0.1; }
    40%  { opacity: 0.5; }
    60%  { opacity: 0.05; }
    80%  { opacity: 0.3; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(10, 10, 10, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.season-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--color-gold-dark);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.25em;
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 16px;
    line-height: 1;
    animation: titleFadeIn 1.5s ease-out both;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-img {
    max-width: clamp(280px, 50vw, 600px);
    height: auto;
    display: block;
}

/* Small subtitle - "The Dark Reckoning" */
.hero-subtitle-small {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: var(--color-gold-light);
    letter-spacing: 0.3em;
    margin-bottom: 35px;
    margin-top: 14px;
    opacity: 0.7;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.hero-subtitle-small::before,
.hero-subtitle-small::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-dark));
}

.hero-subtitle-small::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, var(--color-gold-dark));
}

.hero-subtitle-small::after {
    left: 100%;
    background: linear-gradient(90deg, var(--color-gold-dark), transparent);
}

/* Keep legacy class in case used elsewhere */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Larger hero CTA button */
.btn-hero-main {
    padding: 18px 45px;
    font-size: 0.95rem;
}

/* Countdown - Deep Ocean Theme */
.countdown {
    margin-bottom: 40px;
    position: relative;
}

.countdown-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 35px;
    background: none;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Blood canvas */
.blood-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    min-width: 70px;
    position: relative;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    background: linear-gradient(180deg, #cc3333 0%, #8b1a1a 50%, #5c1111 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px var(--color-red-dark);
    filter: drop-shadow(0 0 15px rgba(200, 30, 30, 0.6));
}

.countdown-name {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--color-gold-dark);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 8px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-gold-dark);
    align-self: flex-start;
    margin-top: 8px;
    animation: separatorPulse 2s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Countdown finished state */
.countdown-launched {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--color-red);
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(139, 26, 26, 0.5);
    padding: 20px 40px;
    border: 2px solid var(--color-gold-dark);
    border-radius: 8px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-cta-secondary {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   FEATURE SECTIONS (Alternating Layout)
   ========================================== */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    background: transparent;
}

.feature-section.reverse {
    direction: rtl;
}

.feature-section.reverse > * {
    direction: ltr;
}

/* Media Side - Full area video */
.feature-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.feature-media video,
.feature-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: none;
    animation: videoBreath 12s ease-in-out infinite;
    /* Diagonal mask - cuts on top-right and bottom-right corners */
    clip-path: polygon(0 0, 70% 0, 100% 25%, 100% 75%, 70% 100%, 0 100%);
}

/* Subtle breathing animation - rare and slow */
@keyframes videoBreath {
    0%, 85%, 100% {
        transform: scale(1.05);
    }
    92% {
        transform: scale(1.08);
    }
}

/* Each section has slightly different timing */
.feature-section:nth-child(2) .feature-media video {
    animation-delay: -4s;
    animation-duration: 15s;
}

.feature-section:nth-child(3) .feature-media video {
    animation-delay: -8s;
    animation-duration: 18s;
}

/* Section 2 (reverse) - cut on top-left and bottom-left corners */
.feature-section.reverse .feature-media video,
.feature-section.reverse .feature-media img {
    clip-path: polygon(0 25%, 30% 0, 100% 0, 100% 100%, 30% 100%, 0 75%);
}

/* Section 3 (Talent Tree) - same clip-path as section 1 */
.feature-section.section-talent-tree .feature-media video,
.feature-section.section-talent-tree .feature-media img {
    clip-path: polygon(0 0, 70% 0, 100% 25%, 100% 75%, 70% 100%, 0 100%);
}

.media-overlay {
    display: none;
}

/* Content Side */
.feature-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    background: transparent;
}

.content-wrapper {
    max-width: 500px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 26, 26, 0.3);
    border: 1px solid var(--color-red);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.2;
}

.feature-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold) 0%, transparent 100%);
    margin-bottom: 25px;
}

.feature-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 35px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.list-icon {
    font-size: 1.2rem;
    color: var(--color-gold);
    width: 30px;
    text-align: center;
}

.feature-list span:last-child {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* ==========================================
   DOWNLOAD SECTION
   ========================================== */
.download-section {
    position: relative;
    padding: 150px 50px;
    text-align: center;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.download-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--color-bg) 0%,
        rgba(10, 10, 10, 0.85) 30%,
        rgba(10, 10, 10, 0.85) 70%,
        var(--color-bg) 100%
    );
}

.download-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.download-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}

.download-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.download-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.download-requirements {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 60px 50px 30px;
    background: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-logo .logo-img {
    height: 35px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .feature-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .feature-section.reverse {
        direction: ltr;
    }

    .feature-section::before,
    .feature-section::after {
        height: 80px;
    }

    .feature-media {
        min-height: 50vh;
    }

    .feature-media video,
    .feature-media img {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    }

    .feature-section.reverse .feature-media video,
    .feature-section.reverse .feature-media img {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    }

    .feature-content {
        padding: 40px 30px;
    }

    .content-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-secondary {
        flex-direction: column;
        align-items: center;
    }

    .countdown-timer {
        padding: 15px 15px;
        gap: 6px;
    }

    .countdown-unit {
        min-width: 55px;
        padding: 6px 10px;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .download-section {
        padding: 80px 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .season-tag {
        font-size: 0.65rem;
        padding: 5px 14px;
    }

    .hero-subtitle-small {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-media {
        min-height: 40vh;
    }

    .feature-section::before,
    .feature-section::after {
        height: 50px;
    }

    .feature-content {
        padding: 30px 20px;
    }

    .feature-title {
        font-size: 1.8rem;
    }

    .feature-description {
        font-size: 1rem;
    }

}
