:root{
  --bg: #0b0f19;
  --bg2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border: rgba(255,255,255,.10);
  --primary:#7c3aed;
  --primary2:#a78bfa;
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --radius: 18px;
}

body.light{
  --bg:#f7f7fb;
  --bg2:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border: rgba(17,24,39,.12);
  --shadow: 0 12px 26px rgba(17,24,39,.10);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% -20%, rgba(124,58,237,.35), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(167,139,250,.20), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height:100vh;
}

/* ---- Mouse follower (glow cursor) ---- */
.cursor-glow{
  position: fixed;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .18s ease, width .18s ease, height .18s ease;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 35% 35%, rgba(167,139,250,.55), rgba(124,58,237,.12) 45%, transparent 70%);
  box-shadow:
    0 0 0 1px rgba(167,139,250,.18),
    0 0 24px rgba(124,58,237,.22),
    0 0 60px rgba(34,211,238,.14);
}
body.light .cursor-glow{
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 35% 35%, rgba(124,58,237,.32), rgba(34,211,238,.10) 45%, transparent 70%);
  box-shadow:
    0 0 0 1px rgba(124,58,237,.16),
    0 0 22px rgba(124,58,237,.18),
    0 0 54px rgba(34,211,238,.12);
}
.cursor-glow.is-hover{
  width: 56px;
  height: 56px;
  opacity: .95;
}
.cursor-glow.is-down{
  width: 20px;
  height: 20px;
  opacity: .95;
}

@media (prefers-reduced-motion: reduce){
  .cursor-glow{ display:none !important; }
}
@media (pointer: coarse){
  .cursor-glow{ display:none !important; }
}

/* ---- Comet cursor canvas ---- */
.cursor-canvas{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .18s ease;
  mix-blend-mode: screen;
}
body.light .cursor-canvas{
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce){
  .cursor-canvas{ display:none !important; }
}
@media (pointer: coarse){
  .cursor-canvas{ display:none !important; }
}

a{ color: inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin-inline:auto; }

.header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid var(--border);
}
body.light .header{ background: rgba(255,255,255,.65); }

.nav{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 0;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  margin-right:auto;
}
.logo-dot{
  width:10px; height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
}

.icon-btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}
body.light .icon-btn{ background: rgba(17,24,39,.04); }

.burger{ display:none; }

.menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 6px;
}
.menu-link{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.menu-link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.menu-link.active{
  color: var(--text);
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(124,58,237,.25);
}

.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 42px 0 18px;
  align-items:center;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  width: fit-content;
  margin-bottom: 12px;
}
h1{ font-size: clamp(34px, 4vw, 54px); line-height:1.05; }
.lead{
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height:1.6;
  max-width: 56ch;
}
.muted{ color: var(--muted); }

.hero-actions{
  display:flex;
  gap:12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  font-weight: 650;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn.primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border: 1px solid rgba(255,255,255,.18);
  color: white;
}
.btn.ghost{ background: transparent; }
.btn.small{ padding: 10px 12px; border-radius: 12px; font-size: .95rem; }

.social{
  display:flex;
  gap:12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.social a{ color: var(--muted); border-bottom: 1px dashed transparent; }
.social a:hover{ color: var(--text); border-bottom-color: var(--muted); }

.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
body.light .card{ background: rgba(255,255,255,.85); }

.profile-card{ display:flex; gap: 14px; align-items:center; }
.avatar{
  width:54px; height:54px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(167,139,250,.22));
  border: 1px solid rgba(124,58,237,.25);
}
.avatar img{
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
.card-title{ font-size: 1.1rem; margin-bottom: 8px; }
.card-text{ color: var(--muted); line-height:1.65; }

.stats{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 14px;
  text-align:center;
}
.stat-num{ font-weight: 900; font-size: 1.35rem; display:block; }
.stat-label{ color: var(--muted); font-size: .95rem; }

.section{ padding: 44px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section-head h2{ font-size: 1.8rem; }

.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.list{ margin-top: 8px; padding-left: 18px; color: var(--muted); line-height: 1.8; }

.chips{ display:flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip{
  border:1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 650;
  font-size: .92rem;
}

.skill{ margin-top: 12px; }
.skill-top{ display:flex; justify-content: space-between; color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  overflow:hidden;
}
.bar span{
  display:block;
  height:100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

/* ---- Projects (Hover zoom + gradient overlay + title on top) ---- */
.project-card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-media{
  position: relative;
  height: 190px;
  cursor: pointer;
  outline: none;
}
.project-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
  display:block;
}

/* gradient overlay */
.project-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.74));
}

/* title on top of image */
.project-top{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}
.project-top h3{
  font-size: 1.15rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.project-top p{
  color: rgba(255,255,255,.82);
  font-size: .95rem;
}

/* hover zoom */
.project-card:hover .project-media img{
  transform: scale(1.08);
}
.project-card:hover{
  transform: translateY(-2px);
  transition: transform .2s ease;
}

.project-body{ padding: 14px 18px 18px; }
.project-text{ color: var(--muted); line-height:1.6; }

.project-tags{ margin-top: 10px; display:flex; gap:10px; flex-wrap:wrap; }
.project-actions{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }

.tiny-note{ margin-top: 12px; font-size: .95rem; }

/* Form */
.form{ display:grid; gap: 12px; margin-top: 12px; }
label{ display:grid; gap: 8px; color: var(--muted); font-weight: 650; }
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}
body.light input, body.light textarea{ background: rgba(17,24,39,.03); }
input:focus, textarea:focus{
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 0 4px rgba(124,58,237,.15);
}
.form-msg{ margin-top: 4px; color: var(--muted); min-height: 22px; }

