/* ===== Global Reset ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #785b23;
  color: #db932c;
}

/* ===== Navigation Bar ===== */
nav {
  background-color: #202020;
  padding: 1em 0;
  display: flex;
  align-items: center;
  justify-content: center; /* centers nav container */
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* headshot left, links right */
  width: 100%;
  padding: 0 5%; /* makes navbar match content width */
  max-width: 1200px; /* keeps navbar neat on large screens */
}

.headshot-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ADD8E6;
}

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

.nav-links a {
  color: #db932c; /* orange links */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #db932c;
  margin: 4px 0;
  transition: 0.3s;
}

/* Side Panel */
.side-panel {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #333;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
  z-index: 1000;
}
.side-panel a {
  display: block;
  color: #db932c;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: 0.2s;
}
.side-panel a:hover {
  background-color: #575757;
}
.side-panel .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive: Show hamburger and hide nav links on small screens */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ===== About Section ===== */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  flex-wrap: wrap;
}

.about-text h1,
.about-text h2 {
  margin: 0.5rem 0;
}

.headshot-about {
  position: relative;             /* makes z-index work */
  z-index: 2;                     /* stays above brown overlay */
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ADD8E6;      /* light blue border */
  box-shadow: 0 4px 12px rgba(173, 216, 230, 0.8); /* light blue glow */
  margin-top: 1em;
  margin-bottom: 1rem;
}


/* ===== Hero Section ===== */
.intro {
  position: relative;
  background: url("images/background-image-portfolio.svg") no-repeat center center/cover;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 3rem 8%;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(72, 55, 21, 0.6);
  z-index: 1;
}

.intro h1,
.intro h2 {
  position: relative;
  z-index: 2;
}

.intro h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  margin: 0;
}

.intro h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #db932c;
  margin-top: 0.5em;
}

/* ===== Projects Section ===== */
#projects {
  padding: 4rem 8%;
  margin-top: 0;
}

#projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: white;
}

.project-card {
  background: #202020;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 0 auto 2rem auto;
  text-align: center;
  max-width: 700px;
}

.project-card img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin: 0.5rem 0;
  color: white;
}

.project-card p {
  color: #db932c;
  font-size: 1rem;
}

.project-links {
  margin-top: 1rem;
}

.project-links a {
  display: inline-block;
  margin: 0 0.5rem;
  color: #db932c;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.project-links a:hover {
  color: white;
}

/* ===== Responsive Design ===== */
/* Tablet and up */
@media (min-width: 600px) {
  .headshot-about {
    width: 180px;
    height: 180px;
  }
}

/* Laptops and desktops */
@media (min-width: 1024px) {
  .headshot-about {
    width: 220px;
    height: 220px;
  }
}
@media (max-width: 768px) {
  nav ul {
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-right: 5%;
  }
}

@media (max-width: 480px) {
  .intro {
    min-height: 40vh;
    padding: 1.5rem 1rem;
  }

  .intro h1 {
    font-size: 1.8rem;
  }

  .intro h2 {
    font-size: 1.1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }
}
#contact {
  padding: 4rem 8%;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

#contact p {
  margin-bottom: 1.5rem;
  color: #db932c; /* orange text */
  font-size: 1.1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: #db932c; /* orange */
  transition: color 0.2s, transform 0.2s;
}

.contact-link i {
  font-size: 1.5rem;
  color: #db932c;
  transition: color 0.2s;
}

.contact-link:hover,
.contact-link:hover i {
  color: white;
  transform: scale(1.05);
}
.contact-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1em;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6em 1.2em;
  border: 2px solid #db932c;
  border-radius: 30px; /* makes it rounded */
  color: #db932c;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-links a i {
  font-size: 1.2em;
}

.contact-links a:hover {
  background-color: #db932c;
  color: #fff;
}
