/* ============================================
   SuperDangerous — 3D Island World
   ============================================ */

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

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    overflow: hidden;
    background: #ffffff;
    color: #1a1a2e;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ============================================
   Loading Screen
   ============================================ */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.15s ease;
}

.loading.zooming {
    background: #FF004F;
}

.loading.hidden {
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo {
    /* Animation only runs during loading - stopped when hidden */
    animation: pulse 2s ease-in-out infinite;
    /* Large container for crisp SVG, visually sized with scale */
    width: 500px;
    height: 500px;
    transform: scale(0.16);
    transform-origin: center center;
    /* Pull close to progress bar */
    margin: -190px 0;
}

/* Stop animation when loading is hidden to save CPU */
.loading.hidden .loading-logo {
    animation: none;
}

.loading-logo svg {
    width: 100%;
    height: 100%;
    /* No shadow - keep crisp edges */
    shape-rendering: geometricPrecision;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.16); opacity: 1; }
    50% { transform: scale(0.17); opacity: 0.9; }
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00F2EA, #FF004F);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.loading-bar {
    transition: opacity 0.3s ease;
}

/* Loading logo zoom animation - fast flash */
.loading-logo.zoom-out {
    animation: zoomOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes zoomOut {
    0% {
        transform: scale(0.16);
    }
    100% {
        /* Scale massively - background turns pink anyway */
        transform: scale(80);
    }
}

/* Pink circle SVG for collapse animation */
.pink-circle {
    position: fixed;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    /* No transition - JS controls all timing */
}

/* Hero dot - the period after "It's time to build" */
.hero-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #FF004F;
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: baseline;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-dot.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   Header
   ============================================ */

.ui-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.875rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 600; /* Above projects dropdown so content scrolls behind */
    pointer-events: none;
}

.logo {
    pointer-events: auto;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 84px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    pointer-events: auto;
    transform: translateY(-10px);
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    touch-action: manipulation; /* Prevent double-tap zoom delay */
}

.nav-links a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.nav-links a.nav-why {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.nav-links a.nav-why:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.nav-links a.nav-why.active {
    background: rgba(0, 242, 234, 0.15);
    color: #008B87;
    border-color: rgba(0, 242, 234, 0.4);
}

.nav-links svg {
    opacity: 0.7;
}

/* ============================================
   Hero Text
   ============================================ */

.hero-text {
    position: fixed;
    bottom: 3.75rem;
    left: 2.5rem;
    z-index: 100;
    pointer-events: none;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4.375rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #1a1a2e;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.6);
}

/* Email signup form */
.email-signup {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.5rem;
    pointer-events: auto;
}

.email-signup input {
    padding: 0.9rem 1.25rem;
    font-size: 1.1rem;
    font-family: inherit;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    outline: none;
    min-width: 250px;
    transition: all 0.2s;
}

.email-signup input:focus {
    border-color: #00F2EA;
    box-shadow: 0 0 0 3px rgba(0, 242, 234, 0.1);
}

.email-signup input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.email-signup button {
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #FF004F;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    touch-action: manipulation;
}

.email-signup button:hover {
    background: #e00046;
    transform: translateY(-1px);
}

.email-signup button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.signup-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.signup-message.success {
    color: #00a896;
}

.signup-message.error {
    color: #FF004F;
}

/* ============================================
   Controls Hint
   ============================================ */

.controls-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
    pointer-events: none;
}

.hint-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hint-key {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF004F;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hint-label {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.5);
}

/* ============================================
   Backdrop
   ============================================ */

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Info Panels
   ============================================ */

.info-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.info-panel[data-color="cyan"] {
    border-top: 3px solid #00F2EA;
}

.info-panel[data-color="pink"] {
    border-top: 3px solid #FF004F;
}

.info-panel-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.info-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.panel-header {
    padding: 2rem 2rem 0;
}

.panel-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
}

.panel-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.panel-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.info-panel[data-color="cyan"] .panel-tagline {
    color: #00F2EA;
}

.info-panel[data-color="pink"] .panel-tagline {
    color: #FF004F;
}

.panel-body {
    padding: 1.5rem 2rem;
}

.panel-body > p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.panel-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.feature svg {
    flex-shrink: 0;
    color: #00F2EA;
}

.info-panel[data-color="pink"] .feature svg {
    color: #FF004F;
}

.panel-stats {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

.panel-actions {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 0.75rem;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #FF004F;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 79, 0.3);
}

.info-panel[data-color="cyan"] .btn-primary {
    background: #00F2EA;
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 79, 0.4);
}