/* ---- Contact (Centered like screenshot) ---- */
/* (Eski contact stilleri kaldırıldı; yeni tasarım aşağıda) */

/* ---- Contact (Premium / eye-catching) ---- */
.contact-wrap{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: stretch;
}
.contact-wrap::before{
  content:"";
  position:absolute;
  inset: -18px -14px;
  border-radius: 28px;
  background:
    radial-gradient(650px 340px at 18% 20%, rgba(124,58,237,.34), transparent 60%),
    radial-gradient(520px 320px at 88% 10%, rgba(167,139,250,.22), transparent 58%),
    radial-gradient(420px 320px at 70% 95%, rgba(34,211,238,.16), transparent 55%);
  pointer-events:none;
  filter: saturate(1.05);
}

.contact-hero,
.contact-panel{
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-hero{
  padding: 20px 20px 18px;
  background: rgba(255,255,255,.04);
}
body.light .contact-hero{ background: rgba(255,255,255,.78); }

.contact-h{
  margin-top: 10px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.4px;
}
.contact-p{
  margin-top: 12px;
  max-width: 55ch;
  line-height: 1.7;
}
.contact-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.contact-mini{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-pill{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 650;
  font-size: .92rem;
}
body.light .contact-pill{ background: rgba(17,24,39,.03); }

.contact-panel{
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
body.light .contact-panel{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
}
.contact-panel::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(167,139,250,.25), rgba(34,211,238,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity: .9;
}
.contact-panel-head{
  display:flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.contact-panel-title{
  font-size: 1.1rem;
  letter-spacing: .2px;
}

.contact-methods{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.contact-method{
  display: grid;
  grid-template-columns: 44px 1fr 26px;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
body.light .contact-method{ background: rgba(17,24,39,.02); }
.contact-method:hover{
  transform: translateY(-1px);
  border-color: rgba(124,58,237,.45);
  background: rgba(124,58,237,.08);
}
body.light .contact-method:hover{ background: rgba(124,58,237,.10); }

.contact-method-ic{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border: 1px solid rgba(255,255,255,.22);
}
.contact-method-txt{
  display: grid;
  gap: 2px;
}
.contact-method-k{
  font-weight: 900;
  letter-spacing: .2px;
}
.contact-method-v{
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-method-go{
  color: var(--muted);
  font-weight: 900;
  justify-self: end;
}
.contact-method:hover .contact-method-go{ color: var(--text); }

.contact-social-block{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.contact-social-title{
  font-size: 1rem;
  margin-bottom: 10px;
}
.contact-social-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-orb{
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
body.light .social-orb{ background: rgba(17,24,39,.02); }
.social-orb:hover{
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(34,211,238,.45);
  background: rgba(34,211,238,.08);
}

@media (max-width: 900px){
  .contact-wrap{
    grid-template-columns: 1fr;
  }
  .contact-wrap::before{
    inset: -14px -10px;
  }
}

/* Contact form card (Formspree) */
.contact-form-card{
  margin-top: 16px;
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
  padding: 18px;
  overflow: hidden;
}
body.light .contact-form-card{ background: rgba(255,255,255,.82); }

.contact-form-card::before{
  content:"";
  position:absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.35), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}

.contact-form-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-form-title{ font-size: 1.2rem; letter-spacing: .2px; }

.contact-form{
  margin-top: 10px;
}
.contact-form-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.contact-field{
  display:grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}
.contact-field input,
.contact-field textarea{
  background: rgba(255,255,255,.06);
}
body.light .contact-field input,
body.light .contact-field textarea{
  background: rgba(17,24,39,.03);
}

.contact-submit-row{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-submit-row .form-msg{
  margin-top: 0;
  min-height: 22px;
}

/* Footer */
.footer{ border-top: 1px solid var(--border); padding: 18px 0; margin-top: 20px; }
.footer-inner{ display:flex; align-items:center; justify-content: space-between; gap: 14px; color: var(--muted); }
.to-top{ padding: 8px 10px; border-radius: 12px; border:1px solid var(--border); background: rgba(255,255,255,.05); }

/* ---- Modal ---- */
.modal{ position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.open{ display: block; }

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.modal-dialog{
  position: relative;
  width: min(720px, 92%);
  margin: 7vh auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .92);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: translateY(10px);
  animation: modalIn .18s ease-out forwards;
}
body.light .modal-dialog{ background: rgba(255,255,255,.95); }
@keyframes modalIn{ to{ transform: translateY(0); } }

.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.modal-img{
  width: 100%;
  height: min(60vh, 520px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-top: 8px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.04);
}

.modal-title{ margin-top: 6px; font-size: 1.4rem; }
.modal-desc{ margin-top: 10px; color: var(--muted); line-height: 1.6; }

.modal-block{ margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.modal-block h4{ font-size: 1rem; margin-bottom: 10px; }
.modal-list{ padding-left: 18px; color: var(--muted); line-height: 1.9; }

.modal-actions{ margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(3, 1fr); }

  .burger{ display:inline-flex; }
  .menu{
    position: absolute;
    right: 4%;
    top: 64px;
    width: min(360px, 92%);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(10, 14, 26, .92);
    backdrop-filter: blur(10px);
    display:none;
    flex-direction: column;
    align-items: stretch;
  }
  body.light .menu{ background: rgba(255,255,255,.92); }
  .menu.open{ display:flex; }
  .menu-link{ width:100%; }
}

@media (max-width: 520px){
  .modal-dialog{ margin: 6vh auto; }
  .modal-img{ height: min(52vh, 420px); }
}
