/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("../images/hero-bg.jpg") center / cover no-repeat;
  background-blend-mode: overlay;
  background-color: rgba(227, 253, 253, 0.8);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.hero-title {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-lg);
  color: var(--text-medium);
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-blue), var(--neon-highlight));
  color: white;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 173, 181, 0.3);
  color: white;
}

.hero-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.hero-cta:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.text-carousel {
  display: inline-block;
  position: relative;
  color: var(--neon-highlight);
  font-weight: 700;
}

.text-carousel::after {
  content: "|";
  position: absolute;
  right: -5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Services Section */
.services {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  padding: 2px;
  background: linear-gradient(45deg, var(--accent-blue), var(--neon-highlight));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  padding: var(--space-md);
}

.service-icon img {
  max-height: 100px;
  transition: transform var(--transition-medium);
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-content {
  padding: var(--space-lg);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--accent-blue);
}

.service-description {
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--neon-highlight);
  font-weight: 600;
}

.service-link svg {
  margin-left: var(--space-xs);
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(5px);
}

/* Why Choose Us Section */
.why-us {
  padding: var(--space-xl) 0;
  background-color: var(--primary-light);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
      45deg,
      rgba(114, 201, 206, 0.05) 0px,
      rgba(114, 201, 206, 0.05) 2px,
      transparent 2px,
      transparent 10px
    ),
    repeating-linear-gradient(
      135deg,
      rgba(114, 201, 206, 0.05) 0px,
      rgba(114, 201, 206, 0.05) 2px,
      transparent 2px,
      transparent 10px
    );
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: var(--space-xl) auto;
  z-index: 1;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--neon-highlight));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-xl);
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  position: relative;
  padding: var(--space-lg);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.timeline-content::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -10px;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, var(--accent-blue), var(--neon-highlight));
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-year {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--accent-blue);
}

.timeline-item:nth-child(odd) .timeline-year {
  right: -80px;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -80px;
}

.timeline-title {
  margin-bottom: var(--space-sm);
  color: var(--accent-blue);
}

.timeline-description {
  color: var(--text-medium);
}

@media (max-width: 768px) {
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-content::after {
    left: -10px;
    right: auto;
  }

  .timeline-dot {
    left: 20px;
    right: auto;
  }

  .timeline-year {
    left: -45px;
    right: auto;
    font-size: 0.85rem;
  }
}

