/* =========================================================
   TEMEL AYARLAR
   ========================================================= */

/* Renkleri tek yerden yönetmek için "değişkenler".
   Buradaki bir satırı değiştirerek tüm sitenin rengini
   topluca değiştirebiliriz. */
:root {
  --bg:        #0c110e;   /* sayfa arka planı (hafif yeşile çalan koyu) */
  --bg-soft:   #151c17;   /* kart / kutu arka planı */
  --text:      #e6ece7;   /* ana yazı rengi */
  --text-dim:  #96a09a;   /* soluk / ikincil yazı */
  --accent:    #24bf77;   /* vurgu rengi: buton, önemli linkler */
  --border:    #26302a;   /* ince ayraç çizgileri */
  --max:       1080px;    /* içeriğin maksimum genişliği */
}

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

/* Menüden bir bölüme tıklayınca "pat" diye zıplamak yerine yumuşakça kaysın */
html { scroll-behavior: smooth; }

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

/* Kullanıcı "hareketi azalt" dediyse tüm geçişleri kıs */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Bölümleri ortalayan + nefes payı veren ortak sarmalayıcı */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 640px;
}

.section h3 {
  margin: 28px 0 4px;
  font-size: 1.05rem;
}

/* =========================================================
   ÜST MENÜ  (sayfa kaydırılınca üstte sabit kalır)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(12, 17, 14, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.site-header nav { display: flex; gap: 24px; }

.site-header nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.site-header nav a:hover { color: var(--text); }

/* Hamburger düğmesi — masaüstünde gizli, mobilde görünür (aşağıda) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Menüden bir bölüme atlarken sabit başlığın altında kalmasın */
section[id] { scroll-margin-top: 76px; }

/* =========================================================
   HERO / GİRİŞ
   ========================================================= */
.hero {
  position: relative;   /* içindeki mutlak konumlu video + karartma için */
  overflow: hidden;     /* taşan videoyu kırp */
}

/* Metin bloğu — video ve karartmanın ÜSTÜnde durur */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 24px 90px;
}

/* Arka plan videosu — çok düşük görünürlük, tıklanamaz */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
  filter: blur(4px);              /* hafif bulanıklık */
  transform: scale(1.06);        /* blur kenar boşluğunu kapat */
}

/* Video ile yazı arasında ince karartma — metin her karede okunsun */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 17, 14, 0.35);
  pointer-events: none;
}

/* "Hareketi azalt" tercihi açıksa videoyu hiç gösterme */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { display: none; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 span { color: var(--accent); }

.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}

/* =========================================================
   BUTON
   ========================================================= */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #052018;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); opacity: 0.92; }

/* Hero'daki "Bana ulaşın": normalde şeffaf, fare gelince turuncu dolup parlar */
.hero .btn {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  transition: background 0.22s ease, color 0.22s ease,
              box-shadow 0.22s ease, transform 0.15s ease;
}
.hero .btn:hover {
  background: var(--accent);
  color: #052018;
  opacity: 1;
  box-shadow: 0 0 28px rgba(36, 191, 119, 0.45);
  transform: translateY(-2px);
}

/* İçi boş (kontur) buton — telefon linki için */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* İletişim satırındaki butonları yan yana / alt alta diz */
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 24px;
}

/* İletişim butonları: renk/şekil geçişleri yumuşak olsun */
.contact-lines a {
  text-align: center;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
}

/* Yazı, opaklıkla yumuşak değişsin */
.contact-lines a .lbl {
  display: inline-block;
  transition: opacity 0.18s ease;
}
.contact-lines a.swapping .lbl { opacity: 0; }

/* Tıklayınca "Kopyalandı ✓" — kısa geri bildirim */
.contact-lines a.copied {
  background: var(--accent);
  color: #052018;
  border-color: var(--accent);
  transform: scale(1.02);
}

/* =========================================================
   KART TABANI  (feature + work-card ortak — <button> sıfırlama)
   ========================================================= */
.feature,
.work-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature:hover,
.work-card:hover {
  transform: translateY(-3px);
  border-color: #37423a;
}

