
:root {
  --bg: #020711;
  --bg-soft: #061426;
  --surface: rgba(7, 21, 37, 0.62);
  --text: #edf7ff;
  --muted: #8da3b8;
  --line: rgba(145, 190, 225, 0.16);
  --cyan: #21d8ff;
  --cyan-strong: #00f2fe;
  --max: 1240px;
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }

#starfield { position: fixed; inset: 0; z-index: -5; pointer-events: none; }
.noise {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  height: var(--header-h);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}
.header.scrolled {
  background: rgba(2, 7, 17, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 600 14px/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0.24em;
  white-space: nowrap;
}
.brand-symbol {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(33, 216, 255, 0.7);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 22px rgba(33, 216, 255, 0.13);
}
.nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  color: #94a3b8;
  font: 600 11px/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color .25s ease, text-shadow .25s ease, background .25s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--cyan-strong);
  background: rgba(33, 216, 255, 0.06);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.42);
  outline: none;
}
.header-right { display: flex; align-items: center; gap: 9px; color: #61778b; font: 600 11px/1 "Space Grotesk", Inter, sans-serif; }
.lang { border: 0; background: none; color: #62798d; cursor: pointer; padding: 6px 4px; transition: color .2s ease; }
.lang.active { color: #eaf7ff; font-weight: 800; }
.menu { display: none; background: none; border: 0; margin-left: 10px; padding: 6px; cursor: pointer; }
.menu i { display: block; width: 23px; height: 1px; background: #dcebf5; margin: 5px; transition: transform .2s ease; }

.hero-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: url("../assets/meriduna-hero.png") center center / cover no-repeat;
  isolation: isolate;
  contain: paint;
  animation: heroVisual 20s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, filter;
  filter: blur(0px) brightness(1);
  transition: filter 0.08s linear;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
.hero-bottom,
.scroll { position: absolute; z-index: 3; color: #738aa0; font: 700 9px/1 "Space Grotesk", Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.hero-bottom { left: 42px; bottom: 36px; display: flex; align-items: center; gap: 12px; }
.hero-bottom i { width: 65px; height: 1px; background: linear-gradient(90deg, #5b7287, transparent); }
.scroll { right: 42px; bottom: 34px; display: flex; align-items: center; gap: 13px; }
.scroll b { width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 16px; font-weight: 400; animation: bob 1.7s infinite; }

.hero {
  position: relative;
  z-index: 2;
  min-height: auto;
  padding: 112px 0 128px;
  background:
    radial-gradient(circle at 70% 20%, rgba(33,216,255,.08), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #03101d 100%);
  border-top: 1px solid rgba(145, 190, 225, 0.1);
}
.hero-content { width: min(820px, calc(100% - 64px)); margin-inline: auto; text-align: center; position: relative; z-index: 2; }
.kicker { margin: 0 0 24px; color: #b7c8d7; font: 600 10px/1.6 "Space Grotesk", Inter, sans-serif; letter-spacing: .34em; text-transform: uppercase; }
.kicker b { color: var(--cyan); margin: 0 8px; }
.hero h1, .title { margin: 0; font: 600 clamp(47px, 6.3vw, 88px)/.94 "Space Grotesk", Inter, sans-serif; letter-spacing: -.05em; }
.hero h1 em, .title em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(225,241,253,.72); }
.hero-text, .copy { color: #9db2c4; line-height: 1.8; font-size: 16px; max-width: 690px; }
.hero-text { margin: 30px auto; }
.copy { margin: 32px 0 0; }
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { min-height: 48px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border-radius: 3px; font: 700 10px/1 "Space Grotesk", Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.btn.primary { background: #ebf8ff; color: #03101b; }
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 12px 38px rgba(33,216,255,.22); }
.btn.secondary { border: 1px solid var(--line); color: #bfd0dd; background: rgba(2,10,20,.25); }
.btn.secondary:hover { border-color: rgba(33,216,255,.5); }
.mail-btn { text-transform: lowercase; }

.section { position: relative; padding: 150px 0; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: 180px 1fr; gap: 70px; }
.label { display: flex; flex-direction: column; gap: 9px; color: #657b8f; font: 700 10px/1.3 "Space Grotesk", Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.label span { color: var(--cyan); }
.about { background: linear-gradient(180deg, transparent, rgba(7,29,49,.25), transparent); }
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.muted { margin: 0; color: #70869a; font-size: 12px; letter-spacing: .08em; }
.cards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.card { min-height: 470px; position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(11,30,48,.72), rgba(2,8,17,.96)); transition: transform .4s ease, border-color .4s ease; }
.card:hover { transform: translateY(-8px); border-color: rgba(33,216,255,.42); }
.card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -150px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(33,216,255,.17), transparent 68%); transition: transform .5s ease; }
.card:hover::after { transform: scale(1.6); }
.featured { background: radial-gradient(circle at 72% 18%, rgba(33,216,255,.17), transparent 36%), linear-gradient(145deg, rgba(10,40,62,.78), rgba(2,8,17,.96)); }
.number, .category { position: relative; z-index: 2; color: #60778b; font: 700 9px/1.4 "Space Grotesk", Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.category { float: right; max-width: 65%; text-align: right; }
.card-body { position: absolute; left: 24px; right: 24px; bottom: 28px; z-index: 2; }
.card-body small { color: var(--cyan); font: 700 9px/1.4 "Space Grotesk", Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.card h3 { margin: 12px 0 16px; font: 600 clamp(34px, 4vw, 55px)/.95 "Space Grotesk", Inter, sans-serif; letter-spacing: -.05em; }
.card h3 em, .card h3 span { color: var(--cyan); font-style: normal; }
.card p { color: #8da3b6; font-size: 13px; line-height: 1.7; max-width: 480px; }
.card a { display: inline-block; margin-top: 16px; font: 700 10px/1.4 "Space Grotesk", Inter, sans-serif; letter-spacing: .12em; }
.vision { overflow: hidden; }
.orb { position: absolute; width: 700px; height: 700px; right: -300px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 38% 35%, rgba(33,216,255,.17), rgba(8,50,82,.08) 28%, transparent 65%); filter: blur(4px); }
.contact { padding-top: 80px; }
.contact-box { padding: 68px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 40px; background: radial-gradient(circle at 82% 50%, rgba(33,216,255,.1), transparent 30%), var(--surface); }
.contact-box .copy { margin-top: 14px; }
.footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #62788b; font-size: 10px; letter-spacing: .12em; }
.footer .brand-symbol { width: 24px; height: 24px; font-size: 12px; }

.reveal-init { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal-in { opacity: 1; transform: none; }
@keyframes heroVisual {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}
@keyframes bob { 50% { transform: translateY(6px); } }

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

@media (max-width: 980px) {
  .header { padding: 0 22px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 15px; right: 15px; padding: 18px; flex-direction: column; align-items: stretch; background: rgba(2,7,17,.96); border: 1px solid var(--line); backdrop-filter: blur(18px); }
  .nav.open { display: flex; }
  .nav a { justify-content: center; }
  .menu { display: block; }
  .hero-visual { background-position: 58% center; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .label { flex-direction: row; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 400px; }
  .heading { align-items: flex-start; flex-direction: column; }
  .contact-box { padding: 40px; align-items: flex-start; flex-direction: column; }
  .footer { flex-wrap: wrap; padding: 24px 0; }
}

@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .container { width: calc(100% - 36px); }
  .brand { letter-spacing: .18em; font-size: 12px; }
  .hero-visual { min-height: 92svh; background-position: 65% center; }
  .hero-bottom { left: 18px; bottom: 25px; }
  .hero-bottom span:last-child, .hero-bottom i { display: none; }
  .scroll { right: 18px; bottom: 21px; font-size: 0; }
  .scroll b { font-size: 16px; }
  .hero { padding: 88px 0 98px; }
  .hero-content { width: calc(100% - 36px); }
  .hero h1 { font-size: 49px; }
  .hero-text { max-width: 360px; font-size: 14px; }
  .section { padding: 105px 0; }
  .title { font-size: 46px; }
  .cards { gap: 10px; }
  .card-body { left: 20px; right: 20px; bottom: 24px; }
  .contact-box { padding: 32px; }
  .contact-box .title { font-size: 42px; }
}


/* ------------------------------------------------------------------
   MOBILE HERO VISUAL FIX
   Mobil ekranlarda hero görselinin kırpılmasını engeller.
   Desktop'ta cover görünüm korunur; mobilde contain daha doğru sonuç verir.
------------------------------------------------------------------ */

.hero-visual {
  background-color: #020711;
}

/* Büyük tablet / küçük laptop */
@media (max-width: 1100px) {
  .hero-visual {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 100svh;
    min-height: 620px;
  }
}

/* Tablet ve telefon */
@media (max-width: 900px) {
  .hero-visual {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 100svh;
    min-height: 560px;
  }

  .hero-visual::before {
    background: linear-gradient(to bottom, transparent 76%, var(--bg) 100%);
  }
}

/* Dar telefonlar */
@media (max-width: 560px) {
  .hero-visual {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 100svh;
    min-height: 520px;
  }

  .hero-bottom {
    bottom: 24px;
  }

  .scroll {
    bottom: 22px;
  }
}

/* Çok kısa ekranlar */
@media (max-height: 680px) and (max-width: 900px) {
  .hero-visual {
    height: 100svh;
    min-height: 480px;
  }
}

/* Zoom animasyonu mobilde kırpma hissini artırmasın diye daha kontrollü */
@media (max-width: 900px) {
  @keyframes heroVisual {
    0%, 100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.025);
    }
  }
}
