@font-face {
  font-family: "SF Pro";
  src: url("/fonts/SFPRODISPLAYREGULAR.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro";
  src: url("/fonts/SFPRODISPLAYMEDIUM.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "SF Pro";
  src: url("/fonts/SFPRODISPLAYBOLD.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "SF Pro", sans-serif;
  background: linear-gradient(to right, #ffffff, #ece9e6);
  color: #191919;
  overflow-x: hidden;
}

main {
  flex: 1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box; /* important to keep padding inside the width */
  display: flex;
  justify-content: center;
  gap: 60%; /* controls space between logo and nav */
  padding: 20px 60px;
  color: #000;
  border-bottom: 1px solid #eeeeee;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(213, 213, 213, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  transition: all 0.4s ease;
}

.header .logo {
  font-size: 24px;
  font-weight: bold;
}

.icon-group {
  display: flex;
  gap: 16px;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f7f7f7;
  border: 1px solid #191919;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.icon-button:hover {
  background: #f9f9f9;
  transform: scale(1.03);
}

.icon-button img,
.icon-button svg {
  width: 20px;
  height: 20px;
}

.floating-navbar {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  padding: 14px 60px;
  background: rgba(213, 213, 213, 0.3); /* lighter tint, more transparent */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-navbar a {
  color: #191919;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.floating-navbar a:hover {
  color: #fff;
}

/* Active state */
.floating-navbar a.active {
  color: #191919;
}

/* Dot indicator for active nav item */
.floating-navbar a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 6px;
  height: 6px;
  background: #191919;
  border-radius: 50%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: left; /* vertically center */
  justify-content: center;
  gap: 24px;
  max-width: 60%;
  margin: 0 auto;
  text-align: left;
  min-height: 100vh; /* makes the hero cover the entire screen */
}

.hero .profile-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #eeeeee;
}

.hero h1 {
  font-size: 32px;
  max-width: 600px;
  font-weight: 400;
}

.hero-description {
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.content-container {
  max-width: 70%;
  margin: 0 auto;
  padding: 0 40px;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80%;
  margin: 60px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  gap: 40px;
}

.project-info-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.project-title {
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  color: #000;
  margin-bottom: 10px;
}

.project-role {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
  color: #000;
  margin: 0;
  margin-bottom: 30px;
}

.project-description {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin-bottom: 60px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: #000;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  width: auto; /* ensures it only takes the width of its content */
  white-space: nowrap; /* prevents text wrapping */
}

.btn:hover {
  background: #000;
  color: #fff;
}

.project-image img {
  max-width: 500px;
  border-radius: 10px;
  display: block;
}

.footer {
  padding-top: 60px;
  padding-bottom: 100px;
  background: #191919;
  color: #ffffff80;
  font-size: 14px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50vw;
  border-bottom: 1px solid #3d3d3d;
  padding-bottom: 20px;
  margin: 0 auto;
  width: fit-content;
}

.footer a {
  color: #ffffff80;
  text-decoration: none;
}

.footer-note a {
  color: #fff;
  text-decoration: underline;
}

.footer a:hover {
  color: #fff;
}

.footer-nav a {
  margin-right: 20px;
}

.resume-button {
  display: inline-block;
  padding: 14px 28px;
  background-color: #000;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-family: "SF Pro", sans-serif;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  align-self: flex-start;
}

.resume-button:hover {
  background-color: #fff;
  color: #000;
  border: 1px solid #eeeeee;
}

.resume-section {
  background-color: #f7f7f7;
  padding: 80px 0;
  width: 100%;
  margin-top: 80px auto;
  padding: 0 20px;
  color: #000000;
}

.section-container {
  max-width: 60%;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.resume-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 500;
}

.job-entry {
  margin-bottom: 40px;
}

.job-entry h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

.job-entry .company {
  font-size: 18px;
  color: #7c7c7c;
  margin-bottom: 20px;
}

.job-entry ul {
  padding-left: 20px;
  font-weight: 400;
  font-size: 18px;
}

.job-entry ul li {
  margin-bottom: 5px;
  line-height: 1.6;
}

.about-section {
  padding: 100px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: left; /* vertically center */
  justify-content: center;
  gap: 24px;
  max-width: 60%;
  margin: 0 auto;
  text-align: left;
  min-height: 100vh; /* makes the hero cover the entire screen */
}

.about-content {
  display: flex;
  align-items: stretch; /* makes the items equal height */
  justify-content: space-between;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text h1 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 400;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #000;
}

.about-image {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.project-hero {
  padding: 100px 0;
}

.project-hero h1 {
  font-size: 32px;
  margin-top: 100px;
  margin-bottom: 20px;
  font-weight: 400;
}

.project-hero p {
  font-size: 18px;
  color: #000;
  margin-bottom: 30px;
}

.project-info {
  display: flex;
  gap: 30px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.info-box {
  flex: 1;
  min-width: 250px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}

.info-box h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #000000;
  font-weight: 400;
}

.info-box p {
  font-size: 16px;
  color: #000000;
}

.project-content {
  max-width: 50%;
  margin: 0 auto;
}

.project-cover img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #eeeeee;
}

.project-gallery {
  padding-bottom: 100px;
}

.project-outcome {
  max-width: 70%;
  margin: 100px auto 0;
}

.project-outcome h1 {
  font-size: 32px;
  margin-top: 100px;
  font-weight: 400;
}

.project-outcome p {
  font-size: 18px;
  color: #000;
}

.project-outcome a {
  font-size: 18px;
  color: #000;
}

.gallery-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 60px 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 60%;
  margin: 0 auto;
}

.gallery-card + .gallery-card {
  margin-top: 60px;
}

.gallery-card h2 {
  font-size: 18px;
  margin-bottom: 40px;
  color: #000;
  max-width: 900px;
  font-weight: 500;
}

.gallery-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.image-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eeeeee;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.image-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-images img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  object-fit: cover;
}

.image-card-mobile,
.image-card-mobile-2 {
  display: flex;
  gap: 30px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #eeeeee;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  justify-content: center;
}

.image-card-mobile img {
  width: 30%; /* reduced width — adjust as needed */
  border-radius: 10px;
  object-fit: cover;
}

.image-card-mobile-2 img {
  width: 30%; /* reduced width — adjust as needed */
  border-radius: 55px;
  object-fit: cover;
}

#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  padding: 14px 18px;
  font-size: 20px;
  color: #000;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Visible state */
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-text {
    text-align: left;
  }

  .about-image img {
    width: 100%;
    border-radius: 5px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid a:last-child:nth-child(odd) {
    grid-column: span 1;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 80%;
  }

  .footer-nav {
    display: flex; /* Make it flex container */
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Add spacing between links */
    margin-bottom: 10px;
  }

  .footer-nav a {
    margin: 0;
  }

  .footer-note {
    text-align: center;
    padding: 0 20px;
  }

  .image-card-mobile {
    flex: 0 0 calc(50% - 10px);
  }

  .image-card-mobile-2 img {
    border-radius: 10px;
  }

  .hero {
    max-width: 80%;
    margin: 150px auto 0px;
    padding: 20px 60px;
    text-align: left;
    min-height: unset; /* remove full viewport height */
    gap: 16px;
  }

  .content-container {
    max-width: 100%;
  }

  .section-container {
    max-width: 80%;
    margin: 30px;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .about-section {
    max-width: 100%;
  }

  .project-content {
    max-width: 80%;
  }

  .gallery-card {
    max-width: 100%;
  }

  .project-outcome {
    max-width: 100%;
  }

  .image-card-mobile {
    flex-direction: column;
    gap: 10px;
    padding: 30px 50px;
    width: 100%;
  }

  .image-card-mobile img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
  }

  .project-card {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
  }

  .project-image img {
    margin-top: 30px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .image-card-mobile {
    flex: 0 0 100%;
  }
}
