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

/* ===== THEME VARIABLES ===== */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f7f7f7;
  --surface:     #ffffff;
  --border:      #e8e8e8;
  --text:        #0a0a0a;
  --text-muted:  #666666;
  --text-faint:  #999999;
  --accent:      #0a0a0a;
  --accent-inv:  #ffffff;
  --radius:      10px;
  --font:        'Inter', -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --bg:          #0a0a0a;
  --bg-alt:      #111111;
  --surface:     #161616;
  --border:      #232323;
  --text:        #f5f5f5;
  --text-muted:  #888888;
  --text-faint:  #555555;
  --accent:      #f5f5f5;
  --accent-inv:  #0a0a0a;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(var(--bg-rgb, 255,255,255), 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="dark"] #navbar.scrolled {
  background: rgba(10,10,10,0.88);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  transition: padding 0.4s ease;
}

#navbar.scrolled .nav-inner { padding: 16px 32px; }

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: auto;
  text-decoration: none;
}

.nav-logo-main {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.nav-logo-dot { color: var(--text-faint); }

.nav-logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#theme-toggle {
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

#theme-toggle:hover { border-color: var(--text); color: var(--text); }

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

#lang-toggle {
  height: 36px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

#lang-toggle:hover { border-color: var(--text); color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
  transform-origin: center;
}

/* ===== HERO ===== */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-identity-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 5px 12px;
  border-radius: 4px;
}

.hero-identity-sep {
  color: var(--text-faint);
  font-size: 1rem;
}

.hero-identity-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dot {
  width: 7px; height: 7px;
  background: var(--text);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 48px;
  text-transform: none;
}

.hero-title span { display: block; }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--text-faint));
  animation: scrollFade 2.2s ease-in-out infinite;
}

@keyframes scrollFade {
  0%, 100% { opacity: 0; transform: scaleY(0.3); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero-scroll span {
  font-size: 0.7rem;
  color: var(--text-faint);
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-fill {
  background: var(--text);
  color: var(--bg);
}

.btn-fill:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

/* ===== STATS STRIP ===== */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  text-align: center;
  gap: 6px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.stat strong {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-muted);
}

.stat > span {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
  display: block;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 60px;
}

/* ===== ABOUT ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-left .section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0;
}

.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

/* Profil fotoğrafı */
.about-photo-wrap {
  margin-top: 32px;
}
.about-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  transition: transform 0.4s;
}
.about-photo:hover img { transform: scale(1.04); }

.about-photo--placeholder img { display: none; }
.about-photo-placeholder-content {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 500;
}
.about-photo--placeholder .about-photo-placeholder-content { display: flex; }

.about-photo-caption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.about-photo-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.about-photo-role {
  font-size: 0.76rem;
  color: var(--text-faint);
}
.about-photo-loc {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

.pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.pillar svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== SKILLS ===== */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skill-col {
  padding: 36px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.skill-col:last-child { border-right: none; }

.skill-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.skill-head svg { color: var(--text-muted); flex-shrink: 0; }

.skill-head h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.skill-col ul { display: flex; flex-direction: column; gap: 0; }

.skill-col li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.skill-col li:hover { color: var(--text); }
.skill-col li:last-child { border-bottom: none; }

.skill-level {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--text-faint);
}

/* ===== PROJECTS ===== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.25s ease;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.project-row:last-child { border-bottom: none; }
.project-row:hover { background: var(--bg-alt); }

.project-row:hover .project-visual {
  filter: brightness(1.12);
}

.project-row:hover .project-number {
  color: var(--text);
}

.project-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 0 36px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  border-right: 1px solid var(--border);
  letter-spacing: 0.06em;
}

.project-content {
  padding: 36px 40px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.project-year {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.project-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-row p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tools span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.project-visual {
  border-left: 1px solid var(--border);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

/* ===== TIMELINE ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tl-item {
  display: grid;
  grid-template-columns: 80px 150px 1fr;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.25s;
}

.tl-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 0 28px 20px;
  color: var(--text-faint);
}

.tl-item:last-child { border-bottom: none; }
.tl-item:hover { background: var(--bg-alt); }

.tl-date {
  padding: 32px 28px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-top: 34px;
}

.tl-body {
  padding: 28px 36px;
}

.tl-top {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tl-top h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.tl-role {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
}

.tl-body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tl-body li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.tl-body li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

/* ===== EDUCATION ===== */
.edu-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.edu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
  transition: background 0.2s;
}

.edu-row:last-child { border-bottom: none; }
.edu-row:hover { background: var(--bg-alt); }

.edu-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.edu-info span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.edu-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.edu-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--text);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
}

