/* opensource.bar - Aquarium Bar Dark Theme */
/* Colors: #111827 #0a0e17 #e0f7f0 #00e5a0 #ff6b6b #06b6d4 #8b5cf6 #94a3b8 #475569 */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0e17;
    color: #94a3b8;
    font-family: "Work Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
}

/* ====== CAUSTIC CANVAS ====== */
#caustic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
}

/* ====== BUBBLES LAYER ====== */
#bubbles-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.15), transparent 70%);
    animation: bubble-rise linear infinite;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) translateX(40px) scale(1.2);
        opacity: 0;
    }
}

/* ====== FISH LAYER ====== */
#fish-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.fish {
    position: absolute;
    fill: none;
    opacity: 0.6;
}

.fish-angel {
    width: 80px;
    height: 54px;
    top: 20%;
    left: -100px;
    animation: swim-right 25s linear infinite;
}

.fish-clown {
    width: 65px;
    height: 39px;
    top: 60%;
    left: -80px;
    animation: swim-right 30s linear infinite 5s;
}

.fish-tang {
    width: 72px;
    height: 46px;
    top: 40%;
    right: -100px;
    animation: swim-left 28s linear infinite 2s;
}

.fish-seahorse {
    width: 36px;
    height: 60px;
    top: 70%;
    left: -60px;
    animation: swim-right-slow 40s linear infinite 8s;
}

.fish-lion {
    width: 85px;
    height: 59px;
    top: 30%;
    right: -120px;
    animation: swim-left 35s linear infinite 12s;
}

@keyframes swim-right {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(30vw) translateY(-20px); }
    50% { transform: translateX(60vw) translateY(15px); }
    75% { transform: translateX(90vw) translateY(-10px); }
    100% { transform: translateX(calc(100vw + 120px)) translateY(5px); }
}

@keyframes swim-left {
    0% { transform: translateX(0) translateY(0) scaleX(-1); }
    25% { transform: translateX(-30vw) translateY(15px) scaleX(-1); }
    50% { transform: translateX(-60vw) translateY(-20px) scaleX(-1); }
    75% { transform: translateX(-90vw) translateY(10px) scaleX(-1); }
    100% { transform: translateX(calc(-100vw - 120px)) translateY(-5px) scaleX(-1); }
}

@keyframes swim-right-slow {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(50vw) translateY(-30px); }
    100% { transform: translateX(calc(100vw + 80px)) translateY(10px); }
}

/* ====== PANEL NAV ====== */
#panel-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #475569;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.nav-dot.active {
    background: #00e5a0;
    border-color: #00e5a0;
    box-shadow: 0 0 12px rgba(0, 229, 160, 0.5);
}

.nav-dot:hover {
    border-color: #06b6d4;
}

/* ====== SCROLL CONTAINER ====== */
#scroll-container {
    display: flex;
    width: 500vw;
    height: 100vh;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glass-border {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 4px;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(6, 182, 212, 0.03);
}

.panel-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    padding: 48px 64px;
}

/* ====== TYPOGRAPHY ====== */
.section-headline {
    font-family: "Inter Tight", sans-serif;
    font-weight: 300;
    font-size: 64px;
    letter-spacing: 0.06em;
    color: #e0f7f0;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: #475569;
    margin-bottom: 48px;
}

/* ====== PANEL 0: ENTRANCE ====== */
.panel-entrance {
    background: radial-gradient(ellipse at 50% 120%, rgba(6, 182, 212, 0.08) 0%, #0a0e17 70%);
}

.entrance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.title-main {
    font-family: "Inter Tight", sans-serif;
    font-weight: 300;
    font-size: 96px;
    letter-spacing: 0.06em;
    color: #e0f7f0;
    line-height: 1.1;
}

.title-dot {
    color: #00e5a0;
}

.title-tagline {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.15em;
    color: #475569;
    margin-top: 16px;
}

.entrance-hint {
    position: absolute;
    bottom: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: hint-pulse 2s ease-in-out infinite;
}

.hint-text {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #475569;
}

.hint-arrow {
    width: 40px;
    height: 20px;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(8px); }
}

