/*
 * Global Stylesheet for the Think Quran Landing Page
 *
 * This file defines the overall look and feel of the landing page.  The
 * palette combines deep blues and warm golds to evoke an elegant Islamic
 * motif while maintaining a modern, professional appearance.  Typography
 * relies on Poppins for its clean, friendly lines, and layout uses
 * responsive flexbox and CSS grid for adaptability across devices.
 */

/* Root variables for easy theme changes */
:root {
  --primary-color: #0b3d91; /* deep blue */
  --primary-dark: #06285c;
  --accent-color: #f5c242; /* warm gold */
  --light-color: #ffffff;
  --text-color: #333333;
  --background-color: #f7f9fc;
  --hero-bg-color: #ffffff; /* white for hero background */
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4 {
  margin: 0.5em 0;
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
  text-align: center;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background-color: #d4a525;
}
.btn-secondary {
  background-color: var(--primary-dark);
  color: var(--light-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
}

/* Header */
.site-header {
  background-color: var(--light-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
}
.nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav a {
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}
.nav a:hover::after {
  width: 100%;
}

/* Highlight for active navigation links */
.nav a.active {
  color: var(--accent-color);
}

/* Mobile nav toggle and close buttons */
.nav-toggle,
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 0.5rem;
  font-size: 1.5rem;
  display: none; /* Hidden on desktop */
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 3px;
  background-color: var(--primary-dark);
  margin: 4px 0;
  transition: transform var(--transition-speed);
}

/* Mobile menu default state */
/* Additional nav positioning is handled within media queries */

/* Mobile menu overlay styles */
@media (max-width: 768px) {
  /* Mobile navigation: dropdown panel below the header.  Instead of sliding
   * from the right, the menu expands downward from beneath the header.  The
   * panel is centered and has rounded corners with a border using the accent
   * colour.  When closed, it is collapsed via scaleY to preserve layout. */
  .nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0) scaleY(0);
    transform-origin: top center;
    width: 90%;
    background-color: var(--light-color);
    border: 2px solid var(--accent-color);
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    padding: 2rem 2rem 2.5rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  .nav.open {
    transform: translate(-50%, 0) scaleY(1);
    opacity: 1;
    pointer-events: all;
  }
  /* Vertical orientation for menu items */
  .nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }
  .nav ul li {
    position: relative;
    padding-left: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav ul li a {
    color: var(--primary-dark);
    font-size: 1.1rem;
  }
  /* Bullet style before each menu item */
  .nav ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: var(--accent-color);
  }
  /* Action button styled separately inside dropdown */
  .nav ul li a.btn {
    display: inline-block;
    padding: 0.6em 1.2em;
    border-radius: var(--border-radius);
    text-align: center;
  }
  /* Animate list items sequentially when menu opens */
  .nav.open ul li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav.open ul li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav.open ul li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav.open ul li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav.open ul li:nth-child(4) {
    transition-delay: 0.4s;
  }
  /* Style for the nav close button inside dropdown */
  .nav-close {
    display: block;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
  }
  /* Display the hamburger button on mobile */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    background-color: var(--light-color);
    position: relative;
    padding: 0;
  }
  /* Style the bars inside the hamburger circle */
  .nav-toggle .bar {
    width: 60%;
    height: 3px;
    background-color: var(--primary-dark);
    display: block;
    margin: 3px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  /* Hide desktop underline effect for mobile */
  .nav ul li::after {
    content: none;
  }
}

/* Dark overlay shown when mobile menu is open */
/* Dark overlay shown when mobile menu is open.
 * We increase opacity and apply a slight blur to make the menu
 * stand out more prominently against the page content. */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
  z-index: 1500;
}
.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Hero section */
/* Hero section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Use a solid background colour instead of a repeating pattern */
  background-color: var(--hero-bg-color);
  color: var(--light-color);
  overflow: hidden;
  /* Add subtle gradient backdrop behind the phone to evoke a colourful glow */
  position: relative;
}

/* Gradient blob behind the hero phone */
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(255, 184, 73, 0.5) 0%, rgba(243, 133, 208, 0.45) 50%, rgba(118, 92, 242, 0.4) 100%);
  z-index: 0;
  transform: translate3d(0, 0, 0);
  filter: blur(60px);
}
/* Overlay tinted with deep blue instead of grey */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Transparent overlay; leaving space for card shadows */
  background: rgba(0, 0, 0, 0.0);
  z-index: 0;
}
/* Layout wrapper for hero content and image */
.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}
/* Hero text column */
.hero-content {
  flex: 1 1 45%;
  max-width: 600px;
  /* Use dark text for readability on light hero backgrounds */
  color: var(--primary-dark);
  text-align: left;
}
.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.hero-content h1 span {
  /* Additional styling for spans inside heading is defined in .highlight below */
  color: inherit;
  font-weight: inherit;
}