.info-panel[data-color="cyan"] .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    /* Mobile layout uses consistent edge alignment */
    :root {
        --mobile-margin: 1.5rem;
    }

    .ui-header {
        padding: var(--mobile-margin);
        padding-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .logo {
        /* Shift logo left so its TEXT aligns with content edge
           (compensates for lightning bolt + SVG padding) */
        margin-left: -1.75rem;
    }

    .logo img {
        height: 70px;
    }

    .nav-links {
        gap: 0.75rem;
        transform: translateY(0);
        /* Aligns with content edge naturally */
    }

    .nav-links a {
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
    }

    .nav-links a span {
        display: inline;
    }

    /* Hero uses same margin as header for alignment */
    .hero-text {
        left: var(--mobile-margin);
        right: var(--mobile-margin);
        bottom: 25%;
        top: auto;
        transform: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Stack email form on mobile */
    .email-signup {
        flex-direction: column;
        width: 100%;
    }

    .email-signup input {
        min-width: unset;
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .email-signup button {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .info-panel {
        max-height: 80vh;
        border-radius: 16px;
    }

    .panel-header,
    .panel-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .panel-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        flex-direction: column;
    }

    .panel-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .nav-links a {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   Projects Timeline Dropdown
   ============================================ */

.projects-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.projects-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Fixed line that stays in place - positioned by JS */
.projects-line {
    position: fixed;
    width: 2px;
    /* Top position set by JS to start from button bottom */
    bottom: 0;
    background: linear-gradient(180deg,
        #00F2EA 0%,
        #00F2EA 30%,
        rgba(0, 242, 234, 0.4) 60%,
        rgba(0, 242, 234, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Glow effect */
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.5),
                0 0 20px rgba(0, 242, 234, 0.2);
    z-index: 501;
}

.projects-dropdown.active .projects-line {
    opacity: 1;
}

/* Scrollable content area */
.projects-timeline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    /* Top padding set by JS to start below button */
    padding-bottom: 3rem;
}

/* Project nodes container - centers content on line position */
.projects-content {
    /* Width and position set by JS based on line position */
    margin: 0 auto;
    width: 700px;
    max-width: calc(100vw - 2rem);
}

/* Project nodes - positioned relative to center line */
.project-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.projects-dropdown.active .project-node {
    opacity: 1;
}

/* Staggered animation */
.projects-dropdown.active .project-node[data-project="0"] { transition-delay: 0.1s; }
.projects-dropdown.active .project-node[data-project="1"] { transition-delay: 0.2s; }
.projects-dropdown.active .project-node[data-project="2"] { transition-delay: 0.3s; }
.projects-dropdown.active .project-node[data-project="3"] { transition-delay: 0.4s; }

/* Odd items: card on LEFT of line */
.project-node:nth-child(odd) {
    justify-content: flex-end;
    padding-right: calc(50% + 1.5rem);
    transform: translateX(-20px);
}

.projects-dropdown.active .project-node:nth-child(odd) {
    transform: translateX(0);
}

/* Even items: card on RIGHT of line */
.project-node:nth-child(even) {
    justify-content: flex-start;
    padding-left: calc(50% + 1.5rem);
    transform: translateX(20px);
}

.projects-dropdown.active .project-node:nth-child(even) {
    transform: translateX(0);
}

/* Atom node - positioned on the line, scrolls with card */
.node-atom {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 2;
    /* top position set dynamically by JS to center on card */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Position atoms on the center line - set by JS */
.projects-dropdown.active .node-atom {
    opacity: 1;
}

.atom-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #00F2EA, #00c4be);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.6);
}

.atom-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 242, 234, 0.4);
    border-radius: 50%;
    /* Animation only runs when dropdown is active - prevents idle CPU usage */
    animation: none;
}

/* Only animate when dropdown is active */
.projects-dropdown.active .atom-ring {
    animation: atomPulse 2s ease-in-out infinite;
}

@keyframes atomPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.2; }
}

/* Project card */
.project-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    /* Default width */
    width: 280px;
}

/* Card size variations */
.project-card.size-small {
    width: 220px;
}

.project-card.size-medium {
    width: 280px;
}

.project-card.size-large {
    width: 340px;
}

.project-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 242, 234, 0.1);
    border-color: rgba(0, 242, 234, 0.3);
}

.project-status {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00a896;
    margin-bottom: 0.35rem;
}

.project-status.live {
    color: #FF004F;
}

.project-status.coming-soon {
    color: #9B59B6;
}

.project-icon {
    display: inline-block;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
}

/* Remove margin if h3 is last child (no description/tags below) */
.project-card h3:last-child {
    margin-bottom: 0;
}

.project-subtitle {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    margin-top: -0.2rem;
}

