/* ============================================================
   Zehra Baş — Kişisel Portfolyo & Blog Sitesi
   Custom CSS — Bootstrap 5 Üzerine
   Tema: Siber / AI / Robotik
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables (Light Mode — Siber Mavi) ---------- */
:root {
  --primary:        #0077B6;
  --primary-light:  #00B4D8;
  --primary-hover:  #005F92;
  --accent:         #ADE8F4;
  --bg-main:        #F0F8FF;
  --bg-card:        #FFFFFF;
  --bg-section:     #E3F2FD;
  --text-dark:      #0D1B2A;
  --text-mid:       #2A5A78;
  --text-light:     #5A90AA;
  --border:         #C5E3F0;
  --shadow:         rgba(0, 119, 182, 0.08);
  --shadow-hover:   rgba(0, 180, 216, 0.2);
  --navbar-bg:      rgba(240, 248, 255, 0.96);
  --code-bg:        #E8F4FD;
  --footer-bg:      #0A1628;
  --footer-text:    #ADE8F4;
}

/* ---------- Dark Mode — Uzay Siyahı + Neon Cyan ---------- */
[data-bs-theme="dark"] {
  --primary:        #00B4D8;
  --primary-light:  #48CAE4;
  --primary-hover:  #0096C7;
  --accent:         #03045E;
  --bg-main:        #050D18;
  --bg-card:        #0A1628;
  --bg-section:     #0D1F35;
  --text-dark:      #E0F4FF;
  --text-mid:       #90C4D8;
  --text-light:     #5A8A99;
  --border:         #1A3A52;
  --shadow:         rgba(0, 0, 0, 0.4);
  --shadow-hover:   rgba(0, 180, 216, 0.25);
  --navbar-bg:      rgba(5, 13, 24, 0.96);
  --code-bg:        #071020;
  --footer-bg:      #030A14;
  --footer-text:    #48CAE4;
}

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--bg-main);
  color: var(--text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ---------- Navbar ---------- */
.navbar-zb {
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-zb.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.navbar-brand-zb {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -0.02em;
}

.navbar-brand-zb span {
  color: var(--primary-light);
}

.navbar-brand-zb .brand-logo,
.footer-brand .brand-logo {
  height: 47px;
  width: 47px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
.navbar-brand-zb .brand-icon {
  display: inline-block;
  margin-right: 6px;
  color: var(--primary-light);
  font-size: 1rem;
}

.nav-link-zb {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid) !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-link-zb:hover,
.nav-link-zb.active {
  color: var(--primary) !important;
  background-color: var(--bg-section);
}

.navbar-toggler-zb {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  color: var(--primary);
}

.navbar-toggler-zb:focus {
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
}

/* Dark mode toggle */
.btn-dark-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  padding: 0;
}

.btn-dark-toggle:hover {
  background-color: var(--bg-section);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn-primary-zb {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-zb:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35);
}

.btn-outline-zb {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-zb:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.25);
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 92vh;
  background:
    linear-gradient(135deg, var(--bg-main) 0%, var(--bg-section) 50%, var(--accent) 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='29' y='0' width='2' height='22' fill='%230077B6' opacity='0.09'/%3E%3Crect x='29' y='38' width='2' height='22' fill='%230077B6' opacity='0.09'/%3E%3Crect x='0' y='29' width='22' height='2' fill='%230077B6' opacity='0.09'/%3E%3Crect x='38' y='29' width='22' height='2' fill='%230077B6' opacity='0.09'/%3E%3Ccircle cx='30' cy='30' r='3.5' fill='none' stroke='%230077B6' stroke-width='1.5' opacity='0.14'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--bg-main) 0%, var(--bg-section) 50%, var(--accent) 100%);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 119, 182, 0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hero-avatar-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-light), var(--accent));
  padding: 5px;
  box-shadow:
    0 20px 60px rgba(0, 119, 182, 0.25),
    0 0 0 1px rgba(0, 180, 216, 0.3),
    0 0 40px rgba(0, 180, 216, 0.15);
  position: relative;
}

.hero-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-section) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Section Titles ---------- */
.section-header {
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-light);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}

/* ---------- Feature Cards ---------- */
.features-section {
  padding: 5rem 0;
  background-color: var(--bg-main);
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 12px 40px var(--shadow-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-section), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------- Blog Cards ---------- */
.blog-section {
  padding: 5rem 0;
  background-color: var(--bg-section);
  position: relative;
}

.blog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%230077B6' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 12px 40px var(--shadow-hover);
  transform: translateY(-4px);
}

.blog-card:hover::after {
  opacity: 1;
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.blog-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='15' cy='15' r='1' fill='%230077B6' opacity='0.15'/%3E%3C/svg%3E");
}

.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background-color: var(--accent);
  color: var(--primary);
  border: 1px solid rgba(0, 119, 182, 0.15);
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: auto;
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-read-more {
  gap: 8px;
}

/* ---------- Search Box ---------- */
.search-box-zb {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.search-box-zb input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text-dark);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}

.search-box-zb input::placeholder {
  color: var(--text-light);
}

.search-box-zb input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.search-box-zb .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ---------- Project Cards ---------- */
.projects-section {
  padding: 5rem 0;
  background-color: var(--bg-main);
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 12px 40px var(--shadow-hover);
  transform: translateY(-4px);
}

