/* ============================================
   HOME PAGE (index.php) — page-specific styles
   Only rules unique to the homepage live here.
   Shared styles are in:
     variables.css, base.css, animations.css,
     components.css, site-shell.css
   ============================================ */

/* ----------------------------------------
   BODY BACKGROUND & DECORATIVE LAYERS
   ---------------------------------------- */
body {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.45), transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.35), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(6, 182, 212, 0.4), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.35), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.25), transparent 60%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: bg-flow 30s ease infinite;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.2), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.2), transparent 45%);
  animation: gradient-shift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ----------------------------------------
   MAIN CONTENT Z-INDEX
   ---------------------------------------- */
main {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------
   CONTAINER — large-viewport overrides
   ---------------------------------------- */
@media (min-width: 1600px) {
  .container { width: min(1600px, 92%); margin-inline: auto; }
}
@media (min-width: 2000px) {
  .container { width: min(1800px, 90%); margin-inline: auto; }
}

/* ----------------------------------------
   HERO — two-column grid layout
   ---------------------------------------- */
.hero { padding: clamp(72px, 10vh, 120px) 0 64px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); }

.h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  background: linear-gradient(135deg, var(--c-text), var(--c-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-in-up 0.8s ease-out;
}

.sub {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--c-text-secondary);
  margin: 0 0 24px;
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

/* ----------------------------------------
   BADGE (homepage variant)
   ---------------------------------------- */
.badge {
  display: inline-block;
  font-size: .85rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 212, 255, 0.15));
  color: var(--c-purple);
  border: 2px solid rgba(124, 58, 237, .3);
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 700;
  animation: scale-in 0.6s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----------------------------------------
   MOCK / PREVIEW (hero media)
   ---------------------------------------- */
.mock {
  aspect-ratio: 16/10;
  border-radius: 20px;
  border: 3px solid rgba(124, 58, 237, .25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 212, 255, 0.1));
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(124, 58, 237, .25);
  animation: scale-in 0.8s ease-out 0.3s both;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock img, .mock video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.mock video {
  border-radius: 16px;
}

/* Decorative blurred dots */
.dot {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: float 10s ease-in-out infinite;
}
.dot.tl { left: -50px; top: -50px; background: var(--c-purple); animation-delay: 0s; }
.dot.br { right: -70px; bottom: -70px; background: var(--c-teal); animation-delay: 1.5s; }

/* ----------------------------------------
   GLASS — homepage variant
   ---------------------------------------- */
.glass {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px) saturate(1.3);
}

/* ----------------------------------------
   SECTION padding & titles
   ---------------------------------------- */
section { padding: 72px 0; }

.sec-title {
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--c-text);
}
.sec-sub {
  color: var(--c-text-secondary);
  margin: 0 0 28px;
}

/* ----------------------------------------
   CARDS grid (4-column, homepage)
   ---------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-automation { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 32px;
  border-radius: 20px;
  border: 2px solid rgba(124, 58, 237, .2);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(15px) saturate(1.3);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, .1);
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(124, 58, 237, .25);
  border-color: rgba(124, 58, 237, .5);
  background: rgba(255, 255, 255, .98);
}
.card h3 { margin: .8rem 0 .4rem; font-size: 1.25rem; color: var(--c-text); font-weight: 800; }
.card p  { color: var(--c-text-secondary); font-size: 1rem; margin: 0; line-height: 1.6; }

/* ----------------------------------------
   ICON (.i) — homepage card icon
   ---------------------------------------- */
.i {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--c-purple) 0%, var(--c-teal) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.6rem;
  box-shadow:
    0 10px 30px rgba(124, 58, 237, .4),
    0 2px 8px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -2px 0 rgba(0, 0, 0, .2);
  transition: all .3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .2);
}
.i::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .15) 0%, transparent 50%);
  pointer-events: none;
}
.card:hover .i {
  transform: scale(1.1) rotate(5deg) translateY(-2px);
  box-shadow:
    0 15px 40px rgba(124, 58, 237, .5),
    0 4px 12px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -2px 0 rgba(0, 0, 0, .3);
}

