/* ==========================================================================
   BERAT CEYLAN - KİŞİSEL PORTFOLYO STİL SAYFASI
   Gri & Beyaz Minimalist, Zarif Mouse Animasyonları, Yüksek Kontrast
   ========================================================================== */

:root {
  /* Renk Paleti (Gri, Saf Beyaz & Kömür) */
  --bg-deep: #090b0e;
  --bg-surface: #101319;
  --bg-card: #141720;
  --bg-card-hover: #1a1e2a;
  --bg-glass: rgba(18, 22, 30, 0.72);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-active: rgba(255, 255, 255, 0.45);

  --text-white: #ffffff;
  --text-primary: #edf1f7;
  --text-secondary: #9aa2af;
  --text-muted: #656d7b;

  --accent-white: #ffffff;
  --accent-silver: #c8d1dc;

  /* Fontlar */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Mouse Konumu */
  --mouse-x: 50vw;
  --mouse-y: 50vh;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------- RESET & TEMEL -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-deep);
  line-height: 1.6;
}

::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* -------------------- SADE VE ZARİF MOUSE EFEKTİ -------------------- */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    550px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.038),
    transparent 80%
  );
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.22s var(--ease-spring), height 0.22s var(--ease-spring), background-color 0.22s, border-color 0.22s;
}

.cursor-center {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

body.cursor-hover .cursor-ring {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

/* Canvas Arka Planı */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* -------------------- ÜST MENÜ (NAVBAR) -------------------- */
.navbar-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 20px;
}

.navbar {
  width: 100%;
  max-width: 1020px;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
}

.brand-monogram {
  width: 30px;
  height: 30px;
  background: #ffffff;
  color: #090b0e;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.btn-nav-action {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-nav-action:hover {
  background: #ffffff;
  color: #090b0e;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* -------------------- ORTAK BÖLÜMLER -------------------- */
main {
  position: relative;
  z-index: 10;
}

section {
  padding: 90px 24px;
  max-width: 1020px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #a0acbe;
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

/* -------------------- HERO BÖLÜMÜ -------------------- */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 40px;
}

.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #8c97a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #090b0e;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
  transition: all 0.22s var(--ease-spring);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f0f3f8;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.28);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  transition: all 0.22s var(--ease-spring);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* -------------------- PROJELER & OYUNLAR IZGARASI (6 KART) -------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-spring), box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.card-media-preview {
  height: 140px;
  background: #0f121a;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
}

.preview-badge.active-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.preview-badge.game-badge {
  background: rgba(160, 174, 192, 0.12);
  border: 1px solid rgba(160, 174, 192, 0.25);
  color: #e2e8f0;
}

.preview-icon-box {
  font-size: 42px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}

.project-card:hover .preview-icon-box {
  transform: scale(1.1);
}

.project-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.project-tech-tags span {
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: #abb5c4;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 8px;
  border-radius: 8px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #ffffff;
  color: #090b0e;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 16px;
  transition: all 0.2s;
}

.btn-project-link:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.download-btn {
  background: #202634;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn:hover {
  background: #ffffff;
  color: #090b0e;
  border-color: #ffffff;
}

.upcoming-status-tag {
  font-size: 12px;
  font-weight: 600;
  color: #a0aec0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 12px;
}

/* -------------------- BOŞ KARTLAR (YAKINDA GELECEK) -------------------- */
.card-blank {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(16, 19, 26, 0.5);
  min-height: 280px;
}

.card-blank:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(20, 24, 34, 0.6);
}

.blank-card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.blank-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.blank-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* -------------------- BEN KİMİM? BÖLÜMÜ (PROJELERİN ALTINDA) -------------------- */
.about-section {
  padding-top: 20px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 44px 38px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s, transform 0.25s var(--ease-spring);
}

.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
}

.about-paragraph {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 820px;
}

/* -------------------- İLETİŞİM BÖLÜMÜ (SADE) -------------------- */
.simple-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.contact-card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-info {
  flex: 1;
}

.contact-card-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card-value {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2px;
  display: block;
}

.contact-card-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-card:hover .contact-card-arrow {
  transform: translate(2px, -2px);
  color: #ffffff;
}

.contact-card-copy-badge {
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  color: #090b0e;
  padding: 5px 12px;
  border-radius: 10px;
  transition: all 0.2s;
}

.contact-card-copy-badge.copied {
  background: #34d399;
  color: #090b0e;
}

/* -------------------- ALT BİLGİ (FOOTER) -------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 34px 24px;
  background: #090b0e;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  transition: all 0.2s;
}

.btn-back-to-top:hover {
  background: #ffffff;
  color: #090b0e;
}

/* -------------------- MOBİL & TABLET UYUMU -------------------- */
@media (max-width: 860px) {
  .hero-title {
    font-size: 38px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simple-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cursor-ring, .cursor-center {
    display: none !important;
  }
  .nav-links {
    position: fixed;
    top: 86px;
    left: 20px;
    right: 20px;
    background: #121620;
    border: 1px solid var(--border-hover);
    border-radius: 18px;
    padding: 20px;
    flex-direction: column;
    gap: 14px;
    display: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .btn-nav-action {
    display: none;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-description {
    font-size: 14px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
