:root {
  --ring: rgba(17, 24, 39, 0.08);
}

/* --- NAV & BUTONLAR --- */
.navlink { padding: .5rem .75rem; border-radius: .75rem; }
html:not(.dark) .navlink.primary { background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%); color: #fff; }
.dark .navlink.primary { background: #334155; color: #e2e8f0; border: 1px solid rgba(99, 102, 241, 0.2); }

.btn-primary {
  padding: .75rem 1.25rem;
  border-radius: 1rem;
  font-weight: 600;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
html:not(.dark) .btn-primary {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: #fff;
  border: 1px solid rgba(234, 88, 12, 0.3);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}
html:not(.dark) .btn-primary:hover {
  background: linear-gradient(135deg, #b45309 0%, #f97316 100%);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.dark .btn-primary {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.dark .btn-primary:hover {
  background: #334155;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}

/* Cam görünüm: Projelerim dışındaki outline butonlar (İletişime Geç, CV indir vb.) */
.btn-outline {
  padding: .75rem 1.25rem;
  border-radius: 1rem;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html:not(.dark) .btn-outline {
  border: 1px solid rgba(234, 88, 12, 0.35);
  background: rgba(255, 255, 255, 0.5);
  color: #c2410c;
}
html:not(.dark) .btn-outline:hover {
  border-color: #ea580c;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.15);
}
.dark .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}
.dark .btn-outline:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
}

.iconbtn {
  padding: .4rem .6rem;
  border-radius: .75rem;
  border: 1px solid var(--ring);
  background: rgba(255,255,255,.7);
}

/* --- INPUT --- */
.input {
  width: 100%;
  padding: .6rem 1rem;
  border-radius: .75rem;
  outline: none;
  border: 1px solid rgba(148,163,184,.4);
  background: rgba(255,255,255,.8);
}
.dark .input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

/* --- GENEL GÖRSEL TEMALAR --- */
.shadow-glow { box-shadow: 0 6px 20px rgba(109,93,246,.1); }

/* Shader Gradient arka plan (React canvas) */
.shader-bg-root {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.home-bg--shader {
  background: transparent !important;
}
.home-bg--shader::before {
  display: none;
}

.bg-radial {
  background-image:
    radial-gradient(1200px 600px at 10% 10%, rgba(109,93,246,.06), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(14,165,233,.06), transparent 55%);
}

/* Anasayfa: ek orb + nokta ızgarası (daha dolu arka plan) */
.home-bg.bg-radial {
  background-image:
    radial-gradient(1000px 400px at 78% 65%, rgba(139, 92, 246, 0.045), transparent 48%),
    radial-gradient(1200px 600px at 10% 10%, rgba(109,93,246,.07), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(14,165,233,.07), transparent 55%);
}
.dark .home-bg.bg-radial {
  background-image:
    radial-gradient(1000px 400px at 78% 65%, rgba(139, 92, 246, 0.06), transparent 48%),
    radial-gradient(1200px 600px at 10% 10%, rgba(109,93,246,.09), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(14,165,233,.08), transparent 55%);
}
.home-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(148,163,184,0.2) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.dark .home-bg::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.animate-fade { animation: fade .6s ease both .05s; }
.animate-rise { animation: fade .6s ease both .15s; }

/* ========== GLOBAL MOTION SYSTEM (Framer-level, calm, premium) ========== */
:root { --motion-ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* --- SCROLL REVEAL: opacity + translateY + slight scale, 0.7s, once --- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.7s var(--motion-ease), transform 0.7s var(--motion-ease);
}
.reveal-visible { opacity: 1; transform: translateY(0) scale(1); }
html.cust-reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

/* --- REVEAL HEADING: fades in slightly after section --- */
.reveal-heading {
  opacity: 0;
  transition: opacity 0.5s var(--motion-ease) 0.15s;
}
.reveal-visible .reveal-heading { opacity: 1; }

/* --- REVEAL GRID: stagger children (max 60ms gap), no spam --- */
.reveal .reveal-grid > *,
.reveal.reveal-grid > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--motion-ease), transform 0.6s var(--motion-ease);
}
.reveal.reveal-visible .reveal-grid > *,
.reveal.reveal-grid.reveal-visible > * { opacity: 1; transform: translateY(0); }
.reveal.reveal-visible .reveal-grid > *:nth-child(1),
.reveal.reveal-grid.reveal-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal.reveal-visible .reveal-grid > *:nth-child(2),
.reveal.reveal-grid.reveal-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal.reveal-visible .reveal-grid > *:nth-child(3),
.reveal.reveal-grid.reveal-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal.reveal-visible .reveal-grid > *:nth-child(4),
.reveal.reveal-grid.reveal-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal.reveal-visible .reveal-grid > *:nth-child(5),
.reveal.reveal-grid.reveal-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal.reveal-visible .reveal-grid > *:nth-child(6),
.reveal.reveal-grid.reveal-visible > *:nth-child(6) { transition-delay: 300ms; }
html.cust-reduced-motion .reveal .reveal-grid > *,
html.cust-reduced-motion .reveal.reveal-grid > * { opacity: 1; transform: none; transition: none; }

/* --- CARD: idle = soft depth (shadow only, no movement). Hover = scale 1.03, translateY -4px, shadow lift. 0.3s ease-out --- */
.card-motion {
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.dark .card-motion { box-shadow: 0 2px 16px rgba(0,0,0,0.12); }
.card-motion.card-hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.12), 0 8px 24px -8px rgba(0,0,0,0.08);
}
.dark .card-motion.card-hover {
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.24), 0 8px 24px -8px rgba(0,0,0,0.16);
}
html.cust-reduced-motion .card-motion.card-hover { transform: none; box-shadow: inherit; }

