/* ==========================================================================
   askrolt.com — Kişisel Site Stilleri
   Koyu & modern tema (açık tema desteğiyle)
   ========================================================================== */

/* ---- Değişkenler / Tema -------------------------------------------------- */
:root {
  --accent-1: #7c5cff;   /* mor */
  --accent-2: #2b8cff;   /* mavi */
  --accent-3: #1fd6c6;   /* cyan */
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --grad-blue: linear-gradient(150deg, #2f7bff 0%, #35a8ff 42%, #17e0d0 100%);
  --grad-nebula: linear-gradient(140deg, #22d3ee 0%, #4a7bff 36%, #a855f7 70%, #ec4fce 100%); /* uzay nebulası */

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sign: "Cinzel Decorative", "Sora", serif;  /* arka plan harfleri + küçük Askrolt logosu */
}

/* Koyu tema (varsayılan) */
[data-theme="dark"] {
  --bg: #05060e;      /* uzay boşluğu laciverti */
  --bg-soft: #0d0f1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --text-dim: #a3a8bd;
  --text-faint: #6b7089;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(5, 6, 14, 0.6);
}

/* Açık tema */
[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --surface: rgba(15, 20, 45, 0.03);
  --surface-2: rgba(15, 20, 45, 0.05);
  --border: rgba(15, 20, 45, 0.1);
  --border-strong: rgba(15, 20, 45, 0.18);
  --text: #14162a;
  --text-dim: #4a4f68;
  --text-faint: #8b90a6;
  --shadow: 0 24px 55px -24px rgba(40, 50, 100, 0.28);
  --nav-bg: rgba(246, 247, 251, 0.72);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Arkaplan efektleri -------------------------------------------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.3;
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
}
.bg-glow--1 {
  width: 520px; height: 520px; top: -140px; left: -120px;
  background: radial-gradient(circle, var(--accent-1), transparent 65%);
}
.bg-glow--2 {
  width: 480px; height: 480px; top: 240px; right: -140px;
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
}
[data-theme="light"] .bg-glow { opacity: 0.25; }

/* ---- Kaydırma ilerleme çubuğu -------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--grad); box-shadow: 0 0 14px var(--accent-1);
  transition: width 0.12s linear;
}

/* ---- Yıldız alanı (uzay boşluğu) ------------------------------------------ */
.starfield {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
}
[data-theme="light"] .starfield { opacity: 0.45; }

/* ---- Kaydırdıkça dönüşen dev arkaplan harfi ------------------------------ */
.bgword {
  position: fixed; inset: 0; z-index: -1; display: grid; place-items: center;
  pointer-events: none; overflow: hidden; opacity: 0.34;
  will-change: filter;
}
[data-theme="light"] .bgword { opacity: 0.2; }

.bgword__letters {
  position: absolute; inset: 0; display: grid; place-items: center;
  animation: bgFloat 9s ease-in-out infinite;
}
.bgword__letters span {
  position: absolute; left: 50%; top: 50%;
  font-family: var(--font-sign); font-weight: 700; line-height: 1;
  font-size: 58vh; letter-spacing: normal;
  transform: translate(-50%, -50%);
  background: var(--grad-nebula); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 1px rgba(195, 236, 255, 0.22); /* ince neon kenar */
  filter: drop-shadow(0 0 24px rgba(70, 170, 255, 0.6)) drop-shadow(0 0 58px rgba(168, 85, 247, 0.45)); /* cyan+mor ışıma */
  will-change: opacity, transform;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease);
}
.bgword__full {
  font-family: var(--font-sign); font-weight: 700; letter-spacing: 0.02em;
  font-size: clamp(1.8rem, 9vw, 9rem); opacity: 0; white-space: nowrap;
  padding: 0 4vw; max-width: 100vw;
  transform: scale(0.9); transform-origin: center;
  background: var(--grad-nebula); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 1px rgba(195, 236, 255, 0.28);
  filter: drop-shadow(0 0 30px rgba(70, 170, 255, 0.6)) drop-shadow(0 0 72px rgba(168, 85, 247, 0.5));
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
@keyframes bgFloat {
  0%, 100% { transform: translateY(-1.2%) scale(1); }
  50%      { transform: translateY(1.2%) scale(1.02); }
}
@media (max-width: 640px) {
  .bgword__letters span { font-size: 42vh; }
}

/* ---- Tipografi yardımcıları ---------------------------------------------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ==========================================================================
   ÜST MENÜ
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__text {
  font-family: var(--font-sign); font-weight: 700; font-size: 1.4rem;
  letter-spacing: 1.5px; line-height: 1;
  background: var(--grad-nebula); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(90, 170, 255, 0.35)); /* arka planla uyumlu hafif ışıma */
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 10px; font-size: 0.93rem; font-weight: 500;
  color: var(--text-dim); position: relative; transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav__cta {
  background: var(--grad) !important; color: #fff !important;
  box-shadow: 0 8px 22px -8px var(--accent-1);
}
.nav__cta::after { display: none !important; }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 11px; cursor: pointer; font-size: 1rem; position: relative; overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.theme-icon { position: absolute; display: grid; place-items: center; transition: transform 0.45s var(--ease), opacity 0.35s; }
.theme-icon svg { display: block; }
[data-theme="dark"] .theme-icon--sun { transform: translateY(0); opacity: 1; }
[data-theme="dark"] .theme-icon--moon { transform: translateY(140%); opacity: 0; }
[data-theme="light"] .theme-icon--sun { transform: translateY(-140%); opacity: 0; }
[data-theme="light"] .theme-icon--moon { transform: translateY(0); opacity: 1; }

.nav__burger { display: none; flex-direction: column; gap: 5px; }
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero__inner { max-width: 780px; }
.hero__eyebrow { color: var(--text-dim); font-weight: 500; margin-bottom: 14px; font-size: 1.05rem; }
.hero__title {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(2.8rem, 8vw, 5.4rem); margin-bottom: 18px;
}
.hero__role { font-size: clamp(1.05rem, 3vw, 1.4rem); font-weight: 600; color: var(--text); margin-bottom: 20px; }
.hero__desc { font-size: 1.12rem; color: var(--text-dim); max-width: 620px; margin-bottom: 34px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__socials { display: flex; flex-wrap: wrap; gap: 22px; }
.hero__socials a { color: var(--text-faint); font-weight: 500; font-size: 0.95rem; position: relative; transition: color 0.2s; }
.hero__socials a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--grad); transition: width 0.25s var(--ease); }
.hero__socials a:hover { color: var(--text); }
.hero__socials a:hover::after { width: 100%; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--text-faint); font-size: 1.4rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* ---- Butonlar ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.2s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px var(--accent-1); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent-1); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { transform: translateY(-2px); background: var(--surface-2); }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }

