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

:root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --border: #334155;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.nav-logo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--text);
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* hero */
.hero {
    padding: 160px 0 100px;
}

.hero-name {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-title {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--muted);
    color: var(--text);
}

/* sections */
.section {
    padding: 72px 0;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

/* about */
.about-content p {
    color: var(--muted);
    margin-bottom: 14px;
    max-width: 640px;
    font-size: 0.95rem;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    font-weight: 600;
}

.detail-value {
    color: var(--text);
    font-size: 0.9rem;
}

/* skills - tag style */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.skill-group h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* projects */
.projects-list {
    display: grid;
    gap: 16px;
}

.project-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

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

.project-card.main-project {
    border-color: var(--primary);
    border-width: 1px;
}

.project-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.project-name {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.project-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.project-tech {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.65;
}

.project-desc:last-child {
    margin-bottom: 0;
}

/* timeline */
.timeline {
    max-width: 600px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    padding-bottom: 28px;
    border-left: 1px solid var(--border);
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.timeline-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-item h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* contact */
.contact-intro {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.contact-item:hover {
    color: var(--primary);
}

/* footer */
.footer {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--muted);
}

/* mobile */
@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

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

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

    .about-details {
        grid-template-columns: 1fr 1fr;
    }

    .project-header {
        flex-direction: column;
    }
}
