:root {
    --bg: #141414;
    --card: #212121;
    --red: #e50914;
    --muted: #a3a3a3;
    --text-primary: #ffffff;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #101010;
}

::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

::selection {
    background: rgba(229, 9, 20, 0.5);
    color: #ffffff;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg);
}

a {
    color: var(--red);
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

main {
    padding-top: 40px;
    padding-bottom: 40px;
}

h1,
h2,
h3 {
    color: var(--red);
    font-weight: 700;
}

h1 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.card {
    background: rgba(33, 33, 33, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #e50914, #ff5e62);
    color: #ffffff;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.btn.outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: none;
}

.btn.outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input,
textarea {
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2a2a2a;
    color: var(--text-primary);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--red);
}

footer {
    padding: 32px 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.muted {
    color: var(--muted);
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--red);
    border-radius: 50%;
    left: 12px;
    top: 30px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

.timeline-content {
    margin-bottom: 0;
    padding: 20px 25px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.timeline-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 5px;
}

.timeline-header h3 {
    margin: 0 0 5px;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: left;
}

.timeline-date {
    color: var(--red);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.timeline-text {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Terminal Styles */
.terminal-section { margin-bottom: 40px; display: flex; justify-content: center; }
.terminal-window { width: 100%; max-width: 600px; background: #1e1e1e; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid #333; }
.terminal-header { background: #2d2d2d; padding: 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #111; position: relative; }
.terminal-header span[class^="btn-"] { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.btn-close { background: #ff5f56; } .btn-min { background: #ffbd2e; } .btn-max { background: #27c93f; }
.terminal-title { position: absolute; width: 100%; text-align: center; left: 0; pointer-events: none; color: #aaa; font-size: 0.85rem; font-family: monospace; }
.terminal-body { padding: 20px; font-family: 'Consolas', 'Courier New', monospace; font-size: 0.95rem; color: #ddd; min-height: 100px; text-align: left; }
.terminal-prompt { margin: 0; line-height: 1.5; }
.terminal-prompt .user { color: #4af626; } .terminal-prompt .dir { color: #26b2f6; }
.cursor { display: inline-block; width: 8px; height: 1em; background: #ddd; vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: #181818;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }
}