/* ============================================
   HERO — Sayfanın ilk gördüğün tam ekran bölümü
   ============================================ */

/* Hero'nun dış kapsayıcısı — tam ekran, dikey flex */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 80px;
}


/* ============================================
   DEKORATİF ARKA PLAN — Şekiller + Kod sembolleri
   Tüm .deco-* elementleri pointer-events: none,
   z-index: 0 — içeriğin arkasında kalır
   ============================================ */

/* Ortak temel — tüm deco elemanlar absolute, tıklanamaz */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ---- Geometrik Şekiller ---- */

/* Büyük dönen kare çerçeve — sol üst bölge */
.deco-square-lg {
  width: 22px; height: 22px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  top: 15%; left: 40%;
  opacity: 0.3;
  animation: spin-float 10s ease-in-out infinite;
}

/* Orta dönen kare — sağ orta bölge */
.deco-square-md {
  width: 14px; height: 14px;
  border: 2px solid var(--accent2);
  border-radius: 3px;
  top: 55%; left: 72%;
  opacity: 0.25;
  animation: spin-float 14s ease-in-out infinite reverse;
}

/* Dolu küçük kare — alt sol */
.deco-square-sm {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  top: 70%; left: 35%;
  opacity: 0.35;
  animation: spin-float 8s ease-in-out infinite;
}

/* Üçgen — sol orta */
.deco-tri-1 {
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid var(--accent2);
  top: 28%; left: 52%;
  opacity: 0.22;
  animation: bob 9s ease-in-out infinite;
}

/* Ters üçgen — sağ üst */
.deco-tri-2 {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 11px solid var(--accent);
  top: 20%; left: 78%;
  opacity: 0.2;
  animation: bob 12s ease-in-out infinite reverse;
}

/* Yuvarlak büyük — sağ alt */
.deco-circle-lg {
  width: 16px; height: 16px;
  border: 2px solid var(--accent2);
  border-radius: 50%;
  top: 65%; left: 60%;
  opacity: 0.25;
  animation: bob 7s ease-in-out infinite;
}

/* Yuvarlak küçük dolu — orta sağ */
.deco-circle-sm {
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  top: 42%; left: 83%;
  opacity: 0.3;
  animation: bob 6s ease-in-out infinite reverse;
}

/* Yatay çizgi — üst orta */
.deco-line-h {
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  top: 38%; left: 45%;
  opacity: 0.35;
  animation: bob 11s ease-in-out infinite;
}

/* Eğik çizgi — sağ üst */
.deco-line-d {
  width: 20px; height: 2px;
  background: var(--accent2);
  top: 32%; left: 68%;
  opacity: 0.25;
  transform: rotate(-45deg);
  animation: bob 13s ease-in-out infinite reverse;
}

/* Artı işareti — sol alt */
.deco-plus {
  width: 14px; height: 14px;
  top: 80%; left: 28%;
  opacity: 0.28;
  animation: bob 8s ease-in-out infinite;
}
/* Artı çizgileri ::before ve ::after ile */
.deco-plus::before,
.deco-plus::after {
  content: '';
  position: absolute;
  background: var(--accent2);
  border-radius: 1px;
}
.deco-plus::before { width: 14px; height: 2px; top: 6px; left: 0; }
.deco-plus::after  { width: 2px; height: 14px; top: 0; left: 6px; }

/* Büyük halka — sol orta (en soluk, en büyük) */
.deco-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  top: 50%; left: 22%;
  opacity: 0.12;
  animation: spin-float 20s linear infinite;
}


/* ---- Kod Sembolleri ---- */
/* Tüm kod sembolleri ortak görünüm */
.deco-code {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1;
}

/* < — açılış tag */
.deco-lt {
  font-size: 28px;
  top: 12%; left: 25%;
  opacity: 0.12;
  animation: bob 15s ease-in-out infinite;
}

/* /> — self-closing tag */
.deco-slash {
  font-size: 22px;
  top: 45%; left: 88%;
  opacity: 0.1;
  animation: bob 18s ease-in-out infinite reverse;
}

