/* ===== DEĞİŞKENLER ===== */
:root {
  --bg: #0b1020;
  --bg-alt: #111834;
  --surface: #161f3d;
  --surface-2: #1c2750;
  --text: #e7ecf5;
  --muted: #9aa7c7;
  --primary: #6d5efc;
  --primary-2: #22d3ee;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== BUTONLAR ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 12px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b1020;
  box-shadow: 0 10px 30px rgba(109, 94, 252, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(109, 94, 252, 0.45); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ===== NAVBAR ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; transition: transform 0.2s ease; }
.nav__logo:hover { transform: translateY(-1px); }
.logo__icon { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; }
.logo__icon svg { width: 100%; height: 100%; }
.logo__text { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; display: flex; align-items: center; }
.logo__text .emt { color: #ffffff; }
.logo__text .soft { color: #94a3b8; font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: #0b1020 !important; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  padding: 9px 18px; border-radius: 10px; font-weight: 600;
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, rgba(109,94,252,.25), transparent 60%);
  filter: blur(20px); z-index: -1;
}
.hero__inner { max-width: 820px; }
.hero__eyebrow {
  display: inline-block; color: var(--primary-2); font-weight: 600; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 99px;
}
.hero__title { font-size: clamp(34px, 6vw, 58px); line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; }
.grad { background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 640px; }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { margin-top: 56px; display: flex; gap: 48px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 30px; font-weight: 800; }
.hero__stats span { color: var(--muted); font-size: 14px; }

/* ===== SECTION ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__eyebrow { color: var(--primary-2); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.section__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin: 10px 0 14px; }
.section__lead { color: var(--muted); font-size: 17px; }

/* ===== GRID & CARDS ===== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(109,94,252,.5); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 24px;
  background: var(--surface-2); border-radius: 12px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== PROJECTS ===== */
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project__badge {
  display: inline-block; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0b1020; font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 99px; margin-bottom: 16px;
}
.project__badge--soft { background: var(--surface-2); color: var(--muted); }
.project h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.project__link { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.project__link:hover { color: var(--primary); }
.project p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--surface-2); color: var(--muted); font-size: 13px; padding: 5px 12px; border-radius: 8px; }

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.about__avatar {
  width: 220px; height: 220px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; font-size: 64px; font-weight: 800; color: #0b1020;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
}
.about__text h2 { margin-top: 8px; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text .btn { margin-top: 8px; }

/* ===== CONTACT ===== */
.contact { max-width: 720px; margin: 0 auto; }
.contact__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 14px; color: var(--text); font-family: inherit; font-size: 15px; resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.form__note { margin-top: 14px; font-size: 14px; text-align: center; }
.form__note.ok { color: var(--primary-2); }
.form__note.err { color: #ff7a7a; }
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: border-color .2s, transform .2s;
}
.contact__item:hover { border-color: var(--primary); transform: translateY(-2px); }
.contact__ic { font-size: 22px; }
.contact__item span strong { font-size: 14px; }
.contact__item span { font-size: 14px; color: var(--muted); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer span { color: var(--muted); font-size: 14px; }
.footer__muted { opacity: .7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; text-align: center; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links {
    position: fixed; top: 68px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; transform: translateY(-150%); transition: transform .3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { text-align: center; margin-top: 10px; }
  .nav__toggle { display: flex; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
}
