/* ===== Değişkenler & Reset ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #1a1a1a;
  --muted: #5b6470;
  --border: #e6e9ee;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --shadow: 0 6px 24px rgba(20, 30, 50, 0.06);
  --radius: 14px;
  --maxw: 1080px;
}

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

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

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

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

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

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

.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: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
    var(--bg);
  padding: 96px 0 80px;
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-title span { color: var(--accent); }
.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Butonlar ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Bölümler ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-sub { color: var(--muted); }

.mini-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 26px 0 14px;
}

/* ===== Hakkımızda ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-text em { color: var(--muted); }

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.9rem;
  font-weight: 500;
}
.section-alt .skills li { background: #fff; }

.timeline { list-style: none; border-left: 2px solid var(--border); padding-left: 22px; }
.timeline li { position: relative; margin-bottom: 24px; display: flex; flex-direction: column; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.tl-date { font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.tl-role { font-weight: 700; }
.tl-desc { color: var(--muted); font-size: 0.92rem; }

/* ===== Kartlar (proje & referans) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(20, 30, 50, 0.10); }

.project h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}
.card-links { display: flex; gap: 16px; }
.link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.link:hover { border-color: var(--accent); }

/* ===== Referans (quote) ===== */
.quote blockquote {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.quote figcaption { display: flex; flex-direction: column; }
.q-name { font-weight: 700; }
.q-role { color: var(--muted); font-size: 0.88rem; }

/* ===== İletişim ===== */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-weight: 700; font-size: 1.05rem; word-break: break-word; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-ig { font-weight: 700; color: var(--accent); }
.footer-ig:hover { color: var(--accent-dark); }

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

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 8px 0; }
  .nav-cta { display: inline-block; margin-top: 6px; }
  .hero { padding: 72px 0 56px; }
  .section { padding: 64px 0; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
