:root{
  --bg:#0b1020;
  --card:#16202f;
  --text:#f5f5f5;
  --accent:#60a5fa;
  --shadow:0 6px 18px rgba(0,0,0,0.5);
  --radius:12px;
}

/* Light theme overrides (applied when body has .light) */
body.light {
  --bg:#f3f4f7;
  --card:#ffffff;
  --text:#1e1e1e;
  --accent:#0078ff;
  --shadow: 0 6px 20px rgba(2,6,23,0.06);
}
/* === LIGHT MODE FIX: Projeler + Deneyimler kartları skill-card gibi olsun === */

body.light .proj,
body.light #sectionModal .proj {
  background: #ffffff !important;
  border-left: 4px solid var(--accent) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
  color: #1e1e1e !important;
}

body.light .proj-title,
body.light #sectionModal .proj-title {
  color: var(--accent) !important;
}

body.light .proj-desc,
body.light #sectionModal .proj-desc {
  color: #333 !important;
  opacity: .9 !important;
}

/* Kart üzerine hover efekti light modda da düzgün olsun */
body.light .proj:hover,
body.light #sectionModal .proj:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

/* Common */

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, sans-serif;
  background:var(--bg);
  color:var(--text);
  padding:20px;
  display:flex;
  justify-content:center;
  transition: background .25s ease, color .25s ease;
}

/* ANIMATIONS */
@keyframes fadeUp{0%{opacity:0;transform:translateY(40px);}100%{opacity:1;transform:translateY(0);}}
.fade{animation:fadeUp .8s ease forwards;opacity:0}
.delay-1{animation-delay:.2s}.delay-2{animation-delay:.35s}.delay-3{animation-delay:.5s}.delay-4{animation-delay:.6s}.delay-5{animation-delay:.7s}

/* WRAP */
.wrap{width:100%;max-width:1100px}

/* HEADER */
header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{height:60px;display:block;border-radius:8px;object-fit:cover}
nav a{text-decoration:none;color:var(--text);font-size:14px;margin-left:12px;opacity:.85}
nav a:hover{opacity:1}
.btn{background:var(--card);color:var(--text);border:1px solid rgba(255,255,255,0.12);padding:8px 12px;border-radius:10px;cursor:pointer}

/* CARD / HERO */
.card{background:var(--card);padding:22px;border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:18px;transition:background .25s}
.hero{
  display:flex;
  align-items:center;
  gap:24px;
    min-height:240px; 
}.avatar{width:260px;height:260px;border-radius:28px;overflow:hidden;flex-shrink:0}
.avatar img{width:100%;height:100%;object-fit:cover}

/* SKILLS */
.skill-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.skill-card{background:#20304a;border-radius:12px;padding:18px;box-shadow:0 8px 18px rgba(0,0,0,0.45);transition:.25s;display:flex;flex-direction:column;gap:10px;cursor:pointer}
body.light .skill-card{background:#e7eef9}
.skill-card:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 12px 22px rgba(0,0,0,0.7)}
.skill-header{display:flex;align-items:center;gap:10px}
.skill-icon{width:32px;height:32px;border-radius:8px;background:rgba(96,165,250,0.13);display:grid;place-items:center;font-size:18px;color:var(--accent)}
.skill-name{font-weight:700;font-size:16px}
.skill-level-text{font-size:13px;opacity:.8}
.progress{height:6px;border-radius:999px;background:rgba(255,255,255,0.12);overflow:hidden}
body.light .progress{background:#d6dbe6}
.progress>div{height:100%;background:linear-gradient(90deg,var(--accent),#5ce0ff)}

/* PROJECTS */
.projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.proj{background:#20304a;border-radius:12px;padding:16px;box-shadow:0 8px 18px rgba(0,0,0,0.45);transition:.25s}
body.light .proj{background:#e7eef9}
.proj:hover{transform:translateY(-5px)}
.proj-title{font-weight:700;margin-bottom:6px;color:var(--accent)}
.proj-desc{font-size:14px;opacity:.85}

/* FOOTER */
footer{text-align:center;color:rgba(255,255,255,0.7);font-size:13px;margin-top:12px}
body.light footer{color:#222}
/* OVERLAY + MODAL *//* ==== GLASS MODAL TASARIMI ==== */

#sectionOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px) brightness(0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  animation: overlayFade .3s ease forwards;
}

#sectionModal {
  background: rgba(22, 32, 47, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  width: 650px;
  max-width: 90%;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.65);
  transform: scale(.75);
  opacity: 0;
  transition: .35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#sectionModal.show {
  transform: scale(1);
  opacity: 1;
}

/* İçerik Scroll */
#sectionContent {
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 12px;
  animation: contentFade .4s ease;
}

/* Modern Scrollbar */
#sectionContent::-webkit-scrollbar {
  width: 7px;
}
#sectionContent::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), #4cc9ff);
  border-radius: 10px;
}
#sectionContent::-webkit-scrollbar-track {
  background: transparent;
}

#modalCloseBtn {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), #5ce0ff);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .3px;
  transition: .25s ease;
}
#modalCloseBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

/* Animasyonlar */
@keyframes overlayFade {
  from { opacity:0 }
  to   { opacity:1 }
}
@keyframes contentFade {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}


#sectionModal {
  animation: modalZoom .35s ease forwards;
}

@keyframes modalZoom {
  from { transform: scale(.6); opacity:0 }
  to   { transform: scale(1); opacity:1 }
}
#experience .proj {
  margin-bottom: 20px;

}
/* ==== GELİŞTİRİLMİŞ İŞ DENEYİMİ KART TASARIMI ==== */

