/* political.day - Parliamentary Chamber Dark Mode */
/* Palette: Deep burgundy #2A0818, Warm cream #F0E0C8, Chamber red #8A2030,
   HUD amber #D8A830, Mesh rose #C06878, Mesh teal #408878, Near black #1A1018 */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: #2A0818;
    color: #F0E0C8;
    overflow-x: hidden;
    line-height: 1.75;
}

/* ============================================
   HERO SECTIONS - Full viewport declarations
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ============================================
   GRADIENT MESH - Political spectrum fields
   ============================================ */

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

.gradient-mesh-1 {
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(192, 104, 120, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 70%, rgba(64, 136, 120, 0.15) 0%, transparent 70%);
    animation: meshPulse1 20s ease-in-out infinite;
}

.gradient-mesh-2 {
    background:
        radial-gradient(ellipse 40% 40% at 60% 20%, rgba(64, 136, 120, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 30% 80%, rgba(192, 104, 120, 0.14) 0%, transparent 60%);
    animation: meshPulse2 25s ease-in-out infinite;
}

.gradient-mesh-3 {
    background:
        radial-gradient(ellipse 55% 45% at 70% 40%, rgba(192, 104, 120, 0.2) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 25% 60%, rgba(64, 136, 120, 0.16) 0%, transparent 65%);
    animation: meshPulse1 22s ease-in-out infinite reverse;
}

.gradient-mesh-4 {
    background:
        radial-gradient(ellipse 50% 50% at 40% 35%, rgba(64, 136, 120, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 75% 65%, rgba(192, 104, 120, 0.15) 0%, transparent 60%);
    animation: meshPulse2 18s ease-in-out infinite;
}

.gradient-mesh-5 {
    background:
        radial-gradient(ellipse 45% 55% at 30% 50%, rgba(192, 104, 120, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 55% 45% at 70% 40%, rgba(64, 136, 120, 0.18) 0%, transparent 70%);
    animation: meshPulse1 24s ease-in-out infinite;
}

.gradient-mesh-6 {
    background:
        radial-gradient(ellipse 50% 60% at 55% 30%, rgba(64, 136, 120, 0.17) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 35% 70%, rgba(192, 104, 120, 0.2) 0%, transparent 65%);
    animation: meshPulse2 21s ease-in-out infinite reverse;
}

.gradient-mesh-vigil {
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(216, 168, 48, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 60%, rgba(192, 104, 120, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 40%, rgba(64, 136, 120, 0.1) 0%, transparent 60%);
    animation: meshPulse1 26s ease-in-out infinite;
}

@keyframes meshPulse1 {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.05) translate(2%, -1%);
    }
    66% {
        opacity: 0.9;
        transform: scale(0.97) translate(-1%, 2%);
    }
}

@keyframes meshPulse2 {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.03) translate(-2%, 1%);
    }
}

/* ============================================
   CHAMBER ENTRANCE - Background gradient
   ============================================ */

#chamber-entrance {
    background: linear-gradient(180deg, #2A0818 0%, #1A1018 100%);
}

/* ============================================
   DECLARATION HEROES - Section backgrounds
   ============================================ */

#declaration-1 {
    background: linear-gradient(180deg, #1A1018 0%, #2A0818 50%, #1A1018 100%);
}

#declaration-2 {
    background: linear-gradient(180deg, #1A1018 0%, #2A0818 40%, #1A1018 100%);
}

#declaration-3 {
    background: linear-gradient(180deg, #2A0818 0%, #1A1018 60%, #2A0818 100%);
}

#declaration-4 {
    background: linear-gradient(180deg, #1A1018 0%, #2A0818 50%, #1A1018 100%);
}

/* ============================================
   VIGIL FOOTER
   ============================================ */