.edu-date {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 500;
}

/* ===== CERTS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.cert-card:hover { background: var(--bg-alt); }

.cert-icon {
  color: var(--text-faint);
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-card strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.4;
}

.cert-card small {
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* ===== CERT-SVC CARDS (animated SVG cert grid) ===== */
.cert-svc-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  min-height: 160px;
}

.cert-svc-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.cert-svc-card strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.4;
}

.cert-svc-card small {
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* ===== MEMATİ STRIP ===== */
.memati-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 20px 0;
}

.memati-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.memati-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.memati-strip-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border);
}

.memati-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg-alt);
}

.memati-bubble {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  flex: 1;
}

.memati-bubble-tail {
  position: absolute;
  left: -7px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid var(--border);
}

.memati-bubble-tail::after {
  content: '';
  position: absolute;
  left: 2px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid var(--surface);
}

.memati-bubble-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.memati-bubble-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.memati-cta {
  flex-shrink: 0;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}

.memati-cta:hover { opacity: 0.8; }

@media (max-width: 600px) {
  .memati-cta { display: none; }
  .memati-bubble-text { font-size: 0.82rem; }
}

/* ===== CONTACT ===== */
.section-contact { background: var(--bg-alt); }

.contact-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 60px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.contact-link:last-child { border-bottom: none; }
.contact-link:hover:not(.no-link) { background: var(--bg-alt); }

.contact-link-icon {
  width: 40px; height: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.contact-link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-link-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.contact-arrow {
  color: var(--text-faint);
  transition: transform 0.2s, color 0.2s;
}

.contact-link:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(245,245,245,0.06);
}

/* ===== FOOTER ===== */
#footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  background: var(--bg);
}

/* CTA strip */
.footer-cta {
  text-align: center;
  padding-bottom: 64px;
}

.footer-cta-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 32px;
}

.footer-cta-btn {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.footer-cta-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

/* Bottom bar */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-logo-dot {
  color: var(--text-faint);
}

.footer-logo-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-faint);
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-nav a:hover { color: var(--text); }

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  color: var(--text-faint);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover { color: var(--text); }
.footer-social .footer-wa { color: #25d366; }
.footer-social .footer-wa:hover { color: #1da851; }

/* Copyright bar */
.footer-copy-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-faint);
}

@media (max-width: 768px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-nav { gap: 16px; }
  .footer-social { justify-content: center; }
  .footer-copy-bar { flex-direction: column; gap: 6px; text-align: center; }
}

/* legacy classes — keep for project pages */
.footer-name { display: none; }
.footer-role { display: none; }
.footer-copy { display: none; }
.footer-inner { display: none; }

/* ===== ANIMATIONS ===== */
.animate-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* ===== MOBILE MENU ===== */
body.menu-open .nav-links {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

body.menu-open .nav-links a { font-size: 1.6rem; font-weight: 700; }

body.menu-open .burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.menu-open .burger span:nth-child(2) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--text);
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== CV DOWNLOAD BUTTON ===== */
.hero-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 20px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.hero-cv-btn:hover { color: var(--text); border-color: var(--text-faint); }
.hero-cv-btn svg { color: var(--text-faint); }

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 52px;
}

.svc-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.svc-card:hover { background: var(--bg-alt); }
.svc-card:hover .svc-svg { color: var(--text); }

/* Timeline uses svc-card but keeps its own grid layout */
.tl-item.svc-card {
  display: grid;
  grid-template-columns: 80px 150px 1fr;
  padding: 0;
  gap: 0;
  flex-direction: unset;
}

/* SVG illustration */
.svc-illustration {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-svg {
  width: 120px;
  height: 80px;
  color: var(--text-muted);
  transition: color 0.3s;
}

/* SVG draw-on animation */
.svc-draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  opacity: 0;
  transition: none;
}

