@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Orienta&display=swap");


/* Website Setttings */
* {
  margin: 0;
  /* outline: 1px solid red; */
}

html, body {
  font-family: "Open Sans", sans-serif;
}


/* Navbar */

nav {
  justify-content: space-around !important;
  padding: 0.3rem 0 0.4rem 0;
  position: relative;
  width: 100%;
  z-index: 11;
}

.nav-link:hover {
  color: rgb(147, 229, 172);
}

nav.scrolled {
  padding: 0.5rem 0 0.5rem 0;
  transition: background-color 0.6s; /* Smooth transition for background color */
  background-color: #252525;
  position: fixed;
  top: 0;
  border-bottom: #004800 2px solid;
  z-index: 11;
}

nav.scrolled #logo {
  width: 77px;
  height: 72px;
}

nav ul {
  justify-content: space-around;
  width: 50%;
  list-style: none;
  padding-left: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease; /* Smooth transition for changes */
}

nav button {
  width: 10rem;
  height: 3.4rem;
  font-size: 0.8rem;
}


/* Header */

#header-content-container {
  padding-top: 0.9rem;
  position: relative; /* Ensure the pseudo-element positions relative to this container */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
  transition: background-image 3s ease-in-out; /* Smooth transition for background change */
}

#header-content-container::before {
  content: ""; /* Pseudo-elements require the content property to be set */
  position: absolute;
  inset: 0; /* Shorthand for top, right, bottom, left */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 60%,
    rgba(0, 0, 0, 0) 100%);
  z-index: -1; /* Ensure it sits above the background image but below other content */
}

#header-content {
  grid-template-columns: 1fr 7fr 1fr;
}

h1 {
  margin-bottom: 2.5rem;
  font-size: 4.1rem;
}

#header-content div {
  margin: 5rem 0 6rem 0;
  grid-column: 2/3;
  font-size: 21px;
  width: 60%;
  color: white;
}

#header-content button {
  width: 10rem;
  height: 3.6rem;
  font-size: 0.75em;
  border-radius: 32px;
}

/* Home page's call to action buttons */
#home-CTA {
  display: flex;
  gap: 3rem;
}


/* About Section */

#about-section-container {
  display: grid;
  grid-template-columns: 1.3fr 3.5fr 1fr 3.5fr 1.3fr;
}

.profile-info {
  display: flex;
  margin: 6.5rem 0;
  flex-direction: column;
}

#about-info-section {
  grid-column: 2/3;
}
.profile-info h2 {
  font-size: 2.2em;
  padding: 1.2rem 0 3rem 0;
}

.profile-info p {
  color: rgb(34, 34, 34);
  padding-bottom: 3.8rem;
  font-size: 1.2em;
}

#about-section-img-container {
  grid-column: 4/5;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.learn-more-btn {
  background-color: black;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
}

.learn-more-btn:hover {
  background-color: #2d2d2d; /* Slightly lighter black for hover effect */
}


/* Services Section */

#services-section {
  background-color: #222222;
  padding: 4rem 4rem;
}

#services-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-around;
}

#services-header {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  margin: 1rem 0 4rem 0;
}

#services-header h2 {
  text-align: center;
  font-size: 1.7em;
  color: white;
}
#services-header h4 {
  padding-bottom: 0.8em;
  font-size: 20px;
}

.service-box {
  flex-direction: column;
  align-items: start !important;
  background-color: #323232;
  width: 18rem;
  gap: 1em;
  padding: 1.8em 2rem 3rem 2rem;
  border-radius: 0 20px 0 20px;
}

.service-box img {
  margin: 2em 0 1em 0;
}

.service-btn {
  margin: 2.5em 0 1em 0;
  width: 9.5em;
  height: 3.2em;
}

.inner-service-box {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 1em;

}

/* Contact Section */

#contact-section {
  display: flex;
  flex-direction: column;
}

#contact-header {
  margin: 3.5rem 0;
  text-align: center;
}

#contact-header h2 {
  font-weight: bold;
  font-size: 1.8rem;
  padding: 1rem 0;
}

#inner-contact-content {
  grid-template-columns: 1fr 1fr;
  justify-items: center;
}

.contact-form-access-container {
  display: grid;
  grid-template-rows: 2fr 6fr;
}

#contact-button-container {
  width: 22rem;
}

#contact-button-container button {
  color: black;
  border: #acacac solid 1px;
  border-radius: 5px;
  padding: 1em;
}

.contact-btn:hover {
    background-color: #dddddd;
}

.contact-access-changable-container {
  transition: opacity 0.4s ease-in-out;
  opacity: 1; /* Start fully visible */
  width: 70%;
  height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.contact-access-changable-container h5 {
  font-size: 15px;
}

#join-our-team-btn {
  margin-top: 1rem;
}

/* Team Section */

#showcase-section {
  display: grid;
  grid-template-columns: 1fr 5.5fr 1fr;
  padding: 5rem 0 8rem 0 !important;
  font-family: "Oxygen", sans-serif;
  overflow: hidden; /* Ensure the pseudo-element doesn't overflow the section */
  background-image: url("../res/profile-background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#profile-container {
  grid-column: 2/3;
  display: grid;
  grid-template-rows: 4fr 10fr;
}

#showcase-header {
  display: flex;
}

#showcase-header h2 {
  font-size: 3rem;
}

