/* Home Page Specific Styles */

/* Hero Background Styles */
.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: opacity;
  background-attachment: fixed;
}

.hero-background-image.loaded {
  opacity: 1 !important;
}

/* Preload background with blur effect */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f4fd 0%, #fff 100%);
  z-index: -3;
}

/* Hero Section Base Styles */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
}

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

/* Hero Content Initial Load Animation */
.hero-content-left {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeInUp 1s ease-out 0.3s forwards;
}

.hero-content-right {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeInUp 1s ease-out 0.6s forwards;
}

@keyframes heroFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Process Section */
.service-process-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-process-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service Process Zigzag Mobile Layout */
.service-step {
  position: relative !important;
  margin-bottom: 115px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 0 20px !important;
}

.service-step:nth-child(odd) {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
}

.service-step:nth-child(even) {
  flex-direction: row !important;
  justify-content: flex-start !important;
}

.service-step:last-child {
  margin-bottom: 0 !important;
}

.service-step-content {
  flex: 1;
}

.service-step:nth-child(odd) .service-step-content {
  text-align: right !important;
  padding-right: 10px !important;
}

.service-step:nth-child(even) .service-step-content {
  text-align: left !important;
  padding-left: 10px !important;
}

/* Quote Section Styles */
.quote-section {
  padding: 80px 20px;
}

.quote-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quote-title {
  font-size: 36px;
}

.quote-subtitle {
  font-size: 18px;
}

.quote-price-display {
  font-size: 28px;
}

/* Desktop/Mobile Responsive Styles */
@media (min-width: 769px) {
  .hero-desktop { display: block !important; }
  .hero-mobile { display: none !important; }
  .service-desktop { display: grid !important; }
  .service-mobile { display: none !important; }
  .wave-connector { display: none !important; }
}

@media (max-width: 768px) {
  /* Hero Section Mobile */
  .hero-desktop { display: none !important; }
  .hero-mobile { display: block !important; }

  .hero-section {
    min-height: 100vh;
  }

  .hero-container {
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 40px 20px !important;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .hero-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  .hero-subtitle {
    font-size: 16px !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-buttons a {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-form {
    padding: 20px !important;
  }

  .hero-form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Mobile video optimization */
  .hero-background-video {
    display: none;
  }

  .hero-background-image {
    background-attachment: scroll;
  }

  .hero-section > div > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .hero-section h1 {
    font-size: 36px !important;
  }

  .hero-section p {
    font-size: 16px !important;
  }

  /* Service Process Mobile */
  .service-desktop { display: none !important; }
  .service-mobile { display: block !important; }

  section div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Hide horizontal connecting lines */
  div[style*="position: absolute; top: 40px"] {
    display: none !important;
  }

  /* Process icon size adjustment */
  div[style*="width: 80px; height: 80px"] {
    width: 60px !important;
    height: 60px !important;
  }

  /* Step number adjustment */
  span[style*="width: 35px; height: 35px"] {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    top: -10px !important;
    right: -5px !important;
  }

  /* Quote Section Mobile */
  .quote-section {
    padding: 40px 20px !important;
  }

  .quote-container {
    padding: 20px !important;
  }

  .quote-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .quote-form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .quote-options {
    flex-direction: column !important;
  }

  .quote-price-display {
    font-size: 24px !important;
  }

  .quote-title {
    font-size: 28px !important;
  }

  .quote-subtitle {
    font-size: 16px !important;
  }

  /* Typography adjustments */
  h1[style*="font-size: 48px"] {
    font-size: 32px !important;
  }

  h2[style*="font-size: 36px"] {
    font-size: 28px !important;
  }

  p[style*="font-size: 18px"] {
    font-size: 16px !important;
  }
}