.vigil-section {
    background: linear-gradient(180deg, #1A1018 0%, #2A0818 40%, #1A1018 100%);
    flex-direction: column;
}

/* ============================================
   HUD OVERLAYS - Sci-fi data elements
   ============================================ */

.hud-overlay {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.hud-top-left {
    top: 40px;
    left: 40px;
    width: 140px;
    height: 140px;
    opacity: 0.7;
}

.hud-bottom-right {
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    opacity: 0.7;
}

.hud-top-right {
    top: 50px;
    right: 60px;
    width: 200px;
    height: 40px;
    opacity: 0.7;
}

.hud-bottom-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 60px;
    opacity: 0.6;
}

/* HUD Arc Animations */
.hud-arc {
    transition: stroke-dashoffset 1s ease-out;
}

.hud-arc.animated {
    stroke-dashoffset: 0;
}

.hud-arc-1.animated { stroke-dashoffset: 125; }
.hud-arc-2.animated { stroke-dashoffset: 94; }
.hud-arc-3.animated { stroke-dashoffset: 150; }
.hud-arc-4.animated { stroke-dashoffset: 78; }

/* HUD Sidebars */
.hud-sidebar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

.hud-sidebar-left {
    left: 20px;
    width: 40px;
    height: 300px;
}

.hud-sidebar-right {
    right: 20px;
    width: 40px;
    height: 300px;
}

/* ============================================
   HERO CONTENT
   ============================================ */

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 0 40px;
    text-align: center;
}

/* HUD Labels */
.hud-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D8A830;
    margin-bottom: 24px;
    opacity: 0.7;
}

/* Domain Title */
.domain-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 56px);
    color: #F0E0C8;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInTitle 800ms ease-out forwards;
    animation-delay: 200ms;
}

.domain-subtitle {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(14px, 0.9vw, 16px);
    color: #F0E0C8;
    opacity: 0;
    animation: fadeInTitle 800ms ease-out forwards;
    animation-delay: 600ms;
    line-height: 1.75;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Declaration Text */
.declaration-text {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 44px);
    color: #F0E0C8;
    line-height: 1.4;
    margin-bottom: 28px;
    transition: text-shadow 0.3s ease;
}

.declaration-text:hover {
    text-shadow: 0 0 30px rgba(138, 32, 48, 0.6), 0 0 60px rgba(138, 32, 48, 0.3);
}

.declaration-body {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(14px, 0.9vw, 16px);
    color: #F0E0C8;
    line-height: 1.75;
    opacity: 0.85;
    transition: color 0.3s ease;
}

.declaration-body:hover {
    color: #D8A830;
}

/* ============================================
   FADE REVEAL - Scroll animations
   ============================================ */

.fade-reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 1;
    }
}

/* ============================================
   VIGIL - Candle-lit atmosphere
   ============================================ */

.vigil-flame {
    position: relative;
    z-index: 3;
    margin-bottom: 40px;
    animation: flameSway 3s ease-in-out infinite;
}

@keyframes flameSway {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(2deg) scale(1.03);
    }
    75% {
        transform: rotate(-2deg) scale(0.97);
    }
}

.flame-path {
    animation: flameFlicker 2s ease-in-out infinite;
}

.flame-inner {
    animation: flameFlicker 1.5s ease-in-out infinite reverse;
}

@keyframes flameFlicker {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
}

.vigil-closing {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(14px, 1.2vw, 18px);
    color: #D8A830;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 20px;
    opacity: 0.8;
}

/* ============================================
   HOVER INTERACTIONS
   ============================================ */

.hero-section:hover .hud-overlay,
.hero-section:hover .hud-sidebar {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.hero-section:hover .gradient-mesh {
    animation-duration: 8s;
}

.hero-section:hover .hud-label {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ============================================
   HUD DOT PULSE
   ============================================ */

.hud-dot {
    animation: hudDotPulse 3s ease-in-out infinite;
}

.hud-dot:nth-child(4) { animation-delay: 0s; }
.hud-dot:nth-child(5) { animation-delay: 1s; }
.hud-dot:nth-child(6) { animation-delay: 2s; }

@keyframes hudDotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .hud-overlay {
        display: none;
    }

    .hud-sidebar {
        display: none;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hud-top-right {
        display: none;
    }

    .scroll-indicator .hud-label {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 16px;
    }
}