/* Cam efekt: Öne Çıkan Projeler + Son Yazılar kartları (service-card ile aynı blur) */
.card-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Öne Çıkan Projeler: yatay sonsuz kayan şerit */
.featured-marquee {
  --marquee-duration: 45s;
  --fade-width: 80px;
}
.featured-track {
  display: flex;
  width: max-content;
  animation: featured-scroll var(--marquee-duration) linear infinite;
  will-change: transform;
}
.featured-track:hover {
  animation-play-state: paused;
}
.featured-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--fade-width);
  pointer-events: none;
  z-index: 1;
}
.featured-marquee__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--marquee-bg, rgba(249, 250, 251, 0.98)), transparent);
}
.featured-marquee__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--marquee-bg, rgba(249, 250, 251, 0.98)), transparent);
}
.dark .featured-marquee__fade--left {
  background: linear-gradient(to right, rgba(3, 7, 18, 0.98), transparent);
}
.dark .featured-marquee__fade--right {
  background: linear-gradient(to left, rgba(3, 7, 18, 0.98), transparent);
}
.featured-track .featured-card-wrap {
  flex-shrink: 0;
  width: min(340px, 85vw);
}
@keyframes featured-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
html.cust-reduced-motion .featured-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .featured-track { animation: none; }
}

/* --- TYPOGRAPHY & LAYOUT --- */
.prose { max-width: 65ch; }
.prose p { margin: .5rem 0; }
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- TAG TASARIMI --- */
.tag {
  color: #001f4d !important;
  white-space: nowrap;
}

/* --- İLETİŞİM SAYFASI DÜZENİ --- */
.contact-info { margin-top: 5.8rem; }

/* --- FOOTER SABİTLEME --- */
html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex-grow: 1;
  padding-bottom: 4rem; /* footer boşluğu */
}
footer {
  margin-top: auto;
  position: relative;
  z-index: 50;
  background-color: rgba(17,24,39,0.95);
  color: #fff;
  overflow-x: hidden;
  max-width: 100%;
}
.footer-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.dark .footer-icon { opacity: .95; }

