﻿/* ============================================================
   ADAMS OMONDI — HOMEPAGE
   ============================================================ */

/* ================= HERO ================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--gradient-hero);
  overflow: hidden;
  isolation: isolate;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.hero__content { max-width: 640px; }

.hero__title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
}
.hero__title .gradient-text { display: inline-block; }

.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__lead strong { color: var(--text-primary); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}
.hero__stats > div { min-width: 0; }
.hero__stats dt {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.hero__stats dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

/* Visual */
.hero__visual { position: relative; }

.hero__scene-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0,212,255,0.10), transparent 60%),
    radial-gradient(120% 90% at 50% 100%, rgba(124,58,237,0.12), transparent 60%),
    var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__scene-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 78%);
  pointer-events: none;
}
[data-theme="light"] .hero__scene-wrap::after {
  background-image:
    linear-gradient(to right, rgba(10,14,26,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,14,26,0.05) 1px, transparent 1px);
}

.hero__scene {
  position: absolute;
  inset: 0;
}
.hero__scene canvas { width: 100% !important; height: 100% !important; display: block; }

/* Floating tech chips around the scene */
.hero__chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chip {
  position: absolute;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.chip--a { top: 8%;  left: 6%;  animation-delay: 0s;   }
.chip--b { top: 20%; right: 4%; animation-delay: 0.6s; }
.chip--c { top: 46%; left: 2%;  animation-delay: 1.2s; }
.chip--d { top: 60%; right: 6%; animation-delay: 1.8s; }
.chip--e { bottom: 18%; left: 10%; animation-delay: 2.4s; }
.chip--f { bottom: 6%;  right: 12%; animation-delay: 3s;  }

@media (max-width: 480px) {
  .chip { font-size: 0.7rem; padding: 0.4rem 0.75rem; }
  .chip--a, .chip--c, .chip--e { left: 0; }
  .chip--b, .chip--d, .chip--f { right: 0; }
}

/* ================= TRUST STRIP ================= */
.trust {
  padding-block: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.trust__list li {
  position: relative;
  padding-left: 1rem;
}
.trust__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-primary);
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--brand-primary);
}

/* ================= SERVICE CARD (homepage) ================= */
.service-card {
  position: relative;
  padding: 1.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--glass-hover);
  box-shadow: var(--shadow-md);
}
.service-card__num {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.service-card__icon {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-primary-soft);
  border: 1px solid rgba(0,212,255,0.20);
  color: var(--brand-primary);
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card__title { font-size: 1.05rem; font-weight: 600; margin-top: 0.25rem; }
.service-card__desc  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.service-card__cta {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-card__cta svg { transition: transform var(--dur-base) var(--ease-out); }
.service-card:hover .service-card__cta svg { transform: translateX(4px); }

/* ================= FEATURED WORK SLIDER ================= */
.featured__slider {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  scroll-snap-type: x mandatory;
}
@media (min-width: 700px) {
  .featured__slider { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .featured__slider { grid-template-columns: 1fr 1fr 1fr; }
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  min-height: 340px;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(0,212,255,0.10), rgba(124,58,237,0.10));
  overflow: hidden;
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__badge {
  position: absolute;
  top: 1rem; left: 1rem;
}
.work-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.work-card__title { font-size: 1.05rem; font-weight: 600; }
.work-card__desc  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }
.work-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
}
.work-card__tech span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* ================= PACKAGE CARD ================= */
.pkg-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pkg-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.pkg-card--popular {
  border-color: rgba(0,212,255,0.4);
  background: linear-gradient(180deg, rgba(0,212,255,0.06), transparent 60%), var(--bg-surface);
  box-shadow: 0 20px 60px -20px rgba(0,212,255,0.25);
}
.pkg-card--popular::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: #05070f;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  white-space: nowrap;
}
.pkg-card__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.pkg-card__title { font-size: 1.35rem; font-weight: 600; }
.pkg-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.pkg-card__price small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}
.pkg-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pkg-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}
.pkg-card__features li::before {
  content: '';
  flex: 0 0 6px;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 6px rgba(0,212,255,0.7);
}

/* ================= TESTIMONIAL CARD ================= */
.testimonial {
  padding: 1.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.testimonial__rating { display: flex; gap: 2px; color: #fbbf24; }
.testimonial__rating svg { width: 16px; height: 16px; }
.testimonial__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial__meta strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.testimonial__meta span  { font-size: 0.8rem; color: var(--text-muted); }

/* ================= FINAL CTA ================= */
.cta-final__card {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(0,212,255,0.10), transparent 60%),
    radial-gradient(120% 100% at 50% 100%, rgba(124,58,237,0.14), transparent 60%),
    var(--bg-surface);
  border: 1px solid var(--border-default);
  overflow: hidden;
  isolation: isolate;
}
.cta-final__card > * { position: relative; z-index: 1; }
.cta-final__card .section__header { margin-bottom: 2rem; }
.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ================= SKELETON LOADER ================= */
.skeleton {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}