/* =========================================================
   TOKENS — toz pembesi masaüstü teması
   ========================================================= */
:root{
  --rose-100: #f3e6e1;
  --rose-300: #e3c3c3;
  --rose-500: #cf9fa6;
  --rose-700: #a9707c;
  --plum-900: #3d2530;
  --plum-700: #5a3742;
  --cream: #f7ece6;
  --gold: #c79a5a;
  --ok-green: #7c9473;

  --font-display: 'VT323', monospace;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius: 10px;
  --shadow-win: 0 30px 60px -20px rgba(61,37,48,0.55), 0 2px 0 rgba(255,255,255,0.4) inset;
}

*{ box-sizing: border-box; }
html,body{
  margin:0; padding:0;
  width:100%; height:100%;
  overflow:hidden;
  font-family: var(--font-body);
  color: var(--plum-900);
  background: var(--rose-500);
  cursor: none;
}
/* native imleci her elemanda gizle — sadece #cursor-dot görünsün */
*{ cursor: none !important; }
/* dokunmatik cihazlarda (fare yok) native imleci geri getir */
@media (hover: none), (pointer: coarse){
  html,body,*{ cursor: auto !important; }
}

/* =========================================================
   ARKA PLAN
   ========================================================= */
#bg-photo{
  position:fixed; inset:0; z-index:0;
  background-image: url('asset/bc.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.03);
}
#bg-tint{
  position:fixed; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(61,37,48,0.12) 0%, rgba(61,37,48,0.28) 100%);
}
#bg-noise{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  opacity:.05; mix-blend-mode:overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   ÖZEL İMLEÇ (ok işareti, ekran görüntüsündeki gibi)
   ========================================================= */
#cursor-dot{
  position:fixed; top:0; left:0; z-index:9999;
  width:26px; height:26px; pointer-events:none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M3 2 L3 20 L8.5 15.8 L12 22.5 L15.5 20.8 L12 14 L19 14 Z' fill='%23f7ece6' stroke='%233d2530' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  filter: drop-shadow(0 2px 5px rgba(61,37,48,0.35));
  /* Konum tamamen JS'te requestAnimationFrame ile yumuşatılıyor,
     burada transition YOK — ikisi birden gecikmeye sebep olur. */
  will-change: transform;
}
@media (hover: none), (pointer: coarse){ #cursor-dot{ display:none; } }

/* =========================================================
   HOŞ GELDİN BİLDİRİMİ
   ========================================================= */
#welcome-toast{
  position:fixed; bottom:26px; right:26px; z-index:200;
  display:flex; align-items:center; gap:10px;
  background: rgba(247,236,230,0.94);
  backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,0.65);
  border-radius:999px;
  padding:13px 20px 13px 16px;
  box-shadow: 0 16px 36px rgba(61,37,48,0.3);
  font-family: var(--font-mono); font-size:12.5px; color: var(--plum-700);
  opacity:0; transform: translateY(14px) scale(.95);
  pointer-events:none;
  transition: opacity .4s ease, transform .4s ease;
}
#welcome-toast.is-visible{
  opacity:1; transform: translateY(0) scale(1);
  pointer-events:auto; cursor:pointer;
}
.toast-dot{
  width:8px; height:8px; border-radius:50%; background: var(--ok-green);
  flex-shrink:0; box-shadow: 0 0 0 3px rgba(124,148,115,0.2);
}
@media (max-width:720px){
  #welcome-toast{ left:50%; right:auto; bottom:20px; transform: translate(-50%,14px) scale(.95); font-size:11.5px; }
  #welcome-toast.is-visible{ transform: translate(-50%,0) scale(1); }
}

/* =========================================================
   ÜST NAVİGASYON
   ========================================================= */
#topnav{
  position:fixed; top:22px; left:50%; transform:translateX(-50%);
  z-index:50; display:flex; gap:10px;
  background: rgba(247,236,230,0.55);
  backdrop-filter: blur(14px);
  padding:8px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(61,37,48,0.18);
}
.nav-pill{
  font-family: var(--font-mono);
  font-size:12px; letter-spacing:.03em;
  border:1px solid rgba(61,37,48,0.18);
  background: rgba(255,255,255,0.35);
  color: var(--plum-700);
  padding:9px 18px; border-radius:999px;
  cursor:pointer; transition: all .18s ease;
}
.nav-pill:hover{ background: rgba(255,255,255,0.7); transform: translateY(-1px); }
.nav-pill.is-active{
  background: var(--plum-900); color: var(--rose-100); border-color: var(--plum-900);
}

