/* diplomacy.day - Frutiger Aero aesthetic with sepia-nostalgic lens */
/* Color palette: #4A3728, #8B7355, #F5EDE0, #C4883A, #7BA5B8, #EAD9C4, #2C2218 */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    font-family: 'Source Serif 4', 'Georgia', serif;
    background-color: #F5EDE0;
    color: #4A3728;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Side Navigation ===== */
#side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(245, 237, 224, 0.85) 0%, rgba(234, 217, 196, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(139, 115, 85, 0.15);
}

.nav-city-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    width: 36px;
    height: 50px;
    color: #8B7355;
    cursor: pointer;
    transition: color 0.4s ease, transform 0.3s ease;
    opacity: 0.5;
}

.nav-icon.active {
    color: #C4883A;
    opacity: 1;
    transform: scale(1.15);
}

.nav-icon:hover {
    color: #C4883A;
    opacity: 0.8;
    transform: scale(1.1);
}

.pulse-dot {
    animation: pulseDot 2.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; r: 3; }
    50% { opacity: 1; r: 4.5; }
}

.nav-progress-line {
    width: 2px;
    height: 120px;
    background: rgba(139, 115, 85, 0.2);
    margin-top: 2rem;
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.nav-progress-fill {
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, #C4883A, #7BA5B8);
    border-radius: 1px;
    transition: height 0.5s ease;
}

/* ===== Main Content ===== */
#main-content {
    margin-left: 80px;
    width: calc(100vw - 80px);
}

/* ===== Full-Screen Sections ===== */
.full-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(245, 237, 224, 0.92) 0%, rgba(234, 217, 196, 0.88) 40%, rgba(245, 237, 224, 0.95) 100%);
}

.glass-overlay-warm {
    background: linear-gradient(160deg, rgba(245, 237, 224, 0.94) 0%, rgba(234, 217, 196, 0.9) 30%, rgba(196, 136, 58, 0.05) 100%);
}

.glass-overlay-cool {
    background: linear-gradient(160deg, rgba(245, 237, 224, 0.94) 0%, rgba(123, 165, 184, 0.08) 50%, rgba(234, 217, 196, 0.92) 100%);
}

.glass-overlay-dark {
    background: linear-gradient(160deg, rgba(44, 34, 24, 0.04) 0%, rgba(245, 237, 224, 0.94) 20%, rgba(74, 55, 40, 0.06) 100%);
}

