body {
  margin: 0;
  padding: 0;
}

.logo a {
  text-decoration: none; /* or a color change */
  opacity: 0.8;               /* optional: slight fade effect */
  color: inherit; /*keeps the same colour after clicking*/
}

.logo a:hover {
  color: #ccc; /* light gray on hover */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-height: 75px;
  background-color: #222;
  color: white;
  position: relative;
  z-index: 1000;
}

/* Hide the hamburger by default (only show on mobile) */
.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.page-title {
  padding: 0;
}

.page-title h2 {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    padding: 0;
}

.intro {
  display: flex;
  flex: row;
  padding-top: 2%;
}

.profile-pic {
  width: 50%;
  padding-left: 10%;
  object-position: left center;
}

.profile-pic img {
    border: 8px solid rgb(66, 2, 78);
    border-radius: 50%;
    width: 80%;
    min-width: 325px;
    max-width: 600px;
    height: auto;
    overflow: hidden;
    align-items: left;
    justify-content: left;
}

.home-message {
    display: flex;
    width: 50%;
    padding-top: 5%;
    padding-left: 5%;
    padding-right: 10%;
}

.home-message p {
    font-size: 150%;
}

.pdf {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  border: 4px solid rgb(66, 2, 78);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pdf embed {
  width: 100%;
  height: 80vh; /* takes 80% of viewport height */
  display: block;
}

.projects-container {
  position: relative;
  width: 80%;
  max-width: 900px;
  height: 75vh;
  margin: 2rem auto;
  overflow: hidden;
  margin-top: 3%;
  z-index: 1;
}

.projects-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 75vh;
}

.project-card {
  min-width: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 2rem;
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
  background: #f5f5f5;
  border: 3px solid rgb(66, 2, 78);
  border-radius: 16px;
}

.project-header {
  display: flex;
  flex-direction: row;
}

.project-title {
  width: 50%;
  padding-right: 5%;
}

.project-title h3 {
  text-align: right;
  font-size: clamp(1rem, 5vw, 2.5rem);
  margin-top: 1%;
  margin-bottom: 1%;
}

.project-card img {
  width: 80%;
  max-width: 615px;
}

.project-card p {
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin-top: 1%;
  margin-bottom: 1%;
}

button.prev,
button.next {
  background-color: #42024e;
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10; /* 🟢 Makes sure the arrows are above the slider */
  opacity: 0.4; /* optional – makes them slightly see-through */
}

.project-link {
  display: flex;
  flex: row;
  margin-top: 2%;
  width: 20%;
  max-height: 50px;
}

.project-link img {
  align-items: center;
  width: 20%;
  max-width: 90%;
  height: 70%;
}

.project-link p {
  display: flex;
  flex: row;
  padding-top: 2px;
  font-size: clamp(1rem, 0.5vw, 1rem);
  margin-top: 1%;
  margin-bottom: 1%;
}

button.prev:hover,
button.next:hover {
  opacity: 1; /* fully visible on hover */
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}


button.prev:focus,
button.next:focus {
  outline: none;
  opacity: 0.4;
}

.contact-container {
  text-align: center;
  margin: 3rem auto;
  max-width: 800px;
  padding: 2rem;
}

.contact-container h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.contact-container p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #444;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #222;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
  transform: scale(1.1);
  color: #42024e;
}

.contact-links img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }
  .profile-pic {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* centers horizontally */
    justify-content: center; /* centers vertically if you set a height */
    padding: 0px;
  }
  .profile-pic img {
    border: 8px solid rgb(66, 2, 78);
    border-radius: 50%;
    width: 80%;
    max-width: 500px;
    overflow: hidden;
  }
  .home-message {
    width: 100%;
    padding: 0px;
    display: block;
  }
  .home-message p {
    text-align: center;
    font-size: 100%;
    padding: 15%;
    padding-top: 0;
    padding-bottom: 0;
  }
}


@media (max-width: 768px) {
  /* Show hamburger icon */
  .hamburger {
    display: block;
  }

  /* Hide nav links initially */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #222;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  /* Show nav links when active */
  .nav-links.active {
    display: flex;
  }

  .projects-container {
    margin-top: 10%;
  }

  .project-card h3 {
    font-size: clamp(1rem, 5vw, 2.5rem);
    margin-top: 10%;
    margin-bottom: 15%;
  }

  .project-card img {
    width: 100%;
  }
  .project-card p {
    margin-top: 10%;
  }
  .project-link {
    display: flex;
    flex: row;
    margin-top: 2%;
    width: 20%;
    max-height: 90px;
  }
  .project-link p {
    padding-top: 0px;
    font-size: clamp(0.8rem, 0.5vw, 1rem);
    margin-top: 10%;
  }
}