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

:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --accent-mid: #93c5fd;
  --border: #e2e8f0;
  --text: #0f172a;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: 0.3s;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 2rem 80px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, #dbeafe 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f0f9ff 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px; 
  margin: 0 auto; 
  width: 100%;
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 4rem; 
  align-items: center;
  position: relative; 
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem; font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.hero-visual {
  display: flex; 
  justify-content: center; 
  align-items: center;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  width: 100%; max-width: 360px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.07);
}

.hero-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1e40af);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.8rem; color: var(--white);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.hero-card h3 {
  font-family: var(--serif); font-size: 1.25rem; color: var(--navy);
  margin-bottom: 0.2rem;
}

.hero-card p { 
  font-size: 0.85rem; 
  color: var(--muted); 
  margin-bottom: 1.2rem; 
}

.hero-badges {
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.4rem; 
  margin-bottom: 1.2rem;
}

.badge {
  background: var(--light); 
  color: var(--slate);
  font-size: 0.75rem; 
  font-weight: 500;
  padding: 0.25rem 0.7rem; 
  border-radius: 100px;
  border: 1px solid var(--border);
}
.badge.blue { background: var(--accent-light); color: var(--accent); border-color: #bfdbfe; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
.stat-item {
  background: var(--light); border-radius: var(--radius-sm);
  padding: 0.8rem; text-align: center;
}
.stat-num { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); display: block; }
.stat-label { font-size: 0.72rem; color: var(--muted); }

/* SECTIONS */
section { padding: 100px 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.8rem;
}
.section-tag::before {
  content: ''; display: block;
  width: 20px; height: 1.5px; background: var(--accent);
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem; color: var(--muted); font-weight: 300;
  max-width: 520px; margin-bottom: 3.5rem; line-height: 1.75;
}

#about { 
  background: var(--light); 
}

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

.about-left {

}

.about-highlights {
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  margin-top: 2rem;
}

.highlight-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem;
}

.hi-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.hi-text h4 { 
  font-size: 0.9rem; 
  font-weight: 500; 
  color: var(--navy); 
  margin-bottom: 0.15rem; }
.hi-text p { 
  font-size: 0.82rem; 
  color: var(--muted); 
  line-height: 1.6; }

.about-right {

}
.about-body { 
  font-size: 1rem; 
  color: var(--slate); 
  line-height: 1.85; 
  font-weight: 300; }
.about-body p + p { 
  margin-top: 1.2rem; 
}

