* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f7fb;
  color: #2d3748;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), url("Images/colleagues.jpg") no-repeat
    center center / cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}

.hero-content {
  max-width: 800px;
  width: 100%;
}

.mainimg {
  margin-bottom: 15px; /* Reduced gap between logo and heading */
}

.mainimg img {
  max-width: 60%;
  height: auto;
}

/* Typing animation for h1 */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #fbbf24;
  }
}

.hero h1 {
  font-size: 3.5rem;
  /* margin-bottom: 20px; */
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #fbbf24;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cta-buttons .btn {
  background-color: #fbbf24;
  color: #1a202c;
  padding: 12px 30px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.cta-buttons .btn:hover {
  background-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 80px 20px;
  color: #f3f4f6;
  text-align: center;
}

.services h2 {
  font-size: 2.8rem;
  color: #fbbf24;
  margin-bottom: 40px;
  text-transform: uppercase;
  position: relative;
  font-weight: 700;
}

.services h2::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 3px;
  background: #fbbf24;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1 1 300px;
  max-width: 100%;
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.service-box .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #fbbf24;
}

.service-box h3 {
  font-size: 1.6rem;
  color: #fbbf24;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-box p {
  font-size: 1rem;
  color: #e5e7eb;
  margin-bottom: 20px;
}

.service-box .learn-more {
  display: inline-block;
  color: #1e293b;
  background: #fbbf24;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-box .learn-more:hover {
  background: #f59e0b;
  color: #fff;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f3f4f6;
  padding: 50px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.company-details,
.contact-info,
.social-icons {
  padding: 0 15px;
}

.company-details h3 {
  font-size: 1.8rem;
  color: #fbbf24;
  margin-bottom: 15px;
  font-weight: 700;
}

.company-details p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e5e7eb;
}

.contact-info h4,
.social-icons h4 {
  font-size: 1.5rem;
  color: #fbbf24;
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-info p,
.contact-info a {
  font-size: 1rem;
  color: #e5e7eb;
  text-decoration: none;
  margin: 5px 0;
  transition: color 0.3s ease;
  display: block;
}

.contact-info a:hover {
  color: #fbbf24;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-icons a {
  font-size: 1.5rem;
  color: #e5e7eb;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: #fbbf24;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #e5e7eb;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .services-container {
    padding: 0 20px;
  }

  .service-box {
    flex: 1 1 280px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    white-space: normal;
    border-right: none;
    animation: typing 3.5s steps(40, end);
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 250px;
  }

  .services h2 {
    font-size: 2.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .mainimg img {
    max-width: 90%;
  }

  .mainimg {
    margin-bottom: 10px; /* Further reduced for mobile */
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 220px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .services h2 {
    font-size: 1.8rem;
  }

  .service-box {
    padding: 20px 15px;
  }

  .service-box h3 {
    font-size: 1.4rem;
  }

  .service-box p {
    font-size: 0.9rem;
  }

  /* Compact footer for mobile */
  footer {
    padding: 30px 15px 15px;
  }

  .footer-container {
    gap: 20px;
    margin-bottom: 20px;
  }

  .company-details h3,
  .contact-info h4,
  .social-icons h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .contact-info p,
  .contact-info a {
    font-size: 0.9rem;
    margin: 3px 0;
  }

  .footer-bottom {
    padding-top: 10px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .services h2 {
    font-size: 1.6rem;
  }

  .service-box .icon {
    font-size: 2.5rem;
  }
}