.project-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.project-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect x='14' y='0' width='2' height='11' fill='%230077B6' opacity='0.12'/%3E%3Crect x='14' y='19' width='2' height='11' fill='%230077B6' opacity='0.12'/%3E%3Crect x='0' y='14' width='11' height='2' fill='%230077B6' opacity='0.12'/%3E%3Crect x='19' y='14' width='11' height='2' fill='%230077B6' opacity='0.12'/%3E%3C/svg%3E");
}

.project-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tech-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background-color: var(--bg-section);
  color: var(--primary);
  border: 1px solid var(--border);
  margin: 0.15rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.project-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.project-card:hover .project-card-title {
  color: var(--primary);
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.project-link-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.project-link-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- About Preview Section ---------- */
.about-preview-section {
  padding: 5rem 0;
  background-color: var(--bg-section);
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px var(--shadow);
}

.skill-item {
  background-color: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.skill-item:hover {
  border-color: var(--primary-light);
  background-color: var(--accent);
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 5px;
  background-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width 1.5s ease;
}

/* ---------- Page Hero (İç Sayfalar) ---------- */
.page-hero {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='29' y='0' width='2' height='22' fill='%230077B6' opacity='0.07'/%3E%3Crect x='29' y='38' width='2' height='22' fill='%230077B6' opacity='0.07'/%3E%3Crect x='0' y='29' width='22' height='2' fill='%230077B6' opacity='0.07'/%3E%3Crect x='38' y='29' width='22' height='2' fill='%230077B6' opacity='0.07'/%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='%230077B6' stroke-width='1.2' opacity='0.1'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--bg-main) 0%, var(--bg-section) 50%, var(--accent) 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.75;
}

.breadcrumb-zb {
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.breadcrumb-zb .breadcrumb-item a {
  color: var(--text-light);
}

.breadcrumb-zb .breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Filter Tabs ---------- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-tab {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background-color: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Skills Table (Hakkımda) ---------- */
.skills-table-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.skills-table {
  margin-bottom: 0;
}

.skills-table thead th {
  background-color: var(--bg-section);
  color: var(--text-dark);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-color: var(--border);
  padding: 0.9rem 1.25rem;
}

.skills-table tbody td {
  color: var(--text-mid);
  font-size: 0.9rem;
  border-color: var(--border);
  padding: 0.9rem 1.25rem;
  vertical-align: middle;
}

.skills-table tbody tr:hover {
  background-color: var(--bg-section);
}

/* ---------- Timeline (Kariyer) ---------- */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 24px var(--shadow-hover);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.timeline-sub {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------- Contact Form ---------- */
.contact-section {
  padding: 5rem 0;
}

.form-label-zb {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control-zb {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-dark);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-control-zb::placeholder {
  color: var(--text-light);
}

.form-control-zb:focus {
  background-color: var(--bg-card);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
  color: var(--text-dark);
  outline: none;
}

.form-select-zb {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-dark);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  transition: all 0.2s ease;
}

.form-select-zb:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
  color: var(--text-dark);
}

.contact-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-dark);
}

.contact-link-item:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-section);
  color: var(--primary);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-section), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-link-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-link-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ---------- Footer ---------- */
.footer-zb {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='29' y='0' width='2' height='22' fill='%2300B4D8' opacity='0.05'/%3E%3Crect x='29' y='38' width='2' height='22' fill='%2300B4D8' opacity='0.05'/%3E%3Crect x='0' y='29' width='22' height='2' fill='%2300B4D8' opacity='0.05'/%3E%3Crect x='38' y='29' width='22' height='2' fill='%2300B4D8' opacity='0.05'/%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='%2300B4D8' stroke-width='1' opacity='0.07'/%3E%3C/svg%3E");
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: var(--primary-light);
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(173, 232, 244, 0.7);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(173, 232, 244, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(173, 232, 244, 0.75);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '→';
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-divider {
  border-color: rgba(173, 232, 244, 0.15);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.8rem;
  color: rgba(173, 232, 244, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Utilities ---------- */
.text-primary-zb { color: var(--primary) !important; }
.text-mid-zb { color: var(--text-mid) !important; }
.bg-section-zb { background-color: var(--bg-section) !important; }
.bg-card-zb { background-color: var(--bg-card) !important; }
.border-zb { border-color: var(--border) !important; }

.divider-zb {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
  margin: 3rem 0;
}

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 119, 182, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.45);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(0, 180, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

.hero-avatar-ring {
  animation: float 6s ease-in-out infinite, pulse-ring 3s ease-in-out infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-avatar-ring {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
  }

  .hero-section {
    padding: 3.5rem 0 3rem;
    text-align: center;
    min-height: auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .section-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  .hero-avatar-ring {
    width: 160px;
    height: 160px;
  }

  .hero-avatar-inner {
    font-size: 5rem;
  }

  .filter-tabs {
    gap: 0.4rem;
  }

  .filter-tab {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    padding-left: 44px;
  }

  .timeline-dot {
    left: 6px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-zb,
  .btn-outline-zb {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}

/* ---------- Print ---------- */
@media print {
  .navbar-zb,
  .footer-zb,
  .scroll-top-btn,
  .btn-dark-toggle { display: none; }

  body { background: white; color: black; }
}
