/* =================================================================
   SIRAÇOĞLU GROUP — Full-BG scroll-video + Liquid Glass (koyu tema)
   ================================================================= */

:root, :root[data-theme="dark"] {
  --bg: #000;
  --text: #ffffff;
  --dim: #d1d1d1;          /* gray-300 */
  --dim-2: #9a9a9a;
  --border: rgba(255,255,255,.20);
  --glass: rgba(0,0,0,0.40);
  --edge: 255,255,255;     /* cam kenar highlight rengi (R,G,B) */
  --btn-bg: #ffffff;       /* dolu buton zemini */
  --btn-fg: #000000;
  --vinvert: invert(1);    /* video filtresi: koyu temada ters çevir */
  --font: 'Inter', system-ui, sans-serif;
  --container: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.16,1,.3,1);
}
:root[data-theme="light"] {
  --bg: #f4f3ef;           /* açık kağıt zemin */
  --text: #111111;
  --dim: #4a4a46;
  --dim-2: #7c7a74;
  --border: rgba(0,0,0,.16);
  --glass: rgba(255,255,255,.55);
  --edge: 20,20,20;
  --btn-bg: #111111;
  --btn-fg: #f4f3ef;
  --vinvert: none;         /* açık temada video düz (siyah çizgi/beyaz zemin) */
}
html { transition: background .4s var(--ease); }

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--text); color: var(--bg); }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =================================================================
   SABİT ARKA PLAN VİDEOSU (scroll ile scrub) — ters çevrilir
   ================================================================= */
.bg { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
.bg video {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--vinvert);            /* koyu: ters (beyaz çizgi/siyah) · açık: düz (siyah çizgi/beyaz) */
  transition: filter .4s var(--ease);
}

/* =================================================================
   LIQUID GLASS
   ================================================================= */
.liquid-glass {
  background: var(--glass);
  background-blend-mode: luminosity;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(var(--edge),.10);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(var(--edge),.3) 0%, rgba(var(--edge),.1) 20%,
    rgba(var(--edge),0) 40%, rgba(var(--edge),0) 60%,
    rgba(var(--edge),.1) 80%, rgba(var(--edge),.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* =================================================================
   YARDIMCILAR
   ================================================================= */
main { position: relative; z-index: 1; }
.label {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim-2); font-weight: 500; margin-bottom: 20px;
}
.h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); margin-bottom: 18px; max-width: 46ch; }
.dim { color: var(--dim); max-width: 56ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 30px; border-radius: 10px; font-size: .95rem; font-weight: 500;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.btn--solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn--solid:hover { opacity: .88; transform: translateY(-2px); }
.btn--glass { color: var(--text); border: 1px solid var(--border); }
.btn--glass:hover { background: var(--btn-bg); color: var(--btn-fg); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* =================================================================
   LOADER
   ================================================================= */
.loader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; gap: 22px; grid-auto-flow: row; }
.loader__brand { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 600; letter-spacing: .12em; }
.loader__bar { width: min(46vw, 300px); height: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: #fff; }

/* =================================================================
   NAV
   ================================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 22px var(--pad) 0; }
.nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 14px; padding: 10px 16px; max-width: var(--container); margin-inline: auto;
}
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__mark { width: 34px; height: 26px; }
.nav__mark path { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav__word { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: .9rem; color: var(--text); transition: color .3s; }
.nav__links a:hover { color: var(--dim); }
.nav__cta { background: var(--btn-bg); color: var(--btn-fg); padding: 9px 22px; border-radius: 9px; font-size: .9rem; font-weight: 500; transition: opacity .3s; }
.nav__cta:hover { opacity: .88; }
.nav__burger { display: none; flex-direction: column; gap: 6px; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* Tema değiştirici */
.nav__theme { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); color: var(--text); transition: background .3s, color .3s; flex-shrink: 0; }
.nav__theme:hover { background: var(--glass); }
.nav__theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav__theme .icon-sun { display: none; }
:root[data-theme="light"] .nav__theme .icon-sun { display: block; }
:root[data-theme="light"] .nav__theme .icon-moon { display: none; }

/* =================================================================
   HERO
   ================================================================= */
.hero { min-height: 100svh; position: relative; display: flex; }
.hero__inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 var(--pad) clamp(48px, 8vh, 80px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
@media (min-width: 900px) { .hero__inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; } }
.hero__eyebrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.hero__title { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 22px; }
.hero__title .char { display: inline-block; white-space: pre; }
.hero__sub { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--dim); max-width: 44ch; margin-bottom: 26px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__right { display: flex; align-items: end; justify-content: flex-start; }
@media (min-width: 900px) { .hero__right { justify-content: flex-end; } }
.hero__tag { padding: 14px 24px; border-radius: 14px; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 300; }
.hero__scroll { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .25em; color: var(--dim-2); }

/* =================================================================
   PANELLER (video üstünde cam kartlar)
   ================================================================= */
.panel { min-height: 100svh; display: flex; align-items: center; padding: clamp(80px, 12vh, 140px) var(--pad); }
.card { width: 100%; max-width: 720px; margin-inline: auto; border-radius: 20px; padding: clamp(30px, 5vw, 56px); }
.card--wide { max-width: var(--container); }
.card__idx { font-size: 2rem; font-weight: 300; color: var(--dim-2); display: block; margin-bottom: 12px; }
.card h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 12px; }

