/* Hero Section */

.hero {
  position: relative;
  height: calc(100vh - 100px);
  background: url("../images/1.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 1000px;
  text-align: left;
  font-size: 4rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.hero p {
  font-size: 2.5rem;
  font-style: italic;
  text-align: left;
}

/* Offer section */

.offer {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 50vh;
  background-color: #8baec4;
}

.offer h2 {
  font-size: 3rem;
  color: #00274d;
}

.carousel {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
}

.cards {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
  will-change: transform;
  transition: transform 0.2s ease-in-out; /* Optional, can smooth out sudden jumps */
}

.card {
  position: relative;
  color: white;
  min-width: 300px;
  height: 300px;
  background: #7193a9;
  border-radius: 3rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  border: 2px solid #00274d;
}

.card img {
  width: 100px;
  height: 100px;
  background: white;
  height: auto;
  width: 100%;
  border-bottom: 2px solid #00274d;
}

.card h3 {
  font-size: 1.7rem;
  margin-top: 20px;
  color: #00274d;
}

.card p {
  font-size: 1rem;
  color: #074f97;
}

/* Pauses the animation when hovered */
.carousel:hover .cards {
  animation-play-state: paused;
}

/* Slow scrolling with gradient */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.scroller__inner {
  display: flex;
  gap: 20px;
  animation: scroll 60s linear infinite;
}

.scroller {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

/* Services Section */
.services {
  background-color: #7193a9;
  padding: 50px 20px;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #00274d;
}

.service-section {
  margin: 40px 0;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.service-section h3 {
  font-size: 2rem;
  color: #00274d;
}

.service-section img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 20px 0;
  border-radius: 2rem;
}

.service-section p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.service-section button {
  padding: 10px 20px;
  border: 2px solid #074f97;
  background-color: #0088cc;
  border-radius: 2rem;
}

.service-section button a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

/* Team Section */
.team-section {
  position: relative;
  background: url("../images/5.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 50px 20px;
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.team-content {
  position: relative;
  z-index: 2;
  width: 100%; /* Ensure content doesn't overflow */
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.team-section h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 30px;
  font-weight: bold;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-adjust to available space */
  gap: 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Full width */
  box-sizing: border-box; /* Prevent padding issues */
}

.team-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 100%; /* Allow the card to shrink based on container size */
  max-width: 300px; /* Prevent cards from growing too large */
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Include padding in width calculation */
}

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

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-card h2 {
  font-size: 1.8rem;
  margin: 10px 0;
  color: #00274d;
  font-weight: 600;
}

.team-card p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.team-card .role {
  color: #007bff;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .team-section {
    padding: 40px 20px;
  }

  .team-section h1 {
    font-size: 2rem;
  }

  .team-card {
    max-width: 100%; /* Cards scale with container width */
  }

  .team-card h2 {
    font-size: 1.6rem;
  }

  .team-card p {
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .team-section {
    padding: 30px 15px;
  }

  .team-cards {
    grid-template-columns: 1fr; /* Single column layout for small screens */
  }

  .team-card {
    width: 100%; /* Cards fill the available width */
    max-width: none; /* Remove width limit to prevent overflow */
    margin: 0 auto;
  }

  .team-card h2 {
    font-size: 1.5rem;
  }

  .team-card p {
    font-size: 0.9rem;
  }
}

/* CTA Section */
.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 50vh;
  background-color: #00274d;
  padding: 40px 20px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.cta-content p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 900px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background-color: #0077b5; /* Default background */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-button:hover {
  transform: scale(1.05);
  background-color: #005582;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.social-button i {
  margin-right: 10px;
}

/* Custom colors for Telegram and Instagram */
.telegram {
  background-color: #0088cc; /* Telegram color */
}

.instagram {
  background-color: #e4405f; /* Instagram color */
}

.telegram:hover {
  background-color: #007bb5;
}

.instagram:hover {
  background-color: #c13584;
}

/* About Us Section */
.about-us {
  position: relative;
  background-color: #005582;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 40px 20px;
  height: 50vh;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.about-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.about-us-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 20px;
}

.about-us h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.about-us p {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 30px;
  font-style: italic;
}

.about-us p i {
  display: block;
  font-style: italic;
  font-size: 1.5rem;
}

.about-us p b {
  font-weight: bold;
}

.about-us p u {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .about-us {
    padding: 30px 20px;
    text-align: center;
    height: auto;
  }

  .about-us h1 {
    font-size: 2.5rem;
  }

  .about-us p {
    font-size: 1.6rem;
  }
}

@media (max-width: 430px) {
  .about-us {
    padding: 30px 20px;
    min-height: 70vh;
  }

  .about-us h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .about-us p {
    font-size: 1.4rem;
  }

  .about-us p i {
    font-size: 1.2rem;
  }
}

@media (max-width: 430px) {
  nav a {
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  .cards {
    display: flex;
    gap: 10px;
    animation: scroll 10s linear infinite;
    will-change: transform;
    transition: transform 10s ease-in-out; /* Optional, can smooth out sudden jumps */
  }

  .card {
    min-width: 200px;
    height: 200px;
  }

  .card img {
    width: 50px;
    height: 50px;
    background: white;
    height: auto;
    width: 100%;
    border-bottom: 2px solid #00274d;
  }

  .card h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #00274d;
  }

  .card p {
    font-size: 0.9rem;
    color: #074f97;
  }
}

@media (max-width: 430px) {
  .cta-content {
    padding: 30px 20px;
    text-align: center;
  }

  .cta-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .cta-content p {
    font-size: 1.4rem;
  }

  .social-button {
    font-size: 1.1rem;
    padding: 10px 20px;
  }

  .social-button i {
    margin-right: 8px;
  }
}
