body {
  position: relative;
  margin: 0;
  padding: 0;
}

/* NAVBAR STYLES */
.navbar {
  background-color: #275058 !important;
}

/* .scroll-top .navbar { */
  /* !important gives the style higher specificity so that it is applied */
  /* background-color: transparent !important; */
/* } */

.navbar a {
  /* color: #fefae0; */
  color: white;
  font-weight: 650;
  text-align: right;
  letter-spacing: 1px;
}

.navbar i {
  /* color: #fefae0; */
  color: white;
}

.navbar i:hover {
  /* color: #275058; */
  color: #142a2e;
}

.nav-link:hover {
  /* color: #275058; */
  color: #142a2e;
}

.nav-link.active {
  /* color: #275058 !important;  */
  color: #142a2e;
}

/* Set the border color to the desired color */
.navbar-toggler.custom-toggler {
  border-color: #326771;
  /* background-color: #fefae0; */
  background-color: white;
}

/* HERO SECTION STYLES */
section#hero-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("img-assets/Chi_Pic.png");
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 20%;
  /* color: #326771; */
  color: white;
  text-align: center;
}
section#hero-section img {
  width: 50vw; /* Set a fixed width */
  max-width: 300px; /* Prevents image from becoming too large */
  aspect-ratio: 1 / 1; /* Ensures a square shape before rounding */
  border-radius: 50%;
  border: 12px solid #32667177;
  object-fit: cover; /* Ensures the image covers the box */
  margin-top: 20px;
  transition-duration: 0.5s;
}

/* adds hover affect to profile picture */
#heroImg:hover {
  transform: scale(1.1);
}

.hero-title {
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.hero-subtitle {
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
}

/* PROJECT SECTION STYLING */
section#project-section {
  background-color: #326771;
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

.project-card {
  background-color: #1d3b41;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card img {
  height: 70px;
  margin: 15px 0;
  transition-duration: 0.3s;
}

/* MISSION SECTION STYLES */
section#mission-section {
  background-color: #275058;
}
section#mission-section img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

section#mission-section p {
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
}

/* media query style for screens smaller than 768px */
@media (max-width: 768px) {
  section#mission-section p {
    text-align: justify;
    margin: 20px;
  }
}

/* SKILLS SECTION STYLES */
section#skills-section {
  background-color: #1d3b41;
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
}

section#skills-section img {
  height: 70px;
  margin: 15px 0;
  transition-duration: 0.3s;
}
section#skills-section img:hover {
  transition-duration: 0.3s;
  transform: scale(1.1);
}

/* CAROUSEL STYLES FOR CERTIFICATIONS */
#certifications-carousel {
  max-width: 600px;
  margin: 0 auto;
}

#certifications-carousel .carousel-item img {
  height: 400px;
  object-fit: contain;
  background-color: white;
}

.carousel-control-prev {
  left: -20px; /* Move left control further left */
}

.carousel-control-next {
  right: -20px; /* Move right control further right */
}

/* CONTACT SECTION STYLES*/
section#contact-section {
  background-color: #142a2e;
  color: white;
}

/* Styles for the contact icons */
.contact-icon {
  font-size: 5.5vw;
  transition-duration: 0.3s;
}

@media (max-width: 576px) {
  .contact-icon {
    font-size: 50px;
  }
}

.contact-icon:hover {
  color: #326771;
}

/* FOOTER SECTION STYLING */
section#footer-section {
  display: flex;
  justify-content: center; /* Centers text horizontally */
  align-items: center; /* Centers text vertically */
  height: 50px; /* Adjust height as needed */
  background-color: #275058; /* Change to your preferred color */
  color: white; /* Text color */
  text-align: center; /* Ensures text stays centered */
  padding: 10px;
  width: 100%; /* Ensures it spans the full width */
}

section#footer-section p {
  letter-spacing: 1.5px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* Section Titles styling */
section#mission-section h1,
section#skills-section h1,
section#contact-section h1,
section#project-section h1 {
  letter-spacing: 1.5px;
}

#mission-target,
#skills-target,
#contact-target,
#project-target {
  position: relative;
  top: -50px;
}