.feature:focus-visible,
.work-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Kartlardaki videolar */
.feature-video,
.work-video {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

/* =========================================================
   ÖNE ÇIKAN İŞ  (yatay, 16:9)
   ========================================================= */
.feature {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  margin-bottom: 24px;
}

.feature-video { height: 100%; aspect-ratio: 16 / 9; }

.feature-body { padding: 26px 26px 24px; }

.feature-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-body p { color: var(--text-dim); font-size: 0.95rem; }

/* =========================================================
   DİKEY İŞLER IZGARASI  (9:16 kartlar)
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.work-video { aspect-ratio: 9 / 16; }

.work-body { padding: 16px 18px 20px; }

.work-body h3 { margin-bottom: 2px; font-size: 1.05rem; }
.work-body h3 + p { margin-top: 7px; }   /* müşteri satırı yoksa da nefes payı */

.work-body .client {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.work-body p { color: var(--text-dim); font-size: 0.88rem; }

/* Küçük etiketler (kategori, malzeme vb.) */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.chips li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.tag-personal {
  font-size: 0.68rem;
  vertical-align: middle;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.play-hint {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--accent);
}

/* =========================================================
   HAKKIMDA
   ========================================================= */
.about p { max-width: 640px; color: var(--text-dim); }
.about p + p { margin-top: 14px; }

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.skills li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* =========================================================
   HİZMETLER
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.service h3 { margin-bottom: 8px; }
.service p  { color: var(--text-dim); font-size: 0.92rem; }

/* =========================================================
   NASIL ÇALIŞIYORUM  (ikonlu adımlar)
   ========================================================= */
.steps {
  list-style: none;
  display: grid;
  gap: 2px;
  max-width: 680px;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: none; }

/* Sol taraftaki daire içinde line-style ikon */
.step-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.step-icon svg { width: 20px; height: 20px; }

.step-text h3 { margin: 6px 0 4px; font-size: 1rem; }
.step-text p  { color: var(--text-dim); font-size: 0.92rem; }

/* =========================================================
   İLETİŞİM
   ========================================================= */
.contact .btn { margin: 12px 0 24px; }

.social {
  list-style: none;
  display: flex;
  gap: 20px;
}

.social a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.social a:hover { color: var(--accent); }

/* =========================================================
   ALT BİLGİ
   ========================================================= */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* =========================================================
   VİDEO BÜYÜTME (LIGHTBOX)
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* hidden özniteliği varken kesin gizle (display:flex'i ezmesin diye) */
.lightbox[hidden] { display: none; }

.lightbox-video {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 10px;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   ÖZEL İMLEÇ  (%50 opaklıkta turuncu daire)
   JS yalnızca fare olan cihazlarda body'ye .custom-cursor ekler
   ========================================================= */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 0 50% 50% 50%;              /* köşeli: sol üst köşe sivri */
  background: rgba(36, 191, 119, 0.5);       /* %50 yeşil dolgu (--accent) */
  border: 1.5px solid rgba(0, 0, 0, 0.5);    /* %50 siyah kontur */
  pointer-events: none;      /* asla tıklamayı engellemez */
  z-index: 9999;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  will-change: transform;
  display: none;             /* JS etkinleştirene kadar gizli */
}

body.custom-cursor #cursor { display: block; }

/* link / buton üzerinde: aynı şekil, ~%35 büyür */
#cursor.hover {
  width: 27px;
  height: 27px;
}

/* özel imleç aktifken sistem imlecini gizle */
body.custom-cursor,
body.custom-cursor * { cursor: none !important; }

/* =========================================================
   MOBİL / DAR EKRAN UYUMU
   ========================================================= */
@media (max-width: 720px) {

  /* ---- Üst menü: hamburger ---- */
  .site-header { padding: 14px 20px; }
  .nav-toggle { display: flex; }

  /* Menü, sayfayı İTMEZ; başlığın altında sayfanın ÜSTÜNE biner.
     Böylece açılıp kapanması sayfa yüksekliğini değiştirmez ve
     bir bağlantıya basınca kaydırma pürüzsüz kalır. */
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    background: rgba(12, 17, 14, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    max-height: 0;            /* kapalı */
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.22s ease;
  }
  .site-header nav.open {      /* düğmeye basınca yumuşak açılır */
    max-height: 340px;
    opacity: 1;
  }

  .site-header nav a {
    padding: 14px 2px;
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
  }
  .site-header nav a:first-child { border-top: none; }

  /* açıkken hamburger çizgileri çarpıya döner */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---- Öne çıkan iş alt alta ---- */
  .feature { grid-template-columns: 1fr; }

  /* ---- Bölüm boşlukları ---- */
  .section { padding: 64px 20px; }
  .hero-inner { padding: 84px 20px 64px; }

  /* ---- Dikey videolar: telefonda tam boy çok uzun kalıyor, sınırla ---- */
  .work-video { aspect-ratio: auto; height: 58vh; }

  /* ---- Arka plan videosu üstündeki karartmayı biraz artır ---- */
  .hero::after { background: rgba(12, 17, 14, 0.45); }
}
