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

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #ffffff;
    --surface: #f6f5f3;
    --border: #e8e6e3;
    --text: #111111;
    --muted: #6b6b6b;
    --font-heading: 'Sono', monospace;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 4rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    padding-top: 90px;
    gap: 3rem;
}

.hero-content {
    max-width: 580px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 0.3rem 0.9rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text);
}

.subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.hero-desc {
    font-size: 0.975rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-btns {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 0.7rem 1.6rem;
    background: var(--text);
    color: #ffffff;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s;
    display: inline-block;
}

.btn-primary:hover { opacity: 0.8; }

.btn-secondary {
    padding: 0.7rem 1.6rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s;
    display: inline-block;
}

.btn-secondary:hover { border-color: #999; }

.hero-right {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 240px;
    height: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--muted);
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section {
    padding: 6rem 4rem;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 2.5rem;
    color: var(--text);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 960px;
}

.about-text p {
    font-size: 0.975rem;
    color: var(--muted);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
}

.skill-cat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
}

.skill-cat h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tags span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 960px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.2s;
}

.project-card:hover { border-color: #aaa; }

.proj-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.proj-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.proj-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.2s;
}

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

.project-card > p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.coming {
    border-style: dashed;
}

.coming .tags a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cert-group {
    max-width: 960px;
    margin-bottom: 2.5rem;
}

.cert-group-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.cert-item:last-child { border-bottom: none; }
.cert-item:hover { background: var(--surface); }

.cert-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.cert-meta {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.internship-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 960px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.internship-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.intern-role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.intern-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.intern-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    padding-top: 0.2rem;
}

.contact-sub {
    font-size: 0.975rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 480px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 520px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s;
}

.contact-card:hover { border-color: #aaa; }

.contact-icon {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}

.contact-val {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

footer {
    padding: 1.5rem 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero { flex-direction: column; padding: 6rem 1.5rem 3rem; text-align: center; }
    .hero-desc { max-width: 100%; }
    .hero-btns { justify-content: center; }
    .hero-right { display: none; }
    section { padding: 4rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .internship-card { grid-template-columns: 1fr; gap: 1rem; }
    .cert-item { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    footer { flex-direction: column; gap: 0.4rem; text-align: center; }
}