/* =========================================================
   STATÜ ÇUBUĞU
   ========================================================= */
#statusbar{
  position:fixed; top:24px; left:24px; z-index:50;
  font-family: var(--font-mono); font-size:11px;
  color: var(--rose-100); opacity:.9;
  display:flex; align-items:center; gap:8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.statusbar-dot{ color: var(--ok-green); }

/* =========================================================
   MASAÜSTÜ + İKONLAR
   ========================================================= */
#desktop{
  position:fixed; inset:0; z-index:5;
}
.icon{
  position:absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%,-50%);
  width:92px; display:flex; flex-direction:column; align-items:center; gap:6px;
  cursor: pointer; user-select:none;
  padding:8px 6px; border-radius:8px;
  transition: background .15s ease;
}
.icon:hover, .icon:focus-visible{ background: rgba(255,255,255,0.16); outline:none; }
.icon.is-selected{ background: rgba(255,255,255,0.28); }

.icon-label{
  font-family: var(--font-mono);
  font-size:11px; color:#fff;
  text-align:center; line-height:1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
  word-break: break-word;
}

.icon-glyph{
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}

/* klasör ikonu */
.folder-icon{ width:52px; height:40px; }
.folder-icon .folder-back{
  position:absolute; inset:0;
  background: linear-gradient(180deg, #6fa8d8, #4f86bd);
  border-radius: 3px 8px 5px 5px;
}
.folder-icon .folder-back::before{
  content:''; position:absolute; top:-7px; left:0; width:45%; height:9px;
  background: #6fa8d8; border-radius: 4px 4px 0 0;
}
.folder-icon .folder-front{
  position:absolute; left:2px; right:2px; bottom:2px; height:28px;
  background: linear-gradient(180deg, #a9cced, #7fb0dc);
  border-radius: 3px;
}
.folder-icon.big{ width:60px; height:46px; }
.crown-badge{
  position:absolute; top:-14px; right:-10px;
  font-size:16px; color: var(--gold);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* dosya (txt) ikonu */
.file-icon{
  width:36px; height:46px; background:#fdf7f2;
  border-radius:2px; position:relative;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  display:flex; flex-direction:column; justify-content:center; gap:4px; padding:0 6px;
}
.file-icon .file-corner{
  position:absolute; top:0; right:0; width:0; height:0;
  border-style:solid; border-width:0 10px 10px 0;
  border-color: transparent var(--rose-500) transparent transparent;
}
.file-icon .file-line{ height:2px; background:#d9c3bd; border-radius:1px; }

/* mail ikonu */
.mail-icon{
  width:44px; height:32px; background: var(--cream);
  border-radius:3px; position:relative;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.mail-icon .mail-flap{
  position:absolute; inset:0;
  background:
    linear-gradient(135deg, transparent 49.5%, var(--rose-700) 50%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, var(--rose-700) 50%, transparent 50.5%);
}

/* pdf ikonu */
.pdf-icon{
  width:38px; height:46px; background:#7c5262; color:#fff;
  font-family: var(--font-mono); font-size:10px; font-weight:700;
  display:flex; align-items:flex-end; justify-content:center; padding-bottom:6px;
  border-radius:2px; box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* finder / ara ikonu */
.finder-icon{
  width:44px; height:44px; background: var(--cream);
  border-radius:9px; box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  display:flex; align-items:center; justify-content:center;
}
.finder-icon .finder-glass{
  width:18px; height:18px; border:3px solid var(--plum-700); border-radius:50%;
  position:relative;
}
.finder-icon .finder-glass::after{
  content:''; position:absolute; width:9px; height:3px; background:var(--plum-700);
  bottom:-6px; right:-7px; transform:rotate(45deg); border-radius:2px;
}

/* explore ikonu (IE tarzı 'e') */
.explore-icon{
  width:46px; height:46px; border-radius:50%;
  background: conic-gradient(from 210deg, #6fa8d8, #cf9fa6, #6fa8d8);
  color:#fff; font-family: var(--font-display); font-size:30px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* proje küçük resim ikonları */
.thumb-icon{
  width:46px; height:46px; border-radius:3px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3), 0 0 0 3px #fff;
}
/* Görselleri buraya asset/ klasörüne aynı isimle koyarsan otomatik görünür.
   Görsel yoksa (veya yüklenene kadar) arka plandaki degrade renk yedek olarak kalır. */
.thumb-1{ background-color:#c98ba0; background: url('asset/rare_beauty.png') center/cover no-repeat, linear-gradient(160deg,#e8b3c2,#c98ba0); }
.thumb-2{ background-color:#89b3cf; background: url('asset/yemekler_webapp.png') center/cover no-repeat, linear-gradient(160deg,#bcd9ea,#89b3cf); }
.thumb-3{ background-color:#c9a95f; background: url('asset/HideNSeek.png') center/cover no-repeat, linear-gradient(160deg,#e3d3a3,#c9a95f); }
.thumb-4{ background-color:#a892cf; background: url('asset/PaddleOCR-Test.png') center/cover no-repeat, linear-gradient(160deg,#d3c9e8,#a892cf); }
.thumb-5{ background-color:#8fb383; background: url('asset/stm32h753-adc.png') center/cover no-repeat, linear-gradient(160deg,#c8e0c0,#8fb383); }
.thumb-6{ background-color:#d99b63; background: url('asset/OzgeDent.png') center/cover no-repeat, linear-gradient(160deg,#f0c9a0,#d99b63); }

/* =========================================================
   PENCERELER
   ========================================================= */
.window{
  position:fixed; z-index:100;
  top:50%; left:50%; transform: translate(-50%,-50%) scale(.96);
  width:min(640px, 88vw); max-height:78vh;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-win);
  border: 1px solid rgba(255,255,255,0.6);
  display:none; flex-direction:column;
  opacity:0; pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.window.is-open{
  display:flex; opacity:1; pointer-events:auto;
  transform: translate(-50%,-50%) scale(1);
}
.window.win-single{ width:min(480px, 88vw); }

/* sarı buton: sadece başlık çubuğu kalacak şekilde küçült */
.window.is-minimized{
  max-height: 0;
}
.window.is-minimized .win-body{
  display:none;
}
.window.is-minimized .win-titlebar{
  border-radius: var(--radius);
  border-bottom:none;
}

/* yeşil buton: pencereyi büyüt */
.window.is-maximized{
  width: min(920px, 94vw);
  max-height: 90vh;
}
.window.is-maximized.win-single{
  width: min(640px, 90vw);
}

.win-titlebar{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; cursor: grab;
  background: linear-gradient(180deg, #fff, var(--rose-100));
  border-bottom:1px solid rgba(61,37,48,0.1);
  border-radius: var(--radius) var(--radius) 0 0;
}
.win-titlebar:active{ cursor: grabbing; }
.traffic-lights{ display:flex; gap:7px; }
.tl{
  width:12px; height:12px; border-radius:50%; border:none; cursor:pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.tl.close{ background:#e08a8a; }
.tl.min{ background:#e8c479; }
.tl.zoom{ background:#8fbf87; }
.win-title{
  font-family: var(--font-display); font-size:18px; color: var(--plum-700);
  margin:0 auto; letter-spacing:.02em;
}

.win-body{
  padding:22px 26px 28px; overflow-y:auto;
}
.win-intro{ color: var(--plum-700); font-size:14.5px; line-height:1.6; margin-top:0; }

/* proje kartları */
.project-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap:16px; margin-top:14px;
}
.project-card{
  background: #fff; border-radius:8px; padding:14px;
  box-shadow: 0 6px 16px rgba(61,37,48,0.1);
}
.project-thumb{
  width:100%; aspect-ratio: 4/3; border-radius:6px; margin-bottom:10px;
}
.project-thumb.large{ aspect-ratio: 16/9; }
.project-card h3{ font-family: var(--font-display); font-size:20px; margin:0 0 6px; color: var(--plum-900); }
.project-card p{ font-size:13px; line-height:1.5; color: var(--plum-700); margin:0 0 10px; }
.project-tags{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.project-tags span{
  font-family: var(--font-mono); font-size:10px; background: var(--rose-100);
  color: var(--plum-700); padding:3px 8px; border-radius:999px;
}
.project-link{ font-family: var(--font-mono); font-size:12px; color: var(--rose-700); text-decoration:none; }
.project-link:hover{ text-decoration:underline; }

.win-single .win-body h3{ font-family: var(--font-display); font-size:22px; margin:14px 0 8px; }
.win-single .win-body p{ font-size:14px; line-height:1.6; color: var(--plum-700); }

/* hakkımda */
.about-body{ display:flex; gap:22px; flex-wrap:wrap; }
.about-photo{
  width:130px; height:130px; border-radius:12px; flex-shrink:0;
  background: linear-gradient(160deg,#e3c3c3,#a9707c);
  background-image: url('asset/me.jpg');
  background-size: cover;
  background-position: center;
}
.about-text{ flex:1; min-width:220px; }
.about-kicker{ font-family: var(--font-mono); font-size:11px; color: var(--rose-700); margin:0 0 4px; }
.about-text h2{ font-family: var(--font-display); font-size:32px; margin:0 0 10px; color: var(--plum-900); }
.about-text p{ font-size:14px; line-height:1.6; color: var(--plum-700); }
.skills-list{
  list-style:none; padding:0; margin:12px 0 0; display:flex; flex-wrap:wrap; gap:8px;
}
.skills-list li{
  font-family: var(--font-mono); font-size:11px; background: var(--rose-100);
  padding:6px 12px; border-radius:6px; color: var(--plum-700);
}

/* cv card */
.cv-header{ margin-bottom:6px; }
.cv-header h2{ font-family: var(--font-display); font-size:30px; margin:0; color: var(--plum-900); }
.cv-role{ font-family: var(--font-mono); font-size:12px; color: var(--rose-700); margin:2px 0 0; }
.cv-section{ margin-top:20px; }
.cv-section h4{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.04em;
  text-transform:uppercase; color: var(--rose-700);
  margin:0 0 10px; padding-bottom:6px; border-bottom:1px solid rgba(61,37,48,0.1);
}
.cv-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.cv-list li{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.cv-title{ font-size:13.5px; color: var(--plum-900); }
.cv-date{ font-family: var(--font-mono); font-size:11px; color: var(--rose-700); white-space:nowrap; }
.cv-note{ font-size:12.5px; color: var(--rose-700); margin-top:20px; font-style:italic; }

/* formlar */
form{ display:flex; flex-direction:column; gap:6px; margin-top:12px; }
form label{ font-family: var(--font-mono); font-size:11px; color: var(--plum-700); margin-top:8px; }
form input, form textarea{
  font-family: var(--font-body); font-size:14px;
  border:1px solid rgba(61,37,48,0.18); border-radius:6px;
  padding:10px 12px; background:#fff; color: var(--plum-900); resize:vertical;
}
form input:focus, form textarea:focus{ outline:2px solid var(--rose-500); outline-offset:1px; }
.hidden-field{ position:absolute; left:-9999px; }
.send-btn{
  margin-top:14px; align-self:flex-start;
  font-family: var(--font-mono); font-size:13px; letter-spacing:.02em;
  background: var(--plum-900); color: var(--rose-100);
  border:none; padding:11px 22px; border-radius:999px;
  cursor:pointer; text-decoration:none; display:inline-block;
  transition: transform .15s ease, background .15s ease;
}
.send-btn:hover{ background: var(--rose-700); transform: translateY(-1px); }
#form-status, #subscribe-status{ font-family: var(--font-mono); font-size:12px; color: var(--ok-green); min-height:16px; }

.contact-alt{
  display:flex; gap:16px; flex-wrap:wrap; margin-top:20px;
  padding-top:16px; border-top:1px solid rgba(61,37,48,0.1);
}
.contact-alt a{ font-family: var(--font-mono); font-size:12px; color: var(--rose-700); text-decoration:none; }
.contact-alt a:hover{ text-decoration:underline; }

#search-input{
  width:100%; font-family: var(--font-body); font-size:14px;
  border:1px solid rgba(61,37,48,0.18); border-radius:6px; padding:10px 12px;
}
.search-hint{ font-family: var(--font-mono); font-size:11px; color: var(--rose-700); margin-top:10px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px){
  #topnav{ top:14px; gap:6px; padding:6px; }
  .nav-pill{ padding:7px 12px; font-size:10px; }
  #statusbar{ display:none; }
  .icon{ width:76px; }
  .icon-glyph{ width:40px; height:40px; transform:scale(.85); }
  .icon-label{ font-size:10px; }
  .window{ width:92vw; max-height:82vh; }
  .about-body{ flex-direction:column; align-items:center; text-align:center; }
  .about-text h2{ font-size:26px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}