:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-primary: #00f2ff;
    --accent-secondary: #bd00ff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-glass: blur(10px);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    /* Tech feel */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.globe-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
    animation: float 20s infinite alternate ease-in-out;
}

.globe-2 {
    width: 30vw;
    height: 30vw;
    background: var(--accent-secondary);
    bottom: -5%;
    right: -5%;
    animation: float 25s infinite alternate-reverse ease-in-out;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Typography & Layout */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent-primary);
}

.cta-button {
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

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

.profile-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.5);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-color), transparent);
}

/* Timeline Section */
#timeline {
    padding: 5rem 5%;
    position: relative;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--card-border) 10%, var(--card-border) 90%, transparent);
    z-index: 0;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    /* Hidden initially for animation */
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--card-glass);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.timeline-year {
    position: absolute;
    top: -2rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
    right: 1rem;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: auto;
    left: 1rem;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--accent-primary);
}

.codec-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.codec-snippet {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #111;
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-specs {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.tech-specs h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.tech-specs ul {
    list-style: none;
}

.tech-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
    }

    .timeline-marker {
        position: absolute;
        /* Fix alignment */
        left: 14px;
        /* Center on the line (20px line pos - 6px half marker width) */
    }

    .timeline-content {
        width: 100%;
        margin-left: 50px;
        /* Space from line */
    }

    .timeline-year {
        display: none;
        /* Simplify for mobile */
    }
}