/* Basic Reset & Global Styling */
* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif; /* Fallback or base font */
  background: #f5f5f5; 
  color: #333;
}

/* Preloader */
.spinner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #262626;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 1s;
  z-index: 300;
}

.display .spinner-container {
  opacity: 0;
  visibility: hidden;
}

.circles {
  width: 8rem;
  height: 8rem;
  position: relative;
  opacity: 0;
  visibility: hidden;
  animation: displayCircles 4s;
}

@keyframes displayCircles {
  0% { opacity: 0; visibility: hidden; }
  25% { opacity: 1; visibility: visible; }
  90% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.circles div {
  animation: circles 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 4rem 4rem;
}
.circles div::after {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background-color: #c29525;
  margin: -0.4rem 0 0 -0.4rem;
}

@keyframes circles {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
/* Preloader END */

/* Header / Banner */
.header {
  width: 100%;
  height: 100vh;
  position: relative;
  perspective: 100rem;
  overflow: hidden;
}

.img-wrapper {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  animation: scale 25s;
}

@keyframes scale {
  0% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.banner {
  position: absolute;
  top: 30%;
  left: 15%;
}

.banner h1 {
  font-family: "Baloo Da 2", serif;
  font-size: 8rem;
  font-weight: 300;
  color: #fff;
  width: 50%;
  line-height: 9rem;
  letter-spacing: 0.2rem;
  text-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: moveBanner 1s 0.5s forwards;
}

.banner p {
  font-family: "Josefin Slab", serif;
  font-size: 4rem;
  color: #fff;
  width: 70%;
  letter-spacing: 0.1rem;
  margin-bottom: 3rem;
  text-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: moveBanner 1s 0.7s forwards;
}

.banner button {
  width: 25rem;
  height: 7rem;
  background-color: #c29525;
  border: none;
  font-family: "Muli", serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0;
  animation: moveBanner 1s 0.9s forwards;
}

@keyframes moveBanner {
  0% {
    transform: translateY(40rem) rotateY(-20deg);
  }
  100% {
    transform: translateY(0) rotateY(0);
    opacity: 1;
  }
}

/* Discover Button Hover */
.discover-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.discover-button:hover {
  transform: scale(1.1);
  background-color: #555;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff00; /* Transparent initially */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.512);
  position: fixed;
  width: 100%;
  height: 90px;
  top: 0;
  padding-top: 0.5%;
  padding-left: 2%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: #333; /* Navbar background on scroll */
}

.navbar-toggler-icon {
  filter: invert(1); /* White icon */
  transform: scale(1.9);
}

.show {
  background-color: #333;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

/* Navbar Links */
.navbar li {
  margin: 20px;
  color: white;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff;
  position: relative;
  font-size: medium;
}

/* Underline Hover Effect */
.navbar .nav-link::after,
.navbar .navbar-brand::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: #c29525;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .navbar-brand:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* ABOUT US */
.about-us {
  width: 100%;
  background-color: #f5f5f5;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 9rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7rem 0 5rem 0;
}

.section-heading {
  font-family: "Muli", serif;
  font-size: 5rem;
  font-weight: 300;
  color: #4b4b4b;
  margin-bottom: 3rem;
}

.underline {
  width: 12rem;
  height: 0.3rem;
  background-color: #c29525;
  margin: 0.5rem auto;
  margin-top: 3%;
  margin-bottom: 3%;
}

.about-description {
  font-size: 1.5rem;
  margin: 0 5% 0 5%;
  line-height: 1.6;
}

/* Sectors */
.sectors {
  background: linear-gradient(135deg, #f9f9f9, #e1e1e1);
  padding: 3rem 0;
  text-align: center;
}

.section-title {
  font-family: "Baloo Da 2", serif;
  font-size: 4rem;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  position: relative;
  margin-bottom: 3rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #c29525;
  margin: 1rem auto;
  border-radius: 3px;
  transition: width 0.4s;
}

.section-title:hover::after {
  width: 100px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.sector-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sector-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.sector-card .icon {
  margin-bottom: 1rem;
  color: #1f2937;
}

.sector-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #111;
}

.sector-card p {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #555;
}

/* TEAM */
.team {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 5rem 5rem 5rem;
  text-align: center;
}

.cards-wrapper {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  margin-top: 1rem;
  width: 100%;
}

.personcard {
  border: 1px solid #000000;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  margin: 20px auto;
  background-color: #fff;
}

.card-img-wrapper {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: auto;
}

.card-info {
  text-align: center;
  padding: 1rem 7%;
}

.card-info h2,
.card-info h3,
.card-info h4 {
  margin: 8px 0;
}

/* CLIENTS */
.clients {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  color: #030303;
  position: relative;
  overflow: hidden;
  border-top: 2px solid #ddd;
}

.client-logos-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.client-logos {
  display: flex;
  animation: scroll 60s linear infinite;
}

.client-logo {
  flex: 0 0 auto;
  margin: 0 15px;
}

.client-logo img {
  max-width: 150px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.client-logo img:hover {
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FOOTER */
.footer {
  width: 100%;
  height: 15rem;
  background-color: #17181b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  width: 60%;
  display: flex;
  justify-content: space-between;
}

.copyright {
  font-family: "Baloo Da 2", serif;
  font-size: 1.6rem;
  color: #a7a7a7;
}

.social-list a {
  margin: 0 2rem;
}

.social-list i {
  font-size: 2rem;
  color: #a7a7a7;
}

/* Scroll-to-top Button */
.scroll-btn {
  position: fixed;
  right: 5rem;
  bottom: 5rem;
  width: 4.5rem;
  height: 4.5rem;
  background-color: #e2b646;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  cursor: pointer;
}

/* ==================================
   MEDIA QUERIES: MOBILE-FIRST 
   Organized from smallest to largest
   ================================== */

/* ----- (1) Up to 500px ----- */
@media (max-width: 500px) {
  html {
    font-size: 45%;
  }

  .banner h1 {
    font-size: 4rem;
    line-height: 5rem;
  }

  .banner p {
    font-size: 2rem;
  }

  .banner button {
    width: 18rem;
    height: 4rem;
    font-size: 1.5rem;
  }

  .personcard {
    width: 90%;
  }

  .team {
    padding: 2rem;
  }

  .scroll-btn {
    right: 2rem;
    bottom: 2rem;
  }
}

/* ----- (2) Up to 700px ----- */
@media (max-width: 700px) {
  .field {
    width: 35rem;
  }

  .input-group textarea {
    max-width: 35rem;
  }

  .submit-btn {
    width: 35rem;
  }

  .sectors-grid {
    grid-template-columns: 1fr; /* Stacks the cards */
  }

  .clients .client-logo img {
    max-width: 120px; /* Slightly smaller logos */
  }
}

/* ----- (3) Up to 1000px ----- */
@media (max-width: 1000px) {
  .banner h1 {
    font-size: 5rem;
    line-height: 6rem;
  }

  .banner p {
    font-size: 2.5rem;
  }

  .banner button {
    width: 20rem;
    height: 5rem;
    font-size: 1.8rem;
  }

  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card {
    margin-bottom: 8rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80%;
  }

  .copyright {
    order: 1;
    margin-top: 3rem;
  }

  /* Let the grid have 2 columns instead of 3 for the sectors */
  .sectors-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ----- (4) Up to 1300px ----- */
@media (max-width: 1300px) {
  .banner h1 {
    font-size: 6rem;
    line-height: 7rem;
  }

  .banner p {
    font-size: 3rem;
  }

  .banner button {
    width: 20rem;
    height: 5rem;
    font-size: 1.6rem;
  }

  .footer-content {
    width: 80%;
  }
}

/* ----- (5) Up to 1400px ----- */
@media (max-width: 1400px) {
  .banner h1 {
    font-size: 6rem;
    line-height: 7rem;
  }

  .banner p {
    font-size: 3rem;
  }

  .banner button {
    width: 20rem;
    height: 5rem;
    font-size: 1.6rem;
  }
}

/* ----- (6) Up to 1500px ----- */
@media (max-width: 1500px) {
  .card {
    width: 34rem;
  }
}
