/* yesan.xyz - Ethereal Budget Transparency */

/* ===== RESET & BASE ===== */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-offwhite: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --font-main: "Inter", "Myriad Pro", "Frutiger", -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--deep-base);
    color: var(--warm-offwhite);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== BOKEH BACKGROUND ===== */

#bokeh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: bokehFloat 20s ease-in-out infinite;
}

.bokeh-orb-1 { width: 300px; height: 300px; background: var(--primary-blue); top: 10%; left: 5%; animation-delay: 0s; animation-duration: 22s; }
.bokeh-orb-2 { width: 200px; height: 200px; background: var(--accent-gold); top: 60%; left: 80%; animation-delay: -3s; animation-duration: 18s; }
.bokeh-orb-3 { width: 250px; height: 250px; background: var(--primary-blue); top: 30%; left: 60%; animation-delay: -7s; animation-duration: 25s; }
.bokeh-orb-4 { width: 180px; height: 180px; background: var(--accent-gold); top: 80%; left: 20%; animation-delay: -10s; animation-duration: 20s; }
.bokeh-orb-5 { width: 350px; height: 350px; background: var(--primary-blue); top: 50%; left: 40%; animation-delay: -5s; animation-duration: 28s; opacity: 0.08; }
.bokeh-orb-6 { width: 150px; height: 150px; background: var(--accent-gold); top: 15%; left: 85%; animation-delay: -12s; animation-duration: 19s; }
.bokeh-orb-7 { width: 220px; height: 220px; background: var(--primary-blue); top: 70%; left: 50%; animation-delay: -8s; animation-duration: 24s; opacity: 0.1; }
.bokeh-orb-8 { width: 160px; height: 160px; background: var(--warm-offwhite); top: 40%; left: 15%; animation-delay: -15s; animation-duration: 21s; opacity: 0.05; }
.bokeh-orb-9 { width: 280px; height: 280px; background: var(--primary-blue); top: 5%; left: 45%; animation-delay: -2s; animation-duration: 26s; opacity: 0.07; }
.bokeh-orb-10 { width: 190px; height: 190px; background: var(--accent-gold); top: 90%; left: 65%; animation-delay: -6s; animation-duration: 23s; opacity: 0.12; }
.bokeh-orb-11 { width: 240px; height: 240px; background: var(--primary-blue); top: 25%; left: 30%; animation-delay: -14s; animation-duration: 27s; opacity: 0.06; }
.bokeh-orb-12 { width: 170px; height: 170px; background: var(--accent-gold); top: 55%; left: 10%; animation-delay: -9s; animation-duration: 17s; opacity: 0.1; }

@keyframes bokehFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* ===== HERO SECTION ===== */

#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(74, 144, 217, 0.4);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    background: rgba(74, 144, 217, 0.08);
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.title-line-1 {
    color: var(--warm-offwhite);
}

.title-dot {
    color: var(--accent-gold);
    display: inline-block;
    animation: dotPulse 3s ease-in-out infinite;
}

.title-line-2 {
    color: var(--primary-blue);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--muted-gray);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--primary-blue);
    color: var(--warm-offwhite);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 217, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: transparent;
    color: var(--muted-gray);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--muted-gray);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--primary-blue));
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-gray);
}

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

/* ===== ANGLE DIVIDERS ===== */

.angle-divider {
    position: relative;
    z-index: 1;
    height: 80px;
    margin-top: -1px;
}

.angle-divider-1 {
    background: var(--deep-base);
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
}

.angle-divider-2 {
    background: rgba(74, 144, 217, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 20%);
}

.angle-divider-3 {
    background: var(--deep-base);
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
}

.angle-divider-4 {
    background: rgba(74, 144, 217, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 20%);
}

/* ===== SECTIONS COMMON ===== */

section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

#dashboard {
    background: rgba(74, 144, 217, 0.03);
}

#breakdown {
    background: var(--deep-base);
}

#timeline {
    background: rgba(74, 144, 217, 0.03);
}

