*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #faf9f7;
    --surface: #f3f1ed;
    --border: rgba(0,0,0,0.1);
    --text: #1a1816;
    --muted: #7a7570;
    --accent: #c0622a;
    --accent-dim: rgba(192,98,42,0.08);
    --line: rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250,249,247,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: color 0.2s;
    font-weight: 400;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    padding: 8px 20px;
    background: var(--text);
    color: var(--bg);
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 61px; left: 0; right: 0;
    background: rgba(250,249,247,0.98);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 24px 48px;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    color: var(--muted);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 4px 0;
    transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--text); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

section { padding: 100px 0; }

.divider { height: 1px; background: var(--line); }

/* ── Hero ── */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
}

#home > .container {
    max-width: 100% !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
    margin: 0 !important;
    width: 100% !important;
}

.hero-inner {
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
}

.badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(44px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero-role {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-role em { font-style: normal; color: var(--accent); font-weight: 500; }
.hero-student {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}
.hero-student em { 
    font-style:normal; 
    color:#1a1816 ; 
    font-weight: 300;
}
.hero-desc {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 36px 0;
    line-height: 1.9;
}

.hero-desc strong { color: var(--text); font-weight: 500; }

.hero-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }

.stat-val {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.stat-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }

.btn-primary {
    padding: 11px 26px;
    background: var(--text);
    color: var(--bg);
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--accent); }

.btn-ghost {
    padding: 11px 26px;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.sec-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.sec-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.sec-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.9;
}

.sec-header { margin-bottom: 52px; text-align: left; }

.sec-header .sec-desc { margin-left: 0; }

.stack-tag {
    padding: 3px 10px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--muted);
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
    justify-content: flex-start;
}

.proj-link:hover { opacity: 0.7; }

.proj3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.proj3-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.proj3-card:hover { border-color: rgba(0,0,0,0.2); }

.proj3-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.proj3-body {
    padding: 24px;
    text-align: left;
}

.proj3-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.proj3-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.proj3-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; justify-content: flex-start; }

/* ── Certificates ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.cert-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background-position: center;
    object-fit: cover;
    background-repeat: no-repeat;
    transition: border-color 0.2s;
}

.cert-card:hover { border-color: rgba(0,0,0,0.2); }

.cert-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.cert-body { padding: 18px 20px; text-align: left; }

.cert-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.cert-issuer {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--muted);
}

/* ── Networking ── */
#networking { 
    background: var(--surface); 
}

.net-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.net-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    text-align: left;
    transition: border-color 0.2s;
}

.net-card:hover { border-color: rgba(0,0,0,0.2); }

.net-icon { color: var(--accent); margin-bottom: 14px; }

.net-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.net-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

/* ── Portfolio (horizontal scroll gallery) ── */
.portfolio-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 48px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.portfolio-scroll::-webkit-scrollbar { height: 6px; }
.portfolio-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.portfolio-scroll::-webkit-scrollbar-track { background: transparent; }

.portfolio-scroll img {
    flex: 0 0 auto;
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    scroll-snap-align: start;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 44px;
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    background: var(--surface);
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.contact-card:hover { border-color: rgba(0,0,0,0.25); }

.contact-lbl {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-val {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.contact-note {
    font-size: 13px;
    color: var(--muted);
}

.socials { display: flex; gap: 10px; justify-content: flex-start; }

.social-btn {
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.social-btn:hover { border-color: var(--text); color: var(--text); }

/* ── Footer ── */
footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.footer-brand span { color: var(--accent); }

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--muted);
}

/* ── Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .container { padding: 0 24px; }
    section { padding: 72px 0; }
    .hero-stats { gap: 20px; }
    .proj-grid { grid-template-columns: 1fr; }
    .proj-info { padding: 24px; }
    .num-val { font-size: 32px; }
    .mobile-nav { padding: 24px; }
    .proj-mock { display: none; }
    .proj-features li { flex-direction: row; }
    .portfolio-scroll { padding: 4px 24px 12px; }
    .portfolio-scroll img { width: 220px; height: 160px; }
}