/* =====================================================
   haskeller.net - Inflated 3D Aesthetic
   Colors: #FFF8F0, #4A4A7A, #5A4A3A, #A0B8D0, #C4A060,
           #E8DDD0, #8A7A6A, #C4B4A0
   Fonts: Bebas Neue, Source Sans 3, Fira Code
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.75;
    color: #5A4A3A;
    background: #E8DDD0;
    overflow-x: hidden;
}

/* ----- Inflated 3D Shadow System ----- */
.inflated {
    box-shadow:
        8px 8px 20px rgba(0,0,0,0.15),
        -4px -4px 10px rgba(255,248,240,0.8),
        inset 2px 2px 4px rgba(255,248,240,0.3),
        inset -2px -2px 4px rgba(0,0,0,0.05);
    border-radius: 24px;
    background: linear-gradient(135deg, #FFF8F0 0%, #E8DDD0 100%);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.inflated:hover {
    box-shadow:
        12px 12px 28px rgba(0,0,0,0.18),
        -6px -6px 14px rgba(255,248,240,0.9),
        inset 2px 2px 4px rgba(255,248,240,0.4),
        inset -2px -2px 4px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

.inflated:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* Deflated state for entrance animation */
.inflated.deflated {
    box-shadow:
        0px 0px 0px rgba(0,0,0,0),
        0px 0px 0px rgba(255,248,240,0),
        inset 0px 0px 0px rgba(255,248,240,0),
        inset 0px 0px 0px rgba(0,0,0,0);
    border-radius: 8px;
    opacity: 0.7;
}

/* ----- Water Bubble Decorations ----- */
#bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.water-bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(160, 184, 208, 0.3);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 60%);
    animation: bubbleFloat linear infinite;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(40px);
        opacity: 0;
    }
}

/* ----- Section Headings ----- */
.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 72px);
    letter-spacing: 0.08em;
    color: #5A4A3A;
    margin-bottom: 40px;
}

/* =====================================================
   SECTION 1: HERO
   ===================================================== */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #E8DDD0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Vertical Logo */
#vertical-logo {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 3;
}

.logo-char {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 42px);
    letter-spacing: 0.08em;
    color: #5A4A3A;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-char.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lambda Hero */
#lambda-hero {
    position: relative;
    width: clamp(200px, 40vw, 500px);
    height: clamp(200px, 40vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF8F0 0%, #E8DDD0 60%, #C4B4A0 100%);
    box-shadow:
        16px 16px 40px rgba(0,0,0,0.15),
        -8px -8px 20px rgba(255,248,240,0.8),
        inset 4px 4px 8px rgba(255,248,240,0.3),
        inset -4px -4px 8px rgba(0,0,0,0.05);
    z-index: 2;
    overflow: hidden;
}

#lambda-hero.deflated {
    box-shadow:
        0px 0px 0px rgba(0,0,0,0),
        0px 0px 0px rgba(255,248,240,0),
        inset 0px 0px 0px rgba(255,248,240,0),
        inset 0px 0px 0px rgba(0,0,0,0);
    border-radius: 20%;
}

#lambda-symbol {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(120px, 25vw, 320px);
    font-weight: 600;
    color: #5A4A3A;
    line-height: 1;
    user-select: none;
    position: relative;
    z-index: 2;
    text-shadow:
        2px 2px 4px rgba(0,0,0,0.1),
        -1px -1px 2px rgba(255,248,240,0.5);
}

#lambda-highlight {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 40%, rgba(255,248,240,0.15) 0%, transparent 60%);
    animation: highlightSweep 8s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes highlightSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* Scan Bar Navigation */
#scan-bar {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFF8F0 0%, #E8DDD0 100%);
    box-shadow:
        4px 4px 12px rgba(0,0,0,0.12),
        -2px -2px 6px rgba(255,248,240,0.7),
        inset 1px 1px 2px rgba(255,248,240,0.3),
        inset -1px -1px 2px rgba(0,0,0,0.03);
    text-decoration: none;
    color: #5A4A3A;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    transition: box-shadow 0.2s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.nav-pill.inflated-in {
    opacity: 1;
    transform: scale(1);
}