.svc-card.svc-animated .svc-draw {
  animation: svgDraw 1s cubic-bezier(0.4,0,0.2,1) forwards;
}

.svc-card.svc-animated .svc-delay-1 { animation-delay: 0.15s; }
.svc-card.svc-animated .svc-delay-2 { animation-delay: 0.3s; }
.svc-card.svc-animated .svc-delay-3 { animation-delay: 0.45s; }

@keyframes svgDraw {
  0%   { stroke-dashoffset: 300; opacity: 0; }
  10%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Pulse dot */
.svc-pulse {
  transform-origin: center;
  animation: pulse 2.5s ease-in-out infinite;
  opacity: 0;
}
.svc-card.svc-animated .svc-pulse {
  opacity: 1;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.35); opacity: 0.2; }
}

/* Float */
.svc-float {
  animation: floatEl 3s ease-in-out infinite;
}
@keyframes floatEl {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* Cursor blink */
.svc-cursor {
  animation: cursorBlink 1.2s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0; }
}

/* Dot fade-in */
.svc-dot {
  opacity: 0;
}
.svc-card.svc-animated .svc-dot {
  animation: dotFade 0.5s ease forwards;
}
.svc-card.svc-animated .svc-dot:nth-child(2) { animation-delay: 0.1s; }
.svc-card.svc-animated .svc-dot:nth-child(3) { animation-delay: 0.2s; }
@keyframes dotFade {
  to { opacity: 0.3; }
}

/* Content */
.svc-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.svc-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.svc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.svc-list li {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 500;
  padding-left: 12px;
  position: relative;
}

.svc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* ===== RESPONSIVE ===== */
/* ===== TABLET (≤ 900px) ===== */
@media (max-width: 900px) {
  .about-layout    { grid-template-columns: 1fr; gap: 40px; }
  .skills-layout   { grid-template-columns: 1fr; }
  .skill-col       { border-right: none; border-bottom: 1px solid var(--border); }
  .skill-col:last-child { border-bottom: none; }
  .contact-layout  { grid-template-columns: 1fr; }
  .stats-strip     { flex-wrap: wrap; padding: 0 20px; }
  .stat            { flex: 1 1 40%; padding: 28px 16px; }
  .stat-divider    { display: none; }
  .services-grid   { grid-template-columns: repeat(2, 1fr); }

  /* Projeler — görseli alta taşı, gizleme */
  .project-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
  }
  .project-visual {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 140px;
  }

  /* Deneyim timeline */
  .tl-item,
  .tl-item.svc-card {
    display: flex;
    flex-direction: column;
  }
  .tl-icon { display: none; }
  .tl-date {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    font-size: 0.74rem;
    width: 100%;
    box-sizing: border-box;
  }
  .tl-body { padding: 20px 24px; width: 100%; box-sizing: border-box; }
}

