/* ========================================
   MUHAN.AI - Holographic Pastoral Terminal
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #0A0A0A;
    color: #A0A0A0;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ========================================
   SIDEBAR
   ======================================== */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background: #1A1A1A;
    border-right: 1px solid #3A3A3A;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

#sidebar.visible {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-logo {
    margin-bottom: 3rem;
}

.logo-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    color: #E8E8E8;
    letter-spacing: 0.15em;
}

.logo-dot {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 1.1rem;
    color: #6A6A6A;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6A6A6A;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: #E8E8E8;
}

.nav-link.active::before {
    content: '> ';
    color: #6A6A6A;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    color: #3A3A3A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}

.sidebar-year {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #3A3A3A;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
#main-content {
    margin-left: 200px;
    min-height: 100vh;
}

/* ========================================
   SECTIONS (shared)
   ======================================== */
.section {
    position: relative;
    min-height: 100vh;
    padding: 6rem 4rem;
    overflow: hidden;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #6A6A6A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #E8E8E8;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ========================================
   AURORA HALOS
   ======================================== */
.aurora-halo {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 1.5s ease;
}

.aurora-halo.visible {
    opacity: 1;
}

.aurora-halo-hero {
    width: 600px;
    height: 400px;
    top: 10%;
    left: 20%;
    background: radial-gradient(ellipse at 30% 20%, rgba(100, 180, 255, 0.08), transparent);
}

.aurora-halo-luminance {
    width: 500px;
    height: 350px;
    top: 5%;
    right: -5%;
    background: radial-gradient(ellipse at 60% 30%, rgba(100, 180, 255, 0.06), transparent);
}

.aurora-halo-main {
    width: 800px;
    height: 500px;
    top: 15%;
    left: 10%;
    background: radial-gradient(ellipse at 40% 40%, rgba(100, 180, 255, 0.1), rgba(80, 140, 220, 0.04), transparent);
}

/* ========================================
   VINTAGE PHOTOGRAPHY BACKGROUNDS
   ======================================== */
.vintage-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: grayscale(1) contrast(1.2);
    opacity: 0;
    transition: opacity 2s ease;
    background-size: cover;
    background-position: center;
}

.vintage-bg.visible {
    opacity: 0.08;
}

.vintage-bg-hero {
    background: radial-gradient(ellipse at center, #3A3A3A 0%, #0A0A0A 70%);
}

.vintage-bg-luminance {
    background: radial-gradient(ellipse at 70% 50%, #3A3A3A 0%, #0A0A0A 60%);
}

.vintage-bg-aurora {
    background: radial-gradient(ellipse at 30% 30%, #3A3A3A 0%, #0A0A0A 55%);
}

/* ========================================
   HERO SECTION
   ======================================== */
.section-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease 0.5s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #E8E8E8;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.title-dot {
    font-weight: 300;
    color: #6A6A6A;
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    color: #6A6A6A;
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-terminal {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    color: #A0A0A0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #3A3A3A;
    background: rgba(26, 26, 26, 0.5);
}

.terminal-prompt {
    color: #6A6A6A;
}

.terminal-cursor {
    display: inline-block;
    animation: cursorBlink 1s infinite;
    color: #E8E8E8;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   HOLOGRAPHIC CARDS
   ======================================== */
.holographic-card {
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    border: 1px solid #3A3A3A;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.holographic-card:hover {
    transform: scale(1.02);
    border-color: #6A6A6A;
}

.card-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FF6B6B22, #4ECDC422, #45B7D122);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}

.holographic-card:hover .card-shimmer {
    opacity: 1;
}

/* ========================================
   MEADOW SECTION - Card Grid
   ======================================== */
.section-meadow {
    background: #0A0A0A;
}

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

.card {
    padding: 2.5rem 2rem;
}

.card-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: #6A6A6A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 1.25rem;
    color: #E8E8E8;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: #A0A0A0;
    line-height: 1.8;
}

/* ========================================
   LUMINANCE SECTION
   ======================================== */
.section-luminance {
    background: #0A0A0A;
}

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

.luminance-panel {
    padding: 3rem 2.5rem;
}

.panel-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 2.5rem;
    color: #3A3A3A;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.panel-title {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 1.4rem;
    color: #E8E8E8;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.panel-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: #A0A0A0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.panel-meta {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: #6A6A6A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   STREAMS SECTION
   ======================================== */
.section-streams {
    background: #0A0A0A;
}

.streams-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stream-item {
    padding: 2rem 2.5rem;
}

.stream-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.stream-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    color: #3A3A3A;
    flex-shrink: 0;
    min-width: 40px;
    padding-top: 0.15rem;
}

.stream-info {
    flex: 1;
}

.stream-title {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 1.15rem;
    color: #E8E8E8;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.stream-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: #A0A0A0;
    line-height: 1.8;
}

.stream-status {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    color: #3A3A3A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

/* ========================================
   AURORA SECTION
   ======================================== */
.section-aurora {
    background: #0A0A0A;
}

.aurora-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.aurora-lead {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    color: #E8E8E8;
    line-height: 1.8;
    max-width: 700px;
}

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

.aurora-card {
    padding: 2.5rem 2rem;
}

/* ========================================
   HORIZON SECTION
   ======================================== */
.section-horizon {
    background: #0A0A0A;
    border-top: 1px solid #3A3A3A;
}

.horizon-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.horizon-quote {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #E8E8E8;
    line-height: 1.8;
    max-width: 600px;
    font-style: italic;
}

.horizon-attribution {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: #3A3A3A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-top: 1rem;
}

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

.horizon-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.horizon-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    color: #3A3A3A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.horizon-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: #A0A0A0;
}

.horizon-footer {
    padding-top: 3rem;
    border-top: 1px solid #3A3A3A;
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    color: #3A3A3A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.section-header,
.card,
.luminance-panel,
.stream-item,
.aurora-text-block,
.aurora-card,
.horizon-text,
.horizon-grid,
.horizon-footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.in-view,
.card.in-view,
.luminance-panel.in-view,
.stream-item.in-view,
.aurora-text-block.in-view,
.aurora-card.in-view,
.horizon-text.in-view,
.horizon-grid.in-view,
.horizon-footer.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for card grids */
.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.15s; }
.card:nth-child(3) { transition-delay: 0.3s; }

.luminance-panel:nth-child(1) { transition-delay: 0s; }
.luminance-panel:nth-child(2) { transition-delay: 0.2s; }

.stream-item:nth-child(1) { transition-delay: 0s; }
.stream-item:nth-child(2) { transition-delay: 0.1s; }
.stream-item:nth-child(3) { transition-delay: 0.2s; }
.stream-item:nth-child(4) { transition-delay: 0.3s; }

.aurora-card:nth-child(1) { transition-delay: 0s; }
.aurora-card:nth-child(2) { transition-delay: 0.15s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section {
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    #sidebar {
        width: 180px;
    }
    #main-content {
        margin-left: 180px;
    }
    .section {
        padding: 3rem 2rem;
    }
    .card-grid,
    .luminance-grid,
    .aurora-cards,
    .horizon-grid {
        grid-template-columns: 1fr;
    }
    .stream-content {
        flex-direction: column;
        gap: 1rem;
    }
    .stream-status {
        align-self: flex-start;
    }
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

@media (max-width: 560px) {
    #sidebar {
        display: none;
    }
    #main-content {
        margin-left: 0;
    }
}
