/* ============================================
   Smile Karisma — Homepage Styles
   ============================================ */

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #050d16;
  /* Push content down so it centers in the space BELOW the fixed header */
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: heroKenBurns 25s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(180deg, rgba(5, 13, 22, 0.5) 0%, rgba(5, 13, 22, 0.2) 40%, rgba(5, 13, 22, 0.6) 100%),
    linear-gradient(90deg, rgba(5, 13, 22, 0.75) 0%, rgba(5, 13, 22, 0.2) 65%, transparent 100%);
}

/* Animated floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

.hero-particles span:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 3px; height: 3px; }
.hero-particles span:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; width: 5px; height: 5px; }
.hero-particles span:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: 1s; width: 6px; height: 6px; }
.hero-particles span:nth-child(5) { left: 70%; animation-duration: 11s; animation-delay: 3s; width: 3px; height: 3px; }
.hero-particles span:nth-child(6) { left: 82%; animation-duration: 16s; animation-delay: 5s; }
.hero-particles span:nth-child(7) { left: 90%; animation-duration: 13s; animation-delay: 2.5s; width: 5px; height: 5px; }
.hero-particles span:nth-child(8) { left: 50%; animation-duration: 9s; animation-delay: 6s; width: 3px; height: 3px; }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: var(--space-16) 0 var(--space-16);
  animation: heroContentIn 1s var(--ease-out) 0.3s both;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: heroContentIn 1s var(--ease-out) 0.5s both;
}

.hero-tag svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
  animation: heroContentIn 1s var(--ease-out) 0.6s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #F08BC2 0%, var(--primary) 50%, #9BDAD9 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 500px;
  animation: heroContentIn 1s var(--ease-out) 0.7s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
  animation: heroContentIn 1s var(--ease-out) 0.8s both;
}

/* Glassmorphism button */
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(232, 91, 154, 0.15);
  animation: heroContentIn 1s var(--ease-out) 0.9s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(26, 26, 46, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(232, 91, 154, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(14px); opacity: 0; }
}

/* ---- Categories Section ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  min-height: 300px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all var(--duration-normal);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.8;
  transition: all var(--duration-normal);
  z-index: 3;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.category-card:hover::before {
  opacity: 1;
  height: 6px;
}

.category-card-bg {
  display: none;
}

.category-card-overlay {
  display: none;
}

.category-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(232, 91, 154, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: 28px;
  transition: all var(--duration-normal) var(--ease-out);
}

.category-card:hover .category-card-icon {
  background: rgba(232, 91, 154, 0.2);
  transform: translateY(-4px);
}

.category-card h3 {
  color: #1A1A2E;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.category-card p {
  color: #64748B;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.category-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: var(--space-4);
  transition: all var(--duration-fast);
}

.category-card:hover .category-card-link {
  color: var(--accent);
  gap: var(--space-3);
}

/* ---- Featured Products Section ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ---- How It Works Section ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 16.66%;
  width: 66.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(31, 138, 167, 0.25);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px dashed var(--primary-light);
  opacity: 0.3;
}

.step-icon {
  font-size: 40px;
  margin-bottom: var(--space-4);
}

.step-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.step-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* ---- Trust / Brand Section ---- */
.trust-section {
  position: relative;
  overflow: hidden;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.trust-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}

.trust-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-image-badge {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-image-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.trust-image-badge-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.3;
}

.trust-content {
  padding: var(--space-4) 0;
}

.trust-content h2 {
  margin-bottom: var(--space-6);
}

.trust-content > p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.trust-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.trust-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.trust-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 18px;
}

.trust-feature h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-feature p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---- Stats Section ---- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(155, 218, 217, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---- Testimonials Section ---- */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.testimonials-track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out);
}

.testimonial-card {
  min-width: 100%;
  padding: var(--space-12) var(--space-16);
  text-align: center;
}

.testimonial-stars {
  color: #FBBF24;
  font-size: 20px;
  letter-spacing: 4px;
  margin-bottom: var(--space-6);
}

.testimonial-text {
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto var(--space-8);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #fff;
}

.testimonial-author-info {
  text-align: left;
}

.testimonial-name {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
}

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  padding: var(--space-24) 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(31, 138, 167, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(235, 107, 176, 0.1) 0%, transparent 50%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Newsletter ---- */
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: var(--space-3);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--duration-fast);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
  border-color: var(--primary-light);
}

/* ---- Responsive (Homepage) ---- */
@media (max-width: 1024px) {
  .hero h1 { font-size: var(--text-5xl); }

  .categories-grid { gap: var(--space-5); }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .trust-grid { gap: var(--space-8); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

  .testimonial-card { padding: var(--space-8); }
  .testimonial-text { font-size: var(--text-xl); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero h1 { font-size: var(--text-4xl); }

  .hero-desc { font-size: var(--text-base); }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-tag {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .category-card { aspect-ratio: auto; min-height: 220px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .steps-grid::before { display: none; }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .trust-features {
    grid-template-columns: 1fr;
  }

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

  .testimonial-text { font-size: var(--text-lg); }

  .cta-content h2 { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: var(--text-3xl); }
  
  .hero-tag {
    white-space: normal;
    text-align: center;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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