/* =========================================================
   Future Developers — Softery-style site
   ========================================================= */

:root {
  /* palette */
  --bg-dark: #0c0a1a;
  --bg-alt: #15122b;
  --bg: var(--bg-dark);
  --bg-2: #110e24;
  --bg-3: #161131;
  --surface: #1a1438;
  --surface-2: #221a46;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #efeaff;
  --muted: #9a8fc7;
  --muted-2: #7a6ea8;

  --blue-light: #0ea5e9;
  --blue-light-2: #38bdf8;
  --blue-dark: #1e3a8a;
  --blue-mid: #2563eb;

  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #2563eb 60%, #1e3a8a 100%);
  --grad-primary-r: linear-gradient(135deg, #1e3a8a 0%, #2563eb 40%, #0ea5e9 100%);
  --grad-soft: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.18),
    rgba(30, 58, 138, 0.08)
  );

  --shadow-glow: 0 20px 60px -20px rgba(14, 165, 233, 0.5);
  --shadow-card: 0 20px 40px -20px rgba(0, 0, 0, 0.6);

  /* sizing */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --container: 1180px;

  /* type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  /* Offset in-page anchors (#about, #faq, …) below the sticky header */
  scroll-padding-top: 5.5rem;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Faint overall grid */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* =============== BUTTONS =============== */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--h);
  padding: 0 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  --h: 38px;
  padding: 0 1.1rem;
  font-size: 0.85rem;
}

.btn-primary {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px -20px rgba(14, 165, 233, 0.7);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  border-color: var(--blue-light);
  color: #fff;
  background: rgba(14, 165, 233, 0.1);
}

/* =============== CHIP / SECTION HEAD =============== */
.chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light-2);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.section-head {
  margin-bottom: 3.5rem;
}
.section-head.center {
  text-align: center;
}
.section-head.center .chip {
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
}

.section {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}
.section > .container {
  position: relative;
  z-index: 2;
}

/* =============== SECTION DIVIDERS =============== */
.section-alt {
  background-color: var(--bg-alt);
  z-index: 2;
}
.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.section-alt::before {
  top: -119px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%2315122b' d='M0,60 C360,120 1080,0 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
}
.section-alt::after {
  bottom: -119px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%2315122b' d='M0,60 C360,0 1080,120 1440,60 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
}

/* =============== DECOR =============== */
.decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}
.decor-top-right {
  top: 40px;
  right: 3%;
}
.decor-bottom-left {
  bottom: 40px;
  left: 3%;
}
.decor-bottom-right {
  bottom: 60px;
  right: 6%;
}
.decor-left {
  left: 3%;
  top: 35%;
}
.decor-right {
  right: 3%;
  top: 35%;
}

.x-mark {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(45deg, transparent 45%, var(--blue-light) 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--blue-light) 45% 55%, transparent 55%);
}

.dot-grid,
.dot-grid-sm {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.25) 1.5px,
    transparent 1.5px
  );
  background-size: 14px 14px;
}
.dot-grid {
  width: 120px;
  height: 90px;
}
.dot-grid-sm {
  width: 80px;
  height: 60px;
  background-size: 10px 10px;
}

.crescent,
.crescent-sm {
  border-radius: 50%;
  background: transparent;
  box-shadow: -12px 6px 0 -2px var(--blue-mid);
}
.crescent {
  width: 40px;
  height: 40px;
}
.crescent-sm {
  width: 24px;
  height: 24px;
  box-shadow: -7px 4px 0 -1px var(--blue-mid);
}

/* =============== HEADER / NAV =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 10, 26, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.brand-name {
  letter-spacing: -0.01em;
}
.brand-name span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.4rem 0.5rem;
}
.lang:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(12, 10, 26, 0.95);
}
.mobile-nav a {
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--muted);
}
.mobile-nav a:hover {
  color: #fff;
}

body.nav-open .mobile-nav {
  display: flex;
}

/* =============== HERO =============== */
.hero {
  position: relative;
  padding: 8rem 0 10rem;
  overflow: hidden;
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6; /* Adjust opacity to make text readable */
}

