*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --border: #1e1e2e;
    --text: #e4e4ef;
    --text-muted: #8888a0;
    --accent: #6c63ff;
    --accent-soft: rgba(108, 99, 255, 0.12);
    --accent-glow: rgba(108, 99, 255, 0.25);
    --gold: #f5c542;
    --platinum: #b0c4de;
    --bronze: #cd7f32;
    --academic: #50c878;
    --pro-tag-bg: rgba(108, 99, 255, 0.15);
    --pro-tag-border: rgba(108, 99, 255, 0.4);
    --tag-bg: rgba(255, 255, 255, 0.05);
    --tag-border: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Hero ===== */
.hero {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, #a8a4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.contact-item:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.contact-item svg {
    flex-shrink: 0;
}

/* ===== Sections ===== */
.section {
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.section-title svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ===== Timeline ===== */
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.06);
}

.timeline-company {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.timeline {
    position: relative;
    padding-left: 1.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

.timeline-entry {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.75rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--text-muted);
    z-index: 1;
}

.timeline-dot.current {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    gap: 1rem;
}

.timeline-header h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .timeline-company {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.06);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.org {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

.meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.date {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 400;
}

.location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.details {
    list-style: none;
    padding: 0;
}

.details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color 0.25s ease;
}

.skill-category:hover {
    border-color: rgba(108, 99, 255, 0.3);
}

.skill-category h3 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag.pro {
    background: var(--pro-tag-bg);
    border-color: var(--pro-tag-border);
    color: var(--accent);
}

/* ===== Projects ===== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.project-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.project-tags {
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    flex-grow: 1;
}

.project-link {
    display: inline-block;
    margin-top: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.project-link:hover {
    opacity: 0.8;
}

/* ===== Awards ===== */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.award-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color 0.25s ease;
}

.award-item:hover {
    border-color: rgba(108, 99, 255, 0.3);
}

.award-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.award-icon.platinum {
    background: rgba(176, 196, 222, 0.15);
    color: var(--platinum);
}

.award-icon.gold {
    background: rgba(245, 197, 66, 0.15);
    color: var(--gold);
}

.award-icon.bronze {
    background: rgba(205, 127, 50, 0.15);
    color: var(--bronze);
}

.award-icon.academic {
    background: rgba(80, 200, 120, 0.15);
    color: var(--academic);
}

.award-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.award-item h3 .date {
    font-weight: 400;
    margin-left: 0.35rem;
}

.award-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ===== Side Nav ===== */
.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.side-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
}

.side-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: scale(1.1);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .card-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta {
        align-items: flex-start;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .side-nav {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        margin-bottom: 2.5rem;
    }
}
