/* css/style.css */

/* ==== GENEL AYARLAR ==== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-body: #f3f4f6;
  --bg-surface: #ffffff;
  --bg-soft: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 1.25rem;
  --radius-lg: 0.85rem;
  --nav-height: 70px;
  --transition: 0.2s ease;
}
:root[data-theme="dark"] {
  --bg-body: #020617;
  --bg-surface: #020617;
  --bg-soft: #0b1120;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.25);
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --border: #1f2937;
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.78);
}
:root[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: #020617;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .contact-info-card,
:root[data-theme="dark"] .contact-form-card {
  background: #020617;
  border-color: #1f2937;
  box-shadow: none !important;
}


/* Sadece profil kartını biraz daha sade yap */
:root[data-theme="dark"] .hero-card {
  background: #020617;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}


:root[data-theme="dark"] .btn-outline {
  background: #020617;
  color: var(--text-main);
  border-color: #1f2937;
}

:root[data-theme="dark"] .footer {
  background: #020617;
  border-top-color: #1f2937;
}



html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* ==== NAVBAR ==== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}


.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav-theme {
  display: flex;
  align-items: center;
}

.nav-theme #theme-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-left: 0.4rem;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition);
}

.nav-theme #theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

:root[data-theme="dark"] .nav-theme #theme-toggle {
  background: #020617;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 58px;      /* çember boyutu büyüdü */
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
}



/* içteki img’yi tam oturtalım */
.brand-logo img {
  width: 180%;
  height: 180%;
  object-fit: cover;
  display: block;

  /* TAM ORTALAMA — en önemli satır */
  transform: translate(- -5%);

}




.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span:first-child {
  font-size: 0.9rem;
  font-weight: 600;
}

.brand-text span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Aktif sayfa linki */
.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}


.nav-lang {
  display: flex;
  gap: 0.3rem;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
}

.nav-lang button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-lang button.lang-active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==== SAYFA LAYOUT ==== */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 3rem;
}

/* ==== BUTONLAR ==== */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    box-shadow var(--transition), border-color var(--transition),
    transform var(--transition);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}


.btn-primary {
  background: var(--accent);
  color: #ffffff;
box-shadow: none !important;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
}

/* ==== HERO ==== */

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.hero-title-main {
  font-weight: 800;
}

.hero-title-role {
  font-weight: 600;
  color: var(--accent);
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 0.97rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-tagline {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem;
}

.hero-avatar {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background-image: url("../images/profile.jpg");
  background-size: cover;
  background-position: center;
  margin-bottom: 0.6rem;
}

.hero-card h2 {
  font-size: 1rem;
  font-weight: 700;
}

.hero-card h3 {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-card p {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.hero-tech span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--border);
}

/* ==== BÖLÜM BAŞLIKLARI ==== */

.section-header {
  margin-bottom: 1.4rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==== ÖZELLİK KARTLARI / ABOUT ==== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.feature-icon {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.feature-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==== PROJE KARTLARI ==== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}

.project-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Kart hover efektleri */
.project-card,
.feature-card,
.hero-card,
.contact-info-card,
.contact-form-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-card:hover,
.feature-card:hover,
.project-card:hover,
.contact-info-card:hover,
.contact-form-card:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}


.project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #e5e7eb;
}

.project-body {
  padding: 1rem 1rem 0.7rem;
  flex: 1;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.project-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.project-footer {
  padding: 0 1rem 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.project-tags span {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--border);
}

/* ==== TIMELINE (HAKKIMDA) ==== */
/* Yol haritası üst boşluk */
.timeline-section {
  margin-top: 2.2rem; /* istersen 2.5rem yap, biraz daha açılır */
}

.timeline {
  margin-top: 1rem;
  border-left: 2px solid var(--accent-soft);
  padding-left: 1rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 0.1rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==== İLETİŞİM ==== */
.alert-success {
  display: none;
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid #4ade80;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.85rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.contact-info-card,
.contact-form-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.contact-info-list {
  font-size: 0.9rem;
}

.contact-info-list dt {
  font-weight: 600;
  margin-top: 0.6rem;
}

.contact-info-list dd {
  color: var(--text-muted);
}

.contact-info-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info-list a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-group label {
  font-size: 0.82rem;
}

.form-control {
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  background: #f9fafb;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--accent-soft);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* ==== FOOTER ==== */

.footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  margin-top: 2.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ==== ANİMASYON ==== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== RESPONSIVE ==== */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.2rem;
  }

  .hero-media {
    order: -1;
  }

  .page {
    padding-inline: 1rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    height: auto;
    padding-inline: 1rem;
    padding-block: 0.6rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .page {
    padding-inline: 1rem;
  }
}
/* ============================
   CARDS (YENİ – PARLAMASIZ)
============================ */

.hero-card,
.feature-card,
.project-card,
.contact-info-card,
.contact-form-card {
  background: var(--bg-surface);
  padding: 1.25rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: none;                /* Gölge YOK */
  transition: transform 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}

/* Hafif hover: sadece biraz yukarı kalksın, glow yok */
.hero-card:hover,
.feature-card:hover,
.project-card:hover,
.contact-info-card:hover,
.contact-form-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.55); /* maviye yakın ince çizgi */
}

/* Dark mode için özel ayar – parlamasız */
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .contact-form-card {
  background: #020617;                            /* sayfayla neredeyse aynı */
  border: 1px solid rgba(15, 23, 42, 0.9);        /* çok ince koyu çizgi */
  box-shadow: none;                               /* kesinlikle gölge yok */
}

/* Dark modda hover: sadece çizgi biraz maviye çalsın */
html[data-theme="dark"] .hero-card:hover,
html[data-theme="dark"] .feature-card:hover,
html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .contact-info-card:hover,
html[data-theme="dark"] .contact-form-card:hover {
  border-color: rgba(96, 165, 250, 0.8);
  transform: translateY(-2px);
}

/* =========================================
   MOBİL / TABLET RESPONSIVE AYARLAR
========================================= */

/* Tablet ve altı (max 860px) */
@media (max-width: 860px) {
  /* Hero 2 sütun yerine tek sütun */
  .hero {
    grid-template-columns: 1fr;
  }

  /* Ne yapıyorum? kartları alt alta */
/* Ne Yapıyorum? Kart Tasarımı */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.focus-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.focus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.focus-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.focus-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.focus-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}


  /* Projeler kartları 2 sütun */
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page {
    padding-inline: 1rem;
  }

  .nav-inner {
    padding-inline: 1rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Küçük telefonlar (max 600px) */
@media (max-width: 600px) {
  /* Proje kartları da tek sütun */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .brand-text span:last-child {
    display: none; /* nav’daki alt satır yazıyı gizle */
  }

  .hero-title {
    font-size: 1.6rem;
  }
}