.awards-row {
  display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem;
}
.award-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.award-icon {
  font-size: 1.4rem; width: 42px; height: 42px;
  background: #fffbeb; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.award-text h4 { font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.award-text p { font-size: 0.8rem; color: var(--muted); }

/* SKILLS */
#skills { background: var(--white); }
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.skill-group {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.skill-group h3 {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  background: var(--white); border: 1px solid var(--border);
  color: var(--slate); font-size: 0.82rem; font-weight: 400;
  padding: 0.3rem 0.8rem; border-radius: 100px;
  transition: border-color 0.15s, color 0.15s;
}
.skill-tag:hover { border-color: var(--accent-mid); color: var(--accent); }

.soft-skills {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
}
.soft-item {
  text-align: center; padding: 1.5rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--light);
}
.soft-item .s-icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
.soft-item h4 { font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.soft-item p { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* PROJECTS */
#projects { background: var(--light); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.8rem;
}
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,23,42,0.1);
}
.project-thumb {
height: 180px;
display: flex; align-items: center; justify-content: center;
font-size: 3rem; letter-spacing: -2px;
position: relative; overflow: hidden;
}
.project-thumb.c1 { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.project-thumb.c2 { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.project-thumb.c3 { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.project-thumb.c4 { background: linear-gradient(135deg, #fce7f3, #fdf2f8); }
.project-thumb.c5 { background: linear-gradient(135deg, #e0e7ff, #eef2ff); }
.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-meta {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 0.6rem;
}
.project-num { font-size: 0.75rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; }
.project-status {
font-size: 0.72rem; font-weight: 500;
padding: 0.2rem 0.6rem; border-radius: 100px;
}
.status-live { background: #dcfce7; color: #166534; }
.status-build { background: var(--accent-light); color: var(--accent); }
.project-body h3 {
font-family: var(--serif); font-size: 1.2rem; color: var(--navy);
margin-bottom: 0.5rem; line-height: 1.3;
}
.project-problem {
font-size: 0.83rem; color: var(--muted); font-weight: 500;
margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.project-desc {
font-size: 0.9rem; color: var(--slate); line-height: 1.7;
font-weight: 300; margin-bottom: 1.2rem; flex: 1;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.stack-tag {
background: var(--light); border: 1px solid var(--border);
color: var(--slate); font-size: 0.73rem; font-weight: 500;
padding: 0.2rem 0.6rem; border-radius: 100px; font-family: monospace;
}
.project-link {
display: inline-flex; align-items: center; gap: 0.4rem;
font-size: 0.85rem; color: var(--accent); text-decoration: none; font-weight: 500;
transition: gap 0.15s;
}
.project-link:hover { gap: 0.7rem; }
.project-link svg { transition: transform 0.15s; }
.project-link:hover svg { transform: translate(2px, -2px); }

/* RESUME */
#resume { background: var(--white); }
.resume-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.resume-section-title {
font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
text-transform: uppercase; color: var(--accent);
border-bottom: 1px solid var(--border);
padding-bottom: 0.6rem; margin-bottom: 1.5rem;
}
.resume-item { margin-bottom: 1.5rem; }
.resume-item-header {
display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
margin-bottom: 0.3rem;
}
.resume-item h4 { font-size: 0.95rem; font-weight: 500; color: var(--navy); }
.resume-item .date {
font-size: 0.78rem; color: var(--muted); white-space: nowrap;
background: var(--light); padding: 0.15rem 0.6rem; border-radius: 100px;
border: 1px solid var(--border); flex-shrink: 0;
}
.resume-item .org { font-size: 0.85rem; color: var(--accent); margin-bottom: 0.3rem; }
.resume-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; font-weight: 300; }
.resume-item ul { padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.resume-item ul li { margin-bottom: 0.2rem; line-height: 1.65; }

.download-btn {
display: inline-flex; align-items: center; gap: 0.5rem;
background: var(--navy); color: var(--white);
padding: 0.7rem 1.5rem; border-radius: 100px;
text-decoration: none; font-size: 0.88rem; font-weight: 500;
margin-top: 2rem; transition: background 0.2s;
}
.download-btn:hover { background: var(--accent); }

/* CONTACT */
#contact { background: var(--light); }
.contact-grid {
display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start;
}
.contact-info h2 {
font-family: var(--serif); font-size: 2rem; color: var(--navy);
letter-spacing: -0.02em; margin-bottom: 1rem; line-height: 1.25;
}
.contact-info p { font-size: 0.95rem; color: var(--muted); font-weight: 300; line-height: 1.75; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-link {
display: flex; align-items: center; gap: 0.8rem;
padding: 0.9rem 1.1rem;
background: var(--white); border: 1px solid var(--border);
border-radius: var(--radius); text-decoration: none;
color: var(--slate); font-size: 0.88rem; font-weight: 400;
transition: border-color 0.15s, color 0.15s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-link svg { flex-shrink: 0; opacity: 0.6; }
.contact-link:hover svg { opacity: 1; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.contact-form h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--slate); margin-bottom: 0.4rem; }
input, textarea, select {
width: 100%;
padding: 0.65rem 0.9rem;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-family: var(--sans); font-size: 0.88rem;
color: var(--navy); background: var(--white);
transition: border-color 0.15s;
outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }
.form-submit {
width: 100%; padding: 0.8rem;
background: var(--navy); color: var(--white);
border: none; border-radius: 100px;
font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
cursor: pointer; transition: background 0.2s;
margin-top: 0.5rem;
}
.form-submit:hover { background: var(--accent); }
.form-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.8rem; text-align: center; }
.form-success {
display: none; padding: 1rem;
background: #dcfce7; border-radius: var(--radius-sm);
color: #166534; font-size: 0.88rem; margin-top: 1rem; text-align: center;
}

/* FOOTER */
footer {
background: var(--navy); color: rgba(255,255,255,0.5);
padding: 3rem 2rem;
}
.footer-inner {
max-width: 1100px; margin: 0 auto;
display: flex; align-items: center; justify-content: space-between;
flex-wrap: wrap; gap: 1rem;
}
.footer-left .logo { font-family: var(--serif); color: var(--white); font-size: 1.1rem; }
.footer-left p { font-size: 0.8rem; margin-top: 0.3rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }

/* DIVIDER */
.divider { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin: 1.5rem 0; }

/* SCROLL ANIMATION */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* MOBILE */
@media (max-width: 768px) {
.nav-links { display: none; flex-direction: column; gap: 0; }
.nav-links.open {
    display: flex; position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
}
.nav-links a { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.nav-links li:last-child a { border-bottom: none; }
.hamburger { display: flex; }
.hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
.hero-visual { display: none; }
.about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
.resume-grid { grid-template-columns: 1fr; gap: 2rem; }
.contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
.form-row-2 { grid-template-columns: 1fr; }
section { padding: 70px 1.5rem; }
.footer-inner { flex-direction: column; align-items: flex-start; }
.projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
.hero-actions { flex-direction: column; }
.btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}