.skyline-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.full-section.visible .skyline-bg {
    opacity: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== Glass Panel (Frosted Glass) ===== */
.glass-panel {
    background: rgba(245, 237, 224, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 115, 85, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(74, 55, 40, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ===== SECTION 1: Embassy Foyer ===== */
.foyer-content {
    align-items: flex-start;
    justify-content: center;
    padding-left: 8%;
}

.foyer-header {
    position: relative;
    margin-bottom: 2rem;
}

.domain-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    color: #2C2218;
    line-height: 1.1;
}

.domain-dot {
    color: #C4883A;
    font-weight: 600;
}

.domain-tld {
    color: #7BA5B8;
    font-weight: 500;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #C4883A;
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0% { transform: translateY(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateY(-50%) scale(1.8); opacity: 0; }
    100% { transform: translateY(-50%) scale(1); opacity: 0.6; }
}

.foyer-tagline {
    margin-bottom: 2.5rem;
}

.tagline-text {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    font-style: italic;
    color: #8B7355;
    letter-spacing: 0.02em;
}

.foyer-meta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
}

.meta-item {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A3728;
}

.meta-divider {
    color: #C4883A;
    font-size: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, #8B7355, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ===== SECTION 2: The Accord ===== */
.accord-content {
    padding-top: 5rem;
}

.section-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(32px, 4.5vw, 64px);
    font-weight: 500;
    color: #2C2218;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #C4883A, rgba(196, 136, 58, 0));
    border-radius: 2px;
    margin-bottom: 3rem;
}

.title-underline-cool {
    background: linear-gradient(90deg, #7BA5B8, rgba(123, 165, 184, 0));
}

.title-underline-warm {
    background: linear-gradient(90deg, #8B7355, rgba(139, 115, 85, 0));
}

.accord-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
}

.accord-card {
    padding: 2.5rem 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.accord-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.accord-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(74, 55, 40, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
}

.icon-svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #4A3728;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.card-text {
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
    line-height: 1.7;
    color: #8B7355;
}

/* ===== SECTION 3: The Exchange ===== */
.exchange-content {
    padding-top: 5rem;
}

.exchange-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
}

.exchange-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exchange-stat {
    padding: 2.5rem 2rem;
    text-align: center;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.exchange-stat.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.stat-number {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 300;
    color: #C4883A;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8B7355;
}

.exchange-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exchange-text-block {
    padding: 2.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.exchange-text-block.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.exchange-text {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #4A3728;
    margin-bottom: 1rem;
}

.exchange-text:last-child {
    margin-bottom: 0;
}

.connection-lines {
    padding: 1rem 0;
}

.connection-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.node-dot {
    animation: nodePulse 3s ease-in-out infinite;
}

.node-dot:nth-child(2n) {
    animation-delay: 0.5s;
}

.node-dot:nth-child(3n) {
    animation-delay: 1s;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.6; r: 4; }
    50% { opacity: 1; r: 6; }
}

/* ===== SECTION 4: The Archive ===== */
.archive-content {
    padding-top: 5rem;
    justify-content: flex-start;
    padding-bottom: 2rem;
}

.archive-body {
    flex: 1;
}

.archive-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    position: relative;
    padding-left: 2rem;
}

.archive-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #C4883A, #8B7355, #7BA5B8);
    border-radius: 1px;
}

.timeline-entry {
    padding: 1.5rem 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-entry.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -2.55rem;
    top: 1.8rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C4883A;
    border: 2px solid #F5EDE0;
    box-shadow: 0 0 0 3px rgba(196, 136, 58, 0.2);
}

.timeline-year {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #C4883A;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-event {
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #2C2218;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
    line-height: 1.7;
    color: #8B7355;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.footer-content {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
}

.footer-domain {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4A3728;
    letter-spacing: 0.02em;
}

.footer-divider {
    color: #C4883A;
}

.footer-tagline {
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    font-style: italic;
    color: #8B7355;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    #side-nav {
        width: 60px;
    }

    #main-content {
        margin-left: 60px;
        width: calc(100vw - 60px);
    }

    .section-content {
        padding: 3rem 2rem;
    }

    .foyer-content {
        padding-left: 5%;
    }

    .accord-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .exchange-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .exchange-left {
        flex-direction: row;
    }

    .exchange-stat {
        flex: 1;
    }
}

@media (max-width: 600px) {
    #side-nav {
        width: 50px;
    }

    #main-content {
        margin-left: 50px;
        width: calc(100vw - 50px);
    }

    .section-content {
        padding: 2rem 1.5rem;
    }

    .domain-name {
        font-size: clamp(36px, 10vw, 64px);
    }

    .exchange-left {
        flex-direction: column;
    }

    .nav-icon {
        width: 28px;
        height: 40px;
    }
}

/* ===== Sepia Environmental Glow ===== */
.full-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 136, 58, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

#the-exchange::after {
    background: radial-gradient(circle, rgba(123, 165, 184, 0.06) 0%, transparent 70%);
    top: 20%;
    right: 15%;
}

/* ===== Smooth Reveal Animation ===== */
.section-title,
.title-underline {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.full-section.visible .section-title,
.full-section.visible .title-underline {
    opacity: 1;
    transform: translateY(0);
}

.full-section.visible .title-underline {
    transition-delay: 0.2s;
}

/* Foyer animations */
.domain-name,
.foyer-tagline,
.foyer-meta {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.full-section.visible .domain-name {
    opacity: 1;
    transform: translateY(0);
}

.full-section.visible .foyer-tagline {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.full-section.visible .foyer-meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* ===== Skyline Parallax Shift ===== */
.skyline-bg {
    transition: opacity 1.2s ease, transform 0.1s linear;
    will-change: transform;
}
