:root {
  --primary: #a9b8c7;
  --accent: #3d4a5a;
  --bg: #f8f9fb;
  --white: #fff;
  --pill-bg: #e7ecf2;
  --pill-text: #3d4a5a;
  --nav-bg: #f4f6fa;
  --footer-bg: #e7ecf2;
  --footer-text: #6d7a8a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--accent);
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid #e7ecf2;
  height: 64px;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: #2d7de4;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: var(--primary);
  padding: 3rem 0 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
  width: 100%;
}
.profile-photo img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
}
.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: var(--accent);
  letter-spacing: 2px;
}
.hero-content h2 {
  font-size: 1.3rem;
  color: #3d4a5a;
  font-weight: 400;
  margin-top: 0;
}

/* Sections */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 1.5rem 1.2rem;
}
.section {
  margin-bottom: 3.5rem;
}
.section h2 {
  font-size: 1.25rem;
  color: var(--accent);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.4em;
  margin-bottom: 1.2em;
  letter-spacing: 1.2px;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pill-list li {
  background: var(--pill-bg);
  color: var(--pill-text);
  padding: 0.5em 1.2em;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.3em;
}

/* Experience & Education */
#experience-list, #education-list, #references-list {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
}
.experience-item, .education-item {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.03);
  padding: 1.3em 1.5em;
}
.experience-item .role {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.08rem;
}
.experience-item .company,
.education-item .institution {
  color: #6d7a8a;
  font-size: 1rem;
  margin-bottom: 0.2em;
}
.experience-item .dates,
.education-item .dates {
  color: black;
  font-size: 0.97rem;
  margin-bottom: 0.7em;
}
.experience-item ul, .education-item ul {
  margin: 0.5em 0 0 1.1em;
  padding: 0;
  color: #444;
  font-size: 1rem;
}
.reference-item {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.03);
  padding: 1.1em 1.3em;
  min-width: 220px;
}
.reference-item .name {
  font-weight: 600;
  color: var(--accent);
}
.reference-item .role {
  font-size: 0.97rem;
  color: #6d7a8a;
}
.reference-item .contact {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.3em;
}

/* Contact */
#contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #444;
}
#contact-list li {
  margin-bottom: 0.7em;
  display: flex;
  align-items: center;
  gap: 10px;
}
#contact-list li svg {
  width: 18px;
  height: 18px;
  color: #6d7a8a;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  padding: 1.5em 0 0.7em 0;
  margin-top: 2.5em;
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-socials a {
  margin-right: 16px;
  display: inline-block;
  vertical-align: middle;
}
.footer-socials img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-socials img:hover {
  opacity: 1;
}
.footer-copy {
  color: var(--footer-text);
  font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 0 1.2rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 1.2rem;
  }
}

@media (max-width: 700px) {
  .navbar {
    padding: 0 1rem;
    height: 54px;
  }
  .nav-links {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
    display: none;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
  }
  .nav-links.open {
    display: flex;
    padding: 20px;
    gap: 10px;
  }
  .nav-toggle {
    display: flex;
  }
}
  .file-upload-prompt {
    text-align: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
  }
  .upload-container {
    max-width: 600px;
    margin: 0 auto;
  }
  .upload-container p {
    margin-bottom: 0.5rem;
    color: #4b5563;
  }
  .upload-button {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .upload-button:hover {
    background-color: #1d4ed8;
  }
  /* Style for social icons */
  #footer-socials a {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: #6d7a8a;
  }
  #footer-socials a:hover {
    color: #2563eb;
  }
/* Add resume page styles */
.navbar {
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid #e7ecf2;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #2d7de4;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Responsive styles */
@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
    display: none;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}
/* Hamburger Icon Styles */
.nav-toggle .bar {
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: 0.4s ease-in-out;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
    display: none;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.08);
    z-index: 99;
    animation: slideDown 0.3s ease-in-out;
  }

  .nav-links.open {
    display: flex;
  }

  @keyframes slideDown {
    from {
      transform: translateY(-10px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}