/* Homepage Specific Styles */

/* Hero Section with Clean Design */
.hero {
  background-color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--secondary);
  z-index: -1;
  transform: skewX(-12deg);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--black);
  max-width: 90%;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

/* Hero Visual with Image */
.hero-visual {
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1579621970795-87facc2f976d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1050&q=80")
    center/cover;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.2;
}

/* Features Section with Card Depth */
.features {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.features h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 70px;
  position: relative;
}

.features h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background-color: var(--white);
  padding: 50px 30px 40px;
  text-align: center;
  border-bottom: 5px solid transparent;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.feature-card:hover {
  transform: translateY(-15px);
  border-bottom: 5px solid var(--secondary);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  width: 90px;
  height: 90px;
  background: var(--primary);
  color: var(--white);
  font-size: 2.2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(360deg);
  background: var(--secondary);
}

.feature-card h3 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--secondary);
}

.feature-card p {
  font-size: 1.05rem;
  color: var(--mid);
}

/* Process Section with Step Indicator */
.process {
  padding: 100px 0;
  background-color: var(--light);
  position: relative;
}

.process h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 70px;
  position: relative;
}

.process h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, var(--secondary), var(--primary));
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--primary) 0px,
    var(--primary) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  background-color: var(--primary);
  opacity: 0.3;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.8rem;
  margin: 0 auto 30px;
  font-weight: 700;
  position: relative;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--primary);
  z-index: -1;
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.step h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.step p {
  color: var(--mid);
}

/* Testimonials Section with Dynamic Quote Design */
.testimonials {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 70px;
  position: relative;
}

.testimonials h2::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.testimonial-slider {
  position: relative;
  z-index: 2;
}

.testimonial {
  background-color: var(--white);
  padding: 50px 40px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
  border-radius: 0;
  position: relative;
  border-left: 5px solid var(--secondary);
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.quote-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -60px;
  width: 50px;
  height: 1px;
  background-color: var(--secondary);
  opacity: 0.5;
}

.quote-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -60px;
  width: 50px;
  height: 1px;
  background-color: var(--secondary);
  opacity: 0.5;
}

.testimonial p {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--mid);
  position: relative;
}

.client-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.client-info h4 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.client-info p {
  font-size: 1rem;
  margin: 0;
  color: var(--mid);
  font-style: normal;
}

/* Responsive Adjustments */
@media screen and (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 350px;
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .process-steps::before {
    display: none;
  }

  .step::before {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-visual {
    height: 280px;
  }

  .feature-card {
    padding: 40px 20px 30px;
  }

  .testimonial {
    padding: 40px 20px 30px;
  }

  .quote-icon::before,
  .quote-icon::after {
    display: none;
  }
}
