/* ═══════════════════════════════════════════════════════
   FAHA DIGITAL — SHARED DESIGN SYSTEM
   Inspired by adsorb.io aesthetic
   Font: Sora (headings) + Inter (body) + JetBrains Mono (data)
   Palette: OLED dark (#0a0a0a) + Blue→Purple gradient accent
═══════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: pageEntrance 0.6s ease forwards;
}

@keyframes pageEntrance {
  to { opacity: 1; }
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img { max-width: 100%; display: block; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  font-size: 16px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-allcaps {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.text-secondary { color: #8a8a8a; }
.text-muted { color: #555; }
.text-center { text-align: center; }

.mono {
  font-family: "JetBrains Mono", monospace;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

.container-medium {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

.container-small {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* ─── BUTTON COMPONENT ─── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 28px;
  background-color: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-icon-default,
.btn-icon-hover {
  position: absolute;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-hover {
  opacity: 0;
  transform: translate(-4px, 4px);
}

.btn-cta:hover .btn-icon-default {
  opacity: 0;
  transform: translate(4px, -4px);
}

.btn-cta:hover .btn-icon-hover {
  opacity: 1;
  transform: translate(0, 0);
}

.btn-cta.is-light {
  background-color: #e8e8e8;
  color: #0a0a0a;
  border-color: #d0d0d0;
}

.btn-cta.is-light:hover {
  background-color: #fff;
}

.btn-cta.is-accent {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: transparent;
}

.btn-cta.is-accent:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8a8a8a;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  margin-bottom: 24px;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  display: block;
}

.nav-logo .dot { color: #3b82f6; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #8a8a8a;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger-line {
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: #0a0a0a;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-link {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

/* ─── HERO (reusable) ─── */
.hero-section {
  padding-top: 200px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-family: "Sora", sans-serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-body {
  font-size: 16px;
  color: #8a8a8a;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── SECTION DIVIDERS ─── */
.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* ─── MARQUEE BAND ─── */
.marquee-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 28px 0;
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #333;
  white-space: nowrap;
  padding: 0 24px;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── CARDS ─── */
.card {
  background: #141416;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-light {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #3b82f6;
}

/* ─── STATS ─── */
.stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #8a8a8a;
}

/* ─── LIGHT SECTIONS ─── */
.section-light {
  background: #f5f5f5;
  color: #1a1a1a;
}

.section-light h2,
.section-light h3,
.section-light h4 {
  color: #1a1a1a;
}

.section-light p {
  color: #555;
}

/* ─── FOOTER ─── */
.footer {
  padding: 120px 0 0;
}

.footer-cta {
  text-align: center;
  padding-bottom: 100px;
}

.footer-heading {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
}

.footer-subtext {
  font-size: 16px;
  color: #8a8a8a;
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.footer-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-or {
  font-size: 14px;
  color: #555;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.footer-nav-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  display: block;
}

.footer-logo .dot { color: #3b82f6; }

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-col-title {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 14px;
  color: #555;
}

.footer-col-links a:hover { color: #fff; }

.footer-copyright {
  text-align: center;
  padding: 32px 0;
  font-size: 12px;
  color: #333;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(4rem);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-actions .btn-cta.nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .footer-nav-area { flex-direction: column; gap: 48px; }
  .footer-columns { gap: 48px; }
}

@media (max-width: 767px) {
  .container, .container-medium, .container-small { padding-left: 24px !important; padding-right: 24px !important; }
  .hero-section { padding-top: 150px; padding-bottom: 60px; }
  .footer-columns { flex-direction: column; gap: 32px; }
  .footer-heading { font-size: clamp(36px, 10vw, 64px); }
}

@media (max-width: 479px) {
  .hero-section h1 { font-size: 38px; }
  .hero-buttons, .footer-buttons { flex-direction: column; }
}

/* ─── NEW OVERHAUL COMPONENTS ─── */

/* Testimonials Carousel / Cards */
.testimonials-section {
  padding: 100px 0;
  overflow: hidden;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #141416;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  color: #d1d5db;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-metric {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
  margin-top: auto;
}

/* Scroll Animated Process */
.process-section {
  padding: 100px 0;
}

.process-container {
  display: flex;
  gap: 60px;
}

.process-sticky-text {
  flex: 1;
  position: sticky;
  top: 150px;
  height: max-content;
}

.process-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-bottom: 50vh;
}

.process-step {
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.process-step.active {
  opacity: 1;
}

.process-step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  color: #8b5cf6;
  margin-bottom: 12px;
}

.process-step-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.process-step-desc {
  font-size: 16px;
  color: #9ca3af;
}

/* Results Graph Cards */
.graph-card {
  background: #141416;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.graph-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.graph-card-title {
  font-size: 20px;
  font-weight: 600;
}

.graph-card-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.graph-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.graph-stat-item {
  display: flex;
  flex-direction: column;
}

.graph-stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.graph-stat-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.graph-visualization {
  height: 120px;
  width: 100%;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}

.graph-bar {
  position: absolute;
  bottom: 0;
  width: 15%;
  background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.1));
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: 0;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.graph-bar:nth-child(1) { left: 5%; }
.graph-bar:nth-child(2) { left: 25%; }
.graph-bar:nth-child(3) { left: 45%; }
.graph-bar:nth-child(4) { left: 65%; }
.graph-bar:nth-child(5) { left: 85%; }

@media (max-width: 991px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .process-container { flex-direction: column; gap: 40px; }
  .process-sticky-text { position: relative; top: 0; }
  .process-steps { gap: 60px; padding-bottom: 0; }
  .process-step { opacity: 1; }
}

/* Expanded Grids */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  background: #141416;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}
.industry-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}
.industry-icon {
  color: #3b82f6;
  margin-bottom: 16px;
}
.industry-title {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}
.industry-desc {
  font-size: 14px;
  color: #888;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}
@media (max-width: 576px) {
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

html {
  scroll-behavior: smooth;
}

.square-dot {
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  background-color: #3b82f6;
  margin-left: 0.05em;
}


/* Mobile Enhancements */
@media (max-width: 991px) {
  .service-features {
    grid-template-columns: 1fr !important;
  }
  .service-row {
    flex-direction: column !important;
    gap: 40px !important;
    padding-top: 40px !important;
    margin-bottom: 40px !important;
  }
  .service-content {
    width: 100% !important;
    min-width: 100% !important;
  }
  .service-visual {
    display: none !important;
  }
  .service-block {
    grid-template-columns: 1fr !important;
    padding: 60px 0 !important;
    gap: 40px !important;
  }
}

@media (min-width: 992px) {
  .services-grid .card:last-child:nth-child(3n + 1) {
    grid-column: 2 / 3;
  }
}

@media (max-width: 767px) {
  .reveal {
    transform: translateY(2rem) !important;
  }
}
