/* --- Genel Ayarlar ve Reset --- */
:root {
  --bg-color: #05050a;
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #764be0;
  --secondary: #d946ef;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Kaydırma çubuğu sorununu çözen kritik kısım */
html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* --- Arka Plan Efektleri --- */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blob-bounce 10s infinite ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: 10%;
}
.blob-2 {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  top: 10%;
  right: 10%;
  animation-delay: 2s;
}
.blob-3 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  bottom: 0;
  left: 30%;
  animation-delay: 4s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* --- Navigasyon --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px;
  z-index: 1000;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
}

.dot {
  color: var(--secondary);
  font-size: 2rem;
  line-height: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

.btn-contact {
  background: var(--white);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700 !important;
}

.btn-contact:hover {
  transform: scale(1.05);
}

/* --- Mobil Menü --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.9);
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  padding: 20px;
  border-radius: 20px;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  text-align: center;
  padding: 10px;
}

/* --- Ana Bölüm (Hero) --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: 100px;
  overflow: hidden;
  position: relative;
}

.container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
}

@media (min-width: 992px) {
  .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.content-text {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 992px) {
  .content-text {
    align-items: flex-start;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(118, 75, 224, 0.1);
  border: 1px solid rgba(118, 75, 224, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
}

.typing-container {
  width: fit-content;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--secondary);
  animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
  margin-bottom: 10px;
}
.typing-text {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

@media (min-width: 768px) {
  .main-title {
    font-size: 5rem;
  }
}

.text-gradient {
  background: linear-gradient(to right, #c084fc, #d946ef, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.highlight {
  color: var(--white);
  font-weight: 600;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 992px) {
  .buttons {
    justify-content: flex-start;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(118, 75, 224, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(118, 75, 224, 0.5);
}
.btn-primary .arrow {
  transition: 0.3s;
}
.btn-primary:hover .arrow {
  transform: translateX(5px);
}

.btn-secondary {
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.content-image {
  position: relative;
  width: 300px;
  height: 300px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .content-image {
    width: 400px;
    height: 400px;
  }
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 2;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.orbit-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: spin 20s linear infinite;
  z-index: 1;
}

.orbit-1 {
  width: 120%;
  height: 120%;
}
.orbit-2 {
  width: 140%;
  height: 140%;
  animation-direction: reverse;
  animation-duration: 25s;
}

.floating-icon {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 15px;
  font-size: 1.5rem;
  animation: bounce 3s infinite ease-in-out;
}

.icon-code {
  top: 10%;
  right: 0;
}
.icon-rocket {
  bottom: 10%;
  left: 0;
  animation-delay: 1.5s;
}

/* --- Animasyonlar --- */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}
@keyframes blob-bounce {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}
@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: bounce 6s infinite ease-in-out;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* --- İletişim Bölümü --- */
.contact-section {
  padding: 100px 20px;
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(118, 75, 224, 0.05));
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
@media (min-width: 992px) {
  .contact-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.contact-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 400px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}
