:root {
    --bg: #0b0b0b;
    --surface: #131313;
    --border: #1e1e1e;
    --text: #e8e8e8;
    --muted: #6e6e6e;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --radius: 8px;
    --radius-sm: 5px;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease;
}

p {
    color: var(--muted);
}

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

section {
    padding: 72px 0;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.logo {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #fff;
}

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

.nav-link {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

/* Hero */
.hero {
    padding: 96px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-role {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-desc {
    font-size: 0.975rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.8;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: #383838;
    background: rgba(255, 255, 255, 0.04);
}

/* Section label */
.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px;
    display: block;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.15s ease;
}

.card:hover {
    border-color: #2e2e2e;
}

/* Tags */
.tech-tag {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* About page */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.bio-text p {
    font-size: 0.975rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.profile-wrap {
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid var(--border);
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%);
    transition: filter 0.3s;
}

.profile-img:hover img {
    filter: grayscale(0%);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.experience-item {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.exp-title {
    font-size: 0.975rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.exp-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.exp-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.stack-group + .section-label {
    margin-top: 12px;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Focus section (homepage) */
.focus-section {
    padding-top: 16px;
    padding-bottom: 96px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.focus-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    transition: border-color 0.15s ease;
}

.focus-card:hover {
    border-color: #2e2e2e;
}

.focus-icon {
    color: var(--muted);
    margin-bottom: 20px;
}

.focus-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.focus-desc {
    font-size: 0.825rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

@media (max-width: 768px) {
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .focus-section {
        padding-top: 0;
        padding-bottom: 56px;
    }
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.project-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    color: var(--text);
}

.project-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 18px;
}

.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}

.form-input {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s ease;
    resize: vertical;
}

.form-input:focus {
    border-color: #383838;
}

.form-input::placeholder {
    color: #3a3a3a;
}

.success-banner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2e2e2e;
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.social-link {
    font-size: 0.8rem;
    color: var(--muted);
    transition: color 0.15s;
}

.social-link:hover {
    color: var(--text);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeUp 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 20px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 18px;
        z-index: 99;
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 64px 0 48px;
    }

    .cta-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .profile-wrap {
        order: -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    section {
        padding: 48px 0;
    }
}