.hero-blob {
  position: absolute;
  top: -200px;
  left: -150px;
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, #0ea5e9 0%, #1e3a8a 100%);
  border-radius: 50%;
  opacity: 0.85;
  filter: blur(10px);
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite;
  z-index: 0;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 1;
}

.hero-copy h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.brand-highlight {
  background: linear-gradient(135deg, #fff 0%, #ffd0e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 52ch;
  margin-bottom: 4rem;
}

.hero-lede .hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

/* laptop */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-robot {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.laptop-screen {
  aspect-ratio: 16 / 10;
  padding: 14px;
  background: #22183e;
  border: 1px solid #3a2a5e;
  border-radius: 14px 14px 4px 4px;
  position: relative;
}
.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #2a1f4d 0%, #140d29 100%);
  border-radius: 0 0 16px 16px;
  margin: 0 -20px;
  position: relative;
}
.laptop-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: #0c0a1a;
  border-radius: 0 0 6px 6px;
}

.dashboard {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0f0c22 0%, #1a1138 100%);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dash-dot.r {
  background: #ff5d5d;
}
.dash-dot.y {
  background: #ffbf3d;
}
.dash-dot.g {
  background: #3dff8e;
}

.dash-body {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.dash-side {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.line.w70 { width: 70%; background: var(--grad-primary); }
.line.w50 { width: 50%; }
.line.w60 { width: 60%; }
.line.w40 { width: 40%; }
.line.w55 { width: 55%; }

.dash-main {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kpi-row {
  display: flex;
  gap: 10px;
}
.kpi {
  flex: 1;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
}
.kpi-label {
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kpi-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.chart {
  width: 100%;
  flex: 1;
  min-height: 60px;
}

.bar-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 34px;
}
.bar-row span {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 2px;
  opacity: 0.85;
}

/* =============== SERVICES =============== */
.services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.service-card:hover {
  transform: translateX(6px);
  border-color: rgba(14, 165, 233, 0.4);
  background: linear-gradient(
    180deg,
    rgba(14, 165, 233, 0.08),
    rgba(255, 255, 255, 0)
  );
}

.service-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.service-photo {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--bg-alt);
  isolation: isolate;
}

/* Feather edges so the video’s baked-in backdrop meets the section color smoothly */
.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse 94% 96% at 50% 48%,
    transparent 0%,
    transparent 40%,
    rgba(21, 18, 43, 0.45) 68%,
    var(--bg-alt) 100%
  );
  /* Extra fade on sides where rounded rect meets section */
  box-shadow: inset 0 0 48px 20px var(--bg-alt);
}

.service-photo img,
.service-photo video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
}

/* =============== USEFUL FOR =============== */
.useful-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.useful-chart {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.radar {
  width: 100%;
  height: auto;
  display: block;
}

.stat-pill {
  position: absolute;
  top: -24px;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  background: #fff;
  border-radius: 999px;
  color: var(--bg);
  box-shadow: var(--shadow-card);
}
.stat-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}
.stat-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.1;
  color: #2a1f4d;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.chart-stats > div {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.chart-stats strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.chart-stats span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Useful Chart Animations --- */
.useful-chart .radar-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.useful-chart.in-view .radar-line {
  stroke-dashoffset: 0;
}

.useful-chart .radar-fill {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out 0.8s, transform 1.2s ease-out 0.8s;
}
.useful-chart.in-view .radar-fill {
  opacity: 1;
  transform: translateY(0);
}

