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

:root {
    --bg: #06080f;
    --bg-alt: #0b0f1a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.07);
    --text: #e4e7ef;
    --text-muted: #7d8396;
    --accent: #38bdf8;
    --accent2: #818cf8;
    --accent-glow: rgba(56, 189, 248, 0.12);
    --gradient: linear-gradient(135deg, #38bdf8, #818cf8);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 8, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 70% 20%, rgba(129, 140, 248, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-name {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a0a8c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlights {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

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

.highlight-num {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.highlight-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(56, 189, 248, 0.2);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
    text-align: center;
    background: linear-gradient(135deg, #fff, #8b92a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 1;
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.timeline-card:hover {
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.timeline-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.company {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.period {
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    border: 1px solid var(--border);
}

.timeline-card ul {
    list-style: none;
    margin-bottom: 16px;
}

.timeline-card li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: #bfc4d4;
    line-height: 1.6;
}

.timeline-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== TAGS ===== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
}

/* ===== EDUCATION ===== */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.edu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.edu-card:hover {
    border-color: rgba(129, 140, 248, 0.25);
    transform: translateY(-4px);
}

.edu-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.edu-period {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--accent2);
    font-weight: 500;
    margin-bottom: 12px;
}

.edu-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.edu-school {
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.edu-detail {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s;
}

.skill-group:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.skill-group h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===== HOBBIES ===== */
.hobby-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hobby-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.3s, transform 0.3s;
}

.hobby-card:hover {
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.hobby-icon {
    font-size: 1.4rem;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-highlights {
        gap: 24px;
    }

    .section {
        padding: 64px 0;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-dot {
        left: -21px;
        width: 12px;
        height: 12px;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
