.hero-section {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #0a1930;
  animation: 1s ease 0s 1 normal forwards running fadeIn;
}
.hero-section .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-section .hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section .hero-content h1 {
  opacity: 0;
  animation: fadeIn 1s forwards;
  color: #fff;
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: #34c7f5;
}
.hero-content h1 span:nth-child(1) {
  display: none;
}
.hero-content h1 span:nth-child(2) {
  display: inline-block;
}
.hero-content h1 span:nth-child(3) {
  display: none;
}
.hero-content h1 span:nth-child(4) {
  display: none;
}

.word-change {
  display: inline-block;
}

.word-change span {
  display: none;
  font-weight: bold;
  white-space: nowrap;
  border-right: 2px solid black; /* Optional: blinking cursor effect */
  animation: blinkCursor 0.7s infinite alternate;
}


.hero-content p {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  background: linear-gradient(90deg, #1d7ac0 0%, #34c7f5 100%);
  padding: 10px 24px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
  .hero-section .hero-content {
    max-width: 700px;
  }
}

@media screen and (max-width: 768px) {
  .hero-section .hero-content {
    max-width: 600px;
    padding: 0 15px;
  }

  .hero-section .hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 500px;
  }
}

@media screen and (max-width: 480px) {
  .hero-section .hero-content {
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-section .hero-content h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .contact-btn {
    padding: 8px 18px;
    font-size: 14px;
  }
}