:root {
  --bg: #f5f5f5;
  --text: #111111;
  --muted: #5a5a5a;
  --surface: #ffffff;
  --border: #e5e5e5;
  --mustard: #FFC300;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section[id] {
  scroll-margin-top: 90px;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.8);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a,
.mobile-menu a {
  font-size: 0.95rem;
  color: #222;
}

.nav-links a:hover,
.mobile-menu a:hover {
  opacity: 0.7;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #1f1f1f;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--border);
  padding: 0.8rem 4%;
}

.mobile-menu a {
  padding: 0.65rem 0;
}

.mobile-menu.open {
  display: flex;
}

/* HERO */

.hero {
  padding-top: 148px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.hero-intro {
  max-width: 64ch;
  color: #1a1a1a;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.8;
  margin-bottom: 0.7rem;
}

.hero-intro-soft {
  color: #3f3f3f;
  margin-bottom: 1.2rem;
}

.hero-content p {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #FFC300;
  color: #111;
}

.btn-primary:hover {
  background: #FFC300;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #FFC300;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #FFC300;
  transform: translateY(-2px);
}
.btn-tertiary:hover {
  background: #FFC300;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: #c8c8c8;
}

.btn-mustard {
  background: var(--mustard);
  color: #1d1d1d;
  font-weight: 700;
}

.btn-mustard:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* HERO IMAGE */

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

.hero-image {
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 0 0 12px rgba(120, 120, 120, 0.16), 0 18px 34px rgba(65, 65, 65, 0.22);
  border: 5px solid #fff;
}

/* IDENTITY / ABOUT */

.identity {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(245, 245, 245, 0.6) 100%);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 190px;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid #d8dbe3;
  background: #fbfcff;
  box-shadow: 0 8px 18px rgba(23, 32, 61, 0.06);
  display: grid;
  align-content: start;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #9fb0cc;
  box-shadow: 0 14px 26px rgba(14, 36, 84, 0.12);
}

.card h4 {
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.card p {
  color: #475069;
}

.about-content {
  display: grid;
  gap: 0.95rem;
}

.about-content > p {
  background: #ffffff;
  border: 1px solid #dde2ec;
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  color: #31394f;
  box-shadow: 0 6px 16px rgba(19, 34, 70, 0.06);
}

.stats-row {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  background: #f8f9fc;
  border: 1px solid #d9dfeb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.08rem;
}

.stat strong {
  font-size: 1.04rem;
  color: #0e2d67;
}

.stat span {
  color: #5b6377;
  font-size: 0.9rem;
}

/* EXPERIENCE */

.experience-accordion {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.55rem;
  padding-left: 2rem;
}

.experience-accordion::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.65rem;
  width: 4px;
  border-radius: 999px;
  background: #0b2a5a;
}

.exp-item {
  position: relative;
  border: 1px solid #d7dfec;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(19, 34, 70, 0.08);
}

.exp-item::before {
  content: "";
  position: absolute;
  left: -1.58rem;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0b2a5a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(11, 42, 90, 0.22);
}

.exp-toggle {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1.05rem 2.8rem 1.05rem 1.15rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.exp-toggle::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #0b2a5a;
  transition: transform 0.2s ease;
}

.exp-item.open .exp-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.exp-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: #16213c;
}

.exp-date {
  color: #374b7a;
  font-size: 0.92rem;
  white-space: nowrap;
}

.exp-panel {
  display: none;
  padding: 0 1.15rem 1rem;
}

.exp-item.open .exp-panel {
  display: block;
}

.exp-meta {
  color: #5a6072;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.exp-panel ul {
  margin-left: 1.05rem;
}

.exp-panel li {
  margin-bottom: 0.45rem;
  color: #2d3446;
}

.exp-body {
  color: #2d3446;
  line-height: 1.7;
}

.projects-accordion {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.55rem;
  padding-left: 2rem;
}

.projects-accordion::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.65rem;
  width: 4px;
  border-radius: 999px;
  background: #0b2a5a;
}

.project-item {
  position: relative;
  border: 1px solid #d7dfec;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(19, 34, 70, 0.08);
}

.project-item::before {
  content: "";
  position: absolute;
  left: -1.58rem;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0b2a5a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(11, 42, 90, 0.22);
}

.project-toggle {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1.05rem 2.8rem 1.05rem 1.15rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-toggle::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #0b2a5a;
  transition: transform 0.2s ease;
}

.project-item.open .project-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.project-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: #16213c;
}

.project-date {
  color: #374b7a;
  font-size: 0.92rem;
  white-space: nowrap;
}

.project-panel {
  display: none;
  padding: 0 1.15rem 1rem;
}

.project-item.open .project-panel {
  display: block;
}

.project-meta {
  color: #5a6072;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.project-panel ul {
  margin-left: 1.05rem;
}

.project-panel li {
  margin-bottom: 0.45rem;
  color: #2d3446;
}

.project-body {
  color: #2d3446;
  line-height: 1.7;
}

/* FOOTER (UPDATED CLEAN VERSION) */

.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
  text-align: center;
  background: var(--bg);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.footer-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem 2rem;
  font-size: 1.05rem;
}

.footer-links a {
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}

.footer-resume {
  margin-top: 0.3rem;
  padding: 1rem 2rem;
  border-radius: 18px;
}

.footer-meta {
  margin-top: 1.5rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.footer-tagline {
  color: var(--muted);
  font-size: 1.05rem;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-links {
    gap: 1rem 1.4rem;
  }

  .identity-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .experience-accordion {
    padding-left: 1.2rem;
  }

  .experience-accordion::before {
    left: 0.2rem;
  }

  .exp-item::before {
    left: -0.98rem;
  }

  .projects-accordion {
    padding-left: 1.2rem;
  }

  .projects-accordion::before {
    left: 0.2rem;
  }

  .project-item::before {
    left: -0.98rem;
  }

  .exp-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .exp-date {
    white-space: normal;
  }

  .project-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .project-date {
    white-space: normal;
  }
}

@media (max-width: 375px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}