#experience .proj {
  margin-bottom: 25px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b2a41, #16202f);
  position: relative;
  overflow: hidden;
  transition: .3s ease;
  border-left: 4px solid var(--accent);
}

/* Hover animasyonu – yukarı kalkma + parıltı */
#experience .proj:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.55);
}

/* Başlık stil geliştirme */
#experience .proj-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Başlık ikonu */
#experience .proj-title::before {
  content: "";
  font-size: 18px;
}

/* Açıklama yazısı */
#experience .proj-desc {
  font-size: 14px;
  opacity: .9;
  margin-top: 6px;
  line-height: 1.5;
}

/* Hover Glow efekti */
#experience .proj:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(96,165,250,0.18), transparent 60%);
  pointer-events: none;
}
/* ==== MODAL İÇİN DENEYİM KARTLARININ UYUMLU HALE GETİRİLMESİ ==== */

#sectionModal .proj {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b2a41, #16202f);
  border-left: 4px solid var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: .3s ease;
}

#sectionModal .proj:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.55);
}

/* Başlık */
#sectionModal .proj-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

#sectionModal .proj-title::before {
  content: "";
  font-size: 18px;
}

/* Açıklama */
#sectionModal .proj-desc {
  font-size: 14px;
  opacity: .9;
  line-height: 1.5;
}
/* ==== ANASAYFA PROJELERİ İÇİN GELİŞTİRİLMİŞ KART TASARIMI ==== */

#projects .proj {
  background: linear-gradient(135deg, #1b2a41, #16202f);
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: .3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover efekti */
#projects .proj:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.55);
}

/* Başlık ikonu */
#projects .proj-title::before {
  content: "";
  margin-right: 6px;
}

/* Hover Glow efekti */
#projects .proj:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(96,165,250,0.18), transparent 60%);
  pointer-events: none;
}

/* ==== MODAL – PROJELER TASARIMI (DÜZELTİLMİŞ) ==== */

#sectionModal .projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

#sectionModal .proj {
  background: linear-gradient(135deg, #1b2a41, #16202f);
  border-left: 4px solid var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  padding: 18px;
  border-radius: 12px;
  transition: .3s ease;
}

#sectionModal .proj:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.55);
}

#sectionModal .proj-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

#sectionModal .proj-title::before {
  content: "";
  margin-right: 6px;
}

#sectionModal .proj-desc {
  font-size: 13px;
  opacity: .88;
  line-height: 1.4;
}

/* 📱 Mobil cihazlarda tek sütuna düşsün */
@media (max-width: 600px) {
  #sectionModal .projects {
    grid-template-columns: 1fr;
  }
}

/* ==== MODAL – YETENEKLER TASARIMI ==== */

#sectionModal .skill-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

#sectionModal .skill-card {
  background: linear-gradient(135deg, #1b2a41, #16202f);
  padding: 20px;
  border-radius: 14px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: .3s ease;
}

#sectionModal .skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.55);
}

#sectionModal .skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

#sectionModal .skill-icon {
  width: 38px;
  height: 38px;
  background: rgba(96,165,250,0.18);
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 18px;
}

#sectionModal .skill-name {
  font-size: 17px;
  font-weight: 700;
}

#sectionModal .skill-level-text {
  font-size: 14px;
  opacity: .85;
  margin-top: 6px;
}

#sectionModal .progress {
  margin-top: 8px;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
}

#sectionModal .progress div {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent), #5ce0ff);
}
/* ==== TÜM MODAL İÇERİKLERİ KAYDIRILABİLİR OLSUN ==== */

#sectionModal {
  max-height: 85vh;       /* ekranı aşmasın */
  overflow: hidden;       /* taşma gizlensin */
  display: flex;
  flex-direction: column;
}

#sectionContent {
  overflow-y: auto;       /* içerik kaydırılabilir */
  padding-right: 10px;    /* scrollbar çarpışmasın */
  max-height: calc(85vh - 70px); /* kapat butonuna yer kalsın */
}
/* Modal içindeki klonlanmış bölümlerde animasyonları kapat ve görünür yap */
#sectionModal .fade,
#sectionModal .delay-1,
#sectionModal .delay-2,
#sectionModal .delay-3,
#sectionModal .delay-4,
#sectionModal .delay-5,
#sectionModal .card,
#sectionModal .hero,
#sectionModal .skill-card,
#sectionModal .proj,
#sectionModal section {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
/* ... mevcut CSS ... */

/* 📱 Mobil cihazlarda tek sütuna düşsün */
@media (max-width: 600px) {
  #sectionModal .projects {
    grid-template-columns: 1fr;
  }
}

/* ==== MODAL – YETENEKLER TASARIMI ==== */
/* ... senin kodların ... */


/* ⬇⬇⬇ BURADAN SONRA EKLEMELİSİN ⬇⬇⬇ */

/* 📱 Genel mobil düzenleme */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  nav a {
    margin: 0 8px;
    font-size: 13px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
  .avatar {
    width: 180px;
    height: 180px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero p {
    font-size: 14px;
  }
}

/* 📱 600px altı düzen */
@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr !important;
  }
  #skills .skill-list {
    grid-template-columns: 1fr !important;
  }
  .wrap {
    max-width: 100%;
  }
  .card {
    padding: 16px;
  }
}

/* 📱 Modal mobil düzen */
@media (max-width: 600px) {
  #sectionModal {
    width: 95% !important;
    padding: 20px;
  }
  #sectionContent {
    max-height: 65vh;
  }
}

