/* Genel ayarlar */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #faf6f8;
  color: #222;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

h1, h2 {
  color: #111;
}

/* HEADER NAVBAR */
header {
  background: #fceef5; /* açık pembe */
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar {
  display: flex;
  justify-content: space-between; /* sol logo, sağ menü */
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem; /* mobil kenarlarda boşluk */
  flex-wrap: wrap; /* taşma olursa alt satıra geçsin */
}

.navbar__title a {
  font-weight: bold;
  font-size: 1.3rem;
  text-decoration: none;
  color: #111;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap; /* logo yazısı satır kırmasın */
}

.navbar__menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap; /* dar ekranda alt satıra geçebilsin */
  justify-content: flex-end; /* taşma olursa hizayı korur */
}

.navbar__menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: color 0.2s ease;
}

.navbar__menu a:hover {
  color: #d63384; /* pembe vurgu */
}

/* --- Mobil özel düzenleme --- */
@media (max-width: 600px) {
  .navbar {
    justify-content: center;
    text-align: center;
  }

  .navbar__menu {
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero .highlight {
  color: #d63384;
}

.subtitle {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 1rem;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  background: #d63384;
  color: #fff;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #a61e65;
}

.btn.secondary {
  background: #eee;
  color: #333;
}

.about, .skills {
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
}

.skills-list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.skills-list img {
  width: 50px;
  height: 50px;
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap; /* mobilde alta insin */
}

.hero-text {
  flex: 1;
  min-width: 250px;
}

.hero-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%; /* yuvarlak */
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.about-page {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  flex-wrap: wrap;
}

.about-photo img {
  width: 250px;
  height: 250px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.about-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.contact-page {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.contact-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-list a {
  text-decoration: none;
  color: #d63384;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  align-self: flex-start;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #fceef5;
  border-top: 1px solid #eee;
}

.site-footer a {
  color: #d63384;
  text-decoration: none;
  margin: 0 0.3rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}

.site-footer {
  margin-top: auto; /* en alta yaslanır */
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff6fa;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

.navbar__title a {
  font-family: 'Sacramento', cursive;
  font-size: 2.1rem;
}

h1, h2, h3 {
  font-family: 'Open Sans', sans-serif;
}

.footer-logo {
  font-family: 'Sacramento', cursive;
  font-size: 1.4rem;
  color: #d63384;
}
.footer-logo:hover {
  color: #a61e65;
}

.about-logo {
  font-family: 'Sacramento', cursive;
  font-size: 2.8rem;
  color: #d63384;
  display: block;
  margin-bottom: 1rem;
}

.works {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
}

.intro {
  color: #555;
  margin-bottom: 2rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.work-card h2 {
  margin-bottom: 0.5rem;
  color: #d63384;
}

.tags {
  margin: 0.5rem 0 1rem;
}

.tags span {
  background: #ffe3f2;
  color: #d63384;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  margin: 0.2rem;
  display: inline-block;
}

.links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.links a:hover {
  color: #d63384;
}

.github-btn,
.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* GitHub button */
.github-btn {
  background: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
}

.github-btn:hover {
  background: #333;
  color: #fff;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.github-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  top: 0.5px;
}

/* Website button */
.demo-btn {
  background: #fff4fa;
  border: 1px solid #f1b8d1;
  color: #d63384;
  position: relative;
  top: -0.8px; /* 🔹 emoji'yi dikeyde GitHub ikonuyla hizalar */
}

.demo-btn:hover {
  background: #d63384;
  color: #fff;
  border-color: #d63384;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(214,51,132,0.3);
}

/* Butonlar arası mesafeyi biraz aç */
.links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.work-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
}

/* 🔹 Görsel alanı */
.work-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid #f0dce6;
  display: block;
  background: #fdebf4; /* fallback rengi */
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.05);
}

/* 2x2 alanlı düzen: 
   lg ve üstünde -> 
   "photo text"
   "summary text"
   Mobilde doğal akış: photo -> text -> summary */
.about-grid {
  display: grid;
  gap: 1.25rem;
}

.about-photo   { grid-area: photo; }
.about-text    { grid-area: text; }
.about-summary { grid-area: summary; }

/* Kartlar: alt alta 3 (özellikle istendi) */


.card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #ececec);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border-color: var(--card-border-hover, #e4e4e4);
}
.card h2 {
  font-size: 1.05rem;
  margin: 0 0 .7rem 0;
  display: flex; align-items: center; gap: .5rem;
}

/* Listeler */
.icon-list { margin: 0; padding-left: 1rem; line-height: 1.6; }
.icon-list li { margin: .15rem 0; }

.key-values { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.key-values li { display: grid; grid-template-columns: 110px 1fr; align-items: start; gap: .6rem; }
.key-values span { font-weight: 600; }
.key-values em { font-style: normal; opacity: .9; }

.icon-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.icon-chips li {
  border: 1px solid var(--chip-border, #e8e8e8);
  background: var(--chip-bg, #fafafa);
  padding: .45rem .65rem;
  border-radius: 999px;
  font-size: .92rem;
}

/* Koyu tema */
@media (prefers-color-scheme: dark) {
  .card {
    --card-bg: #0e0f12;
    --card-border: #1c1d22;
    --card-border-hover: #2a2c33;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  }
  .icon-chips li {
    --chip-bg: #16171c;
    --chip-border: #25262b;
  }
}
/* ---- About grid layout fix (en alta ekle) ---- */
.about-summary { display: grid; gap: 1rem; } /* kartları alt alta 3 */

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(300px, 380px) 1fr; /* sol sabit, sağ esnek */
    column-gap: 2rem;
    grid-template-areas:
      "photo   text"
      "summary text";
    align-items: start;
  }

  /* sol sütundaki içerikleri sütun genişliğine sabitle */
  .about-photo,
  .about-summary {
    max-width: 380px;   /* dilersen 360–420px arası oynatabilirsin */
    width: 100%;
    justify-self: start;
  }

  .about-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
  }
}
/* --- 3 sütunlu düzen: sol | gutter | sağ --- */
.about-grid {
  display: grid;
  gap: 1.25rem;
}

.about-photo   { grid-area: photo; }
.about-text    { grid-area: text; }
.about-summary { grid-area: summary; }
.about-gutter  { grid-area: gutter; } /* dikey çizgi alanı */

/* --- About: taşma düzeltmesi (hard override) --- */

/* Grid kolonları: sol 380px, sağ esnek */
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 0.9fr 2.1fr;
    column-gap: 1rem;
    grid-template-areas:
      "photo   text"
      "summary text";
    align-items: start;
  }
  .about-text {
    margin-top: 2rem;
    padding-top: .5rem;
  }


  /* Sol kolonu kolon genişliğine kilitle */
  .about-grid .about-photo,
  .about-grid .about-summary {
    width: 100% !important;
    max-width: 380px !important;
    justify-self: start;
  }
}

/* Kartların kolon dışına çıkmasını kesin olarak engelle */
.about-grid .about-summary {
  display: grid;
  gap: 1rem;
  justify-items: stretch;   /* kartlar kolon genişliğini doldursun */
  align-items: start;
}
.about-grid .about-summary .card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;   /* padding/border genişliği aşmasın */
  overflow-wrap: anywhere;  /* uzun kelimeler taşmasın */
}
.about-text {
  border-left: 1px solid rgba(0,0,0,0.05);
  padding-left: 2rem;
}
@media (prefers-color-scheme: dark) {
  .about-text {
    border-left-color: rgba(255,255,255,0.1);
  }
}
.about-page {
  max-width: 1400px; /* 1000 yerine */
  padding: 0 0.8rem; /* yan boşluğu biraz azalt */
  margin: 0 auto;
}
