:root {
  --bg: #0a0e14;
  --bg-elev: #10151d;
  --card: #131a24;
  --border: #222b38;
  --text: #e7ecf3;
  --text-dim: #9aa7b8;
  --accent: #2dd4bf;
  --accent-2: #7c6ef2;
  --accent-ink: #06201c;
  --nav-bg: rgba(10, 14, 20, 0.72);
  --glow-1: rgba(45, 212, 191, 0.12);
  --glow-2: rgba(124, 110, 242, 0.12);
  --accent-shadow: rgba(45, 212, 191, 0.5);
  --card-shadow: rgba(45, 212, 191, 0.35);
  --tag-bg: rgba(124, 110, 242, 0.12);
  --tag-border: rgba(124, 110, 242, 0.3);
  --radius: 14px;
  --container: 1040px;
}

html.theme-light {
  --bg: #f6f8fa;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --border: #dfe4ea;
  --text: #141a22;
  --text-dim: #5b6876;
  --accent: #0d8e80;
  --accent-2: #5546cf;
  --accent-ink: #ffffff;
  --nav-bg: rgba(246, 248, 250, 0.85);
  --glow-1: rgba(13, 142, 128, 0.09);
  --glow-2: rgba(85, 70, 207, 0.08);
  --accent-shadow: rgba(13, 142, 128, 0.35);
  --card-shadow: rgba(13, 142, 128, 0.22);
  --tag-bg: rgba(85, 70, 207, 0.08);
  --tag-border: rgba(85, 70, 207, 0.25);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
html.theme-light .theme-toggle .icon-sun { display: none; }
html.theme-light .theme-toggle .icon-moon { display: block; }

* { box-sizing: border-box; }

/* Language toggle */
html.lang-en .t-tr { display: none; }
html.lang-tr .t-en { display: none; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

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

.accent { color: var(--accent); }

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 10%, var(--glow-1), transparent 60%),
    radial-gradient(500px circle at 85% 25%, var(--glow-2), transparent 60%);
  pointer-events: none;
}

/* Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.logo-word { color: var(--text); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-mark-sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.project-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  margin-bottom: 14px;
  display: block;
}

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

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: 999px;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  min-height: 86vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-text { flex: 1; min-width: 0; }

.hero-photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.hero-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--bg);
  filter: contrast(1.1) saturate(1.15) brightness(1.04);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 620px;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 12px 30px -10px var(--accent-shadow);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Sections */
.section {
  padding: 90px 24px;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.section-title .num {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text { font-size: 1.05rem; }
.about-text strong { color: var(--text); }

.about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-facts li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text);
}
.about-facts .fact-label {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 32px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.timeline-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.timeline-head h3 { font-size: 1.1rem; color: var(--text); }
.timeline-date {
  font-size: 0.82rem;
  color: var(--accent);
  white-space: nowrap;
}
.timeline-org {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-card li {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px -20px var(--card-shadow);
}
.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 10px;
}
.project-card p { font-size: 0.92rem; }
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.project-stack span {
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.stack-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.stack-link:hover {
  background: var(--accent);
  color: var(--bg);
}

.apps-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 28px;
}
.apps-lead strong { color: var(--text); }

/* Wide project articles */
.project-wide {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}
.project-wide:hover { border-color: var(--accent); }

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.project-head h3 {
  font-size: 1.2rem;
  color: var(--text);
}
.project-wide > p { font-size: 0.95rem; }

.project-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 20px 0 4px;
}
.project-media a {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}
.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
  margin-bottom: 7px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.project-media a:hover img {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Sub headings inside sections */
.sub-head {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.timeline + .sub-head { margin-top: 44px; }

/* Compact cards for secondary experience */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.compact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.compact-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.compact-card p { font-size: 0.88rem; }
.compact-card .timeline-org { margin-bottom: 10px; }

.about-text p + p { margin-top: 14px; }

.publication {
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.publication h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 10px;
}
.publication p { font-size: 0.92rem; }
.publication strong { color: var(--text); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skill-group h4 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.skill-group p { font-size: 0.9rem; }

/* Education */
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.edu-card h3 { color: var(--text); font-size: 1.2rem; }
.edu-card p { font-size: 0.92rem; }

.edu-facts {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edu-facts li {
  font-size: 0.93rem;
  color: var(--text-dim);
}

.edu-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 22px 0 12px;
}

/* Contact */
.contact-section { text-align: center; }
.contact-lead {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer p {
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-dim);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column-reverse; text-align: center; gap: 32px; }
  .hero-meta { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-photo { width: 160px; height: 160px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .section { padding: 64px 20px; }
  .hero { min-height: auto; padding-top: 56px; }
}

/* ===================================================================
   FORGEA ürün sitesi — portfolyo bileşenlerinin üzerine eklenenler
   =================================================================== */

/* Çok sayfalı gezinmede aktif bağlantı */
.nav-links a.is-active { color: var(--accent); }

/* Ürün kimliği */
.product-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.product-logo .mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.product-logo small {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* Sayfa başlığı bandı */
.page-head {
  padding: 68px 24px 10px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 14px;
}
.page-head p {
  max-width: 640px;
  font-size: 1.05rem;
}

/* Zincir görseli */
.chain {
  width: 100%;
  margin: 8px 0 4px;
}
.chain text { font-family: 'Inter', sans-serif; }

/* Modül kartları */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.module-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.module-code {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.module-card h3 {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 7px;
}
.module-card p { font-size: 0.89rem; }
.module-card.soon { opacity: 0.72; }
.badge-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 7px;
  vertical-align: middle;
}

/* Yer tutucular (gerçek görsel gelene kadar) */
.placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 20px;
  color: var(--text-dim);
  font-size: 0.86rem;
  min-height: 190px;
}
.placeholder strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

/* Numaralı adımlar */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
}
.steps li strong { color: var(--text); }

/* Özellik bloğu */
.feature-block {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.feature-block:first-of-type { border-top: none; }
.feature-block h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-block ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.feature-block li { font-size: 0.92rem; color: var(--text-dim); }

/* Harekete geçirme bandı */
.cta-band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
}
.cta-band h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.cta-band p {
  max-width: 520px;
  margin: 0 auto 22px;
}

/* Hızlı bilgi satırı */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.quick-facts div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.quick-facts h4 {
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.quick-facts p { font-size: 0.9rem; }

@media (max-width: 720px) {
  .page-head { padding-top: 46px; }
  .chain { overflow-x: auto; }
}

/* Zincir akışı */
.chain-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.chain-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.chain-step.is-end {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.chain-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  user-select: none;
}

/* Bu sitenin menü etiketleri uzun; hamburger menü portfolyodan daha erken devreye girer */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
}
