/* Home Page Specific Styles */

/* Hero Section with Modern Square Design */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/hero-background.jpg") no-repeat center center/cover;
  filter: blur(5px) brightness(0.7);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  bottom: 40px;
  left: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
}

.hero-text::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid rgba(156, 93, 62, 0.2);
  top: -30px;
  left: -20px;
  z-index: -1;
}

.hero-text h2 {
  font-size: 3.4rem;
  margin-bottom: 25px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.hero-text h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 90%;
}

.hero-text .btn-primary {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(156, 93, 62, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-text .btn-primary i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.hero-text .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(156, 93, 62, 0.4);
}

.hero-text .btn-primary:hover i {
  transform: translateX(5px);
}

.hero-image {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modern hero visual with square design */
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.visual-element {
  width: 300px;
  height: 300px;
  background-color: var(--primary-color);
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.visual-element:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.visual-element::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  top: -15px;
  left: 15px;
  transition: all 0.4s ease;
}

.visual-element:hover::before {
  top: -20px;
  left: 20px;
}

.visual-element::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 8px;
  background-color: var(--accent-color);
  bottom: -8px;
  left: 30%;
}

.visual-element-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
}

.visual-element-text span {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 2px;
  position: relative;
  padding: 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.visual-element:hover .visual-element-text span {
  transform: scale(1.05);
}

.visual-element-text span:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Decorative elements */

@keyframes slideRight {
  0% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Features Section */
.features {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(135deg, #f4f0ed 0%, #e8e4e1 100%);
}

.features h2 {
  font-size: 2.3rem;
  margin-bottom: 70px;
  text-align: center;
  position: relative;
}

.features h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: white;
  padding: 40px 30px;
  text-align: center;
  border-left: 6px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.feature-card:hover i {
  transform: scale(1.2);
}

.feature-card h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background-color: var(--dark-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(232, 168, 124, 0.05);
  transform: rotate(45deg);
  top: -150px;
  left: -150px;
}

.how-it-works h2 {
  font-size: 2.8rem;
  margin-bottom: 70px;
  text-align: center;
  position: relative;
}

.how-it-works h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.steps::after {
  content: "";
  position: absolute;
  height: 4px;
  background-color: rgba(232, 168, 124, 0.3);
  top: 35px;
  left: 10%;
  right: 10%;
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  border: 5px solid var(--dark-color);
  color: white;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  background-color: var(--accent-color);
}

.step h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.step p {
  color: #ccc;
  line-height: 1.6;
}

.cta-center {
  text-align: center;
  margin-top: 50px;
}

.cta-center .btn-primary {
  padding: 15px 40px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.cta-center .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.cta-center .btn-primary:hover::after {
  left: 100%;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--light-color);
  position: relative;
}

.testimonials h2 {
  font-size: 2.8rem;
  margin-bottom: 70px;
  text-align: center;
  position: relative;
}

.testimonials h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 40px;
}

.testimonial {
  background-color: white;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--primary-color);
  opacity: 0.1;
  line-height: 0.8;
}

.testimonial:hover {
  transform: translateY(-10px);
}

.testimonial-content {
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
  text-align: right;
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    padding: 100px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-text {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-text::before {
    display: none;
  }

  .hero-text h2 {
    font-size: 3rem;
  }

  .hero-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    margin: 0 auto;
    height: 350px;
  }

  .visual-element {
    width: 260px;
    height: 260px;
  }

  .visual-element::before {
    width: 260px;
    height: 260px;
  }

  .visual-element-text span {
    font-size: 2rem;
  }

  .steps {
    flex-direction: column;
  }

  .steps::after {
    display: none;
  }

  .step {
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }

  .hero-text h2 {
    font-size: 2.6rem;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .hero-text .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .hero-image {
    height: 320px;
  }

  .visual-element {
    width: 220px;
    height: 220px;
  }

  .visual-element::before {
    width: 220px;
    height: 220px;
    top: -10px;
    left: 10px;
  }

  .visual-element-text span {
    font-size: 1.6rem;
    letter-spacing: 1px;
    padding: 6px 0;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 60px 0;
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }

  .hero-image {
    height: 280px;
  }

  .visual-element {
    width: 180px;
    height: 180px;
  }

  .visual-element::before {
    width: 180px;
    height: 180px;
    top: -8px;
    left: 8px;
  }

  .visual-element-text span {
    font-size: 1.4rem;
  }
}

/* Animation for Feature Cards */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card.animate {
  animation: fadeUp 0.5s ease forwards;
}

.step.animate {
  animation: fadeUp 0.5s ease forwards;
}

.testimonial.animate {
  animation: fadeUp 0.5s ease forwards;
}
