/* ==========================================================================
   YSF Tech — Landing Redesign
   Modern, alive, full-personality
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 20px;
  --content-max: 72rem;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
   YSF Tech — Sanzo Wada–inspired palette
   Base: logo teal #2d6960 + sumi (black). Tints/shades + one warm contrast.
   Sumi (墨)     — black
   Teal (主色)   — #2d6960 primary
   Usu (薄)      — light teal tints
   Fukaki (深)   — deep teal shades
   Cha (茶)      — teal-gray neutral
   Tension (対比) — muted terracotta accent (Wada contrast)
*/
:root {
  --wada-sumi: #0d1117;
  --wada-teal: #2d6960;
  --wada-teal-light: #3d7a72;
  --wada-teal-deep: #1e4d47;
  --wada-teal-pale: #b8d0cc;
  --wada-cha: #4a5f5c;
  --wada-tension: #b86b5c;
  --wada-paper: #f4f6f5;
}

/* ---------- LIGHT THEME ---------- */
:root, [data-theme="light"] {
  --bg: var(--wada-paper);
  --bg-alt: #e8eeed;
  --bg-hero: #121a1c;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: rgba(45, 105, 96, 0.12);
  --border-strong: rgba(45, 105, 96, 0.2);
  --text: var(--wada-sumi);
  --text-secondary: var(--wada-cha);
  --text-muted: #6b7c79;
  --brand: var(--wada-teal);
  --brand-light: var(--wada-teal-light);
  --brand-soft: rgba(45, 105, 96, 0.1);
  --accent: var(--wada-tension);
  --accent-soft: rgba(184, 107, 92, 0.1);
  --glow: rgba(45, 105, 96, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(45, 105, 96, 0.08);
  --card-shadow: 0 1px 3px rgba(45, 105, 96, 0.06), 0 4px 16px rgba(45, 105, 96, 0.06);
  --card-shadow-hover: 0 8px 32px rgba(45, 105, 96, 0.1);
  --references-item-bg: #dfe8e6;
  --references-item-shadow: 0 2px 10px rgba(45, 105, 96, 0.08);
  color-scheme: light;
}

/* ---------- DARK THEME ---------- */
[data-theme="dark"] {
  --bg: #0a0e0d;
  --bg-alt: #0f1514;
  --bg-hero: #0c1114;
  --surface: #111918;
  --surface-raised: #161d1c;
  --border: rgba(184, 208, 204, 0.08);
  --border-strong: rgba(184, 208, 204, 0.14);
  --text: #e6edec;
  --text-secondary: #9eb5b1;
  --text-muted: #6b7c79;
  --brand: #4a8a82;
  --brand-light: #6ab0a6;
  --brand-soft: rgba(74, 138, 130, 0.12);
  --accent: #c97d6e;
  --accent-soft: rgba(201, 125, 110, 0.12);
  --glow: rgba(74, 138, 130, 0.15);
  --nav-bg: rgba(10, 14, 13, 0.88);
  --nav-border: rgba(184, 208, 204, 0.06);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.25), 0 4px 16px rgba(45, 105, 96, 0.08);
  --card-shadow-hover: 0 8px 32px rgba(45, 105, 96, 0.12);
  --references-item-bg: #0c1211;
  --references-item-shadow: 0 2px 12px rgba(0,0,0,0.4);
  color-scheme: dark;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute; top: 0.5rem; left: 1rem;
  padding: 0.5rem 1rem; background: var(--brand); color: #fff;
  text-decoration: none; font-weight: 600; border-radius: var(--radius-sm);
  z-index: 200; transform: translateY(-120%); transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* Page transition loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--border-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: page-loader-spin 0.8s linear infinite;
}
@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader__spinner { animation: none; border-top-color: transparent; }
}

/* References section */
.references__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
@media (min-width: 36rem) {
  .references__grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.references__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  min-height: 4.5rem;
  background: var(--references-item-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--references-item-shadow);
}
.references__logo {
  max-width: 120px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.3);
  opacity: 0.9;
  transition: filter var(--transition), opacity var(--transition);
}
/* Inline SVG logos (Ulogi, Patrion) – always visible, no external load */
.references__item .references__logo--svg {
  display: block;
  max-width: 140px;
  max-height: 48px;
}
.references__item:hover .references__logo {
  filter: grayscale(0);
  opacity: 1;
}