/* --- FULLSCREEN MENÜ --- */
#fullscreenMenu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
  top: 64px; /* header yüksekliği kadar boşluk bırak */
}
#fullscreenMenu.active { opacity: 1; visibility: visible; }
#fullscreenMenu a {
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}
#fullscreenMenu.active a,
#fullscreenMenu.active .menu-item {
  opacity: 1;
  transform: translateY(0);
}
#fullscreenMenu a:hover { color: #60a5fa; }

/* --- HEADER HER ZAMAN ÜSTTE --- */
header {
  position: relative;
  z-index: 10001 !important;
}

/* --- PROJE KARTI TAG DÜZENİ (legacy tag layout) --- */
.group { overflow: visible !important; }

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  min-height: 100%;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.project-card .tag {
  white-space: nowrap;
  background: rgba(255,255,255,0.9);
  color: #1d4ed8;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
}
/* --- PROJE ETİKETLERİ KUTU TAŞMA DÜZELTME --- */
.project-card:not(.project-card--has-panel) {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap; /* çok önemli */
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%; /* kart genişliği kadar uzasın */
  overflow-wrap: break-word; /* çok uzun kelimeler kırılır */
  word-break: break-word;
}

.project-card .tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #1d4ed8;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  white-space: normal; /* alt satıra geçebilsin */
  max-width: 100%; /* kutudan taşmaz */
}
/* Typewriter efekti (no infinite; cursor is minimal UI) */
@keyframes blink { 50% { opacity: 0; } }
.cursor {
  display: inline-block;
  width: 2px;
  background: #6D5DF6;
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

/* Modal ve tema geçiş efektleri — koyu/aydınlık (Tailwind dark: + darkMode:'class') */
/* Not: body'ye filter uygulanmaz; filter position:fixed'ı bozar, FAB'lar ekran köşesinde kalmaz. */
html { transition: background-color 0.35s ease; }
#aboutModal {
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

/* --- Benimle Tanış modal: chat baloncukları + scrollbar --- */
.about-modal-box { max-height: 90vh; }

.chat-msg {
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  max-width: 90%;
  word-wrap: break-word;
}
.chat-msg-user {
  margin-left: auto;
  text-align: right;
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.chat-msg-bot {
  margin-right: auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border-bottom-left-radius: 0.25rem;
}
.chat-msg-loading { opacity: 0.85; font-style: italic; }

.chat-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.chat-scroll::-webkit-scrollbar { width: 5px; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 4px; }
.chat-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

#feedbackBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* --- Bottom dock nav (macOS style) --- */
.dock-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.dock-nav__inner {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.dock-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transform: scale(1);
  will-change: transform;
}

.dock-nav__item:hover,
.dock-nav__item:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

.dock-nav__item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

html:not(.dark) .dock-nav__inner {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

html:not(.dark) .dock-nav__item {
  color: rgba(0, 0, 0, 0.45);
}

html:not(.dark) .dock-nav__item:hover,
html:not(.dark) .dock-nav__item:focus-visible {
  color: rgba(0, 0, 0, 0.85);
}

html:not(.dark) .dock-nav__item.is-active {
  color: #111;
  background: rgba(109, 93, 246, 0.15);
}

html:not(.dark) .dock-nav__label {
  color: #f4f4f5;
  background: rgba(24, 24, 27, 0.92);
}

.dock-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.dock-nav__icon svg {
  width: 24px;
  height: 24px;
}

.dock-nav__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.dock-nav__item:hover .dock-nav__label,
.dock-nav__item:focus-visible .dock-nav__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.has-dock-nav main {
  padding-bottom: 5.5rem;
}

@media (max-width: 767px) {
  .dock-nav__inner {
    gap: 0.15rem;
    padding: 0.35rem 0.5rem;
  }

  .dock-nav__item {
    width: 38px;
    height: 38px;
    transform: scale(1) !important;
  }

  .dock-nav__icon,
  .dock-nav__icon svg {
    width: 20px;
    height: 20px;
  }

  body.has-dock-nav main {
    padding-bottom: 4.75rem;
  }
}

/* --- FAB: Footer üstünde; dock ortada, FAB sağda (z-index: dock 9999, FAB 9998) --- */
#fabContainer {
  position: fixed !important;
  bottom: 7rem !important; /* Footer üstüne gelmesin */
  right: 1.5rem !important;
  left: auto !important;
  top: auto !important;
}

.fab-btn {
  width: var(--fab-size, 56px);
  height: var(--fab-size, 56px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}
.fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0,0,0,.35), 0 3px 10px rgba(0,0,0,.25);
}
.fab-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Aydınlık: turuncu tonlar, karanlık: mavi/slate */
html:not(.dark) .fab-meet {
  background: rgba(234, 88, 12, 0.9);
  color: #fff;
}
html:not(.dark) .fab-meet:hover { background: #ea580c; color: #fff; }
.dark .fab-meet {
  background: #475569;
  color: #e2e8f0;
}
.dark .fab-meet:hover { background: #64748b; color: #fff; }
html:not(.dark) .fab-customize {
  background: rgba(180, 83, 9, 0.9);
  color: #fff;
}
html:not(.dark) .fab-customize:hover { background: #b45309; color: #fff; }
.dark .fab-customize {
  background: #4338ca;
  color: #e2e8f0;
}
.dark .fab-customize:hover { background: #4f46e5; color: #fff; }

#customizerPopup > div,
#customizerPopup #customizerCard {
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.4s ease;
}

#customizerPopup.opacity-100 {
  opacity: 1;
  visibility: visible;
}

#customizerPopup.opacity-100 > div,
#customizerPopup.opacity-100 #customizerCard {
  transform: translateY(0);
  opacity: 1;
}

/* --- Özelleştirici: sadece orta alan scroll, ince premium scrollbar --- */
.customizer-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.dark .customizer-scroll {
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.customizer-scroll::-webkit-scrollbar {
  width: 6px;
}
.customizer-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.customizer-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 6px;
}
.customizer-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.65);
}
.dark .customizer-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}
.dark .customizer-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.customizer-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}
html:not(.dark) .customizer-input:focus {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}
.dark .customizer-input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}  

