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

:root {
  --navy: #0F2044;
  --blue: #1B55E2;
  --blue-light: #4178F0;
  --sky: #E8EFFF;
  --sky-mid: #C8D8FF;
  --white: #FFFFFF;
  --off-white: #F5F7FF;
  --text: #0F2044;
  --text-mid: #3D5080;
  --text-light: #6B7FA8;
  --border: #DDE4F5;
  --font: 'Plus Jakarta Sans', sans-serif;
  --max-w: 1140px;
  --side-pad: 5rem;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); width: 100%;
  padding: 1.1rem 2rem;
}
.nav-logo { font-weight: 700; font-size: 1rem; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-mid); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding: 0.5rem 1.25rem; border-radius: 6px; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--navy) !important; color: var(--white) !important; }

/* Hamburger */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 101;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2.5px; background: var(--navy);
  border-radius: 2px; position: absolute; left: 0; transition: 0.3s ease;
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-hamburger span:nth-child(3) { bottom: 0; }
.nav-hamburger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 80px;
  background: var(--white);
  position: relative; overflow: hidden;
}
.hero-bg-circle {
  position: absolute; top: -120px; right: -120px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--sky) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-bg-dots {
  position: absolute; bottom: 60px; left: 5rem;
  width: 200px; height: 200px;
  background-image: radial-gradient(circle, var(--sky-mid) 1.5px, transparent 1.5px);
  background-size: 22px 22px; opacity: 0.6; pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: center; gap: 4rem;
  max-width: var(--max-w); width: 100%;
  padding: 0 2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sky); color: var(--blue);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-badge::before { content: '\25CF'; font-size: 0.5rem; }
.hero-h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.03em; color: var(--navy); margin-bottom: 1.5rem;
}
.hero-h1 .accent { color: var(--blue); }
.hero-sub { font-size: 1.02rem; color: var(--text-mid); font-weight: 400; line-height: 1.75; max-width: 500px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; background: var(--blue); color: var(--white);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; background: transparent; color: var(--navy);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600; border-radius: 8px;
  border: 2px solid var(--border); text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 1.75rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.hero-stat-num span { color: var(--blue); }
.hero-stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem; font-weight: 500; }
.hero-card { background: var(--off-white); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); animation: fadeIn 0.8s ease 0.3s both; }
.hero-card-top { background: var(--navy); padding: 2rem; display: flex; align-items: center; gap: 1rem; }
.hero-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2); flex-shrink: 0;
  overflow: hidden;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-name { color: var(--white); font-weight: 700; font-size: 1rem; }
.hero-card-title { color: var(--sky-mid); font-size: 0.82rem; font-weight: 400; margin-top: 0.15rem; }
.hero-card-body { padding: 1.75rem 2rem; }
.hero-card-tagline { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; border-left: 3px solid var(--blue); padding-left: 1rem; }
.hero-card-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hcs { background: var(--sky); color: var(--blue); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 100px; }

/* ── SECTIONS ── */
section { padding: 6rem 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--sky); color: var(--blue);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1rem;
}
h2.section-h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; margin-bottom: 1rem; }
h2.section-h2 .accent { color: var(--blue); }
.section-sub { font-size: 1rem; color: var(--text-mid); font-weight: 400; max-width: 500px; line-height: 1.75; }

/* ── ABOUT ── */
#about { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; margin-top: 3.5rem; }
.about-photo {
  width: 100%; aspect-ratio: 4/5;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-contact-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.about-contact-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-mid); }
.about-contact-row a { color: var(--blue); text-decoration: none; font-weight: 500; }
.about-contact-row a:hover { text-decoration: underline; }
.contact-icon { width: 30px; height: 30px; background: var(--sky); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 2; }
.about-right p { color: var(--text-mid); font-size: 1rem; line-height: 1.85; margin-bottom: 1.25rem; font-weight: 400; }
.about-right p strong { color: var(--navy); font-weight: 600; }
.skills-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin: 2rem 0 1rem; }
.skills-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-pill { padding: 0.4rem 1rem; border-radius: 100px; background: var(--white); border: 1.5px solid var(--border); font-size: 0.8rem; font-weight: 500; color: var(--text-mid); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.skill-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--sky); }

/* ── PORTFOLIO ── */
#portfolio { background: var(--white); }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.project-card:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(27,85,226,0.1); transform: translateY(-3px); }
.project-card.featured { background: var(--navy); border-color: var(--navy); }
.project-card.featured:hover { box-shadow: 0 8px 32px rgba(15,32,68,0.25); }
.project-num { display: inline-block; background: var(--sky); color: var(--blue); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 100px; margin-bottom: 1rem; letter-spacing: 0.04em; }
.featured .project-num { background: rgba(255,255,255,0.1); color: var(--sky-mid); }
.project-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.3; letter-spacing: -0.01em; }
.featured h3 { color: var(--white); }
.project-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; font-weight: 400; }
.featured p { color: rgba(255,255,255,0.6); }
.project-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.featured .project-footer { border-top-color: rgba(255,255,255,0.1); }
.project-tags-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ptag { font-size: 0.7rem; font-weight: 600; color: var(--blue); background: var(--sky); padding: 0.2rem 0.55rem; border-radius: 4px; }
.featured .ptag { background: rgba(255,255,255,0.1); color: var(--sky-mid); }
.project-arrow { font-size: 1rem; color: var(--text-light); transition: color 0.2s, transform 0.2s; }
.project-card:hover .project-arrow { color: var(--blue); transform: translateX(3px); }
.featured .project-arrow { color: rgba(255,255,255,0.4); }
.featured:hover .project-arrow { color: var(--white); }

