body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
}

/* ---------- Header ---------- */
header {
  background-color: #222;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.title {
  font-size: 1.8em;
  margin: 0;
}

/* ---------- Nav Links ---------- */
.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.18s, color 0.18s;
}

.nav-links li a.active {
  background: rgba(255,255,255,0.12);
  color: #ffe066;
  text-decoration: underline;
  border-radius: 6px;
}

.nav-links li a:hover {
  text-decoration: underline;
}

/* ---------- Hamburger ---------- */
.menu-icon {
  /* hidden by default; shown only in mobile media query */
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  user-select: none;
  color: white;
  background: transparent;
  border: none;
  padding: 6px 10px;
  align-items: center;
  justify-content: center;
}

.menu-icon:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Social icon sizing in header */
.social-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}
.social-link {
  color: #fff; /* icons follow currentColor */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
}
.social-link:hover,
.social-link:focus {
  color: #1a1a1a; /* will invert against the white hover rect */
}

/* Header social icons: hover color yellow */
header .nav-links .social-link:hover,
header .nav-links .social-link:focus {
  color: #ffe066;
}

/* Footer social icons: light blue by default */
.footer-social {
  margin-top: 10px;
}
.footer-social .social-link {
  color: #7fbfff;
  padding: 6px 8px;
}
.footer-social .social-link:hover,
.footer-social .social-link:focus {
  color: #4aa3ff;
}

/* ---------- Mobile Styles ---------- */
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .menu-icon {
    display: inline-flex;
  }

  /* mobile dropdown panel anchored to header */
  header {
    position: relative; /* for absolutely positioned dropdown */
  }

  .nav-links {
    display: flex; /* initial layout still flex but hidden visually */
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: auto;
    min-width: 180px;
    background-color: #333;
    margin: 0;
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    transform-origin: top center;
    transform: translateY(-8px) scaleY(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease-in-out;
    z-index: 20; /* above backdrop */
  }

  .nav-links.active {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    text-align: left;
    padding: 0;
  }

  .nav-links li + li {
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links li a {
    display: block;
    width: 100%;
    color: #fff;
    padding: 12px 18px;
    text-decoration: none;
  }

  .nav-links li a:hover,
  .nav-links li a:focus {
    background: rgba(255,255,255,0.04);
  }
}

/* Optional backdrop when menu is open on small screens */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-in-out;
}
.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- About Me page styles ---------- */
.aboutme-container {
  max-width: 1000px;
  margin: 28px auto 60px auto;
  padding: 0 16px;
}
.aboutme-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.photo-slot {
  width: 320px;
  flex-shrink: 0;
}
.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.12);
  background: #eaeaea;
  display: block;
}
.bio-slot {
  flex: 1;
  min-width: 260px;
}
.bio-name {
  margin: 0 0 6px 0;
  font-size: 1.6rem;
  color: #1a3a2a;
}
.bio-role {
  margin: 0 0 12px 0;
  color: #556;
  font-weight: 600;
}
.bio-paragraphs p {
  margin-bottom: 12px;
  color: #333;
  line-height: 1.6;
}

.projects-area {
  margin-top: 28px;
}
.projects-area h3 {
  margin: 0 0 10px 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.project-card {
  background: #fff;
  padding: 14px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, opacity 220ms ease;
}
.project-title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  opacity: 1;
}
.project-desc {
  margin: 0 0 8px 0;
  color: #444;
}
.project-links a {
  display: inline-block;
  margin-right: 10px;
  color: #2b6cb0;
  text-decoration: none;
}
.project-links a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .aboutme-inner {
    flex-direction: column;
  }
  .photo-slot {
    width: 100%;
  }
}

/* Footer */
.site-footer {
  background: transparent;
  color: #9aa0a6; /* light gray */
  padding: 18px 12px;
  text-align: center;
  font-size: 0.95rem;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- About Me page styles ---------- */
.aboutme-container {
  max-width: 1000px;
  margin: 28px auto 60px auto;
  padding: 0 16px;
}
.aboutme-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.photo-slot {
  width: 320px;
  flex-shrink: 0;
}
.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.12);
  background: #eaeaea;
  display: block;
}
.bio-slot {
  flex: 1;
  min-width: 260px;
}
.bio-name {
  margin: 0 0 6px 0;
  font-size: 1.6rem;
  color: #1a3a2a;
}
.bio-role {
  margin: 0 0 12px 0;
  color: #556;
  font-weight: 600;
}
.bio-paragraphs p {
  margin-bottom: 12px;
  color: #333;
  line-height: 1.6;
}

.projects-area {
  margin-top: 28px;
}
.projects-area h3 {
  margin: 0 0 10px 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.project-card {
  background: #fff;
  padding: 14px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, opacity 220ms ease;
}
.project-title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  opacity: 1;
}
.project-desc {
  margin: 0 0 8px 0;
  color: #444;
}
.project-links a {
  display: inline-block;
  margin-right: 10px;
  color: #2b6cb0;
  text-decoration: none;
}
.project-links a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .aboutme-inner {
    flex-direction: column;
  }
  .photo-slot {
    width: 100%;
  }
}

