/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(-45deg, #271c8b, #302b63, #141423);
  background-size: 400% 400%;
  animation: gradientFlow 5s ease infinite;
  color: #f0f0f0;
  line-height: 1.6;
  padding-top: 60px;
  min-height: 100vh;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* === HEADER STYLES === */
.header {
  background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  padding: 0.3rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #302b63;
}

/* Hamburger (default hidden) */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #00f6ff;
}

/* === HERO SECTION === */
.hero {
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 1rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  color: #c0c0c0;
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #00d1ff;
  color: #000000;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background-color: #00d1ff;
  color: #000000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 209, 255, 0.4);
}

/* Hero Background Layers */
.hero .bg,
.hero .bg2,
.hero .bg3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
  background-image: linear-gradient(-60deg, #302b63 50%, #24243e 50%);
  animation: slide 3s ease-in-out infinite alternate;
}

.hero .bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 4s;
}

.hero .bg3 {
  animation-duration: 5s;
}

@keyframes slide {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(0%); }
}

/*map*/
.geo-section {
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
}

.geo-section h2 {
  color: #00f6ff;
  font-size: 2rem;
  margin-bottom: 30px;
}

.geo-map {
  width: 800px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 10px;
  cursor: default;
  transition: transform 0.3s ease;
}
.geo-map:hover {
  transform: scale(1.02);
}

.geo-slider {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.geo-track {
  display: inline-block;
  animation: geoScroll 40s linear infinite;
}

.geo-track span {
  display: inline-block;
  margin: 10px;
  font-size: 1.2rem;
  color: #ffffff;
  white-space: nowrap;
}

@keyframes geoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* Featured Clients Background Layers */
.featured-clients {
  padding: 50px 20px;
  text-align: center;
}

.featured-clients h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  color: #00f6ff;
}

.carousel-row {
  overflow: hidden;
  margin: 30px 0;
  position: relative;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
  backface-visibility: hidden;
}
.carousel-item {
  flex: 0 0 auto; /* Prevent shrinking */
}

.carousel-item img {
  max-height: 50px;
  opacity: 1;
  transition: opacity 0.3s ease;
}


/* Left scroll animation */
.carousel-row.left .carousel-track {
  animation: scroll-left 15s linear infinite;
}


/* Keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-left-to-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.carousel-row.left-to-right .carousel-track {
  animation: scroll-left-to-right 15s linear infinite;
}



/* === insight SECTION === */
.insight-section {
  padding: 60px 20px;
 text-align: center;
  color: #ffffff;
}

.insight-section h2 {
  color: #00f6ff;
  font-size: 2rem;
  margin-bottom: 40px;
}

.insight-section p {
  color: #00f6ff;
  font-size: 2rem;
}
.insights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.insight-box {
  min-width: 150px;
  font-size: 1.75rem;
  color:#00d1ff;
}

.counter {
  font-weight: bold;
  font-size: 3rem;
}


/* === SECTION STYLES === */
.section {
  padding: 2rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #00f6ff;
  margin-bottom: 2rem;
}

.cards,
.services-cards,
.expertise-cards,
.portfolio-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background-color: #1c1c3e;
  padding: 2rem;
  width: 300px;
  border-radius: 10px;
  border: 1px solid #222;
  text-align: center;
  box-shadow: 0 0 10px transparent;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  background-color: #2b2b2b;
  box-shadow: 0 12px 20px rgba(0, 246, 255, 0.25);
}

.card h3 {
  color: #00f6ff;
  margin-bottom: 1rem;
}

.card p {
  color: #cccccc;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  border-radius: 20px;
  margin: 0 auto;
  width: 100%;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;            /* All form fields take full width of .contact-form */
  padding: 0.8rem;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  box-sizing: border-box; /* Ensures consistent sizing */
}

.contact-form select {
  border: 1px solid #ccc;
  border-radius: 20px;    /* Match other input fields */
  font-size: 1rem;
}

/* === FOOTER === */
.footer {
  background-color: #0d0d0d;
  text-align: center;
  color: #ffffff;
  padding: 0.1rem 0; /* Reduced height */
}

.footer .footer-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.footer .footer-images a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer .footer-images img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer p {
  margin: 0.2rem 0;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #00c3ff;
  text-decoration: underline;
}



/* === FADE-IN ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.footer-images {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-images img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.footer-images img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    color: #00f6ff;
    cursor: pointer;
    position: absolute;
    right: 1rem;  /* Aligns it to the right */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  nav {
    width: 100%;
  }

  .nav-links {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(15, 12, 41, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 0 1rem;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    z-index: 998;
  }

  .nav-links.show {
    max-height: 500px; /* Enough height to show all links */
    padding: 1rem;
  }


  .nav-links.show {
    display: flex;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card {
    width: 90%;
    padding: 1.5rem;
  }

  .card img {
    width: 100%;
    height: auto;
    max-width: 250px;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .about-card img,
  .container img {
    width: 100% !important;
    height: auto !important;
    border-radius: 20px;
  }

  .contact-form {
    padding: 0 1rem;
    width: 100%;
  }

  .footer {
    padding: 0.5rem 0;
  }

  .footer .footer-images {
    gap: 0.8rem;
    margin: 0.3rem 0;
  }

  .footer .footer-images img {
    width: 24px !important;
    height: 24px !important;
  }

  .footer p,
  .footer a {
    font-size: 0.75rem;
  }
}