/* ----------------------------------------
   STEPS (3-column grid)
   ---------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  padding: 36px;
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(124, 58, 237, .2);
  border-radius: 20px;
  backdrop-filter: blur(15px) saturate(1.3);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, .1);
}
.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(124, 58, 237, .25);
  border-color: rgba(124, 58, 237, .5);
  background: rgba(255, 255, 255, .98);
}
.step b { display: block; margin-bottom: 12px; font-size: 1.3rem; color: var(--c-purple); font-weight: 800; }
.step p { color: var(--c-text-secondary); margin: 0; font-size: 1.05rem; line-height: 1.6; }

/* ----------------------------------------
   BENEFITS (2-column grid list)
   ---------------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; }
.benefits li {
  background: rgba(255, 255, 255, .92);
  padding: 18px 24px;
  border-radius: 14px;
  border: 2px solid rgba(124, 58, 237, .2);
  color: var(--c-text);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(124, 58, 237, .08);
}
.benefits li:hover {
  transform: translateX(8px);
  border-color: rgba(124, 58, 237, .5);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 25px rgba(124, 58, 237, .2);
}

/* ----------------------------------------
   PROJECTS CAROUSEL
   ---------------------------------------- */
.projects-carousel {
  position: relative;
  padding: 0 60px;
  margin-bottom: 60px;
  margin-top: 20px;
}
.projects-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 30px 40px 30px;
}
.projects-carousel-track::-webkit-scrollbar { display: none; }

.project-card {
  min-width: calc(50% - 12px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(124, 58, 237, .25);
  background: var(--glass);
  box-shadow: var(--shadow);
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(124, 58, 237, .5);
}

.project-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 24px 24px 0 0;
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .5s ease;
  border-radius: 16px;
}
.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 28px 32px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(15px);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.project-info h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--c-text);
  font-weight: 800;
  line-height: 1.3;
}
.project-info p {
  color: var(--c-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.project-type {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-purple), var(--c-teal));
  color: #fff;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-purple), var(--c-teal));
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(124, 58, 237, .4);
}
.carousel-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(124, 58, 237, .6);
}
.carousel-nav-btn.prev { left: 0; }
.carousel-nav-btn.next { right: 0; }

/* ----------------------------------------
   TESTIMONIALS (3-column grid)
   ---------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

blockquote {
  margin: 0;
  padding: 32px;
  background: rgba(255, 255, 255, .92);
  border: 2px solid rgba(124, 58, 237, .2);
  border-radius: 20px;
  font-style: italic;
  color: var(--c-text-secondary);
  backdrop-filter: blur(15px) saturate(1.3);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, .1);
  font-size: 1.05rem;
  line-height: 1.7;
}
blockquote:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(124, 58, 237, .25);
  border-color: rgba(124, 58, 237, .5);
  background: rgba(255, 255, 255, .98);
}
blockquote footer {
  margin-top: 16px;
  color: var(--c-text);
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
}

/* ----------------------------------------
   FORM (homepage — element selectors)
   ---------------------------------------- */
form { display: grid; gap: 16px; max-width: 700px; padding: 36px; }

input, textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid rgba(124, 58, 237, .3);
  background: rgba(255, 255, 255, .95);
  color: var(--c-text);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--c-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .15);
  background: #fff;
  transform: translateY(-2px);
}
input::placeholder, textarea::placeholder {
  color: var(--c-text-tertiary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-hint { font-size: .95rem; color: var(--c-text-secondary); line-height: 1.5; }
.f-hint a { color: var(--c-purple); text-decoration: underline; font-weight: 600; }
.form-message { margin-top: 16px; padding: 16px; border-radius: 12px; font-size: .9375rem; display: none; }
.form-message.visible { display: block; }
.form-message.success { background: #d1fae5; border: 2px solid #10b981; color: #065f46; }
.form-message.error { background: #fee2e2; border: 2px solid #ef4444; color: #991b1b; }

/* ----------------------------------------
   FOOTER (homepage — element selector)
   ---------------------------------------- */
footer {
  padding: 60px 0;
  border-top: 3px solid rgba(124, 58, 237, .2);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(20px);
}
footer p { color: var(--c-text-secondary); margin: 10px 0; font-size: 1rem; }
footer a { color: var(--c-purple); font-weight: 600; transition: all .3s ease; }
footer a:hover { color: var(--c-purple-dark); transform: translateX(2px); display: inline-block; }

/* ----------------------------------------
   SOCIAL LINKS
   ---------------------------------------- */
.social-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(124, 58, 237, .1);
  border: 2px solid rgba(124, 58, 237, .3);
  border-radius: 12px;
  transition: all .3s ease;
  font-weight: 700;
}
.social-links a:hover {
  background: var(--c-purple);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, .3);
}

/* ----------------------------------------
   RECAPTCHA BADGE HIDE
   ---------------------------------------- */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ============================================
   BLOG POSTS CAROUSEL
   ============================================ */
#blog-posts {
  --c-purple-light: #a78bfa;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(124, 58, 237, 0.25);
  --glass-shadow: 0 4px 30px rgba(124, 58, 237, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 20px;
}
.blog-posts-carousel {
  position: relative;
  padding: 0 60px;
  margin-bottom: 20px;
  margin-top: 20px;
}
.blog-posts-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 30px 40px 30px;
}
.blog-posts-carousel-track::-webkit-scrollbar { display: none; }

.blog-posts-carousel .post-card {
  min-width: calc(33.333% - 16px);
  scroll-snap-align: start;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-posts-carousel .post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.25);
  border-color: var(--c-purple);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.post-card-image {
  position: relative;
  width: 100%;
  padding-top: 52.5%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-purple-light), var(--c-teal));
}
.post-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.post-card:hover .post-card-image img {
  transform: scale(1.05);
}
.post-card-category {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  background: linear-gradient(135deg, var(--c-purple), var(--c-purple-dark));
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.post-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover .post-card-title {
  color: var(--c-purple);
}
.post-card-excerpt {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}
.reading-time::before {
  content: '\1F4D6';
  margin-right: 6px;
}

/* ============================================
   FAQS (homepage container)
   ============================================ */
.faqs-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.faq-item {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:hover {
  border-color: rgba(124, 58, 237, .4);
}
.faq-item details {
  cursor: pointer;
}
.faq-item summary {
  padding: 24px 28px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-purple);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: all .3s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-purple);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item summary:hover {
  color: var(--c-purple-dark);
}
.faq-item details[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 28px 24px;
  color: var(--c-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.faq-answer p {
  margin-bottom: 12px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer a {
  color: var(--c-purple);
  text-decoration: underline;
  font-weight: 600;
}
.faq-answer a:hover {
  color: var(--c-purple-dark);
}

/* ============================================
   RESPONSIVE — 980px
   ============================================ */
@media (max-width: 980px) {
  .hero .grid { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .projects-carousel { padding: 0 40px; }
  .project-card { min-width: 100%; }
  .project-card-image { height: 220px; padding: 15px; }
  .projects-carousel-track { padding: 20px 25px 40px 25px; }
  .project-info { padding: 20px 24px; }
  .carousel-nav-btn { width: 40px; height: 40px; font-size: 1.2rem; }

  /* Reduce vertical spacing */
  .hero { padding: 48px 0 40px; }
  section { padding: 48px 0; }
  .sec-title { margin-bottom: 12px; }
  .sec-sub { margin-bottom: 32px; }
  .cards { gap: 16px; grid-template-columns: repeat(2, 1fr); }
  .cards-automation { grid-template-columns: repeat(2, 1fr); }

  /* Blog posts carousel */
  .blog-posts-carousel { padding: 0 40px; }
  .blog-posts-carousel .post-card { min-width: calc(50% - 12px); }
  .blog-posts-carousel-track { padding: 20px 25px 40px 25px; }
  .post-card-content { padding: 20px 24px; }
}

/* ============================================
   RESPONSIVE — 640px
   ============================================ */
@media (max-width: 640px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  body {
    padding-top: 65px;
  }

  /* Disable gradient animations on mobile */
  body, body::before {
    animation: none !important;
    background-attachment: scroll;
  }

  /* Maximize space usage */
  .container { width: 96%; max-width: 100%; }

  /* All cards single column on small mobile */
  .cards { grid-template-columns: 1fr !important; }
  .cards-automation { grid-template-columns: 1fr !important; }

  /* Testimonials as horizontal carousel on mobile */
  #testimonios .container {
    overflow: hidden;
  }
  .testimonials {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 0 20px 0;
    margin: 0 calc(-1 * (100vw - 96%) / 2);
    padding-left: calc((100vw - 96%) / 2);
    padding-right: calc((100vw - 96%) / 2);
  }
  .testimonials blockquote {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  /* Scrollbar styling for testimonials */
  .testimonials::-webkit-scrollbar { height: 6px; }
  .testimonials::-webkit-scrollbar-track {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
  }
  .testimonials::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.4);
    border-radius: 10px;
  }

  /* Further reduce spacing */
  .hero { padding: 36px 0 32px; }
  section { padding: 40px 0; }
  .sec-title { font-size: 26px !important; margin-bottom: 10px; }
  .sec-sub { font-size: 15px !important; margin-bottom: 28px; }

  .h1 { font-size: 32px !important; margin-bottom: 12px; }
  .sub { font-size: 16px !important; margin-bottom: 20px; }
  .badge { font-size: 0.8rem; padding: 6px 14px; margin-bottom: 14px; }

  .btn { padding: 0.85rem 1.3rem; font-size: 0.95rem; }
  .card { padding: 20px; }
  .card h3 { font-size: 1.15rem; margin-bottom: 8px; }
  .card p { font-size: 0.95rem; }
  .card .i { font-size: 2rem; margin-bottom: 12px; }

  .step { padding: 20px; }
  .step b { font-size: 1.05rem; }
  .step p { font-size: 0.95rem; }

  blockquote { padding: 18px; font-size: 0.95rem; }
  form { padding: 20px; }
  form input, form textarea { font-size: 15px; padding: 12px 16px; }

  .projects-carousel { padding: 0 24px; }
  .projects-carousel-track { padding: 16px 16px 36px 16px; }
  .project-card-image { height: 200px; padding: 12px; }
  .project-info { padding: 18px 20px; }
  .project-info h3 { font-size: 1.2rem; }
  .carousel-nav-btn { width: 36px; height: 36px; font-size: 1rem; }

  footer { padding: 36px 0 24px; }
  footer .grid { gap: 32px; text-align: center; }
  footer .grid > div { text-align: center; }
  .social-links { flex-direction: row; gap: 12px; justify-content: center; }

  /* CREATIVE by SEOagil — smaller text */
  .creative-title { font-size: 1.25rem !important; }

  /* Show testimonials hint only on mobile */
  .testimonials-hint { display: block !important; }

  /* Blog posts carousel */
  .blog-posts-carousel { padding: 0 24px; }
  .blog-posts-carousel-track { padding: 16px 16px 36px 16px; }
  .blog-posts-carousel .post-card { min-width: 100%; }
  .post-card-content { padding: 18px 20px; }
  .post-card-title { font-size: 1.1rem; }
  .post-card-excerpt { font-size: 0.9rem; }

  /* FAQ responsive */
  .faq-item summary {
    padding: 20px 24px;
    font-size: 1rem;
  }
  .faq-item summary::after {
    font-size: 1.5rem;
  }
  .faq-answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