.ticks { list-style: none; margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.ticks li { padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--dim); }
.ticks b { color: var(--text); font-weight: 500; }

.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: var(--container); margin-inline: auto; width: 100%; }
.cards-3 .card { max-width: none; }

/* Rakamlar */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 10px; }
.stat { border-left: 1px solid var(--border); padding: 10px 20px; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num { display: block; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.stat__label { display: block; margin-top: 12px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

/* Projeler */
.projects { margin-top: 18px; border-top: 1px solid var(--border); }
.project { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--border); transition: padding-left .4s var(--ease), background .3s; }
.project:hover { padding-left: 16px; }
.project__no { color: var(--dim-2); font-size: .85rem; }
.project__name { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 400; letter-spacing: -.02em; }
.project__meta { color: var(--dim); font-size: .85rem; text-align: right; }

/* Hizmetler */
.services { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 18px; }
.service { border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.service__no { color: var(--dim-2); font-size: .82rem; }
.service h3 { font-size: 1.2rem; font-weight: 500; margin: 14px 0 8px; }
.service p { color: var(--dim); font-size: .95rem; }

/* İletişim */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact__info { list-style: none; margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.contact__info li { padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--dim); }
.contact__info .k { display: inline-block; width: 90px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim-2); }
.contact__info a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact__form { display: grid; gap: 0; border-top: 1px solid var(--border); }
.field { position: relative; border-bottom: 1px solid var(--border); }
.field input, .field textarea { width: 100%; background: transparent; border: none; padding: 24px 4px 10px; color: var(--text); font: inherit; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; }
.field label { position: absolute; left: 4px; top: 18px; color: var(--dim-2); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 5px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.contact__form .btn { margin-top: 24px; }
.contact__note { margin-top: 14px; color: var(--text); font-size: .9rem; }

/* Footer */
.footer { padding: 0 var(--pad) 40px; }
.footer .card { margin-top: 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer__brand p { margin-top: 12px; }
.footer__nav, .footer__social { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__social a { color: var(--dim); transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__social a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 22px; color: var(--dim-2); font-size: .78rem; letter-spacing: .04em; }

/* =================================================================
   ANİMASYON DURUMLARI
   ================================================================= */
.fade { opacity: 0; }
.reveal { opacity: 0; transform: translateY(30px); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .services { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .nav__links { position: fixed; inset: 0; z-index: 40; flex-direction: column; justify-content: center; gap: 26px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.3rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; z-index: 60; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: none; }
  .project { grid-template-columns: 40px 1fr; }
  .project__meta { display: none; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .fade, .reveal { opacity: 1 !important; transform: none !important; }
}