/* Partner section – İş ve Çözüm Ortaklarımız (card concept) */
.partner {
  background: var(--bg-alt);
}
.partner__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.partner-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong);
}
.partner-card__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.partner-card__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 72px;
}
.partner-card__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-card__meta {
  flex: 1;
  min-width: 0;
}
.partner-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.partner-card__tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}
.partner-card__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.partner-card__pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.partner-card__pill:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: transparent;
}
@media (min-width: 36rem) {
  .partner-card { padding: 2rem 1.75rem; }
  .partner-card__brand { margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
  .partner-card__logo-wrap { width: 200px; height: 88px; }
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ============================================================
   FLOATING NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 1.5rem);
  max-width: 64rem;
  min-width: 0;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-full);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), background var(--transition);
}

@media (min-width: 64rem) {
  .site-header { top: 1rem; width: calc(100% - 2rem); }
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  gap: 0.375rem;
  min-width: 0;
}

@media (min-width: 25rem) {
  .nav { padding: 0.5rem 0.75rem 0.5rem 1rem; gap: 0.5rem; }
}

@media (min-width: 64rem) {
  .nav { padding: 0.5rem 0.75rem 0.5rem 1.25rem; }
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logo wrapper: skeleton + fade-in on load */
.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm, 0.25rem);
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    var(--border) 40%,
    var(--surface) 80%,
    var(--border) 100%
  );
  background-size: 200% 100%;
  animation: logo-shimmer 1.6s ease-in-out infinite;
}

.logo-wrap.is-loaded {
  animation: none;
  background: transparent;
}

.logo-wrap img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo-wrap.is-loaded img {
  opacity: 1;
}

@keyframes logo-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap {
    animation: none;
    background: var(--surface);
  }
}

.nav__logo {
  height: 2rem;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
}

@media (min-width: 25rem) {
  .nav__logo { height: 2.25rem; max-width: 9rem; }
}

@media (min-width: 56rem) {
  .nav__logo { height: 2.5rem; max-width: 10rem; }
}

.nav__links {
  display: none;
  gap: 0.125rem;
}

@media (min-width: 56rem) {
  .nav__links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
}

