/* ==========================================================================
   HOME PAGE STYLES
   ========================================================================== */

.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 65%);
  top: -220px;
  right: -180px;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: var(--fs-hero);
  margin: 20px 0 24px;
}

.hero h1 .rotating-word {
  color: var(--color-primary);
  display: inline-block;
}

.hero-lede {
  font-size: 19px;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual-frame {
  border-radius: 24px;
  border: 1px solid var(--color-border);
  background: linear-gradient(160deg, var(--color-card), #161e2c);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.hero-visual-frame img {
  border-radius: 18px;
  width: 100%;
}

.hero-float-card {
  position: absolute;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-heading);
}

.hero-float-card--top {
  top: 20px;
  left: -30px;
}

.hero-float-card--bottom {
  bottom: 20px;
  right: -20px;
}

.hero-float-card i { color: var(--color-primary); font-size: 20px; }

/* ---- Stats strip ---- */
.stats-strip { margin-top: 20px; }

/* ---- Service preview cards ---- */
.service-preview-card .icon-tile { margin-bottom: 24px; transition: transform 0.35s ease, background 0.35s ease; }
.service-preview-card:hover .icon-tile { transform: rotate(-6deg) scale(1.08); background: rgba(249, 115, 22, 0.22); }
.service-preview-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-preview-card p { font-size: 15.5px; margin-bottom: 0; }
.service-preview-card .learn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-accent);
}

/* ---- Project preview cards ---- */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover { transform: translateY(-6px); border-color: rgba(249, 115, 22, 0.35); }

.project-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #263143, #1a2332);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 42px;
  position: relative;
}

.project-thumb .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 12px;
  font-family: var(--font-heading);
  padding: 5px 12px;
  border-radius: 999px;
}

.project-card-body { padding: 26px; }
.project-card-body h3 { font-size: 20px; margin-bottom: 8px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.project-tech span {
  font-size: 12px;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #111827;
}

.testimonial-person-name { color: var(--color-heading); font-weight: 700; font-size: 15px; }
/* .testimonial-person-role was for a job-title line under each name; unused
   since the testimonials don't currently show one. Add the markup back in
   index.html's testimonial-person block and this rule will pick it up. */

@media (max-width: 767.98px) {
  .hero-float-card { display: none; }
}

/* ---- Hero entrance animation (runs on load, not scroll) ---- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-in {
  opacity: 0;
  animation: heroRise 0.7s ease forwards;
}

.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.16s; }
.hero-in-3 { animation-delay: 0.28s; }
.hero-in-4 { animation-delay: 0.4s; }
.hero-in-5 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; opacity: 1; }
}

/* ---- Floating stat cards: gentle ambient drift ---- */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-float { animation: cardFloat 4.5s ease-in-out infinite; }
.hero-float--delay { animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .hero-float { animation: none; }
}

/* ---- Process steps ---- */
.process-step { padding: 8px 4px; height: 100%; }

.process-step-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
  line-height: 1;
  margin-bottom: 18px;
}

.process-step h3 { font-size: 19px; margin-bottom: 10px; }
.process-step p { font-size: 15px; margin-bottom: 0; }

/* ---- Tools marquee ---- */
.tools-marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tools-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marqueeScroll 28s linear infinite;
}

.tools-marquee:hover .tools-track { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 999px;
}

.tool-chip i { color: var(--color-primary); font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .tools-track { animation: none; }
}