/* { } — süslü parantez çifti */
.deco-brace-open {
  font-size: 36px;
  top: 60%; left: 15%;
  opacity: 0.1;
  color: var(--accent);
  animation: bob 12s ease-in-out infinite;
}
.deco-brace-close {
  font-size: 36px;
  top: 25%; left: 90%;
  opacity: 0.08;
  color: var(--accent);
  animation: bob 16s ease-in-out infinite reverse;
}

/* () — parantez */
.deco-paren {
  font-size: 24px;
  top: 75%; left: 50%;
  opacity: 0.1;
  animation: bob 14s ease-in-out infinite;
}

/* ; — noktalı virgül */
.deco-semi {
  font-size: 32px;
  top: 18%; left: 60%;
  opacity: 0.1;
  animation: bob 10s ease-in-out infinite reverse;
}

/* _ — alt çizgi (cursor gibi) */
.deco-underscore {
  font-size: 20px;
  top: 85%; left: 75%;
  opacity: 0.12;
  animation: blink-slow 3s step-end infinite;
}

/* => — ok fonksiyon */
.deco-arrow {
  font-size: 18px;
  top: 52%; left: 30%;
  opacity: 0.1;
  animation: bob 17s ease-in-out infinite;
}


/* ---- Animasyonlar ---- */

/* Dönerken yüzer — kareler için */
@keyframes spin-float {
  0%   { transform: translateY(0)    rotate(0deg); }
  50%  { transform: translateY(-14px) rotate(180deg); }
  100% { transform: translateY(0)    rotate(360deg); }
}

/* Sade yukarı-aşağı sallanma — üçgen, çizgi, kod sembolleri */
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* Yavaş göz kırpma — _ alt çizgi için */
@keyframes blink-slow {
  0%,100% { opacity: 0.12; }
  50%     { opacity: 0; }
}

/* İmleç göz kırpma */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Yeşil nokta nabız */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }


/* ============================================
   ÜST BAR — Logo / Dil / Sosyal / CV Butonu
   ============================================ */

/* Topbar kapsayıcı — şekillerin üstünde (z-index: 10) */
.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

/* "theviacoder" logosu — el yazısı stili */
.logo {
  font-family: 'Birthstone', cursive;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* Sağ grup — dil + sosyal + CV */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* EN / TR dil seçici */
.lang-toggle { display: flex; gap: 4px; }

/* Her dil butonu */
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 13px;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  color: var(--muted);
  transition: all var(--transition);
}
.lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.lang-btn:not(.active):hover { border-color: var(--accent2); color: var(--accent2); }

/* Sosyal medya ikonları */
.social-icons { display: flex; align-items: center; gap: 12px; }
.social-icons a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.social-icons a:hover { color: var(--accent2); }

/* "Download CV" butonu
   HTML'e şöyle ekle:
   <a class="cv-btn" href="assets/kaan-cv.pdf" download>Download CV</a>
   PDF'i assets/ klasörüne koy, dosya adını href ile eşleştir */
.cv-btn {
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  transition: opacity var(--transition), box-shadow var(--transition);
  letter-spacing: 0.2px;
  /* download attribute HTML'de — CSS'in yapacağı bir şey yok */
}
.cv-btn:hover {
  opacity: 0.88;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}

/* Güneş/Ay tema toggle butonu — sağ üstte */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* İkonlar — aktif olan görünür */
.theme-toggle .icon-moon { display: block; }  /* dark modda ay göster */
.theme-toggle .icon-sun  { display: none;  }  /* dark modda güneş gizle */

[data-theme="light"] .theme-toggle .icon-moon { display: none;  }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }


/* ============================================
   HERO ANA İÇERİK — Sol yazılar + Sağ avatar
   ============================================ */

/* İki kolonlu grid: sol geniş metin, sağ avatar kartı.
   Sağ kolon genişliği .avatar-frame ile birebir eşleşmeli — aksi halde taşma olur. */
.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 40px;
  padding: 40px 0 60px;
  position: relative;
  z-index: 5;
}