/* ── RESUME ── */
#resume { background: var(--off-white); }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3.5rem; }
.resume-col-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.75rem; display: flex; align-items: center; gap: 0.6rem; }
.resume-col-head::after { content: ''; flex: 1; height: 1.5px; background: var(--border); }
.resume-item { display: flex; gap: 1.25rem; padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.resume-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.resume-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 6px; flex-shrink: 0; }
.resume-period { font-size: 0.75rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.resume-role { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.resume-org { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; font-weight: 500; }
.resume-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.7; }
.resume-desc ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.resume-gpa { display: inline-block; margin-top: 0.4rem; background: var(--sky); color: var(--blue); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 4px; }
.resume-cta { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── CONTACT ── */
#contact { background: var(--navy); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
#contact .section-tag { background: rgba(255,255,255,0.1); color: var(--sky-mid); }
#contact h2.section-h2 { color: var(--white); }
#contact h2.section-h2 .accent { color: var(--sky-mid); }
#contact .section-sub { color: rgba(255,255,255,0.55); max-width: 400px; }
.contact-links { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 2.5rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.contact-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); transform: translateX(4px); }
.cl-icon { width: 38px; height: 38px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cl-icon svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 2; }
.cl-label { font-size: 0.72rem; font-weight: 600; color: var(--sky-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.cl-val { font-size: 0.9rem; color: var(--white); font-weight: 500; margin-top: 0.1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.85rem 1.1rem; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 8px; font-family: var(--font); font-size: 0.9rem; color: var(--white); outline: none; transition: border-color 0.2s, background 0.2s; resize: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-light); background: rgba(255,255,255,0.1); }
.contact-form textarea { min-height: 120px; }
.contact-form button { align-self: flex-start; padding: 0.9rem 2rem; background: var(--blue); color: var(--white); border: none; border-radius: 8px; font-family: var(--font); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.contact-form button:hover { background: var(--blue-light); transform: translateY(-2px); }
.form-status { font-size: 0.85rem; padding: 0.75rem 1rem; border-radius: 6px; display: none; }
.form-status.success { display: block; background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.form-status.error { display: block; background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* ── FOOTER ── */
footer { background: #08152E; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.75rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
footer a { font-size: 0.8rem; color: var(--sky-mid); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ── PORTFOLIO DETAIL PAGE ── */
.portfolio-hero {
  padding-top: 120px; padding-bottom: 3rem;
  background: var(--off-white);
}
.portfolio-hero .section-tag { margin-bottom: 1rem; }
.portfolio-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1rem;
}
.portfolio-hero p { font-size: 1rem; color: var(--text-mid); line-height: 1.8; max-width: 720px; }
.portfolio-content { padding: 4rem 0; }
.portfolio-content h2 {
  font-size: 1.25rem; font-weight: 700; color: var(--navy);
  margin-bottom: 2rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue);
}
.portfolio-content p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 1.5rem; max-width: 720px; }
.artifacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.artifact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; background: var(--off-white);
  border: 1.5px solid var(--border); border-radius: 12px;
  text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.artifact-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(27,85,226,0.1); transform: translateY(-2px); }
.artifact-icon {
  width: 42px; height: 42px; background: var(--sky); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.artifact-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 2; }
.artifact-name { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.artifact-type { font-size: 0.75rem; color: var(--text-light); margin-top: 0.15rem; }

.portfolio-embed { margin-top: 1.5rem; margin-bottom: 2rem; }
.portfolio-embed iframe {
  width: 100%; max-width: 720px; border-radius: 10px;
  border: 1px solid var(--border);
}

.portfolio-nav { display: flex; justify-content: space-between; align-items: center; padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 3rem; }
.portfolio-nav a { font-size: 0.85rem; font-weight: 600; color: var(--blue); text-decoration: none; transition: color 0.2s; }
.portfolio-nav a:hover { color: var(--navy); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--blue); text-decoration: none; margin-bottom: 2rem; }
.back-link:hover { color: var(--navy); }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-text { animation: fadeIn 0.8s ease both; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  :root { --side-pad: 2rem; }
  .nav-hamburger { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.2rem; }
  section { padding: 4rem 0; }
  #hero { padding-top: 80px; min-height: auto; padding-bottom: 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .resume-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-inner { padding: 1rem 1.25rem; }
  .hero-inner { padding: 0 1.25rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { padding: 1.5rem 1.25rem; }
}