.nav-pill:hover {
    box-shadow:
        6px 6px 16px rgba(0,0,0,0.15),
        -3px -3px 8px rgba(255,248,240,0.8),
        inset 1px 1px 2px rgba(255,248,240,0.4),
        inset -1px -1px 2px rgba(0,0,0,0.03);
    transform: translateY(-2px) scale(1);
}

.nav-pill:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.pill-label {
    font-family: 'Bebas Neue', sans-serif;
}

.pill-count {
    font-family: 'Bebas Neue', sans-serif;
    color: #C4A060;
    font-size: 14px;
}

/* Hero Tagline */
#hero-tagline {
    position: absolute;
    bottom: 60px;
    right: 60px;
    z-index: 3;
}

#hero-tagline p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #8A7A6A;
    font-style: italic;
}

/* =====================================================
   SECTION 2: DEVELOPERS + SIDEBAR
   ===================================================== */
#developers {
    position: relative;
    padding: 80px 40px 80px 80px;
    background: #E8DDD0;
    z-index: 1;
}

.section-inner {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-column {
    flex: 0 0 65%;
}

.sidebar {
    flex: 0 0 30%;
}

/* Developer Cards */
.dev-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    margin-bottom: 24px;
}

.dev-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

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

.dev-info {
    flex: 1;
}

.dev-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.08em;
    color: #5A4A3A;
    margin-bottom: 2px;
}

.dev-role {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #4A4A7A;
    margin-bottom: 8px;
    font-weight: 600;
}

.dev-bio {
    font-family: 'Source Sans 3', sans-serif;
    color: #5A4A3A;
    margin-bottom: 12px;
}

.dev-bio code {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    background: rgba(74,74,122,0.08);
    padding: 1px 5px;
    border-radius: 4px;
    color: #4A4A7A;
}

.dev-stats {
    display: flex;
    gap: 20px;
}

.stat {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #8A7A6A;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    color: #C4A060;
    font-size: 18px;
    margin-right: 4px;
}

/* Library Badges */
.lib-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 12px;
    border-radius: 20px;
}

.lib-name {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #5A4A3A;
}

.lib-stars {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: #C4A060;
}

.lib-stars::after {
    content: ' \2605';
    font-size: 14px;
}

/* =====================================================
   SECTION 3: FEATURED PROJECTS
   ===================================================== */
#libraries {
    position: relative;
    padding: 80px 40px 80px 80px;
    background: #E8DDD0;
    z-index: 1;
}

#project-showcase {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 32px;
}

.project-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.project-tab {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #E8DDD0 0%, #C4B4A0 100%);
    color: #5A4A3A;
    cursor: pointer;
    box-shadow:
        4px 4px 10px rgba(0,0,0,0.1),
        -2px -2px 6px rgba(255,248,240,0.6),
        inset 1px 1px 2px rgba(255,248,240,0.2),
        inset -1px -1px 2px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-tab:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 14px rgba(0,0,0,0.13),
        -3px -3px 8px rgba(255,248,240,0.7),
        inset 1px 1px 2px rgba(255,248,240,0.3),
        inset -1px -1px 2px rgba(0,0,0,0.03);
}

.project-tab.active {
    background: linear-gradient(135deg, #FFF8F0 0%, #E8DDD0 100%);
    box-shadow:
        inset 2px 2px 6px rgba(0,0,0,0.08),
        inset -2px -2px 6px rgba(255,248,240,0.5);
}

.tab-stars {
    font-family: 'Bebas Neue', sans-serif;
    color: #C4A060;
    font-size: 14px;
}

.tab-stars::after {
    content: ' \2605';
    font-size: 12px;
}

.project-panel {
    display: none;
}

.project-panel.active {
    display: block;
}

.project-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.project-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: 0.08em;
    color: #5A4A3A;
}

.project-category {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #4A4A7A;
    background: rgba(74,74,122,0.08);
    padding: 4px 12px;
    border-radius: 12px;
}