body {
  padding-top: 80px; /* header yüksekliği kadar boşluk bırak */
}

/* --- Özelleştirici: yazı boyutu + kart köşeleri (sınıflar html’e eklenir) --- */
html.cust-fs-sm { font-size: 14px; }
html.cust-fs-md { font-size: 16px; }
html.cust-fs-lg { font-size: 18px; }
html.cust-radius-sharp .rounded-3xl, html.cust-radius-sharp .rounded-2xl, html.cust-radius-sharp .rounded-xl { border-radius: 0.25rem !important; }
html.cust-radius-round .rounded-3xl { border-radius: 2rem !important; }
html.cust-radius-round .rounded-2xl { border-radius: 1.5rem !important; }
html.cust-radius-round .rounded-xl { border-radius: 1.25rem !important; }

/* --- Özelleştirici: animasyonları kapat (erişilebilirlik) --- */
html.cust-reduced-motion *,
html.cust-reduced-motion *::before,
html.cust-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* --- SCROLL PROGRESS BAR --- */
.progress-bar { opacity: 0.85; }

/* --- SCROLL HEADER GEÇİŞ EFEKTİ --- */
header {
  transition: transform 0.4s ease;
}

/* --- DotLottie: pixel art (balık vb.) için net, keskin ölçekleme --- */
dotlottie-wc canvas {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ========== PREMIUM: İstatistik (stat-card) + Ne Sunuyorum (service-card) ========== */
/* Aydınlık mod: turuncu tonlar. Karanlık mod: mavi tonlar (kart + sayılar). */
:root {
  --stat-gradient: linear-gradient(135deg, #c2410c 0%, #b45309 50%, #ea580c 100%);
  --stat-glow: 0 12px 32px -8px rgba(194, 65, 12, 0.22), 0 8px 24px -8px rgba(234, 88, 12, 0.18);
}
html:not(.dark) {
  --stat-gradient: linear-gradient(135deg, #c2410c 0%, #b45309 50%, #ea580c 100%);
  --stat-glow: 0 12px 32px -8px rgba(194, 65, 12, 0.22), 0 8px 24px -8px rgba(234, 88, 12, 0.18);
}
.dark {
  --stat-gradient: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
  --stat-glow: 0 12px 36px -8px rgba(59, 130, 246, 0.28), 0 10px 28px -8px rgba(139, 92, 246, 0.22);
}

/* --- Section heading: Plus Jakarta, letter-spacing --- */
.section-heading {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

/* --- İstatistik: stat-card — aydınlık: turuncu cam + turuncu sayılar, karanlık: mavi cam + mavi sayılar --- */
.stat-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--motion-ease), box-shadow 0.35s var(--motion-ease), border-color 0.3s ease;
}
html:not(.dark) .stat-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(234, 88, 12, 0.18);
}
.dark .stat-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
@media (hover: hover) {
  .stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--stat-glow);
  }
  html:not(.dark) .stat-card:hover {
    border-color: rgba(234, 88, 12, 0.35);
  }
  .dark .stat-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
  }
}

