/* ===== Design tokens ===== */
:root {
  --bg: #0a0b12;
  --bg-2: #0f111c;
  --surface: #141728;
  --surface-2: #1a1e33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eaecf5;
  --muted: #9aa0b8;
  --brand: #6c5ce7;
  --brand-2: #00d4ff;
  --accent: #a855f7;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1140px;
  --shadow: 0 20px 60px -20px rgba(108, 92, 231, 0.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

.gradient-text {
  background: linear-gradient(120deg, var(--brand-2), var(--accent), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--full { width: 100%; }
.btn--primary {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -18px rgba(108, 92, 231, 0.6); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ===== Navbar ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 18, 0.8);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand__logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(108, 92, 231, 0.7); }
.brand__mark {
  background: linear-gradient(120deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand__text { color: var(--text); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* Mobil menü karartma perdesi */
.nav__backdrop {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav__backdrop.open { opacity: 1; visibility: visible; }

/* ===== Hero ===== */
.hero { position: relative; padding: 180px 0 100px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle at 50% 40%, rgba(108, 92, 231, 0.35), transparent 60%),
              radial-gradient(circle at 65% 60%, rgba(0, 212, 255, 0.22), transparent 55%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted); margin-bottom: 28px;
}
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.hero__sub { max-width: 620px; margin: 24px auto 0; color: var(--muted); font-size: 1.1rem; }
.hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

.hero__stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font-size: 2.4rem; font-weight: 800; }
.stat__num::after { content: "+"; color: var(--brand-2); }
.stat__label { color: var(--muted); font-size: 0.9rem; }

/* ===== Marquee (logo şeridi) ===== */
.marquee {
  overflow: hidden; border-block: 1px solid var(--border); padding: 26px 0; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: scroll 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo { display: inline-flex; align-items: center; justify-content: center; height: 40px; flex: 0 0 auto; }
.logo img, .logo svg {
  height: 40px; width: auto; max-width: 74px; display: block;
  filter: grayscale(1); opacity: 0.62;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.marquee:hover .logo img, .marquee:hover .logo svg { filter: none; opacity: 1; }
.logo:hover img, .logo:hover svg { transform: scale(1.14); }
.logo--txt { color: var(--muted); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.section__head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===== Grid & Cards ===== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(108, 92, 231, 0.5); background: var(--surface-2); }
.card__icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(0, 212, 255, 0.15));
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ===== Projects ===== */
.projects { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.project:hover { transform: translateY(-6px); border-color: rgba(108, 92, 231, 0.5); background: var(--surface-2); }
.project__tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-2);
  background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.project__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.project__tags .project__tag { margin-bottom: 0; }
.project h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project h3 a { color: var(--brand-2); text-decoration: none; transition: opacity 0.2s ease; }
.project h3 a:hover { text-decoration: underline; opacity: 0.85; }
.project p { color: var(--muted); font-size: 0.93rem; flex-grow: 1; }
.project__tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.project__tech span {
  font-size: 0.76rem; font-weight: 500; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 8px;
}
.project--gallery { cursor: pointer; }
.project__view {
  margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--brand-2);
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s ease;
}
.project--gallery:hover .project__view { gap: 10px; }
.project__link { cursor: pointer; text-decoration: none; }
.project__link:hover { gap: 10px; text-decoration: underline; }
.project--more {
  grid-column: 1 / -1;
  flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 4px 12px; text-align: center; padding: 22px 26px;
  background: transparent; border-style: dashed; border-color: rgba(108, 92, 231, 0.5);
}
.project--more:hover { background: rgba(108, 92, 231, 0.06); }
.project--more h3 { margin-bottom: 0; font-size: 1.2rem; background: linear-gradient(120deg, var(--brand-2), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.project--more p { flex-grow: 0; }

/* ===== Proje ekran görüntüsü görüntüleyici ===== */
.gv {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 6, 12, 0.82); backdrop-filter: blur(6px); padding: 24px; animation: gvfade 0.25s ease;
}
@keyframes gvfade { from { opacity: 0; } to { opacity: 1; } }
.gv__close {
  position: absolute; top: 18px; right: 22px; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1.05rem; cursor: pointer;
  transition: background 0.2s ease;
}
.gv__close:hover { background: rgba(255, 255, 255, 0.15); }
.gv__img { display: block; max-width: 100%; }
.gv__cap { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

/* 1) modal galeri */
.gv--modal .gv__stage { position: relative; width: 100%; max-width: 960px; }
.gv__frame {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
}
.gv--modal .gv__img { max-width: 100%; max-height: 74vh; border-radius: 8px; margin: 0 auto; }
.gv__nav {
  position: absolute; top: 42%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(20, 23, 40, 0.85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 0.2s ease;
}
.gv__prev { left: -12px; } .gv__next { right: -12px; }
.gv__nav:hover { background: var(--brand); }
.gv__dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.gv__dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; transition: 0.2s ease; }
.gv__dot.active { background: var(--brand-2); transform: scale(1.25); }

@media (max-width: 600px) {
  .gv__prev { left: 2px; } .gv__next { right: 2px; }
}

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about__text h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 18px; line-height: 1.18; }
.about__text > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }
.checklist { list-style: none; margin-bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--brand), var(--accent)); color: #fff;
  border-radius: 50%; font-size: 0.75rem; font-weight: 700;
}
.about__panel { display: flex; flex-direction: column; gap: 16px; }
.value {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; transition: transform 0.25s ease, border-color 0.25s ease;
}
.value:hover { transform: translateX(6px); border-color: rgba(108, 92, 231, 0.5); }
.value__num { font-size: 1.4rem; font-weight: 800; color: var(--brand-2); }
.value h4 { font-size: 1.05rem; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: 0.92rem; }

/* ===== Süreç ===== */
.process { margin-top: 90px; }
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-6px); border-color: rgba(108, 92, 231, 0.5); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ===== CTA / Contact ===== */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 40px; max-width: 760px; margin: 0 auto;
}
.cta__glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.3), transparent 65%);
  filter: blur(10px);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.15; }