/* ===== MOBİL (≤ 768px) ===== */
@media (max-width: 768px) {
  .nav-links   { display: none; }
  .burger      { display: flex; }
  .container   { padding: 0 18px; }

  /* Hero */
  #hero        { padding: 96px 18px 56px; }
  .hero-scroll { display: none; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-title  { font-size: clamp(3rem, 12vw, 5rem); margin-bottom: 32px; }
  .hero-desc   { font-size: 0.95rem; }

  /* Sections */
  .section     { padding: 72px 0; }
  .section-heading { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  /* Projeler */
  .project-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
  }
  .project-number  { font-size: 0.6rem; padding: 20px 0; }
  .project-content { padding: 20px 16px; }
  .project-row h3  { font-size: 1rem; }
  .project-row p   { font-size: 0.84rem; }
  .project-visual  {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 120px;
  }

  /* Deneyim */
  .tl-item,
  .tl-item.svc-card  { display: flex; flex-direction: column; }
  .tl-date  { padding: 12px 18px; font-size: 0.74rem; width: 100%; border-right: none; border-bottom: 1px solid var(--border); box-sizing: border-box; }
  .tl-body  { padding: 18px 18px; width: 100%; box-sizing: border-box; }
  .tl-top   { gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  .tl-top h3 { font-size: 1rem; line-height: 1.3; }
  .tl-role  { font-size: 0.78rem; }
  .tl-body li { font-size: 0.86rem; line-height: 1.6; padding-left: 14px; }

  /* Eğitim */
  .edu-row  { padding: 20px 18px; gap: 12px; }
  .edu-info h3 { font-size: 0.88rem; }
  .edu-right { gap: 10px; }

  /* Hizmetler */
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { padding: 24px 20px; }

  /* İletişim formu */
  .form-row { grid-template-columns: 1fr; }

  /* Sertifikalar */
  .cert-grid { grid-template-columns: 1fr; }

  /* Testimonials & Paketler */
  .testi-grid { grid-template-columns: 1fr; gap: 14px; }
  .pkg-grid   { grid-template-columns: 1fr; gap: 14px; }
  .testi-card { padding: 22px 18px; }
  .testi-text { font-size: 0.84rem; }
}

/* ===== KÜÇÜK MOBİL (≤ 480px) ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  #hero { padding: 88px 16px 48px; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .hero-cta   { flex-direction: column; width: 100%; }
  .btn        { width: 100%; justify-content: center; }
  .hero-cv-btn { width: 100%; justify-content: center; }
  .hero-tags  { gap: 6px; }
  .tag        { font-size: 0.7rem; padding: 5px 10px; }

  /* Stats */
  .stats-strip { flex-direction: column; padding: 0; }
  .stat        { width: 100%; border-bottom: 1px solid var(--border); border-right: none !important; }
  .stat:last-child { border-bottom: none; }
  .stat strong { font-size: 2rem; }

  /* Projeler */
  .project-number { display: none; }
  .project-row    { grid-template-columns: 1fr; }
  .project-content { padding: 18px 16px; }
  .project-visual {
    grid-column: 1 / -1;
    min-height: 110px;
  }
  .project-tools span { font-size: 0.68rem; padding: 2px 8px; }

  /* Deneyim */
  .tl-body li { font-size: 0.82rem; line-height: 1.55; }

  /* Hizmet paketleri */
  .pkg-card { padding: 22px 18px; }
  .pkg-name { font-size: 1rem; }

  /* Hero location */
  .hero-location-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== MÜSAİTLİK BADGE ===== */
.hero-location-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 100px;
  padding: 4px 12px 4px 8px;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: availPulse 2s ease-in-out infinite;
}

@keyframes availPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
  50%       { opacity: 0.8; transform: scale(0.9); box-shadow: 0 0 0 4px rgba(22,163,74,0); }
}

[data-theme="dark"] .availability-badge {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
}

[data-theme="dark"] .avail-dot { background: #4ade80; }

/* ===== TESTİMONIALS ===== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s, transform 0.25s;
}

.testi-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-3px);
}

.testi-quote {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text-faint);
  font-family: Georgia, serif;
  margin-top: -8px;
}

.testi-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.testi-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.testi-role {
  font-size: 0.74rem;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ===== PAKET KARTLARI ===== */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.pkg-card:hover { transform: translateY(-3px); border-color: var(--text-muted); }

.pkg-card-featured {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.pkg-card-featured .pkg-tier { color: rgba(255,255,255,0.45); }
.pkg-card-featured .pkg-name { color: #fff; }
.pkg-card-featured .pkg-desc { color: rgba(255,255,255,0.6); }
.pkg-card-featured .pkg-list li { color: rgba(255,255,255,0.75); }
.pkg-card-featured .pkg-list li::before { background: rgba(255,255,255,0.4); }
.pkg-card-featured:hover { border-color: var(--text); }

.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
}

.pkg-tier {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pkg-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pkg-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.pkg-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pkg-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pkg-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}

.pkg-cta {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.pkg-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 28px;
}

/* ===== RESPONSIVE — YENİ BÖLÜMLER ===== */
@media (max-width: 768px) {
  .testi-grid { grid-template-columns: 1fr; }
  .pkg-grid   { grid-template-columns: 1fr; }
  .hero-location-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 1024px) {
  .testi-grid { grid-template-columns: 1fr; gap: 16px; }
  .pkg-grid   { grid-template-columns: 1fr; gap: 16px; }
}