/* Highlighted text within hero headline */
.highlight {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  padding: 0.1em 0.3em;
  border-radius: 6px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-content .subheadline {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  max-width: 450px;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}
.hero-features {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-features i {
  color: var(--accent-color);
}
/* Hero image column */
.hero-image {
  flex: 1 1 55%;
  max-width: 600px;
  animation: float 6s ease-in-out infinite;
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  /* Remove rounded corners and shadows so the hand and phone stand on their own */
  border-radius: 0;
  box-shadow: none;
  /* Base scale is controlled via JavaScript for scroll animation */
  will-change: transform;
}

/* Ambient blurred colour shapes behind the hero content */
.ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.ambient-bg span {
  position: absolute;
  display: block;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.35;
}
.ambient-bg span:nth-child(1) {
  background: #7eb6e9; /* soft blue */
  top: -120px;
  left: 55%;
}
.ambient-bg span:nth-child(2) {
  background: #f5c242; /* gold */
  bottom: -100px;
  left: 10%;
}
.ambient-bg span:nth-child(3) {
  background: #cbb7f0; /* soft purple */
  top: 40%;
  right: -120px;
}


@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
/* Responsive hero adjustments */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-content,
  .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-features {
    justify-content: center;
  }
  .hero-image {
    margin-top: 2rem;
    max-width: 80%;
  }

  /* Stack the solution layout vertically on small screens */
  .solution-content {
    flex-direction: column;
    align-items: center;
  }
  .solution-image,
  .solution-features {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .solution-image {
    max-width: 80%;
    margin: 0 auto 2rem;
  }

  /* Reduce hero headline size on small screens for better fit and legibility */
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  .hero-content .highlight {
    /* Ensure highlighted text breaks nicely on mobile */
    display: inline-block;
    margin-top: 0.4rem;
  }

  /* Center the subheadline and allow full width on small screens */
  .hero-content .subheadline {
    max-width: none;
    margin: 0 auto 1.5rem;
    text-align: center;
  }
}

/* Floating animation for the phone image in the solution section */
@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Problem section */
.problem {
  padding: 6rem 0;
  /* Soft gradient background reminiscent of the provided example */
  background: linear-gradient(180deg, #f7f9fc 0%, #f5f5fb 50%, #f7f9fc 100%);
}
.problem h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.problem .card {
  background-color: var(--light-color);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}
/* Reveal animation: initial state */
.problem .card.reveal {
  opacity: 0;
  transform: translateY(40px);
}
/* When in view, show card */
.problem .card.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
.problem .icon {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.problem .card h3 {
  margin: 0.75rem 0;
}

/* Solution section */
.solution {
  /* Soft gradient background inspired by portfolio sections */
  background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
  color: var(--primary-dark);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Ambient coloured blobs behind the solution section */
.solution::before,
.solution::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
}
.solution::before {
  width: 400px;
  height: 400px;
  top: -120px;
  right: -120px;
  background: rgba(118, 92, 242, 0.5);
}
.solution::after {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: -100px;
  background: rgba(255, 187, 54, 0.45);
}
.solution h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}
/* Layout for solution section: image and features side by side */
.solution-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.solution-image {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  /* Soft floating animation up and down */
  animation: floatY 6s ease-in-out infinite;
}
.solution-features {
  flex: 1 1 55%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.solution-features .feature {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.5s ease-out;
  /* Always visible by default; animation applied via hover only */
  opacity: 1;
  transform: translateY(0);
}
.solution-features .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}
.solution-features .feature .icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
/* The reveal animation for solution features is controlled via JS by toggling
   the `.show` class; initial opacity and translate are set directly on
   `.solution-features .feature` above. */

/* Benefits section */
.benefits {
  padding: 4rem 0;
  background-color: var(--background-color);
}
.benefits h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.benefit-item {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.benefit-item h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* Plan section */
.plan {
  background-color: #ffffff;
  padding: 4rem 0;
}
.plan h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.step {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  position: relative;
}
.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}


/* Pricing section */
.pricing {
  padding: 4rem 0;
  background-color: var(--background-color);
}
.pricing h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.pricing-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.price-card {
  position: relative;
  border-radius: var(--border-radius);
  padding: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1f2d59;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for price cards: slight lift and shadow */
.price-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Individual plan gradients */
.price-card.free-plan {
  background: linear-gradient(135deg, #f9f5ff 0%, #eef9ff 100%);
}
.price-card.wordquest-plan {
  background: linear-gradient(135deg, #f6f9ff 0%, #ecf6ff 100%);
  border: 2px solid var(--primary-dark);
  transform: scale(1.04);
}
.price-card.combo-plan {
  background: linear-gradient(135deg, #fef8f4 0%, #fff3e6 100%);
}

/* Locked plan styling */
.price-card.locked-plan {
  background: repeating-linear-gradient(
    45deg,
    #f7f9fc,
    #f7f9fc 10px,
    #eff3f7 10px,
    #eff3f7 20px
  );
  border: 2px dashed #d0d7e2;
  color: var(--primary-dark);
}
.price-card.locked-plan .subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.btn.btn-disabled {
  background-color: transparent;
  border: 2px solid #91b5c8;
  color: #91b5c8;
  cursor: not-allowed;
}
.btn.btn-disabled:hover {
  background-color: transparent;
  color: #91b5c8;
  box-shadow: none;
}

/* Content layout within price card */
.price-card .card-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.price-card .card-header h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.price-card .card-header .price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-dark);
}
.price-card .card-header .old-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #888;
  margin-right: 0.4rem;
}
.price-card .card-features {
  flex: 1;
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}
.price-card .card-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-card .card-features ul li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.3rem;
  line-height: 1.4;
}
.price-card .card-features ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
}
.price-card .btn {
  align-self: flex-start;
  margin-top: 1.5rem;
}
.pricing .promo {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* FAQ section */
.faq {
  padding: 4rem 0;
  background-color: #ffffff;
}
.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--primary-dark);
}
.faq-question .icon {
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform var(--transition-speed);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
  font-size: 0.95rem;
  color: #555555;
  padding-right: 1rem;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 1rem;
}
.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

/* CTA section */
.cta {
  background-color: var(--primary-dark);
  color: var(--light-color);
  padding: 4rem 0;
  text-align: center;
}
.cta-content h2 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}
.cta-content p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #e8eaf1;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #d4d9e3;
  padding: 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}