.nav__links a {
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

@media (min-width: 64rem) {
  .nav__links a { padding: 0.4rem 0.75rem; font-size: 0.875rem; }
}

.nav__links a:hover {
  color: var(--text);
  background: var(--brand-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 25rem) {
  .nav__actions { gap: 0.5rem; }
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 2px;
  background: var(--surface);
}

.lang-switcher__btn {
  padding: 0.3rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

@media (min-width: 25rem) {
  .lang-switcher__btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
}

.lang-switcher__btn:hover {
  color: var(--text);
}

.lang-switcher__btn.is-active {
  color: #fff;
  background: var(--brand);
}

.lang-switcher__btn[aria-pressed="true"] {
  color: #fff;
  background: var(--brand);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

@media (min-width: 25rem) {
  .theme-toggle { width: 2.25rem; height: 2.25rem; min-width: 2.25rem; min-height: 2.25rem; }
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--brand-soft);
}

.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

.nav__cta {
  display: none;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition);
}

@media (min-width: 64rem) {
  .nav__cta { padding: 0.5rem 1.25rem; }
}

.nav__cta:hover {
  background: var(--brand-light);
  box-shadow: 0 4px 16px var(--glow);
}

@media (min-width: 56rem) {
  .nav__cta { display: inline-flex; }
}

/* Mobile burger – 44px min touch target */
.nav__burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.625rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 56rem) {
  .nav__burger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.mobile-menu:not([hidden]) {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
  background: var(--brand-soft);
  color: var(--text);
}

.mobile-menu__cta {
  background: var(--brand) !important;
  color: #fff !important;
  text-align: center;
  justify-content: center;
  font-weight: 600 !important;
  margin-top: 0.5rem;
  min-height: 2.75rem;
}

/* ============================================================
   HERO (ana sayfa — hero-three.js, tek canvas)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-hero);
  padding: 7rem 1.5rem 4rem;
}

/* Arka plan ile yazıları ayıran gradient overlay — okunaklılık */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0.5;
  background: linear-gradient(120deg, rgba(13, 20, 24, 0.92) 0%, rgba(13, 20, 24, 0.5) 45%, rgba(13, 20, 24, 0.75) 100%);
  pointer-events: none;
}

[data-theme="dark"] .hero::after {
  background: linear-gradient(120deg, rgba(6, 10, 12, 0.9) 0%, rgba(6, 10, 12, 0.45) 45%, rgba(6, 10, 12, 0.7) 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__foreground {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem 3rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 64rem) {
  .hero__foreground {
    grid-template-columns: 1fr auto;
    gap: 2rem 4rem;
  }
}

.hero__content {
  max-width: 56rem;
  text-align: center;
}

@media (min-width: 56rem) {
  .hero__content {
    text-align: left;
  }
}

/* Logo ön planda — bilişim hero'da vurgu */
.hero__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroLogoFade 1s ease-out 0.5s both;
}

@media (max-width: 63.99rem) {
  .hero__logo-wrap {
    order: -1;
    margin-bottom: 0.5rem;
  }
}

.hero__logo {
  width: 100%;
  max-width: 11rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 20px rgba(45, 105, 96, 0.5)) drop-shadow(0 0 40px rgba(45, 105, 96, 0.35)) drop-shadow(0 0 60px rgba(61, 122, 114, 0.2));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(45, 105, 96, 0.15), 0 0 32px rgba(45, 105, 96, 0.25);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .hero__logo {
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 24px rgba(74, 138, 130, 0.5)) drop-shadow(0 0 48px rgba(74, 138, 130, 0.35)) drop-shadow(0 0 72px rgba(106, 176, 166, 0.2));
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(74, 138, 130, 0.2), 0 0 40px rgba(74, 138, 130, 0.3);
}

@media (min-width: 64rem) {
  .hero__logo {
    max-width: 14rem;
  }
}

@keyframes heroLogoFade {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out 0.2s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease-out 0.35s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__title-accent {
  background: linear-gradient(135deg, #3d7a72, #2d6960, #b86b5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.hero__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease-out 0.5s both;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

@media (min-width: 56rem) {
  .hero__lead { margin-left: 0; }
}

@media (max-width: 55.99rem) {
  .hero__lead { margin: 0 auto 2.5rem; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease-out 0.65s both;
}

@media (max-width: 55.99rem) {
  .hero__actions { justify-content: center; }
}

.hero__pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  animation: fadeUp 0.8s ease-out 0.8s both;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media (max-width: 55.99rem) {
  .hero__pipeline { justify-content: center; }
}

.hero__pipeline-step {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.hero__pipeline-step[data-active="true"] {
  background: rgba(45, 105, 96, 0.25);
  border-color: rgba(61, 122, 114, 0.4);
  color: #b8d0cc;
  box-shadow: 0 0 12px rgba(45, 105, 96, 0.25);
}

.hero__pipeline-arrow {
  color: rgba(255,255,255,0.2);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn--primary {
  background: #fff;
  color: #0d1117;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Page-level buttons (non-hero) */
.section .btn--primary {
  background: var(--brand);
  color: #fff;
}
.section .btn--primary:hover {
  background: var(--brand-light);
  box-shadow: 0 4px 20px var(--glow);
}

.section .btn--ghost {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--border-strong);
}
.section .btn--ghost:hover {
  background: var(--brand);
  color: #fff;
}

/* ============================================================
   MARQUEE — TECH STACK
   ============================================================ */
.marquee-section {
  padding: 2.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee {
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

.marquee__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
  transition: color var(--transition);
}

.marquee__item:hover {
  color: var(--text);
}

.marquee__logo {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  object-fit: contain;
}

[data-theme="dark"] .marquee__logo {
  filter: brightness(1.2) saturate(0.9);
}

.marquee__icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section {
  padding: 6rem 0;
}

@media (min-width: 48rem) {
  .section { padding: 8rem 0; }
}

.section__header {
  margin-bottom: 4rem;
  max-width: 36rem;
}

.section__intro {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.section__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 36rem) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-soft), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.service-card__title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.service-card__tags span {
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-full);
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process {
  background: var(--bg-alt);
}

.process__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process__timeline::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--accent), transparent);
  border-radius: 2px;
}

@media (min-width: 48rem) {
  .process__timeline::before { left: 2rem; }
}

.process__step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
}

@media (min-width: 48rem) {
  .process__step { gap: 2rem; }
}

.process__num {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 20px var(--glow);
  position: relative;
  z-index: 1;
}

@media (min-width: 48rem) {
  .process__num { width: 4rem; height: 4rem; font-size: 0.9375rem; }
}

.process__content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.process__content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 32rem;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--bg-hero);
  padding: 5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--bg);
  padding: 6rem 0 8rem;
}