.method-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.method-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.method-text {
  display: flex;
  flex-direction: column;
}
.method-text .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.method-text .value {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

/* --- SOSYAL MEDYA BUTONLARI (GÜNCELLENDİ) --- */
.social-links {
  display: flex;
  gap: 15px;
}

.social-btn {
  /* Başlangıçta tam daire (width ile kontrol ediyoruz) */
  height: 50px;
  width: 50px;

  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* İçeriği merkeze sabitle */
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  /* 'Space Grotesk' yoksa sans-serif kullan */
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;

  /* Pürüzsüz geçiş için */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  white-space: nowrap; /* Asla alt satıra inme */
}

/* İlk harfler (Li, Gi, Tw) */
.btn-init {
  display: inline-block;
}

/* Gizli olan harfler */
.btn-expand {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: 0; /* Margin yok, yazılar yapışık */
  transition: all 0.4s ease;
}

/* --- Hover (Üzerine Gelme) --- */
.social-btn:hover {
  width: 140px; /* Sabit bir genişliğe açıl */
  justify-content: center; /* Yazıyı hep ortada tut */
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-btn:hover .btn-expand {
  max-width: 100px; /* Yeterince yer aç */
  opacity: 1;
}

/* Marka Renkleri (En altta tanımlı ki ezilmesin) */
.linkedin:hover {
  background-color: #0077b5;
}
.github:hover {
  background-color: #24292e;
}
.twitter:hover {
  background-color: #1da1f2;
}

/* --- Form Tasarımı --- */
.contact-form {
  background: rgba(20, 20, 35, 0.6);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 15px;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(118, 75, 224, 0.05);
}

.w-full {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
/* --- HAKKIMDA SAYFASI STİLLERİ --- */

/* Aktif link (Hangi sayfada olduğunu gösterir) */
.active-link {
  color: var(--white) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.about-page-section {
  min-height: 100vh;
  padding: 120px 20px 50px 20px; /* Üst boşluk navbar için */
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
}

@media (min-width: 992px) {
  .about-container {
    flex-direction: row;
    align-items: flex-start; /* Yukarı hizala */
  }
}

/* Sol Taraf (Metinler) */
.about-text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.bio-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 20px 20px 0;
}

.bio-card p {
  margin-bottom: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.bio-card strong {
  color: var(--white);
}

.goals-box {
  background: linear-gradient(145deg, rgba(118, 75, 224, 0.1), rgba(0, 0, 0, 0));
  border: 1px solid rgba(118, 75, 224, 0.2);
  padding: 25px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.goals-box h3 {
  color: var(--white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sağ Taraf (Görseller) */
.about-visuals-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Tech Stack Grid */
.tech-stack-section h3,
.roadmap-section h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  display: inline-block;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.tech-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  color: var(--text-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: var(--secondary);
}

/* Yol Haritası (Roadmap) */
.roadmap-item {
  margin-bottom: 20px;
}

.roadmap-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--white);
}

.status {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--secondary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 10px;
  animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
  from {
    width: 0;
  }
}
/* --- PROJELER SAYFASI STİLLERİ (DÜZELTİLMİŞ SİMETRİK VERSİYON) --- */

.projects-page-section {
  padding: 120px 20px 50px 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center; /* Sayfayı yatayda ortala */
}

/* Özel Container Ayarı */
.projects-container {
  /* Global container ayarlarını projelere özel eziyoruz */
  display: flex;
  flex-direction: column !important; /* Yan yana değil alt alta olsun */
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
}

/* SİMETRİYİ SAĞLAYAN GRID YAPISI */
.projects-grid {
  display: grid;
  /* auto-fit: Elemanları mevcut alana yayar */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;

  /* Kritik Ortalamalar */
  justify-content: center;
  justify-items: center;
}

/* Kart Tasarımı */
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  width: 100%; /* Kart bulunduğu hücreyi doldursun */
  max-width: 400px; /* Kartın aşırı büyümesini engelle */
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Kart Resmi */
.card-image-wrapper {
  width: 100%;
  height: 220px; /* Yüksekliği biraz artırdık */
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Resmi kutuya sığdırır, bozmaz */
  transition: transform 0.5s ease;
}

.project-card:hover .card-image-wrapper img {
  transform: scale(1.1);
}

/* Kart İçeriği */
.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left; /* İçerik soldan hizalı kalsın (okunabilirlik için) */
}

.card-content h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Etiketler (Chips) */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.75rem;
  background: rgba(118, 75, 224, 0.15);
  color: #a78bfa;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(118, 75, 224, 0.2);
}

/* Link Butonu */
.btn-project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  margin-top: auto;
}

.btn-project-link:hover {
  background: var(--white);
  color: black;
}

.btn-project-link .arrow {
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.btn-project-link:hover .arrow {
  transform: translate(3px, -3px);
}