/* ==========================================================================
   BÖLÜMLER (ortak)
   ========================================================================== */
.section { padding: 100px 0; position: relative; }

/* Her bölüm bir "yuva" (cam panel) — iletişimin ve finalin kendi sahnesi var, hariç */
.hero > .hero__inner,
main > .section:not(.section--contact) > .container {
  background: color-mix(in srgb, var(--bg-soft) 42%, transparent);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(32px, 5vw, 52px) clamp(22px, 4vw, 48px);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
  box-shadow: 0 26px 70px -36px rgba(0, 0, 0, 0.72);
}
.section__head { margin-bottom: 48px; max-width: 640px; }
.section__index { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--accent-2); letter-spacing: 0.15em; }
.section__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; margin-top: 6px; }
.section__sub { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; }

/* ---- Kartlar ------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }

.grid { display: grid; gap: 20px; }
.grid--projects { grid-template-columns: repeat(2, 1fr); }
.grid--skills { grid-template-columns: repeat(2, 1fr); }
.grid--hobbies { grid-template-columns: repeat(3, 1fr); }
.grid--posts { grid-template-columns: repeat(3, 1fr); }

/* ---- Etiketler ----------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.8rem; font-weight: 500; color: var(--text-dim);
  padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.tags--lg li { font-size: 0.9rem; padding: 7px 15px; color: var(--text); }

/* ==========================================================================
   HAKKIMDA
   ========================================================================== */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.about__text p { color: var(--text-dim); margin-bottom: 16px; font-size: 1.06rem; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__facts { margin-top: 26px; display: grid; gap: 12px; }
.about__facts li { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.about__facts strong { color: var(--text); }

.about__card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  position: sticky; top: 100px;
}
.stat { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; display: block; }

/* ==========================================================================
   PROJELER
   ========================================================================== */
.project { display: flex; flex-direction: column; }
.project__top { display: flex; justify-content: flex-end; align-items: flex-start; margin-bottom: 16px; min-height: 34px; }
.project__emoji {
  font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
}
.project__links { display: flex; gap: 8px; }
.project__links a {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 0.85rem; transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.project__links a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.project__title { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; }
.project__desc { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 18px; flex: 1; }

/* ==========================================================================
   YETENEKLER
   ========================================================================== */
.skillset__title { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 16px; }

/* ==========================================================================
   HOBİLER
   ========================================================================== */
.hobby { text-align: center; }
.hobby__icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.hobby h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.hobby p { color: var(--text-dim); font-size: 0.94rem; }

/* ==========================================================================
   YAZILAR
   ========================================================================== */
.post { display: flex; flex-direction: column; }
.post__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.post__tag { font-size: 0.75rem; font-weight: 600; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, transparent); padding: 4px 11px; border-radius: 999px; }
.post__meta time { font-size: 0.82rem; color: var(--text-faint); }
.post__title { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; margin-bottom: 10px; line-height: 1.3; }
.post__excerpt { color: var(--text-dim); font-size: 0.96rem; flex: 1; margin-bottom: 16px; }
.post__more { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.post:hover .post__more { color: var(--accent-2); }

/* ==========================================================================
   İLETİŞİM
   ========================================================================== */
.section--contact { padding-bottom: 120px; }
.contact {
  text-align: center; max-width: 620px; margin: 0 auto; padding: 56px 30px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 28px;
  position: relative; overflow: hidden;
  animation: contactGlow 4.5s ease-in-out infinite;
}
.contact::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--accent-1) 48%, transparent), transparent 62%);
  animation: contactPulse 4.5s ease-in-out infinite;
}
.contact::after {
  content: ""; position: absolute; top: -20%; left: -60%; width: 42%; height: 140%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--accent-3) 30%, transparent), transparent);
  transform: skewX(-16deg); pointer-events: none;
  animation: contactSheen 6.5s ease-in-out infinite;
}
@keyframes contactGlow {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 16%, transparent),
                          0 26px 70px -34px color-mix(in srgb, var(--accent-1) 45%, transparent); }
  50%      { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 42%, transparent),
                          0 34px 96px -24px color-mix(in srgb, var(--accent-1) 78%, transparent); }
}
@keyframes contactPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.14); }
}
@keyframes contactSheen {
  0%   { left: -60%; }
  42%  { left: 130%; }
  100% { left: 130%; }
}
.section--contact .btn--primary { animation: btnPulse 3.2s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 12px 30px -10px var(--accent-1); }
  50%      { box-shadow: 0 14px 40px -8px var(--accent-1), 0 0 24px -2px color-mix(in srgb, var(--accent-2) 65%, transparent); }
}
.contact__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); margin: 12px 0 14px; }
.contact__desc { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 28px; }
.contact__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 30px; }
.contact__socials a { color: var(--text-dim); font-weight: 500; transition: color 0.2s; }
.contact__socials a:hover { color: var(--text); }

/* ==========================================================================
   FİNAL SAHNESİ — ASKROLT birleşimi
   ========================================================================== */
.finale {
  min-height: 94vh; display: grid; place-items: center; text-align: center;
  padding: 100px 24px; position: relative;
}
.finale__inner { position: relative; z-index: 1; }
.finale__eyebrow {
  font-family: var(--font-sign); font-weight: 700; letter-spacing: 4px;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  background: var(--grad-nebula); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.finale__note { margin-top: 16px; color: var(--text-dim); font-size: 1.05rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer p { color: var(--text-faint); font-size: 0.9rem; }
.footer__top { color: var(--text-dim); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.footer__top:hover { color: var(--text); }

/* ==========================================================================
   ANİMASYONLAR (reveal on scroll)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 880px) {
  .grid--projects, .grid--skills, .grid--hobbies, .grid--posts { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; }

  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 24px 26px; background: var(--bg-soft);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform 0.4s var(--ease); z-index: 90;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 13px 16px; font-size: 1rem; }
  .nav__links a.is-active::after { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .grid--projects, .grid--skills, .grid--hobbies, .grid--posts { grid-template-columns: 1fr; }
  .about__card { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 100px; }
  .hero__actions .btn { flex: 1; }
}