/* "I'm" — küçük üst metin */
.hero-im {
  font-size: 64px;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  margin-bottom: 4px;
}

/* "Kaan" — büyük isim, ekrana göre ölçeklenir */
.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(64px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 8px;
}

/* Otomatik yazılan unvan metni */
.hero-typed {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--accent2);
  letter-spacing: -0.5px;
  min-height: 1.4em;
  margin-bottom: 20px;
}

/* Göz kırpan imleç */
.cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* Kısa açıklama */
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 400px;
  line-height: 1.75;
}
.hero-sub strong { color: var(--text); font-weight: 500; }


/* ============================================
   AVATAR KARTI — Fotoğraflı, büyütülmüş tasarım
   ============================================ */

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Grid kolonu 420px, taşma olmaması için sağ kolonun genişliğini asla aşma */
  max-width: 100%;
  overflow: hidden;
}

/* Dış çerçeve — .hero-content'in ikinci kolonuyla (420px) uyumlu boyut */
.avatar-frame {
  position: relative;
  width: 420px;
  height: 340px;
  max-width: 100%;
}

/* Sol üst dekoratif blok — derinlik efekti */
.avatar-accent-block {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 16px;
  opacity: 0.18;
  top: 8px;
  left: 8px;
}

/* Sağ alt ikinci dekoratif blok — karşı köşe dengesi */
.avatar-accent-block-2 {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--accent2);
  border-radius: 10px;
  opacity: 0.12;
  bottom: 8px;
  right: 8px;
}

/* Asıl kart — fotoğrafı kapsıyor */
.avatar-card {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 0;
  bottom: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, #221F3B, #14121E);
  border: 1px solid rgba(108,99,255,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Status badge alta */
  overflow: hidden;
  box-shadow: 0 24px 60px var(--card-shadow), 0 0 0 1px rgba(108,99,255,0.1);
}

/* Sağ üst köşe ışıma */
.avatar-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(108,99,255,0.18), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Alt gradient — fotoğraf varken üstüne hafif solma efekti */
.avatar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(14,14,17,0.85), transparent);
  z-index: 2; /* Fotoğrafın üstünde, status badge'in altında */
  pointer-events: none;
}

/* Fotoğraf — tam kartı kaplar
   HTML'e şöyle ekle:
   <img class="avatar-photo" src="assets/avatar.jpg" alt="Kaan">
   assets/ klasöründe avatar.jpg (veya .png, .webp) olmalı */
.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Resmi kartı dolduracak şekilde kırp */
  object-position: top;    /* Yüz üstte kalsın (gerekirse center yapabilirsin) */
  border-radius: 22px;
  z-index: 0;
}

/* Fotoğraf yüklenemezse veya yoksa görünen baş harfler */
.avatar-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: var(--accent2);
  opacity: 0.35;
  line-height: 1;
  z-index: 0;
  /* Fotoğraf varken gizlemek için HTML'de display:none yap */
}

/* "● available for work" status badge — altta, gradient üzerinde */
.avatar-status {
  position: relative;
  z-index: 3; /* ::after gradient'ın üstünde */
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  color: rgba(255,255,255,0.85);
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 18px; /* Kartın altından boşluk */
  backdrop-filter: blur(6px); /* Altındaki fotoğrafı bulanıklaştırır */
}

/* Yeşil yanıp sönen nokta */
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}


/* ============================================
   TAB NAVİGASYON — Hero altındaki sekme butonları
   ============================================ */

.tab-nav {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 10;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 24px 16px;
  border-radius: 12px 12px 0 0; /* Alta düz, üste yuvarlak */
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom: none;           /* Panel ile birleşik görünüm */
  color: var(--muted);
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  flex: 1;
  max-width: 160px;
}
.tab-btn:hover:not(.active) { background: var(--bg3); color: var(--accent2); border-color: rgba(108,99,255,0.35); }
.tab-btn.active             { background: var(--bg3); color: var(--accent2); border-color: rgba(108,99,255,0.4); }

.tab-icon { width: 20px; height: 20px; stroke: currentColor; }  