/* ======================================================
   MEHMETHAN ERDURAN - TECH PORTFOLIO THEME
   Dark + Neon Cyan, Glassmorphism, Two-Column Hero
   (HTML'e dokunmadan sadece CSS ile uyumludur)
====================================================== */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --bg-page: #020617;           /* ana arka plan: çok koyu lacivert */
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --bg-card: rgba(15, 23, 42, 0.92);
  --bg-chip: rgba(15, 23, 42, 0.85);

  --border-soft: rgba(148, 163, 184, 0.45);
  --border-strong: rgba(148, 163, 184, 0.8);

  --accent-primary: #22d3ee;    /* canlı cyan */
  --accent-secondary: #3b82f6;  /* mavi */
  --accent-soft: rgba(34, 211, 238, 0.16);

  --text-primary: #e5f2ff;
  --text-secondary: #cbd5f5;
  --text-muted: #64748b;

  --radius-xl: 22px;
  --radius-lg: 14px;
  --radius-md: 10px;

  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.8);
  --shadow-chip: 0 10px 30px rgba(15, 23, 42, 0.7);

  --transition: all 0.25s ease;
}

/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 55%),
    var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Hafif “scanline” efekti */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.3) 1px,
    transparent 1px
  );
  background-size: 100% 2px;
  opacity: 0.08;
  z-index: -1;
}

/* ---------- LAYOUT ---------- */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- HEADER ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.88),
    transparent
  );
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  padding: 0.7rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #f9fafb, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0.8;
}

.nav-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}

/* ---------- HEADER: EMAIL BLOK ---------- */

.email-block {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
  font-size: 0.8rem;
}

.email-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.email-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.email-link:hover {
  text-decoration: underline;
}

.email-separator {
  color: var(--text-muted);
}

/* ---------- HEADER: PROFILE LINKS ---------- */

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(51, 65, 85, 0.85);
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.profile-link svg {
  width: 16px;
  height: 16px;
}

.profile-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.profile-link:hover {
  border-color: var(--accent-primary);
  color: #e5f2ff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.9);
}

.profile-link:hover::before {
  opacity: 1;
}

/* ---------- HEADER: LANG SWITCH ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.lang-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.lang-pill.active {
  background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
  color: #020617;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}

.lang-pill:not(.active):hover {
  color: var(--text-secondary);
}

/* ======================================================
   HERO SECTION - TWO COLUMN
====================================================== */

.hero {
  padding-top: 9.2rem;
  padding-bottom: 3.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
}

/* LEFT SIDE */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Foto büyütülmüş + neon çerçeve */
.hero-avatar {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  margin-bottom: 1.3rem;
  padding: 4px;
  background: conic-gradient(from 180deg, rgba(34, 211, 238, 0.6), rgba(59, 130, 246, 0.7), rgba(34, 211, 238, 0.6));
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: visible;
}

.hero-avatar::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  opacity: 0.7;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

/* ünvan badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), rgba(15, 23, 42, 0.95));
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
}

/* isim */
.hero h1 {
  font-size: 2.9rem;
  line-height: 1.1;
  margin: 0.7rem 0 0.3rem;
  background: linear-gradient(110deg, #e5f2ff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* özet */
.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-top: 0.35rem;
}

/* hero butonlar */
.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  border-radius: 999px;
  padding: 0.76rem 1.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
  color: #020617;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.4);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* RIGHT SIDE - Skills & Languages */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-side-box {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(51, 65, 85, 0.95);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-chip);
  position: relative;
  overflow: hidden;
}

.hero-side-box::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 220deg,
    transparent,
    rgba(34, 211, 238, 0.15),
    transparent 30%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-side-box:hover::before {
  opacity: 1;
}

.hero-side-box h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

/* etiket listesi */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: #e5f2ff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.tag-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-primary);
  opacity: 0.65;
}

/* ======================================================
   GENERIC SECTIONS
====================================================== */

.section {
  padding: 2.4rem 0;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(120deg, #e5f2ff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-title::after {
  content: "";
  width: 70px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.6rem;
  opacity: 0.85;
}

/* section kutusu */
.section-box {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.97),
    rgba(15, 23, 42, 0.94)
  );
  border-radius: 26px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* hafif grid overlay */
.section-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(15, 23, 42, 0.7) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.7) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* içerik için z-index */
.section-box > * {
  position: relative;
  z-index: 1;
}

/* grid */
.card-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* experience & card */

.experience-card,
.card,
.publication-card,
.software-project-card {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
}

.experience-card:last-child,
.card:last-child,
.publication-card:last-child,
.software-project-card:last-child {
  border-bottom: none;
}

/* ---------- Experience ---------- */

.experience-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.experience-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.experience-date {
  font-size: 0.82rem;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
}


/* bullet list */
.bullet-list {
  margin-left: 1.1rem;
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.bullet-list li {
  margin-bottom: 0.32rem;
}

/* ---------- Education / Projects cards ---------- */

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ---------- Projects ---------- */

.projects-category {
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 1.15rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.project-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--text-secondary);
}

/* software project satırı */
.project-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.project-preview h3 {
  font-size: 0.98rem;
  color: var(--text-primary);
}

.visit-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.9);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.visit-site-link:hover {
  background: var(--accent-primary);
  color: #020617;
  /* abartılı glow’u kaldırdık, daha sakin */
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.7);
}


/* ---------- Publications ---------- */

.publication-type {
  display: inline-block;
  font-size: 0.76rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
  color: #020617;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.publication-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  padding: 1.8rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 840px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 14rem;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-subtitle {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-right {
    margin-top: 1.2rem;
  }
  .section {
    padding: 1rem 0 1rem;  /* telefonda bölüm araları belirgin şekilde dar */
  }
}

@media (max-width: 520px) {
  .email-block {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo {
    font-size: 1.2rem;
  }
  .section-box {
    padding: 1.6rem 1.3rem;
  }
  .section {
    padding: 1rem 0 1rem;  /* telefonda bölüm araları belirgin şekilde dar */
  }
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(110deg, #e5f2ff, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px; /* istersen 0 yapabilirsin */
}