.cta > p { color: var(--muted); margin: 12px auto 20px; max-width: 480px; }
#contact.section { padding-top: 36px; padding-bottom: 40px; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.field--full { grid-column: 1 / -1; }
.cta__form input, .cta__form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 0.96rem; resize: vertical; transition: border-color 0.2s;
}
.cta__form input:focus, .cta__form textarea:focus { outline: none; border-color: var(--brand); }
.cta__form input::placeholder, .cta__form textarea::placeholder { color: #6b7192; }
.cta__form .btn { grid-column: 1 / -1; }
.cta__note { grid-column: 1 / -1; text-align: center; font-size: 0.9rem; color: var(--brand-2); min-height: 20px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ===== Footer ===== */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 260px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h5 { font-size: 0.95rem; margin-bottom: 14px; }
.footer__cols a, .footer__cols span { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 9px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 26px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; gap: 8px;
}
.footer__privacy { color: var(--muted); transition: color 0.2s ease; }
.footer__privacy:hover { color: var(--brand-2); text-decoration: underline; }

/* ===== Gizlilik Politikası penceresi ===== */
.privacy {
  position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center;
  background: rgba(5, 6, 12, 0.82); backdrop-filter: blur(6px); padding: 24px;
}
.privacy.open { display: flex; animation: gvfade 0.25s ease; }
.privacy__box {
  position: relative; width: 100%; max-width: 640px; max-height: 84vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 34px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.privacy__close {
  position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1rem; cursor: pointer;
  transition: background 0.2s ease;
}
.privacy__close:hover { background: rgba(255, 255, 255, 0.15); }
.privacy__box h2 { font-size: 1.5rem; margin-bottom: 6px; padding-right: 30px; }
.privacy__date { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.privacy__box h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--brand-2); }
.privacy__box p { color: var(--muted); margin-bottom: 8px; }
.privacy__box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.privacy__box li { position: relative; padding-left: 22px; color: var(--muted); }
.privacy__box li::before { content: "•"; position: absolute; left: 6px; color: var(--brand); font-weight: 700; }
.privacy__box strong { color: var(--text); font-weight: 600; }
.privacy__box a { color: var(--brand-2); }
.privacy__note { font-size: 0.82rem; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-style: italic; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .process { margin-top: 60px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid--4 { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78%, 300px);
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    background: var(--bg-2); border-left: 1px solid var(--border); padding: 40px; text-align: center;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 99;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 100; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--3 { grid-template-columns: 1fr; }
  .hero__stats { gap: 32px; }
  .cta__form { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 70px; }
  .section { padding: 70px 0; }
}
