:root {
  --bg: #0d1424;
  --bg-grad-start: #0b1220;
  --bg-grad-end: #111b30;
  --surface: #16223a;
  --surface-soft: #1b2a45;
  --text: #edf2ff;
  --muted: #a6b4cb;
  --link: #e5ecfa;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(5, 10, 22, 0.34);
  --line: rgba(166, 180, 203, 0.24);
  --nav-bg-mobile: #121d32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

body::before {
  top: -120px;
  left: -90px;
  background: #f59e0b;
}

body::after {
  right: -120px;
  bottom: -120px;
  background: #38bdf8;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 22, 0.88);
  backdrop-filter: blur(8px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #facc15);
  color: #2a1a00;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--link);
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  background: linear-gradient(90deg, var(--primary), #fcd34d);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 5px;
  background: var(--white);
}

.menu-toggle span + span {
  margin-top: 5px;
}

.hero {
  padding: 94px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  margin-bottom: 14px;
}

.hero p {
  color: color-mix(in srgb, var(--text) 83%, #8da2bc 17%);
}

.hero-actions {
  margin: 28px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual img {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 16px;
  border: none;
  outline: none;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(5, 10, 22, 0.35);
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), #fbbf24);
  color: #2b1c02;
  padding: 12px 18px;
  font-weight: 700;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 120%;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 14px;
}

.btn-outline {
  border-color: color-mix(in srgb, var(--line) 90%, #9fb4ca 10%);
  background: transparent;
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 130px;
}

.stats strong {
  display: block;
  font-size: 24px;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  background: linear-gradient(170deg, var(--surface) 0%, #101b33 100%);
  border: 1px solid color-mix(in srgb, var(--line) 80%, #9bb0c7 20%);
  border-radius: 18px;
  padding: 24px;
  margin-top: 34px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(5, 10, 22, 0.4);
}

.hero-card h3 {
  margin-bottom: 8px;
}

.hero-card p {
  margin-top: 0;
  color: var(--muted);
}

.contact-item {
  margin-bottom: 14px;
}

.contact-item span {
  color: var(--muted);
  font-size: 13px;
}

.contact-item strong {
  display: block;
}

.hero-card-image {
  margin-bottom: 12px;
}

.hero-card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: none;
  outline: none;
  display: block;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 92%);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    color-mix(in srgb, var(--line) 78%, var(--primary) 22%) 22%,
    color-mix(in srgb, var(--line) 78%, var(--primary) 22%) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Metin: index.php --section-badge-text | çerçeve burada */
.section + .section::after {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--primary) 80%, #fff 20%);
  background: color-mix(in srgb, var(--bg-grad-start) 92%, #000 8%);
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--primary) 28%);
  border-radius: 999px;
  min-width: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 24px;
  padding: 4px 14px;
  white-space: nowrap;
  overflow: visible;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

/* Hero sonrasinda da ayirac gorunsun */
#hizmetler::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 92%);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    color-mix(in srgb, var(--line) 78%, var(--primary) 22%) 22%,
    color-mix(in srgb, var(--line) 78%, var(--primary) 22%) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

#hizmetler::after {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--primary) 80%, #fff 20%);
  background: color-mix(in srgb, var(--bg-grad-start) 92%, #000 8%);
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--primary) 28%);
  border-radius: 999px;
  min-width: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 24px;
  padding: 4px 14px;
  white-space: nowrap;
  overflow: visible;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

/* Bolumlere uyumlu fakat farkli arka plan katmanlari */
#hizmetler {
  background: linear-gradient(180deg, rgba(17, 27, 48, 0.38) 0%, rgba(14, 23, 41, 0.52) 100%);
}

#hakkimizda {
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.5) 0%, rgba(14, 22, 38, 0.62) 100%);
}

#iletisim {
  background: linear-gradient(180deg, rgba(25, 39, 67, 0.42) 0%, rgba(17, 28, 49, 0.58) 100%);
}