.stat-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
}
.stat-number {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--stat-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}
.stat-suffix {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--stat-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: inherit;
  letter-spacing: 0;
}

/* --- Ne Sunuyorum: service-card (cam saydamlık, backdrop-blur, outline ikon) --- */
.service-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s var(--motion-ease), box-shadow 0.4s var(--motion-ease), border-color 0.35s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dark .service-card {
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .service-card::before { opacity: 0; }
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px) rotate(0.5deg);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 12px 32px -10px rgba(59, 130, 246, 0.12), 0 8px 24px -10px rgba(139, 92, 246, 0.08), 0 0 0 1px rgba(139, 92, 246, 0.15);
  }
  .dark .service-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 32px -10px rgba(59, 130, 246, 0.15), 0 8px 24px -10px rgba(139, 92, 246, 0.1), 0 0 0 1px rgba(139, 92, 246, 0.2);
  }
  .service-card:hover::before { opacity: 1; }
  .dark .service-card:hover::before { opacity: 0.04; }
  .service-card:hover .service-card__icon { animation: icon-pulse 1.2s ease-in-out; }
}
@media (hover: none) {
  .service-card { border-color: rgba(148, 163, 184, 0.2); }
  .dark .service-card { border-color: rgba(255, 255, 255, 0.08); }
}

.service-card h4 {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(100, 116, 139, 0.9);
  stroke: currentColor;
}
.dark .service-card__icon { color: rgba(226, 232, 240, 0.7); }

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

html.cust-reduced-motion .stat-card:hover,
html.cust-reduced-motion .service-card:hover { transform: none; }
html.cust-reduced-motion .service-card:hover .service-card__icon { animation: none; }

/* Aydınlık mod (turuncu shader): hero metinleri arka plana uyumlu, koyu ve sıcak ton */
html:not(.dark) .hero-title { color: #1c1917; }
html:not(.dark) .hero-hello,
html:not(.dark) .hero-intro,
html:not(.dark) .hero-tech-wrap { color: #44403c; }
html:not(.dark) .hero-tech { color: #c2410c; }
html:not(.dark) .hero-tag { color: #57534e; }

/* ========== HAKKIMDA: cam blok, arka planla uyumlu (şerit hissi yok) ========== */
.about-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.88) 0%, rgba(2, 4, 10, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e2e8f0;
  overflow: hidden;
}
html:not(.dark) .about-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.25) 100%);
  color: #1e293b;
}
.about-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem 5rem;
}
@media (min-width: 768px) { .about-inner { padding: 5rem 1.5rem 6rem; } }

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem 4rem; align-items: center; }
}