#about {
    background: var(--deep-base);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(232, 184, 75, 0.3);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--warm-offwhite);
}

.section-desc {
    font-size: 1rem;
    color: var(--muted-gray);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== DASHBOARD GRID ===== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dash-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(74, 144, 217, 0.15);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.dash-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.dash-card:hover {
    border-color: rgba(74, 144, 217, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(74, 144, 217, 0.15);
}

.dash-card-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.08), rgba(26, 26, 46, 0.9));
    backdrop-filter: blur(20px);
    z-index: 0;
}

.dash-card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-gray);
}

.dash-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warm-offwhite);
    letter-spacing: -0.02em;
}

.dash-trend {
    font-size: 0.8rem;
    font-weight: 400;
}

.dash-trend-up { color: var(--accent-gold); }
.dash-trend-neutral { color: var(--primary-blue); }

/* ===== BREAKDOWN SECTION ===== */

.breakdown-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.breakdown-chart {
    display: flex;
    justify-content: center;
}

#budget-chart {
    width: 100%;
    max-width: 350px;
}

.chart-center-label {
    fill: var(--muted-gray);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
}

.chart-center-value {
    fill: var(--warm-offwhite);
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 700;
}

.chart-ring {
    transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-legend {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.legend-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-info {
    flex: 1;
}

.legend-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--warm-offwhite);
    margin-bottom: 0.15rem;
}

.legend-amount {
    display: block;
    font-size: 0.8rem;
    color: var(--muted-gray);
    margin-bottom: 0.4rem;
}

.legend-bar {
    width: 100%;
    height: 4px;
    background: rgba(108, 117, 125, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.legend-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.legend-percent {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

/* ===== TIMELINE SECTION ===== */

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary-blue), var(--accent-gold), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 3rem;
    opacity: 0;
    transition: all 0.6s ease;
}

.timeline-item.revealed {
    opacity: 1;
}

.timeline-item-left {
    justify-content: flex-start;
    padding-right: calc(50% + 2rem);
    transform: translateX(-30px);
}

.timeline-item-left.revealed {
    transform: translateX(0);
}

.timeline-item-right {
    justify-content: flex-end;
    padding-left: calc(50% + 2rem);
    transform: translateX(30px);
}

.timeline-item-right.revealed {
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border: 2px solid var(--deep-base);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.5);
}

.timeline-card {
    background: rgba(74, 144, 217, 0.06);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: rgba(74, 144, 217, 0.35);
    box-shadow: 0 10px 40px rgba(74, 144, 217, 0.1);
}

.timeline-date {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--warm-offwhite);
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.85rem;
    color: var(--muted-gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.timeline-amount {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(74, 144, 217, 0.25);
    border-radius: 100px;
}

/* ===== ABOUT SECTION ===== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: rgba(74, 144, 217, 0.04);
    border: 1px solid rgba(74, 144, 217, 0.12);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.about-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    border-color: rgba(74, 144, 217, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(74, 144, 217, 0.12);
}

.about-icon {
    margin-bottom: 1.5rem;
}

.about-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--warm-offwhite);
    margin-bottom: 0.75rem;
}

.about-card-text {
    font-size: 0.85rem;
    color: var(--muted-gray);
    line-height: 1.7;
}

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

#footer {
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid rgba(74, 144, 217, 0.1);
    padding: 4rem 2rem 2rem;
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--warm-offwhite);
    letter-spacing: -0.02em;
}

.footer-dot {
    color: var(--accent-gold);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted-gray);
    margin-top: 0.5rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--muted-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
}

.footer-copy {
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 117, 125, 0.15);
    font-size: 0.75rem;
    color: rgba(108, 117, 125, 0.6);
}

/* ===== BLUR-FOCUS REVEAL ===== */

[data-reveal] {
    filter: blur(4px);
    transition: filter 0.8s ease, opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
    filter: blur(0);
}

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

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item-left,
    .timeline-item-right {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
    }

    .angle-divider {
        height: 40px;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }

    .dash-value {
        font-size: 1.8rem;
    }

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