/* ========== Tema (her zaman beyaz) ========== */
:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --chip: #f8fafc;
  --primary: #111827;
  --primary-hover: #1e293b;
  --container: 72rem;
  --radius: 16px;
  --transition: 0.25s ease;
}

html {
  color-scheme: only light;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial;
}

/* ========== Temel ========== */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover {
  opacity: 0.9;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 4px;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
section {
  padding-block: clamp(48px, 9vw, 88px);
  scroll-margin-top: 80px;
}

/* ========== Header / Nav ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding-inline: 16px;
}
.brand {
  font-weight: 700;
  font-size: clamp(16px, 4.2vw, 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}
.menu a:hover {
  opacity: 1;
}

/* Mobil */
@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 6px;
    height: auto;
    padding-block: 10px;
  }
  .brand {
    flex: 1 1 100%;
  }
  .menu {
    order: 1;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .menu a {
    white-space: nowrap;
    padding: 6px 0;
  }
}

/* ========== Hero ========== */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.title {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: clamp(32px, 5vw, 52px);
}
.lead {
  max-width: 62ch;
  color: var(--muted);
}
.avatar {
  width: clamp(160px, 18vw, 240px);
  height: clamp(160px, 18vw, 240px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition);
}
.avatar:hover {
  transform: scale(1.02);
}
@media (max-width: 720px) {
  .avatar {
    margin: 0 auto 10px;
  }
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 14px;
}

/* ========== Başlıklar ========== */
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--primary);
}

/* ========== Timeline (Deneyimler) ========== */
/* ========== Timeline (Deneyimler & Gönüllülük) ========== */
.timeline {
  position: relative;
  border-left: 2px solid var(--line);
  padding-left: 24px;
  margin-top: 16px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 8px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 4px;
  display: inline-block;
}

.timeline-item p {
  margin: 4px 0;
  line-height: 1.5;
  color: var(--fg);
}

.timeline-item .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Başlık çizgisi ile hizalama */
.section h2 {
  font-size: clamp(20px, 2vw, 24px);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
  display: inline-block;
  padding-bottom: 4px;
}

/* Metin ve boşluk tutarlılığı */
.muted {
  color: var(--muted);
}


/* ========== Projeler ========== */
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--chip);
  font-size: 12px;
}

/* ========== Form & Butonlar ========== */
.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  color: var(--fg);
  transition: border var(--transition), box-shadow var(--transition);
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
}
textarea.input {
  resize: vertical;
  min-height: 60px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-del {
  background: #dc2626;
}
.btn-del:hover {
  background: #b91c1c;
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted-2);
  font-size: 14px;
  text-align: center;
}

/* ========== Toast Bildirimi ========== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  animation: fadein 0.3s ease;
  z-index: 9999;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Hover efekti: zaman çizgisi maddeleri */
.timeline-item:hover::before {
  background: var(--primary-hover);
  transform: scale(1.1);
  transition: all var(--transition);
}

/* Daha rahat okunabilirlik */
.timeline-item article {
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
}