#showcase-header h4 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5em;
}

.img-profile-container {
  width: 100%; /* Or set a specific width */
  overflow: hidden; /* Hide overflowing content */
}

#reverse-gallery {
  margin-top: 4rem;
}

.profile-track {
  display: flex;
  justify-items: center;
  gap: 1em;
  width: max-content; /* Allow the track to expand dynamically */
}

.profile {
  flex: 0 0 auto; /* Prevents shrinking */
  width: 320px; /* Ensure each profile takes the same width */
}

/* Testimonial Section */

#testimonials-section {
  display: flex;
  justify-content: center;
  background-color: #3ca95d;
  overflow: hidden; /* Ensure the pseudo-element doesn't overflow the section */
  background-image: url("../res/profile-background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#testimonials-section > div { /* Targets div inside testimonials-section */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Ensures content is centered */
  background-color: white;
  width: 75%;
  padding-bottom: 7em;
  border-radius: 20px 20px 0 0;
}

#testimonials-header {
  padding: 5rem 0 2rem 0;
  text-align: center;
}

#testimonials-header h2 {
  font-size: 1.7rem;
}

#testimonials-header h4 {
  color: #33834b;
  padding-bottom: 1rem;
}

#testimonials-container {
  width: 100%;
  overflow: hidden; /* Prevents flex items from overflowing */
  display: flex;
  justify-content: center;
  position: relative;
  padding: 3rem 0; /* Adds space without shifting elements */
}

#review-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* Match parent width */
}

.review-container {
  display: flex;
  width: 100%;
  flex: 0 0 calc(100% - 2rem); /* Adjust width to account for margin */
  margin: 0 1rem; /* Adds space around each review */
  gap: 2em;
  justify-content: center;
}

.review {
  display: flex;
  flex-direction: row;
  box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.2); /* More spread for depth */
  border-radius: 20px;
  max-width: 50em;
  padding: 5em 3em;
  gap: 3em;
  position: relative; /* Ensure the overlay is positioned correctly */
  overflow: hidden; /* Prevents overlay from overflowing */
  align-items: center;
}

.review::before {
  content: ""; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15); /* Dark semi-transparent overlay */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.review:hover::before, /* Works for desktop */
.review.overlay-active::before { /* Works for mobile */
  opacity: 1;
  cursor: pointer;
}

.review p {
  font-size: 18px;
  font-style: italic;
}

.review img, #side-panel img {
  border-radius: 50%;
}

#reviewer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

/* Full-screen overlay (hidden by default) */
#testimonial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 12;
}

/* Active class to show overlay */
#testimonial-overlay.active {
  opacity: 1;
  visibility: visible;
  color: black !important;
}

/* Content box inside overlay */
.overlay-content {
  display: flex;
  background: white;
  max-width: 60em;
  gap: 2em;
  border-radius: 10px;
  position: relative;
}

#full-testimonial-text {
  max-height: 40vh; /* Enable scrolling for long text */
  overflow-y: auto;
  padding-right: 10px; /* Optional padding for scrollbar */
}

body.overlay-active {
  overflow: hidden; /* Prevent scrolling on the body */
}

#side-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #252525;
  padding: 7em 5em;
}

.overlay-content p {
  justify-content: center;
  align-self: center;
  padding: 2em 1em;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.hidden {
  display: none;
}

@media (max-width: 1021px) {

  #header-content-container::before {
    background: rgba(0, 0, 0, 0.7);
  }

  #testimonials-section > div {
    width: 100%;
    border-radius: 0px;
  }

  .review {
    flex-direction: column;
    align-items: center;
  }

  .overlay-content {
    display: flex;
    flex-direction: column;
    border-radius: 0px;
  }
  #side-panel {
    padding: 4em;
  }

  #team-section {
    padding: 5rem 0 0 0;
  }

  #inner-contact-content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1.2fr;
    justify-items: center;
  }
  #contact-image-container img {
    width: 400px;
    height: 400px;
  }

  .contact-form-access-container {
    justify-items: center;
    margin-bottom: 10rem;
  }

  #about-section-container {
    display: grid;
    grid-template-columns: 1fr; /* Switch to a single column */
    grid-template-rows: auto auto;
    padding: 2rem 0;
  }

  #about-section-img-container {
    margin: 1em 0; /* For when its tablet width margin is needed */
    grid-column: 1/1;
  }

  #about-info-section {
    grid-column: 1/1;
    margin-bottom: 2em;
  }

  .profile-info {
    margin: 0 3em;
  }
  
  #about-section-img-container img{
    width: 340px;
    height: 340px;
  }

  #hamburger-menu {
    display: block !important;
    cursor: pointer;
  }

  /* Hide the regular navbar items */
  nav ul,  ul li, nav button {
    display: none !important;
  }

  footer nav ul, ul li {
    display: block !important;
  }

  nav {
    justify-content: space-between;
  }

  nav img {
    justify-self: flex-end;
    margin: 0.4rem 1.3rem 0 1.3rem;
  }
  
  #header-content {
    grid-template-columns: 1fr 15fr 1fr;
  }

  #header-content div {
    width: 100%;
  }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  header {
    font-size: 0.6rem;
  }

  h1 {
    font-size: 3rem;
  }

}

@media (max-width: 350px) {
  header {
    font-size: 0.4rem;
  }

  h1 {
    font-size: 2rem;
  }

}

