/* ==========================================================================
   DEBUCKS YAZILIM — CORE STYLES
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

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

::selection { background: var(--c-accent); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-surface-2); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }

/* ---------- Base ---------- */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--c-accent);
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); margin-bottom: 16px; }
.section-head p { color: var(--c-text-dim); font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(139,92,246,.4), 0 14px 46px rgba(139,92,246,.28); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--c-border-strong);
  color: var(--c-text);
}
.btn--ghost:hover { border-color: var(--c-accent); background: rgba(139,92,246,.08); transform: translateY(-2px); }

.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding var(--dur-med) var(--ease-out), background var(--dur-med), box-shadow var(--dur-med);
}
.navbar.is-scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff; font-size: 0.95rem; font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  color: var(--c-text-dim);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.nav-links a:hover { color: var(--c-text); background: var(--c-surface); }
.nav-links a.is-active { color: var(--c-text); background: var(--c-surface-2); }

.navbar__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  display: grid; place-items: center;
  position: relative;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.theme-toggle:hover { border-color: var(--c-accent); transform: rotate(-8deg); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity var(--dur-med), transform var(--dur-med); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  position: relative;
  z-index: 200;
}
.nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--c-text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--c-bg-elevated);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path var(--dur-slow) var(--ease-in-out);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  padding: 12px 0;
  color: var(--c-text-dim);
  border-bottom: 1px solid var(--c-border);
}
.mobile-menu a.is-active, .mobile-menu a:hover { color: var(--c-text); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

.mobile-menu__close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.mobile-menu__close:hover { border-color: var(--c-accent); transform: rotate(90deg); }
.mobile-menu__close span {
  position: absolute; left: 11px; right: 11px; top: 20px; height: 1.5px; background: var(--c-text);
}
.mobile-menu__close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu__close span:nth-child(2) { transform: rotate(-45deg); }

/* CTA butonunun mobil menüde nav-link stilini değil, buton stilini koruması için */
.mobile-menu a.btn {
  font-size: 0.95rem;
  color: #fff;
  border-bottom: none;
  padding: 14px 28px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
  opacity: .7;
}
.hero__blob {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: var(--grad-glow);
  filter: blur(10px);
  top: -200px; left: 50%; transform: translateX(-50%);
  animation: blob-float 14s var(--ease-in-out) infinite alternate;
}
.hero__blob--2 { width: 420px; height: 420px; top: 260px; left: 68%; animation-delay: -6s; opacity: .7; }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: 22px; }
.hero__desc { font-size: 1.1rem; color: var(--c-text-dim); max-width: 520px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__trust div { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.hero__trust span { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--c-text-faint); font-weight: 400; }

/* Signature element — live deploy console */
.console {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.console__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--c-border); }
.console__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--c-border-strong); }
.console__bar span:nth-child(1) { background: #ff5f57; }
.console__bar span:nth-child(2) { background: #febc2e; }
.console__bar span:nth-child(3) { background: #28c840; }
.console__bar em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--c-text-faint); font-family: var(--font-display); }
.console__body { padding: 22px 20px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .88rem; line-height: 1.9; min-height: 260px; }
.console__line { color: var(--c-text-dim); white-space: pre-wrap; }
.console__line .g { color: var(--c-success); }
.console__line .a { color: var(--c-accent); }
.console__line .d { color: var(--c-text-faint); }
.console__cursor { display: inline-block; width: 7px; height: 1em; background: var(--c-accent); vertical-align: text-bottom; animation: blink 1s step-end infinite; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat { text-align: center; padding: 32px 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
.stat__label { color: var(--c-text-dim); font-size: .88rem; margin-top: 6px; }

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

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-med);
  position: relative;
}
.card:hover { transform: translateY(-6px); border-color: var(--c-border-strong); box-shadow: var(--shadow-md); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(107,33,255,.08));
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--c-accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--c-text-dim); font-size: .94rem; }

/* ---------- Tech marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.tech-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-full);
  font-family: var(--font-display); font-size: .9rem; white-space: nowrap;
}
.tech-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }

/* ---------- Projects ---------- */
.project-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card__cover { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.project-card__cover .ph { position: absolute; inset: 0; }
.project-card__body { padding: 26px; }
.project-card__cat { font-family: var(--font-display); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 10px; }
.project-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.project-card p { color: var(--c-text-dim); font-size: .92rem; margin-bottom: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: .76rem; padding: 5px 12px; border-radius: var(--r-full); background: var(--c-surface-2); color: var(--c-text-dim); }

/* placeholder graphics for covers */
.ph { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: .04em; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.process__step { padding: 28px 20px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); position: relative; }
.process__step .n { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--c-border-strong); margin-bottom: 14px; }
.process__step h4 { font-size: 1rem; margin-bottom: 6px; }
.process__step p { font-size: .84rem; color: var(--c-text-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg);
  padding: 72px 48px;
  text-align: center;
  background: var(--grad-brand);
  position: relative; overflow: hidden;
  color: #fff;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.cta-band p { opacity: .85; margin-inline: auto 24px; margin-bottom: 28px; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Filter bar (projects page) ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  padding: 10px 20px; border-radius: var(--r-full); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-dim); font-size: .88rem; font-family: var(--font-display);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn.is-active, .filter-btn:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--c-border); padding: 72px 0 32px; background: var(--c-bg-elevated); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.footer__desc { color: var(--c-text-dim); font-size: .92rem; margin: 18px 0 22px; max-width: 320px; }
.footer h4 { font-size: .92rem; margin-bottom: 18px; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: var(--c-text-dim); font-size: .9rem; transition: color var(--dur-fast); }
.footer ul a:hover { color: var(--c-accent); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c-border);
  display: grid; place-items: center; transition: all var(--dur-fast);
}
.social-row a:hover { border-color: var(--c-accent); background: rgba(139,92,246,.1); transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--c-border); flex-wrap: wrap; gap: 16px; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: var(--c-text-faint); font-size: .84rem; }
.footer__legal a:hover { color: var(--c-text-dim); }
.footer__bottom p { color: var(--c-text-faint); font-size: .84rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; color: var(--c-text-dim); }
.field input, .field textarea, .field select {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-sm);
  padding: 14px 16px; color: var(--c-text); font-size: .95rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
.field textarea { resize: vertical; min-height: 140px; }

/* Page header (inner pages) */
.page-hero { padding: 180px 0 80px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.page-hero p { color: var(--c-text-dim); max-width: 560px; margin-inline: auto; font-size: 1.05rem; }

/* misc */
.mt-lg { margin-top: 64px; }
.center { text-align: center; }
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--r-full); font-size: .74rem; font-family: var(--font-display); }
.badge--open { background: rgba(34,197,94,.14); color: var(--c-success); }