/* ====== PANEL 1: TAP LIST ====== */
.panel-taplist {
    background: radial-gradient(ellipse at 30% 80%, rgba(0, 229, 160, 0.05) 0%, #0a0e17 60%);
}

.tap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tap-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tap-card:hover {
    border-color: rgba(0, 229, 160, 0.4);
    box-shadow: 0 0 30px rgba(0, 229, 160, 0.08);
}

.tap-number {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-size: 32px;
    color: rgba(6, 182, 212, 0.2);
    line-height: 1;
    flex-shrink: 0;
}

.tap-name {
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #e0f7f0;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.tap-lang {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #00e5a0;
    text-transform: uppercase;
    background: rgba(0, 229, 160, 0.08);
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.tap-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tap-stats {
    display: flex;
    gap: 16px;
}

.stat {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: #475569;
}

.stat-icon {
    color: #06b6d4;
}

/* ====== PANEL 2: COMMUNITY ====== */
.panel-community {
    background: radial-gradient(ellipse at 60% 40%, rgba(139, 92, 246, 0.06) 0%, #0a0e17 60%);
}

.contributors-reef {
    position: relative;
    width: 100%;
    height: 50vh;
}

.contributor-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: node-float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes node-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.node-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 229, 160, 0.4);
    background: rgba(0, 229, 160, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    color: #00e5a0;
}

.node-name {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: #e0f7f0;
    letter-spacing: 0.02em;
}

.node-commits {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: #475569;
}

.community-stats-bar {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.comm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.comm-stat-value {
    font-family: "Inter Tight", sans-serif;
    font-weight: 300;
    font-size: 36px;
    color: #e0f7f0;
    letter-spacing: 0.04em;
}

.comm-stat-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #475569;
    text-transform: uppercase;
}

/* ====== PANEL 3: ORIGIN ====== */
.panel-origin {
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 107, 107, 0.05) 0%, #0a0e17 60%);
}

.origin-timeline {
    position: relative;
    padding-left: 80px;
}

.timeline-line {
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.timeline-event {
    position: relative;
    padding: 0 0 40px 32px;
    opacity: 0;
    transform: translateX(20px);
    animation: event-appear 0.6s ease forwards;
    animation-delay: var(--delay);
}

@keyframes event-appear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-year {
    position: absolute;
    left: -72px;
    top: 2px;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 500;
    font-size: 14px;
    color: #06b6d4;
    letter-spacing: 0.05em;
}

.event-dot {
    position: absolute;
    left: -25px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.event-title {
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #e0f7f0;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.event-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 500px;
}

/* ====== PANEL 4: CONTACT ====== */
.panel-contact {
    background: radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.06) 0%, #0a0e17 60%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.contact-block {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 4px;
    padding: 32px;
}

.contact-label {
    font-family: "Inter Tight", sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #e0f7f0;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.contact-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: #06b6d4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #00e5a0;
}

.link-arrow {
    width: 16px;
    height: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 3px;
    padding: 10px 14px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: #e0f7f0;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
    color: #475569;
}

.newsletter-input:focus {
    border-color: #06b6d4;
}

.newsletter-btn {
    background: rgba(0, 229, 160, 0.15);
    border: 1px solid rgba(0, 229, 160, 0.3);
    border-radius: 3px;
    padding: 10px 20px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: #00e5a0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: rgba(0, 229, 160, 0.25);
    border-color: #00e5a0;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.footer-text {
    font-size: 14px;
    color: #475569;
}

.footer-heart {
    color: #ff6b6b;
}

.footer-mono {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: #475569;
    letter-spacing: 0.05em;
}

/* ====== PANEL TRANSITIONS ====== */
.panel-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
}

/* Entrance always visible initially */
.panel-entrance .panel-content {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .title-main { font-size: 48px; }
    .section-headline { font-size: 36px; }
    .panel-content { padding: 32px 24px; }
    .tap-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .contact-grid { grid-template-columns: 1fr; gap: 16px; }
    .community-stats-bar { gap: 32px; }
    .comm-stat-value { font-size: 24px; }
    #panel-nav { right: 12px; }
}