/* ===========================================
   HERO.CSS - Hero Section Styles
   =========================================== */


/* Image container - Normal scroll, no transition */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: url('../assets/Loki-Green.png') center center / cover no-repeat;
    transition: background 0.3s ease;
}

/* When docked to about section (applied by JS) */
.hero-image-container.is-docked {
    position: absolute;
    top: auto;
    left: auto;
    right: 3vw;
    bottom: 5vh;
    z-index: 10;
}

/* Card Final State (Applied via JS) */
.hero-image-container.is-card {
    clip-path: polygon(5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%, 0% 5%);
    border-radius: 0;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
}

/* Glow border effect for card state */
.hero-image-container.is-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
            var(--neon-green) 0%,
            transparent 30%,
            transparent 70%,
            var(--neon-dark) 100%);
    clip-path: polygon(5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%, 0% 5%);
    z-index: -1;
    opacity: 0.6;
}



/* Vignette Overlay with breathing animation */
.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            transparent 35%,
            rgba(0, 0, 0, 0.25) 65%,
            rgba(0, 0, 0, 0.5) 100%);
    animation: vignetteBreathe 15s ease-in-out infinite;
}

@keyframes vignetteBreathe {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.85;
    }
}

/* ============================================
   HERO CONTENT OVERLAY STYLES
   ============================================ */

.hero-content-overlay {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
    padding: 20px 20px 50px;
    pointer-events: none;
    text-align: center;
    gap: 25px;
}

.hero-content-overlay * {
    pointer-events: auto;
}

/* Title Block */
.hero-title-block {
    margin-bottom: 0;
    text-align: center;
}

/* Symposium Tagline - Below main title */
.hero-symposium-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin: 15px 0 0 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.title-main {
    color: var(--neon-green);
    text-shadow:
        0 2px 2px #000,
        0 0 20px rgba(0, 255, 65, 0.8),
        0 0 40px rgba(0, 143, 17, 0.6);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: content-box;
    -webkit-background-clip: initial;
    animation: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Red theme when Loki-Red background is active */
.theme-red .title-main {
    color: var(--theme-red);
    text-shadow:
        0 2px 2px #000,
        0 0 20px var(--theme-red-glow),
        0 0 40px rgba(200, 0, 40, 0.6);
}

/* Lock to green after scrolling past hero */
body.scrolled-past-hero .title-main {
    color: var(--neon-green) !important;
    text-shadow:
        0 2px 2px #000,
        0 0 20px rgba(0, 255, 65, 0.8),
        0 0 40px rgba(0, 143, 17, 0.6) !important;
}

.title-year {
    font-family: var(--font-cyber);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
    text-shadow:
        0 2px 4px #000,
        0 0 15px rgba(255, 255, 255, 0.4);
    animation: none;
}

@keyframes titleGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes yearPulse {

    0%,
    100% {
        opacity: 1;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.9),
            0 4px 8px rgba(0, 0, 0, 0.7),
            0 0 10px #FFD700,
            0 0 20px #FFA500,
            0 0 40px rgba(255, 165, 0, 0.6);
    }

    50% {
        opacity: 1;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.9),
            0 4px 8px rgba(0, 0, 0, 0.7),
            0 0 15px #FFD700,
            0 0 30px #FFA500,
            0 0 60px rgba(255, 200, 0, 0.8),
            0 0 80px rgba(255, 165, 0, 0.5);
    }
}

/* Countdown Timer */

.hero-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
}

.countdown-block {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 65, 0.1);
}

/* Red theme for countdown boxes */
.theme-red .countdown-block {
    background: var(--theme-red-glass);
    border-color: var(--theme-red-border);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 20px var(--theme-red-border);
}

.countdown-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
}

/* Red theme for top line */
.theme-red .countdown-block::before {
    background: linear-gradient(90deg, transparent, var(--theme-red), transparent);
}

.countdown-block:hover {
    border-color: var(--neon-green);
    background: rgba(0, 40, 10, 0.5);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 65, 0.3);
}

/* Red theme hover */
.theme-red .countdown-block:hover {
    border-color: var(--theme-red);
    background: rgba(40, 0, 10, 0.5);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 30px var(--theme-red-glow);
}

.count-value {
    font-family: var(--font-cyber);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-green);
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 255, 65, 0.5);
    line-height: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Red theme - countdown numbers */
.theme-red .count-value {
    color: var(--theme-red);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px var(--theme-red-glow);
}

.count-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-color);
    margin-top: 6px;
}

.countdown-divider {
    font-family: var(--font-cyber);
    font-size: 1.5rem;
    color: var(--neon-green);
    animation: dividerPulse 1s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Red theme */
.theme-red .countdown-divider {
    color: var(--theme-red);
    text-shadow: 0 0 10px var(--theme-red-glow);
}

@keyframes dividerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Action Buttons */
.hero-action-buttons {
    display: flex;
    gap: 20px;
}

.hero-btn {
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn.primary {
    background: var(--glass-bg);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 255, 65, 0.2),
        inset 0 0 20px rgba(0, 25, 5, 0.3);
    transition: all 0.3s ease;
}

/* Red theme */
.theme-red .hero-btn.primary {
    background: var(--theme-red-glass);
    color: var(--theme-red);
    border-color: var(--theme-red);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px var(--theme-red-border),
        inset 0 0 20px rgba(25, 0, 5, 0.3);
}

/* Lock to green */
body.scrolled-past-hero .hero-btn.primary {
    background: var(--glass-bg) !important;
    color: var(--neon-green) !important;
    border-color: var(--neon-green) !important;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 255, 65, 0.2),
        inset 0 0 20px rgba(0, 25, 5, 0.3) !important;
}

.hero-btn.primary::before {
    display: none;
}

.hero-btn.primary:hover::before {
    display: none;
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    background: rgba(0, 40, 10, 0.8);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 255, 65, 0.4);
    border-color: var(--neon-green);
}

/* Fix for Red Theme Hover Clash */
.theme-red .hero-btn.primary:hover {
    background: rgba(40, 0, 10, 0.8);
    border-color: var(--theme-red);
    color: var(--theme-red);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.9),
        0 0 30px var(--theme-red-glow);
}

.hero-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}