.footer-col h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: #d4d9e3;
  transition: color var(--transition-speed);
}
.footer-col a:hover {
  color: var(--accent-color);
}
.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #a5b3d0;
}

/* Floating WhatsApp button */
.whatsapp-button {
  position: fixed;
  /* Place the button firmly in the bottom‑right corner on all screen sizes */
  right: 1.5rem;
  bottom: 1.5rem;
  background-color: #25d366;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Image inside the floating WhatsApp button */
.whatsapp-button img {
  width: 28px;
  height: 28px;
}
.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Back to top button styling */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: calc(1.5rem + 64px + 0.5rem); /* place above WhatsApp button (56px + margins) */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-dark);
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9998;
}
.back-to-top i {
  font-size: 1.2rem;
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-2px);
}

/* Responsive typography */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero .subheadline {
    font-size: 1.2rem;
  }
}

/* Testimonials & expert testimonials section */
.testimonials,
.apa-kata {
  padding: 6rem 0;
  background: var(--background-color);
}
.testimonials h2,
.apa-kata h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}
/* Grid layouts for testimonial sections */
.testimonial-grid,
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
/* Card styling for testimonials and expert testimonials */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  /* Arrange testimonial cards vertically for consistent alignment */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.testimonial-card .avatar {
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.testimonial-card .avatar img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}
.testimonial-info {
  flex: 1;
  width: 100%;
  text-align: left;
}
.testimonial-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-dark);
}
.testimonial-info .role {
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-style: italic;
  margin-bottom: 0.4rem;
}
.testimonial-info .rating {
  margin-bottom: 0.5rem;
}
.testimonial-info .rating i {
  color: #f5c242;
  margin-right: 0.1rem;
}
.testimonial-info .text {
  color: var(--primary-dark);
  line-height: 1.5;
  font-size: 0.95rem;
  overflow-wrap: break-word;
}
/* Reveal animation for testimonials */
.testimonial-card.reveal-testimonial {
  opacity: 0;
  transform: translateY(30px);
}
.testimonial-card.reveal-testimonial.show {
  opacity: 1;
  transform: translateY(0);
}

/* Demo product section */
.demo {
  padding: 6rem 0;
  background-color: var(--background-color);
  text-align: center;
}
.demo h2 {
  margin-bottom: 2rem;
  color: var(--primary-dark);
}
.demo .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.demo .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo .video-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--primary-dark);
}
.demo .video-note a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Horizontal slider styling for testimonials */
.testimonial-slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  padding-bottom: 1rem;
  position: relative;
}
/* Hide scrollbars */
.testimonial-slider::-webkit-scrollbar {
  display: none;
}
.testimonial-slider {
  scrollbar-width: none;
}
/* Each card snaps to start for smooth horizontal scroll */
.testimonial-slider .testimonial-card {
  scroll-snap-align: start;
  min-width: 320px;
}
/* Gradient overlay on sides of slider to hint overflow */
.testimonial-slider::before,
.testimonial-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 10;
}
.testimonial-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--background-color) 0%, rgba(247,249,252,0.0) 100%);
}
.testimonial-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--background-color) 0%, rgba(247,249,252,0.0) 100%);
}