/* ============================================
   Enes Garip — Kişisel Website
   Tasarım: modern-minimal + canlı renkler
   ============================================ */

/* ---------- Renkler ve değişkenler ---------- */
:root {
  /* Ana vurgu renkleri (canlı üçlü) */
  --c1: #2563eb;   /* mavi      */
  --c2: #06b6d4;   /* camgöbeği */
  --c3: #14b8a6;   /* turkuaz   */

  --grad: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c3));

  /* Açık tema */
  --bg: #fafafa;
  --bg-alt: #f1f2f6;
  --surface: #ffffff;
  --text: #18181b;
  --text-soft: #52525b;
  --border: #e4e4e7;
  --shadow: 0 6px 24px rgba(24, 24, 27, 0.07);
  --shadow-lg: 0 14px 40px rgba(24, 24, 27, 0.12);

  --radius: 18px;
  --nav-h: 68px;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

/* Koyu tema */
[data-theme="dark"] {
  --bg: #0e0e12;
  --bg-alt: #16161d;
  --surface: #1c1c26;
  --text: #f4f4f5;
  --text-soft: #a1a1aa;
  --border: #2b2b36;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Temel ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.25;
}

/* Gradyan yazı efekti */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.35s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.logo-dot {
  color: var(--c2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

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

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

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--c2) 35%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c2) 45%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--c1);
}

.lang-btn {
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-head);
}

/* Hamburger — sadece mobilde görünür */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 14s ease-in-out infinite alternate;
}

[data-theme="dark"] .blob {
  opacity: 0.3;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--c1);
  top: -100px;
  right: -80px;
}

.blob-2 {
  width: 340px;
  height: 340px;
  background: var(--c2);
  bottom: -60px;
  left: -100px;
  animation-delay: -5s;
}

.blob-3 {
  width: 240px;
  height: 240px;
  background: var(--c3);
  top: 40%;
  left: 55%;
  animation-delay: -9s;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.12); }
}

.hero-content {
  padding-top: var(--nav-h);
}

.hero-greeting {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-role {
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 600;
  margin-top: 10px;
  min-height: 1.4em;
  color: var(--text-soft);
}

.cursor {
  color: var(--c2);
  animation: blink 1s steps(1) infinite;
  font-weight: 400;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  max-width: 560px;
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Butonlar */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c1) 35%, transparent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--c2) 40%, transparent);
}

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

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--c1);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 15px 32px;
}

/* Kaydırma ipucu (mouse ikonu) */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-soft);
  border-radius: 14px;
  position: relative;
}

.mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--c2);
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0%   { opacity: 1; top: 7px; }
  70%  { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 7px; }
}

/* ---------- Bölümler ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  transition: background 0.35s ease;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c1) 12%, transparent);
  color: var(--c1);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
}

/* ---------- Hakkımda ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad);
  padding: 4px;
  display: grid;
  place-items: center;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-emoji {
  font-size: 4rem;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.about-facts {
  list-style: none;
  text-align: left;
  display: grid;
  gap: 12px;
}

.about-facts li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-soft);
  font-weight: 500;
}

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

.about-text {
  color: var(--text-soft);
  font-size: 1.03rem;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat {
  display: grid;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- Yetenekler ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--tint, var(--c1)) 45%, var(--border));
}

.skill-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  margin-bottom: 18px;
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.section-alt .chip {
  background: var(--bg);
}

.chip:hover {
  border-color: var(--c2);
  color: var(--text);
}

.chip-sm {
  font-size: 0.8rem;
  padding: 4px 12px;
}

/* ---------- Zaman çizelgesi ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 34px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--tint) 55%, var(--border));
  box-shadow: var(--shadow);
  z-index: 1;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c2) 12%, transparent);
  color: var(--c2);
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-size: 1.15rem;
}

.timeline-org {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c1);
  margin: 4px 0 8px;
}

.timeline-card p:last-child {
  color: var(--text-soft);
  font-size: 0.97rem;
}

/* ---------- Projeler ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-banner {
  height: 130px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--tint) 22%, transparent),
    color-mix(in srgb, var(--tint) 8%, transparent)
  );
  transition: font-size 0.25s ease;
}

.project-card:hover .project-banner {
  font-size: 3.6rem;
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.project-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c1);
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-link:hover {
  transform: translateX(4px);
  color: var(--c2);
}

/* ---------- İletişim ---------- */
.contact-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 60px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad);
}

.contact-card p {
  max-width: 480px;
  margin: 14px auto 30px;
  color: var(--text-soft);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-link {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--c1);
  color: var(--c1);
  transform: translateY(-2px);
}

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

/* ---------- Kaydırma animasyonları ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kullanıcı animasyon istemiyorsa kapat */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .mouse::after, .cursor { animation: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 4%;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 13px 6px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 6px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    max-width: 340px;
    margin: 0 auto;
  }

  .stats {
    gap: 26px;
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

  .timeline {
    padding-left: 14px;
  }

  .timeline-dot {
    width: 42px;
    height: 42px;
    left: -22px;
    font-size: 1.05rem;
  }

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

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