.cta-block {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.cta-block__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta-block__lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-block__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.cta-block__email {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cta-block__email a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.cta-block__email a:hover {
  text-decoration: underline;
}

.cta-block__code {
  display: inline-block;
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
  white-space: pre;
}

.c-kw { color: var(--brand); font-weight: 600; }
.c-fn { color: var(--accent); }
.c-val { color: #f472b6; }
.c-cmt { color: var(--text-muted); opacity: 0.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.9;
}

/* Footer logo wrap: taller skeleton */
.footer__brand .logo-wrap {
  min-width: 4rem;
  min-height: 4rem;
}

.nav__brand .logo-wrap {
  min-height: 2rem;
  min-width: 5.5rem;
}

@media (min-width: 25rem) {
  .nav__brand .logo-wrap { min-height: 2.25rem; min-width: 6.5rem; }
}

@media (min-width: 56rem) {
  .nav__brand .logo-wrap { min-height: 2.5rem; min-width: 7rem; }
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 4rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--brand);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__domain {
  font-family: var(--font-mono);
}

/* Main */
main { outline: none; position: relative; z-index: 0; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   PAGE HERO (iç sayfalar — page-scene.js, tek canvas #page-canvas)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
  background: var(--bg-hero);
  overflow: hidden;
}

.page-hero--compact {
  min-height: 40vh;
  padding: 7rem 0 3rem;
}

/* Arka plan ile yazıları ayıran overlay — okunaklılık */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0.5;
  background: linear-gradient(120deg, rgba(13, 20, 24, 0.9) 0%, rgba(13, 20, 24, 0.45) 50%, rgba(13, 20, 24, 0.75) 100%);
  pointer-events: none;
}

[data-theme="dark"] .page-hero::after {
  background: linear-gradient(120deg, rgba(6, 10, 12, 0.88) 0%, rgba(6, 10, 12, 0.4) 50%, rgba(6, 10, 12, 0.7) 100%);
}

.page-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

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

.page-hero__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-light);
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.page-hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.page-hero__accent {
  background: linear-gradient(135deg, #3d7a72, #2d6960, #b86b5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.page-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   ABOUT PAGE — VALUE CARDS
   ============================================================ */
.about-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 36rem) {
  .about-values-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-value-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.about-value-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.about-value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  color: var(--brand);
  margin-bottom: 1rem;
}

.about-value-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.about-value-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   EXPERTISE PAGE — V2 CARDS
   ============================================================ */
.expertise-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 36rem) {
  .expertise-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .expertise-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}

.expertise-card-v2 {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card-v2:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.expertise-card-v2__num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-soft);
  line-height: 1;
  margin-bottom: 1rem;
}

[data-theme="dark"] .expertise-card-v2__num {
  color: rgba(96, 165, 250, 0.15);
}

.expertise-card-v2__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.expertise-card-v2__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.expertise-card-v2__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.expertise-card-v2__tags span {
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-full);
}

/* ============================================================
   PROJECTS PAGE — V2 CARDS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 36rem) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card-v2 {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.project-card-v2:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.project-card-v2__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.project-card-v2__tag {
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-full);
}

.project-card-v2__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.project-card-v2__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.project-card-v2__result {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-card-v2__metric {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand);
}

/* Portfolio */
.projects-portfolio {
  margin-top: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 48rem) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 64rem) {
  .portfolio-grid { grid-template-columns: repeat(5, 1fr); }
}

.portfolio-item {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.portfolio-item:hover {
  border-color: var(--brand);
}

.portfolio-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.portfolio-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   NEDEN BIZ — REASON CARDS
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 36rem) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .reasons-grid { grid-template-columns: repeat(3, 1fr); }
}

.reason-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.reason-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.reason-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  color: var(--brand);
  margin-bottom: 1rem;
}

.reason-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.reason-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 48rem) {
  .contact-layout {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }
}

.contact-form-v2 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--glow);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form-v2__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.contact-layout__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.contact-info-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.contact-info-card a,
.contact-info-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.5;
}

.contact-info-card a:hover {
  color: var(--brand);
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS
   ============================================================ */
@media (max-width: 35.99rem) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
    text-align: center;
  }

  .hero__pipeline {
    font-size: 0.625rem;
  }

  .stats__grid {
    gap: 2rem 1rem;
  }

  .cta-block__title {
    font-size: 1.75rem;
  }

  .cta-block__code {
    font-size: 0.6875rem;
    padding: 0.75rem 1rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .page-hero__title {
    font-size: 1.75rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 47.99rem) {
  .section {
    padding: 4rem 0;
  }

  .page-hero {
    min-height: 40vh;
    padding: 7rem 0 3rem;
  }
}

/* Active page highlight in nav */
.nav__links a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  box-shadow: var(--card-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background 0.2s, border-color 0.2s, color 0.2s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--card-shadow-hover);
}
.back-to-top:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}