.project-card p {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Remove margin if p is last child */
.project-card p:last-child {
    margin-bottom: 0;
}

/* Project screenshot */
.project-screenshot {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

/* Project logo */
.project-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.project-tag {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 242, 234, 0.1);
    color: #008B87;
    border-radius: 4px;
}

.project-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF004F;
    text-decoration: none;
    transition: opacity 0.2s;
}

.project-link:hover {
    opacity: 0.7;
}

/* Nav active state for projects */
.nav-links a.nav-projects.active {
    background: rgba(0, 242, 234, 0.15);
    color: #008B87;
    border-color: rgba(0, 242, 234, 0.4);
}

/* Click outside to close - backdrop */
.projects-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 499;
    display: none;
}

.projects-backdrop.active {
    display: block;
}

/* Mobile projects layout */
@media (max-width: 768px) {
    .projects-content {
        width: 100%;
        max-width: none;
        padding: 0 1rem;
    }

    /* On mobile, all cards go to the right of line */
    .project-node,
    .project-node:nth-child(odd),
    .project-node:nth-child(even) {
        justify-content: flex-start;
        padding-left: 2.5rem;
        padding-right: 0;
        transform: translateY(15px);
    }

    .projects-dropdown.active .project-node,
    .projects-dropdown.active .project-node:nth-child(odd),
    .projects-dropdown.active .project-node:nth-child(even) {
        transform: translateY(0);
    }

    .node-atom {
        width: 18px;
        height: 18px;
    }

    .atom-core {
        width: 8px;
        height: 8px;
    }

    .atom-ring {
        width: 18px;
        height: 18px;
    }

    .project-card {
        max-width: none;
        width: 100%;
    }
}

/* ============================================
   Why Timeline Dropdown
   ============================================ */

.why-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.why-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Fixed line extending from button */
.why-line {
    position: fixed;
    width: 2px;
    bottom: 0;
    background: linear-gradient(180deg,
        #FF004F 0%,
        #FF004F 30%,
        rgba(255, 0, 79, 0.4) 60%,
        rgba(255, 0, 79, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.5),
                0 0 20px rgba(255, 0, 79, 0.2);
    z-index: 501;
}

.why-dropdown.active .why-line {
    opacity: 1;
}

/* Scrollable content area */
.why-timeline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding-bottom: 3rem;
}

/* Why content container */
.why-content {
    margin: 0 auto;
    width: 700px;
    max-width: calc(100vw - 2rem);
}

/* Why node - single item */
.why-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    /* Position card to the right of line */
    justify-content: flex-start;
    padding-left: calc(50% + 1.5rem);
}

.why-dropdown.active .why-node {
    opacity: 1;
    transform: translateX(0);
}

/* Why atom - pink version */
.why-node .node-atom .atom-core {
    background: linear-gradient(135deg, #FF004F, #cc003f);
    box-shadow: 0 0 20px rgba(255, 0, 79, 0.6);
}

.why-node .node-atom .atom-ring {
    border-color: rgba(255, 0, 79, 0.4);
}

.why-dropdown.active .why-node .atom-ring {
    animation: atomPulsePink 2s ease-in-out infinite;
}

@keyframes atomPulsePink {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.2; }
}

/* Why card - larger than project cards */
.why-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    max-width: 500px;
}

.why-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(255, 0, 79, 0.1);
    border-color: rgba(255, 0, 79, 0.3);
}

.why-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.why-card .subtitle {
    font-size: 1.1rem;
    color: #FF004F;
    margin-bottom: 1.5rem;
}

.why-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.why-card .tagline {
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Mobile why layout */
@media (max-width: 768px) {
    .why-content {
        width: 100%;
        max-width: none;
        padding: 0 1rem;
    }

    .why-node {
        justify-content: flex-start;
        padding-left: 2.5rem;
        padding-right: 0;
        transform: translateY(15px);
    }

    .why-dropdown.active .why-node {
        transform: translateY(0);
    }

    .why-card {
        max-width: none;
        width: 100%;
        padding: 1.5rem;
    }

    .why-card h2 {
        font-size: 2rem;
    }

    .why-card .subtitle {
        font-size: 1rem;
    }

    .why-card p {
        font-size: 0.95rem;
    }
}


/* ============================================
   Scrollbar
   ============================================ */

.info-panel::-webkit-scrollbar {
    width: 6px;
}

.info-panel::-webkit-scrollbar-track {
    background: transparent;
}

.info-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-text p {
    animation: fadeInUp 0.8s ease 0.7s both;
}

.controls-hint {
    animation: fadeInUp 0.8s ease 0.9s both;
}

.ui-header {
    animation: fadeInUp 0.6s ease 0.3s both;
}
