/* ============================================
   CARI TECH — Section styles
   ============================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--brand-deep);
}
[data-theme="dark"] .logo-mark { color: var(--ink); }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s ease, left 0.2s ease;
}
.site-nav a:hover::after {
  width: 100%; left: 0;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.lang-toggle { width: auto; padding: 0 12px; }
.action-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.header-cta { padding: 10px 18px; font-size: 13px; }
.hamburger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 144px 0 96px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-blob-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -120px; right: -160px;
  opacity: 0.24;
}
.hero-blob-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--brand-mid) 0%, transparent 70%);
  bottom: -200px; left: -180px;
  opacity: 0.16;
}
[data-theme="dark"] .hero-blob-a { opacity: 0.34; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .h-display { text-wrap: balance; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.meta-dot.live {
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.meta-sep {
  width: 1px; height: 14px;
  background: var(--line-strong);
}
.meta-text {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}
.hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero-scroll span {
  width: 3px; height: 8px;
  background: var(--ink-soft);
  border-radius: 2px;
  animation: scroll-bob 1.6s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* Hero — orbital */
.hero-orbital { position: relative; aspect-ratio: 1 / 1; }
.orbital-stage {
  position: relative;
  width: 100%; height: 100%;
}
.orbital-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}
.orbital-blob-a {
  width: 60%; height: 60%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 10%; left: 10%;
  opacity: 0.4;
}
.orbital-blob-b {
  width: 50%; height: 50%;
  background: radial-gradient(circle, #A78BFA 0%, transparent 70%);
  bottom: 5%; right: 5%;
  opacity: 0.25;
}
.orbital-rings {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.orbital-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: float-up 6s ease-in-out infinite;
  background: linear-gradient(160deg, var(--brand-deep), var(--brand-mid));
}
.orbital-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.orbital-card {
  position: absolute;
  background: var(--bg-elev);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  z-index: 2;
}
.orbital-card-1 {
  top: 8%; left: -6%;
  animation: float-up 7s ease-in-out infinite;
}
.orbital-card-1 .oc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.orbital-card-2 {
  top: 50%; right: -8%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  animation: float-up 5s ease-in-out infinite reverse;
}
.orbital-card-2 .oc-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
}
[data-theme="dark"] .orbital-card-2 .oc-num { color: var(--accent); }
.orbital-card-2 .oc-num span { font-size: 14px; color: var(--accent-2); }
.orbital-card-2 .oc-lab { font-size: 11px; color: var(--ink-muted); font-weight: 500; }
.orbital-card-3 {
  bottom: 4%; left: 4%;
  color: var(--accent-2);
  animation: float-up 6.5s ease-in-out infinite;
}
[data-theme="dark"] .orbital-card-3 { color: var(--accent); }

/* Hero — mosaic */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1;
}
.mosaic-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.mosaic-tile-1 { grid-row: 1 / 3; }
.mosaic-tile-1 .placeholder-img { border-radius: 0; }
.mosaic-tile-3 .placeholder-img { border-radius: 0; }
.mosaic-accent {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mt-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.mt-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.mt-lab {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.mosaic-tile-4 {
  background: var(--bg-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
}
.mt-icon-stack {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
}

/* Hero — minimal */
.hero-minimal {
  position: relative;
  aspect-ratio: 4 / 5;
}
.hm-curve {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hm-stack {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.hm-image {
  width: 70%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elev);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}
.hm-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hm-quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-elev);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 320px;
  box-shadow: var(--shadow-sm);
}
.hm-quote svg { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { padding-top: 0; }
.stats-head {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: left;
  padding: 32px;
}
.stat-num {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-suffix {
  font-size: 0.7em;
  color: var(--accent-2);
  font-weight: 700;
}
[data-theme="dark"] .stat-suffix { color: var(--accent); }
.stat-label {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
}
.stat-bar {
  margin-top: 22px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 5 / 6;
}
.about-img-main,
.about-img-sub {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main {
  top: 0; left: 0;
  width: 75%; aspect-ratio: 4 / 5;
}
.about-img-sub {
  bottom: 0; right: 0;
  width: 55%; aspect-ratio: 1 / 1;
  border: 6px solid var(--bg);
}
.about-stat-float {
  position: absolute;
  top: 12%; right: 0;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  color: #fff;
  border-radius: 50%;
  width: 130px; height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: float-up 6s ease-in-out infinite;
}
.afs-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.afs-num span { font-size: 22px; }
.afs-lab {
  font-size: 11px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.about-bullets li svg {
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.12);
  padding: 6px;
  border-radius: 50%;
  box-sizing: content-box;
}
[data-theme="dark"] .about-bullets li svg { color: var(--accent); }
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.services-head .eyebrow { margin-bottom: 14px; display: inline-flex; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: default;
  min-height: 280px;
}
.service-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(6, 182, 212, 0.06));
  color: var(--accent-2);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
[data-theme="dark"] .service-icon { color: var(--accent); }
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.service-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.service-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
.service-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.svc-btn-primary {
  background: var(--brand-deep);
  color: #fff;
}
.svc-btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.svc-btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line-strong);
}
.svc-btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.service-arrow {
  display: none;
}
.portfolio-card { cursor: pointer; }
.nav-admin {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px !important;
  background: var(--bg-soft);
  border-radius: 999px;
  color: var(--ink) !important;
}
.service-arrow {
  align-self: flex-start;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.service-card:hover .service-arrow {
  background: var(--brand-deep);
  color: var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Portfolio ---------- */
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.portfolio-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}
.filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.filter-bar > svg { margin: 0 8px; color: var(--ink-muted); }
.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}
.filter-btn.active {
  background: var(--brand-deep);
  color: #fff;
}
[data-theme="dark"] .filter-btn.active {
  background: var(--accent);
  color: var(--brand-deep);
}
.filter-btn:not(.active):hover {
  color: var(--ink);
  background: var(--bg-soft);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  transition: transform 0.4s ease;
}
.portfolio-card:hover { transform: translateY(-6px); }
.portfolio-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.portfolio-img .placeholder-img { border-radius: 0; }
.portfolio-hover {
  position: absolute;
  inset: 0;
  background: var(--tag-grad, linear-gradient(135deg, var(--brand-deep), var(--brand-mid)));
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-hover { opacity: 1; }
.ph-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin-bottom: auto;
}
.portfolio-hover h3 {
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.portfolio-hover p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin: 0;
}
.ph-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.portfolio-meta {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pm-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pm-cat { font-size: 12px; color: var(--ink-muted); }
.pm-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.portfolio-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-muted);
}