.about-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.5rem;
}
html:not(.dark) .about-eyebrow { color: #64748b; }
.about-heading {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}
html:not(.dark) .about-heading {
  background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-underline {
  height: 2px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 1px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.about-underline__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), rgba(139, 92, 246, 0.6));
  border-radius: 1px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
html:not(.dark) .about-underline__fill {
  background: linear-gradient(90deg, rgba(194, 65, 12, 0.6), rgba(180, 83, 9, 0.5));
}
.about-section.about-visible .about-underline__fill { width: 100%; }
html.cust-reduced-motion .about-underline__fill { transition: none; }
html.cust-reduced-motion .about-section.about-visible .about-underline__fill { width: 100%; }

.about-paras { display: flex; flex-direction: column; gap: 1rem; max-width: 42ch; }
.about-para {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.85);
}
.about-para--lead { color: rgba(226, 232, 240, 0.95); font-size: 1rem; }
html:not(.dark) .about-para { color: #334155; }
html:not(.dark) .about-para--lead { color: #1e293b; }
.about-reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-section.reveal-visible .about-reveal-item,
.about-section.about-visible .about-reveal-item { opacity: 1; transform: translateY(0); }
.about-section.reveal-visible .about-paras .about-para:nth-child(1),
.about-section.about-visible .about-paras .about-para:nth-child(1) { transition-delay: 80ms; }
.about-section.reveal-visible .about-paras .about-para:nth-child(2),
.about-section.about-visible .about-paras .about-para:nth-child(2) { transition-delay: 160ms; }
.about-section.reveal-visible .about-paras .about-para:nth-child(3),
.about-section.about-visible .about-paras .about-para:nth-child(3) { transition-delay: 240ms; }
.about-section.reveal-visible .about-badges,
.about-section.about-visible .about-badges { transition-delay: 320ms; }
html.cust-reduced-motion .about-reveal-item { opacity: 1; transform: none; transition: none; }

.about-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.about-badge {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.9);
  transition: box-shadow 0.35s ease, border-color 0.3s ease;
}
html:not(.dark) .about-badge {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(100, 116, 139, 0.35);
  color: #334155;
}
@media (hover: hover) {
  .about-badge:hover {
    box-shadow: 0 0 20px -4px rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.4);
  }
  html:not(.dark) .about-badge:hover {
    border-color: rgba(194, 65, 12, 0.5);
    box-shadow: 0 0 16px -4px rgba(194, 65, 12, 0.2);
  }
}
html.cust-reduced-motion .about-badge:hover { box-shadow: none; }