.section-head {
  max-width: 700px;
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

.card {
  background: linear-gradient(180deg, #182744 0%, #14213a 100%);
  border: none;
  outline: none;
  border-radius: 16px;
  padding: 22px;
  min-height: 190px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card h3 {
  min-height: 58px;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: #bfd0e1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(4, 10, 20, 0.34);
}

.reveal-target {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.service-visuals {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-visuals img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  border: none;
  outline: none;
  box-shadow: 0 12px 28px rgba(5, 10, 22, 0.32);
  transition: transform 0.28s ease, filter 0.28s ease;
  display: block;
}

.service-visuals img:hover,
.hero-visual img:hover,
.visual-highlight img:hover,
.hero-card-image img:hover {
  transform: scale(1.015);
  filter: saturate(1.08);
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.about ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #c8d5e6;
}

.about li {
  position: relative;
  padding-left: 20px;
}

.about li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 10px;
}

.about li + li {
  margin-top: 12px;
}

.cta {
  padding-top: 72px;
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.cta-box {
  background: linear-gradient(180deg, var(--surface-soft), #0f1c35);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:focus {
  outline: none;
}

.inline-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 70%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visual-highlight {
  margin-top: 16px;
}

.visual-highlight img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: none;
  outline: none;
  box-shadow: 0 12px 32px rgba(5, 10, 22, 0.35);
  transition: transform 0.28s ease, filter 0.28s ease;
  display: block;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.floating-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 8px;
  z-index: 120;
}

.floating-btn {
  min-width: 108px;
  text-align: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(7, 16, 32, 0.32);
}

.floating-btn.wa {
  color: #eafff5;
  background: #1ca94b;
}

.floating-btn.call {
  color: #08211e;
  background: #57e4f7;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fffbf2;
    --bg-grad-start: #fffdf7;
    --bg-grad-end: #fff6e8;
    --surface: #ffffff;
    --surface-soft: #fff9ef;
    --text: #1f2937;
    --muted: #5f6f84;
    --link: #2f3d52;
    --line: rgba(31, 41, 55, 0.14);
    --shadow: 0 10px 28px rgba(31, 41, 55, 0.12);
    --nav-bg-mobile: #ffffff;
  }

  .header {
    background: rgba(246, 250, 255, 0.92);
  }

  .btn {
    color: #05212b;
  }

  .card,
  .hero-card,
  .cta-box {
    background: #ffffff;
  }

  .stats li {
    background: #ffffff;
  }

  .card p {
    color: #405064;
  }

  .section + .section::after,
  #hizmetler::after {
    color: #8a5a00;
    background: #ffffff;
    border-color: color-mix(in srgb, #d4a84b 55%, #c4b8a8 45%);
    box-shadow: 0 6px 14px rgba(31, 41, 55, 0.12);
  }

  #hizmetler {
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.78) 0%, rgba(255, 247, 232, 0.86) 100%);
  }

  #hakkimizda {
    background: linear-gradient(180deg, rgba(255, 247, 232, 0.8) 0%, rgba(255, 240, 218, 0.9) 100%);
  }

  #iletisim {
    background: linear-gradient(180deg, rgba(255, 250, 239, 0.8) 0%, rgba(255, 244, 225, 0.9) 100%);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .service-visuals,
  .about,
  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .cards {
    gap: 14px;
  }

  .service-visuals img,
  .service-visuals img:first-child {
    height: 220px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-card {
    margin-top: 0;
  }
}

@media (max-width: 780px) {
  h1 {
    font-size: clamp(26px, 7.5vw, 34px);
    margin-bottom: 14px;
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    margin: 18px 0 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    min-height: 48px;
    width: 100%;
  }

  .hero-visual img {
    max-height: 200px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 16px;
  }

  .hero-card h3 {
    font-size: 1.05rem;
  }

  .hero-card-image img {
    height: 130px;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stats li {
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
  }

  .stats strong {
    font-size: 20px;
  }

  .stats span {
    font-size: 12px;
    line-height: 1.35;
  }

  .section {
    padding: 52px 0;
  }

  .card {
    min-height: 0;
    padding: 18px;
  }

  .card h3 {
    min-height: 0;
    font-size: 1.05rem;
  }

  .cta {
    padding-top: 48px;
  }

  .cta-box {
    padding: 18px;
  }

  .floating-actions {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .menu-toggle {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
  }

  .nav {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 80px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--nav-bg-mobile);
    padding: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .nav a:hover {
    background: rgba(245, 158, 11, 0.14);
  }
}
