/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Mature Frutiger Aero Palette */
    --bg-gradient-1: #c9e4f5;
    --bg-gradient-2: #e0f2ff;
    --bg-gradient-3: #b8dff0;
    --sidebar-bg: rgba(255, 255, 255, 0.35);
    --card-bg: rgba(255, 255, 255, 0.55);
    --text-primary: #1a4d6e;
    --text-secondary: #3a7391;
    --text-muted: #6b9bb5;
    --accent-blue: #00a8e8;
    --accent-cyan: #00d4ff;
    --professional-color: #00c9a7;
    --personal-color: #00b4d8;
    --glow-blue: rgba(0, 168, 232, 0.6);
    --glow-cyan: rgba(0, 212, 255, 0.5);
    --shadow-soft: rgba(0, 100, 150, 0.12);
    --shadow-medium: rgba(0, 100, 150, 0.18);
    --border-glass: rgba(255, 255, 255, 0.7);
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* Advanced Light Effects */
body::before {
    content: '';
    position: fixed;
    top: -60%;
    left: -30%;
    width: 140%;
    height: 140%;
    background:
        radial-gradient(ellipse at 25% 25%, rgba(0, 212, 255, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 60%, rgba(0, 168, 232, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 201, 167, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: ambientFloat 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(110deg, transparent 45%, rgba(255, 255, 255, 0.05) 48%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.05) 52%, transparent 55%);
    background-size: 200% 100%;
    animation: shine 15s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, -8%) rotate(1deg); }
    66% { transform: translate(-3%, 5%) rotate(-1deg); }
}

@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-right: 2px solid var(--border-glass);
    box-shadow:
        inset -1px 0 2px rgba(255, 255, 255, 0.8),
        inset 1px 0 40px rgba(255, 255, 255, 0.3),
        4px 0 30px var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.profile {
    text-align: center;
    z-index: 1;
}

.avatar-container {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 32px rgba(0, 150, 200, 0.2),
        inset 0 2px 6px rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px rgba(0, 100, 150, 0.15);
    object-fit: cover;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e0f2ff 0%, #c9e4f5 100%);
    position: relative;
}

.avatar:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 150, 200, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.9),
        inset 0 -2px 6px rgba(0, 100, 150, 0.2);
}

.name {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #006ba6 0%, #00a8e8 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 168, 232, 0.3));
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 16px var(--shadow-soft),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(0, 100, 150, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 168, 232, 0.95);
    color: white;
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 168, 232, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 1);
}

.social-link:hover::before {
    opacity: 1;
}

/* Main Content */
.content {
    flex: 1;
    padding: 4rem 6rem;
}

.timeline-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline {
    position: relative;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-muted);
    text-transform: uppercase;
}

.professional-timeline .timeline-title {
    color: var(--professional-color);
}

.personal-timeline .timeline-title {
    color: var(--personal-color);
}

.timeline-scroll {
    position: relative;
}

/* Timeline Items - Minimal Branch Design */
.timeline-scroll::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(0, 168, 232, 0.3) 0%,
        rgba(0, 168, 232, 0.15) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

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

/* Alternating branches */
.timeline-item:nth-child(odd) .timeline-card {
    margin-left: 0;
    margin-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: calc(50% + 2rem);
    margin-right: 0;
    text-align: left;
}

/* Branch line */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    width: 2rem;
    height: 2px;
    background: rgba(0, 168, 232, 0.25);
}

.timeline-item:nth-child(odd)::after {
    right: calc(50% + 2px);
}

.timeline-item:nth-child(even)::after {
    left: calc(50% + 2px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(0, 168, 232, 0.3),
        0 2px 6px rgba(0, 168, 232, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.professional-timeline .timeline-dot {
    box-shadow:
        0 0 0 3px rgba(0, 201, 167, 0.4),
        0 2px 6px rgba(0, 201, 167, 0.2);
}

.personal-timeline .timeline-dot {
    box-shadow:
        0 0 0 3px rgba(0, 180, 216, 0.4),
        0 2px 6px rgba(0, 180, 216, 0.2);
}

.timeline-card {
    padding: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow:
        0 0 0 4px rgba(0, 168, 232, 0.4),
        0 3px 10px rgba(0, 168, 232, 0.25);
}

.year {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.timeline-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    letter-spacing: 0.2px;
}

.company,
.tech {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 400;
    margin-bottom: 0.15rem;
}

.desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.stats {
    font-size: 0.7rem;
    color: var(--professional-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.links {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.timeline-item:nth-child(odd) .links {
    justify-content: flex-end;
}

.links a {
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 2rem;
        border-right: none;
        border-bottom: 2px solid var(--border-glass);
        position: relative;
    }

    .content {
        padding: 1.5rem;
    }

    .timeline-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .name {
        font-size: 1.5rem;
    }
}