.useful-chart .radar-points circle {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.useful-chart.in-view .radar-points circle:nth-child(1) { transition-delay: 0.6s; opacity: 1; transform: scale(1); }
.useful-chart.in-view .radar-points circle:nth-child(2) { transition-delay: 1.0s; opacity: 1; transform: scale(1); }
.useful-chart.in-view .radar-points circle:nth-child(3) { transition-delay: 1.3s; opacity: 1; transform: scale(1); }

.useful-chart .stat-pill {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s;
}
.useful-chart.in-view .stat-pill {
  opacity: 1;
  transform: translateY(0);
}

.useful-chart .chart-stats div {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease-out;
}
.useful-chart.in-view .chart-stats div:nth-child(1) { transition-delay: 1.4s; opacity: 1; transform: translateY(0); }
.useful-chart.in-view .chart-stats div:nth-child(2) { transition-delay: 1.6s; opacity: 1; transform: translateY(0); }
.useful-chart.in-view .chart-stats div:nth-child(3) { transition-delay: 1.8s; opacity: 1; transform: translateY(0); }

.useful-copy h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  margin: 0.75rem 0 1.5rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--text);
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============== TESTIMONIALS =============== */
.testimonial-stage {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orbit-avatar {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  animation: bob 5s ease-in-out infinite;
}
.orbit-avatar.a1 { top: 0; left: 8%; width: 60px; height: 60px; }
.orbit-avatar.a2 { top: 10%; right: 6%; width: 64px; height: 64px; animation-delay: -1s; }
.orbit-avatar.a3 { top: 55%; left: -2%; width: 48px; height: 48px; animation-delay: -2s; }
.orbit-avatar.a4 { top: 48%; right: 0%; width: 54px; height: 54px; animation-delay: -3s; }
.orbit-avatar.a5 { bottom: 8%; left: 15%; width: 44px; height: 44px; animation-delay: -1.5s; }
.orbit-avatar.a6 { bottom: 2%; right: 14%; width: 50px; height: 50px; animation-delay: -2.5s; }

@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.quote-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 2.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.quote-card.fade {
  opacity: 0;
  transform: translateY(8px);
}

.quote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.quote::before,
.quote::after {
  content: "\201C";
  color: var(--blue-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 0.25rem;
}
.quote::after {
  content: "\201D";
  margin-left: 0.25rem;
  margin-right: 0;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: left;
}
.quote-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote-author strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}
.quote-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, width 0.2s ease;
}
.dots button[aria-selected="true"] {
  width: 22px;
  border-radius: 999px;
  background: var(--grad-primary);
}

/* =============== TECH STACK =============== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tech-item:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.2);
}
.tech-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.tech-item span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* =============== PORTFOLIO =============== */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  min-width: 0;
}
.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  min-width: 0;
}
.project-card.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.project-card.reverse .project-visual {
  order: 2;
}
.project-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
  min-width: 0;
}
.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  pointer-events: none;
}
.project-visual img,
.project-visual video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-visual img,
.project-card:hover .project-visual video {
  transform: scale(1.03);
}
.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-info h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  line-height: 1.2;
}
.project-info p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* =============== FAQ =============== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  text-align: left;
  transition: background 0.2s ease;
}
.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}
.faq-icon {
  transition: transform 0.3s ease;
  color: var(--blue-light);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}
.faq-answer p {
  padding: 0 1.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============== FOOTER =============== */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.06));
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-links a:hover {
  color: #fff;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.socials a:hover {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
}

.copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* =============== SCROLL REVEAL =============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px) {
  .services-grid,
  .useful-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
  }
  .service-photo {
    max-width: 260px;
  }
  
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .project-card, .project-card.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .project-card.reverse .project-visual {
    order: -1;
  }

  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav .lang,
  .nav .btn-sm {
    display: none;
  }
  
  
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }
  .hero {
    padding: 7rem 0 9rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 10, 26, 0.95) 0%, rgba(12, 10, 26, 0.4) 100%);
    z-index: 0;
    pointer-events: none;
  }
  .hero-video-bg {
    object-position: 75% center;
    opacity: 0.4;
  }
  .hero-blob {
    display: none;
  }
  .section-head {
    margin-bottom: 2.5rem;
  }
  .timer {
    gap: 0.5rem;
  }
  .colon {
    display: none;
  }
  .digit-block {
    padding: 0.9rem 1rem;
    min-width: 70px;
  }
  .service-card {
    padding: 1.25rem;
  }
  .quote-card {
    padding: 1.5rem;
  }
  .orbit-avatar {
    display: none;
  }
  .orbit-avatar.a1,
  .orbit-avatar.a2,
  .orbit-avatar.a5,
  .orbit-avatar.a6 {
    display: block;
    width: 40px;
    height: 40px;
  }

  .project-visual img,
  .project-visual video {
    object-position: left center;
  }
}
