/* home.css - Semi-Neobrutalism & Compact Layout */

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(255, 79, 163, 0.02), transparent),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.03), transparent),
    var(--clr-bg);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  margin: var(--space-xs) 0 var(--space-sm);
  color: var(--clr-heading);
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-content p {
  font-size: var(--fs-base);
  color: var(--clr-body);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  padding: 15px 25px;
  background: white;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow-sm);
  border-radius: var(--radius-md);
  width: fit-content;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extra-bold);
  color: var(--clr-primary);
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-sec);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background: var(--br-border-dark);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  max-width: 480px;
  margin-left: auto;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.visual-item {
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.visual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  left: -20px;
  background: var(--clr-accent);
  padding: 12px 20px;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow-sm);
  border-radius: var(--radius-md);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.floating-badge strong {
  font-size: var(--fs-lg);
  color: var(--clr-heading);
}

.floating-badge small {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
}

/* Trust Bar */
.trust-bar {
  background: var(--clr-secondary);
  border-top: var(--brutal-border);
  border-bottom: var(--brutal-border);
  padding: 15px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  color: white;
  font-size: var(--fs-xs) !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: 35px;
  background: white;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
  border-radius: var(--radius-lg);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--br-border-dark);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--clr-primary-pastel);
  border: 2px solid var(--br-border-dark);
  box-shadow: 3px 3px 0 var(--br-border-dark);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--clr-primary);
  font-size: 24px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: var(--fs-xl);
  color: var(--clr-heading);
  font-weight: 800;
}

.service-card p {
  color: var(--clr-body);
  font-size: var(--fs-base);
  margin-bottom: 20px;
  line-height: 1.6;
}

.link-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-primary);
  font-weight: var(--fw-bold);
}

/* Gallery Preview */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-peek {
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-peek:hover img {
  transform: scale(1.05);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.pricing-card {
  background: white;
  padding: 40px;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: #FFF9FC;
  border-color: var(--clr-primary);
  box-shadow: 8px 8px 0 var(--clr-primary);
  transform: scale(1.02);
}

.featured-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-primary);
  color: white;
  padding: 8px 20px;
  border: var(--brutal-border);
  box-shadow: 3px 3px 0 var(--br-border-dark);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.pricing-header h3 {
  font-size: var(--fs-xl);
  margin-bottom: 15px;
  font-weight: 800;
}

.price {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--clr-primary);
  font-family: var(--font-display);
}

.tagline {
  color: var(--clr-text-sec);
  margin-bottom: 25px;
  font-size: var(--fs-base);
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.pricing-features i {
  color: #22C55E;
}

/* Testimonials */
/* Rating Summary Card */
.rating-summary-card {
  max-width: 500px;
  margin: 0 auto 50px;
  background: white;
  border: var(--brutal-border);
  box-shadow: 10px 10px 0 var(--br-border-dark);
  border-radius: var(--radius-xl);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-primary);
  color: white;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 2px solid var(--br-border-dark);
}

.rating-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.rating-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--clr-heading);
  line-height: 1;
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.rating-stars i {
  width: 24px;
  height: 24px;
}

.rating-text {
  font-size: var(--fs-base);
  color: var(--clr-body);
  font-weight: 500;
}

.stars {
  color: var(--clr-accent);
  font-size: 20px;
  display: flex;
  gap: 4px;
}

.testimonial-swiper {
  padding: 20px 0 60px;
  /* Space for pagination */
}

.swiper-slide {
  height: auto;
  /* Allow stretch */
}

.testimonial-card {
  background: white;
  padding: 40px;
  border: var(--brutal-border);
  box-shadow: 8px 8px 0 var(--br-border-dark);
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--br-border-dark);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--clr-primary-light);
  opacity: 0.4;
}

.quote-icon i {
  width: 60px;
  height: 60px;
}

.ulasan-text {
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 500;
  color: var(--clr-body);
  flex-grow: 1;
  /* Pushes user-info to bottom */
  margin-bottom: 25px;
}

/* Swiper Pagination - Brutalist */
.swiper-pagination {
  position: absolute;
  bottom: 10px !important;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--br-border-dark);
  opacity: 1;
  border-radius: 4px;
  /* Square-ish */
  margin: 0 6px !important;
  transition: all 0.2s ease;
}

.swiper-pagination-bullet-active {
  background: var(--clr-primary);
  width: 24px;
  box-shadow: 2px 2px 0 var(--br-border-dark);
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid var(--br-border-dark);
  box-shadow: 2px 2px 0 var(--br-border-dark);
  flex-shrink: 0;
}

/* CTA Area */
.index-cta {
  background: var(--clr-accent);
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow-lg);
  color: var(--clr-heading);
  padding: 80px 40px;
  text-align: center;
  border-radius: var(--radius-xl);
  margin: 0 var(--container-pad) 80px;
}

.index-cta h2 {
  font-size: var(--fs-4xl);
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.index-cta p {
  font-size: var(--fs-lg);
  margin-bottom: 40px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    margin: 0 auto;
  }

  .hero-visual {
    margin: 40px auto 0;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .services-grid,
  .pricing-grid,
  .gallery-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .rating-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .index-cta {
    margin: 0 15px 60px;
    padding: 50px 20px;
  }
}