/* MOSTUNED — mostuned.com */
:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: #111113;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-soft: #a1a1aa;
  --text-dim: #71717a;
  --red: #ef4444;
  --orange: #f97316;
  --grad: linear-gradient(90deg, var(--red), var(--orange));
  --radius: 18px;
  --nav-h: 4.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(239, 68, 68, 0.35); color: #fff; }

img, svg { display: block; max-width: 100%; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6.5vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
p  { font-size: clamp(0.95rem, 1.5vw, 1.05rem); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-lead {
  color: var(--text-soft);
  max-width: 38rem;
  margin-top: 0.9rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 9, 11, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand .brand-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand-logo {
  display: block;
  width: 24px;
  height: 24px;
}

.hero-badge .bmw-roundel {
  display: block;
  width: 17px;
  height: 17px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-list a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--text); }

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 700 !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 9, 11, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-list li:last-child a { border-bottom: none; }
  .nav-list .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-radius: 12px;
    padding: 0.85rem 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 12vh, 7.5rem)) 0 clamp(4rem, 10vh, 7rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0.74), rgba(9, 9, 11, 0.86) 55%, var(--bg) 97%),
    url("/assets/img/bmw-gece-sehir.jpg") center 58% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 80%;
  background:
    radial-gradient(42rem 26rem at 18% 20%, rgba(239, 68, 68, 0.16), transparent 65%),
    radial-gradient(38rem 24rem at 85% 10%, rgba(249, 115, 22, 0.12), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60rem 32rem at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(60rem 32rem at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; max-width: 54rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero p.sub {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.94; }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(249, 115, 22, 0.5); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.6rem;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-points svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239,68,68,0.16), rgba(249,115,22,0.12));
  border: 1px solid rgba(249, 115, 22, 0.25);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 23px; height: 23px; color: var(--orange); }

.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
}
.approach-item {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.approach-item svg {
  width: 24px; height: 24px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.approach-item h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.approach-item p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.5rem; max-width: 46rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(249, 115, 22, 0.35); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-radius: 14px;
}
.faq-item summary .chev {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--orange); }
.faq-item .faq-body {
  padding: 0 1.25rem 1.2rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ---------- Contact ---------- */
.contact-box {
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(30rem 16rem at 50% -20%, rgba(239, 68, 68, 0.14), transparent 70%),
    var(--surface);
}
.contact-box h2 { margin-bottom: 0.8rem; }
.contact-box p { color: var(--text-soft); max-width: 32rem; margin-inline: auto; }
.contact-box .btn { margin-top: 1.8rem; }
.contact-email {
  display: block;
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.contact-email a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.contact-email a:hover { color: var(--orange); }

/* ---------- About page ---------- */
.page-head {
  padding: calc(var(--nav-h) + clamp(3rem, 9vh, 5.5rem)) 0 clamp(2.5rem, 6vh, 4rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 100%;
  background: radial-gradient(40rem 22rem at 30% 10%, rgba(239, 68, 68, 0.13), transparent 65%);
  pointer-events: none;
}
.page-head .container { position: relative; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-dim); }

.prose { max-width: 44rem; }
.prose p { color: var(--text-soft); margin-bottom: 1.2rem; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 2.4rem 0 0.9rem; }
.prose strong { color: var(--text); }

/* ---------- 404 ---------- */
.error-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.error-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(36rem 24rem at 50% 30%, rgba(239, 68, 68, 0.12), transparent 70%);
  pointer-events: none;
}
.error-code {
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.error-wrap h1 { font-size: clamp(1.3rem, 4vw, 1.9rem); margin-top: 0.8rem; }
.error-wrap p { color: var(--text-soft); margin-top: 0.7rem; }
.error-wrap .btn { margin-top: 2rem; }
.error-inner { position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer-brand .brand-logo { width: 20px; height: 20px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
}
.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--text); }
.footer-note {
  width: 100%;
  color: var(--text-dim);
  font-size: 0.83rem;
  margin-top: 0.5rem;
}

/* ---------- Photography ---------- */
.photo-band {
  position: relative;
  margin-top: 2.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.photo-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  max-height: 340px;
  object-fit: cover;
  object-position: center 47%;
}
.photo-band img.photo-low { object-position: center 57%; }
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.04) 45%, rgba(9, 9, 11, 0.68));
  pointer-events: none;
}
.photo-band figcaption {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(9, 9, 11, 0.8);
}

@media (max-width: 640px) {
  .photo-band img {
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Contact actions & meta ---------- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.contact-box .contact-actions .btn { margin-top: 0; }

.contact-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.6rem;
  margin-top: 1.6rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.contact-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.contact-meta svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }
.contact-meta a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.contact-meta a:hover { color: var(--orange); }

/* ---------- Coding teaser (index) ---------- */
.coding-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.6rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(249, 115, 22, 0.05));
}
.coding-teaser-text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1 1 24rem;
}
.coding-teaser-text svg {
  width: 22px; height: 22px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.coding-teaser-text p { color: var(--text-soft); font-size: 0.95rem; }
.coding-teaser-text strong { color: var(--text); }
.coding-teaser .btn { padding: 0.7rem 1.3rem; font-size: 0.92rem; flex-shrink: 0; }

/* ---------- Callout (kodlama) ---------- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 2.2rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.07), rgba(249, 115, 22, 0.05));
}
.callout svg {
  width: 22px; height: 22px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.callout p { color: var(--text-soft); font-size: 0.94rem; }
.callout strong { color: var(--text); }
.callout a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.callout a:hover { color: var(--orange); }

/* ---------- Card feature list (kodlama) ---------- */
.card-list {
  list-style: none;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.35rem;
}
.card-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