/* Sağ: soyut grid + blur blob + node noktaları (daha dolu görsel) */
.about-visual {
  position: relative;
  min-height: 200px;
  display: none;
}
@media (min-width: 1024px) { .about-visual { display: block; min-height: 280px; } }
.about-grid-bg {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.065) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 75% 75% at 55% 50%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 55% 50%, black, transparent 72%);
}
html:not(.dark) .about-grid-bg {
  background-image:
    linear-gradient(rgba(194, 65, 12, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 65, 12, 0.06) 1px, transparent 1px);
}
.about-blob {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(139, 92, 246, 0.08) 45%, transparent 70%);
  filter: blur(42px);
  transform: translateY(-50%);
  animation: about-blob-float 12s ease-in-out infinite;
}
.about-blob--alt {
  top: 28%;
  right: 22%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 70%);
  transform: translateY(-50%) scale(1);
  animation: about-blob-float 14s ease-in-out infinite;
  animation-delay: -5s;
}
@keyframes about-blob-float {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateY(-55%) scale(1.05); opacity: 1; }
}
html.cust-reduced-motion .about-blob,
html.cust-reduced-motion .about-blob--alt { animation: none; }
.about-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 35%, rgba(59, 130, 246, 0.28) 2px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(139, 92, 246, 0.22) 2px, transparent 2px),
    radial-gradient(circle at 88% 22%, rgba(59, 130, 246, 0.2) 2px, transparent 2px),
    radial-gradient(circle at 45% 80%, rgba(139, 92, 246, 0.18) 2px, transparent 2px);
  mask-image: radial-gradient(ellipse 80% 80% at 55% 50%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 55% 50%, black, transparent 78%);
}
html:not(.dark) .about-nodes {
  background-image:
    radial-gradient(circle at 18% 35%, rgba(194, 65, 12, 0.2) 2px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(180, 83, 9, 0.16) 2px, transparent 2px),
    radial-gradient(circle at 88% 22%, rgba(194, 65, 12, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 45% 80%, rgba(180, 83, 9, 0.14) 2px, transparent 2px);
}

/* Hafif noise: bölüm aktifken */
.about-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-section.about-visible .about-noise { opacity: 1; }
html.cust-reduced-motion .about-noise { opacity: 0; }

/* ========== CONTACT PAGE: light = turuncu arka plan (shader), dark = mavi ========== */
.contact-page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-attachment: scroll;
  transition: background 0.4s ease, opacity 0.4s ease;
}
/* Açık mod: shader turuncu gösterir, bu katman şeffaf */
html:not(.dark) .contact-page-bg {
  background: transparent;
  opacity: 0;
}
html:not(.dark) .contact-page-bg::before { display: none; }
/* Koyu mod: mavi ağırlıklı gradient */
.dark .contact-page-bg {
  background: linear-gradient(165deg, #030712 0%, #0c1222 35%, #0f172a 60%, #0e1a2e 80%, #0a1628 100%);
  opacity: 1;
}
.dark .contact-page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 20% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(700px 400px at 85% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.contact-hero__title {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Açık mod: turuncu ağırlıklı başlık */
html:not(.dark) .contact-hero__title {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f97316 100%);
}
.dark .contact-hero__title {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
}
.contact-hero__glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html:not(.dark) .contact-hero__glass {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.dark .contact-hero__glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.contact-hero__subtitle { letter-spacing: 0.01em; margin: 0; }
html:not(.dark) .contact-hero__subtitle { color: #1f2937; }
.dark .contact-hero__subtitle { color: #e2e8f0; }
.contact-hero__divider {
  width: 80px;
  height: 3px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  animation: contact-divider-pulse 3s ease-in-out infinite;
}
html:not(.dark) .contact-hero__divider {
  background: linear-gradient(90deg, transparent, rgba(234, 88, 12, 0.6), rgba(249, 115, 22, 0.5), transparent);
}
.dark .contact-hero__divider {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), rgba(99, 102, 241, 0.4), transparent);
}
@keyframes contact-divider-pulse {
  0%, 100% { opacity: 0.7; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.1); }
}
html.cust-reduced-motion .contact-hero__divider { animation: none; }

/* Same top alignment: no extra margin on right column */
.contact-page .contact-right-col { margin-top: 0; }
.contact-grid { align-items: start; }
.contact-form-col,
.contact-right-col { padding-top: 0; }

/* Unified card: same border-radius (padding from HTML p-6 md:p-8) */
.contact-form-glass,
.contact-card { border-radius: 1rem; }

.contact-form-glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html:not(.dark) .contact-form-glass {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dark .contact-form-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.contact-page .contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
html:not(.dark) .contact-page .contact-input {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #111827;
}
html:not(.dark) .contact-page .contact-input::placeholder { color: #6b7280; }
html:not(.dark) .contact-page .contact-input:focus {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.dark .contact-page .contact-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
}
.dark .contact-page .contact-input::placeholder { color: rgba(148, 163, 184, 0.5); }
.dark .contact-page .contact-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-cta-btn {
  border: none;
  cursor: pointer;
}
html:not(.dark) .contact-cta-btn {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
html:not(.dark) .contact-cta-btn:hover {
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.45);
}
.dark .contact-cta-btn {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.dark .contact-cta-btn:hover {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}
.contact-cta-btn:hover {
  transform: scale(1.02);
}
.contact-cta-btn:active { transform: scale(0.98); }
html.cust-reduced-motion .contact-cta-btn:hover { transform: none; }

.contact-reach-card,
.contact-alt-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html:not(.dark) .contact-reach-card,
html:not(.dark) .contact-alt-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dark .contact-reach-card,
.dark .contact-alt-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html:not(.dark) .contact-reach__icon { color: rgba(234, 88, 12, 0.9); }
.dark .contact-reach__icon { color: rgba(59, 130, 246, 0.9); }
.contact-reach-list { line-height: 1.6; }
html:not(.dark) .contact-reach-card .contact-reach__title,
html:not(.dark) .contact-reach-card .contact-reach-list,
html:not(.dark) .contact-alt-card h3,
html:not(.dark) .contact-alt-card .text-gray-400,
html:not(.dark) .contact-whatsapp-card h3,
html:not(.dark) .contact-whatsapp-card .text-gray-400 { color: #1f2937; }
html:not(.dark) .contact-card h3.text-white,
html:not(.dark) .contact-card .font-semibold.text-lg { color: #111827 !important; }
html:not(.dark) .contact-form-glass label,
html:not(.dark) .contact-form-glass .text-gray-300 { color: #374151 !important; }
html:not(.dark) .contact-form-glass .text-gray-500 { color: #4b5563; }

.contact-whatsapp-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html:not(.dark) .contact-whatsapp-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.dark .contact-whatsapp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.contact-whatsapp-btn {
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  text-decoration: none;
}
.contact-whatsapp-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
  color: #fff;
}
.contact-whatsapp-btn:active { transform: scale(0.98); }
html.cust-reduced-motion .contact-whatsapp-btn:hover { transform: none; }

.contact-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
html:not(.dark) .contact-link:hover { border-bottom-color: rgba(234, 88, 12, 0.6); }
.dark .contact-link:hover { border-bottom-color: rgba(59, 130, 246, 0.6); }

/* --- Nav: animated pill hover (desktop) --- */
.nav-animated {
  gap: 0.125rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
}

.nav-animated__pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform, width, height;
}

html:not(.dark) .nav-animated__pill {
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .nav-animated__pill {
  background: rgba(39, 39, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-animated.is-ready .nav-animated__pill {
  opacity: 1;
}

.nav-animated__item {
  position: relative;
  z-index: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

html:not(.dark) .nav-animated__item {
  color: #52525b;
}

html:not(.dark) .nav-animated__item:hover,
html:not(.dark) .nav-animated__item.is-highlighted,
html:not(.dark) .nav-animated__item.is-active {
  color: #09090b;
}

.dark .nav-animated__item {
  color: #a1a1aa;
}

.dark .nav-animated__item:hover,
.dark .nav-animated__item.is-highlighted,
.dark .nav-animated__item.is-active {
  color: #fafafa;
}

/* --- Hero: per-character text fade (index) --- */
@keyframes heroCharFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-char {
  display: inline-block;
  opacity: 0;
  animation: heroCharFadeIn 0.45s ease forwards;
  will-change: opacity, transform;
}

.hero-char--space {
  min-width: 0.25em;
}

.hero-title,
.hero-hello,
.hero-tag {
  white-space: pre-wrap;
}

html.cust-reduced-motion .hero-char {
  animation: none;
  opacity: 1;
  transform: none;
}

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

/* --- Blog card 3D tilt --- */
.blog-card-tilt {
  display: block;
  height: 100%;
  perspective: 800px;
}

.blog-card {
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.blog-card-tilt .blog-card img {
  transition: transform 500ms ease;
}

.blog-card-tilt:hover .blog-card img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .blog-card {
    transform: none !important;
    transition: none !important;
  }
}