.project-desc {
    font-family: 'Source Sans 3', sans-serif;
    color: #5A4A3A;
    margin-bottom: 24px;
    max-width: 700px;
}

.code-block {
    background: rgba(90,74,58,0.06);
    border-radius: 16px;
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #5A4A3A;
    line-height: 1.6;
    white-space: pre;
}

.project-contributors {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contributor-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #8A7A6A;
}

.contributor-count {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: #C4A060;
}

/* =====================================================
   SECTION 4: EVENTS
   ===================================================== */
#events {
    position: relative;
    padding: 80px 40px 80px 80px;
    background: #E8DDD0;
    z-index: 1;
}

#events-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#events-scroll::-webkit-scrollbar {
    height: 8px;
}

#events-scroll::-webkit-scrollbar-track {
    background: #C4B4A0;
    border-radius: 4px;
}

#events-scroll::-webkit-scrollbar-thumb {
    background: #8A7A6A;
    border-radius: 4px;
}

.event-card {
    flex: 0 0 280px;
    padding: 28px;
    scroll-snap-align: start;
    background: linear-gradient(135deg, var(--card-tint, #FFF8F0) 0%, #E8DDD0 100%);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
}

.event-month {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #8A7A6A;
}

.event-day {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 0.04em;
    color: #5A4A3A;
    line-height: 1;
}

.event-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: #5A4A3A;
    margin-bottom: 6px;
}

.event-location {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #4A4A7A;
    margin-bottom: 4px;
}

.event-speakers {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #8A7A6A;
    margin-bottom: 12px;
}

.event-type {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #FFF8F0;
    background: #4A4A7A;
    padding: 4px 12px;
    border-radius: 12px;
}

/* =====================================================
   SECTION 5: COMMUNITY STATS
   ===================================================== */
#community {
    position: relative;
    padding: 80px 40px 80px 80px;
    background: #E8DDD0;
    z-index: 1;
}

/* Pojagi-inspired border pattern */
.pojagi-border {
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 4px;
    background:
        repeating-linear-gradient(
            90deg,
            #4A4A7A 0px,
            #4A4A7A 16px,
            transparent 16px,
            transparent 24px,
            #C4A060 24px,
            #C4A060 36px,
            transparent 36px,
            transparent 44px
        );
    opacity: 0.2;
}

#community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.community-stat {
    text-align: center;
    padding: 40px 20px;
}

.community-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    color: #C4A060;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.community-label {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #8A7A6A;
    margin-top: 8px;
}

/* =====================================================
   FOOTER (Flat / Deflated)
   ===================================================== */
#site-footer {
    padding: 40px 80px;
    background: #5A4A3A;
    color: #C4B4A0;
    z-index: 1;
    position: relative;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 0.12em;
    color: #E8DDD0;
}

.footer-sep {
    color: #8A7A6A;
}

.footer-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #8A7A6A;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #C4B4A0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFF8F0;
}

.footer-copy {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #8A7A6A;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .section-inner {
        flex-direction: column;
    }

    .content-column,
    .sidebar {
        flex: 0 0 100%;
    }

    #community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #developers,
    #libraries,
    #events,
    #community {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    #scan-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 16px;
        width: 100%;
        justify-content: center;
    }

    .nav-pill {
        padding: 8px 16px;
        font-size: 14px;
    }

    #vertical-logo {
        left: 12px;
    }

    .logo-char {
        font-size: 20px;
    }

    #hero-tagline {
        right: 20px;
        bottom: 30px;
    }

    #developers,
    #libraries,
    #events,
    #community {
        padding: 60px 20px;
    }

    #site-footer {
        padding: 30px 20px;
    }

    .dev-card {
        flex-direction: column;
        align-items: flex-start;
    }

    #community-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-tabs {
        gap: 8px;
    }

    .project-tab {
        padding: 8px 16px;
        font-size: 16px;
    }

    .code-block {
        padding: 16px;
    }

    .code-block code {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #community-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex: 0 0 240px;
    }

    #scan-bar {
        top: 16px;
    }
}
