:root {
    --linux-yellow: #FCC624;
    --linux-black: #000000;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--linux-black);
    -webkit-font-smoothing: antialiased;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

/* Layout Rails */
.rail {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 50;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    pointer-events: none;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow { animation: spin-slow 20s linear infinite; }

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #000; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--linux-yellow); }

.timeline-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--linux-yellow) transparent;
}

/* Kernel Interactive Blocks */
.kernel-component {
    position: relative;
}

.kernel-block {
    padding: 1rem;
    border: 1px solid #374151;
    border-radius: 0.25rem;
    background: black;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kernel-block:hover {
    background-color: var(--linux-yellow);
    color: black;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.kernel-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4rem;
    background: white;
    color: black;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 20;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .kernel-component:hover .kernel-info,
    .kernel-block:focus + .kernel-info {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confetti Canvas */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}