/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  transition: opacity 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0a0a;
  color: #e4e4e7;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-theme {
  background: #f8f9fa;
  color: #1a1a1a;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

body.light-theme .nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4e4e7;
}

.theme-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
  transform: rotate(20deg);
}

body.light-theme .theme-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

body.light-theme .theme-btn:hover {
  background: rgba(102, 126, 234, 0.1);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  position: relative;
  gap: 0;
  width: auto;
}

body.light-theme .language-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.language-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.language-toggle.tr-active::before {
  transform: translateX(calc(100% + 4px));
}

.lang-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.3s ease;
  color: #e4e4e7;
  font-weight: 500;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.lang-btn.active {
  color: white;
}

.lang-btn:hover {
  color: white;
}

body.light-theme .lang-btn {
  color: #333;
}

body.light-theme .lang-btn.active {
  color: white;
}

body.light-theme .lang-btn:hover {
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #e4e4e7;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #a1a1aa;
  margin-bottom: 2.5rem;
}

#typed-text {
  color: #667eea;
  font-weight: 600;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, #667eea, transparent);
  animation: scrollDown 2s infinite;
}

.scroll-text {
  font-size: 0.875rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Section Styles */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #a1a1aa;
}

/* About Section */
.about {
  background: rgba(255, 255, 255, 0.02);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Profile Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  gap: 1.5rem;
}

.profile-image-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.profile-image-wrapper:hover {
  border-color: rgba(102, 126, 234, 0.6);
  transform: scale(1.05);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  color: #e4e4e7;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.4);
  color: #667eea;
  transform: translateY(-3px);
}

.about-text {
  margin-bottom: 3rem;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #e4e4e7;
}

.skill-card p {
  color: #a1a1aa;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 126, 234, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #e4e4e7;
}

.project-content p {
  color: #a1a1aa;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #764ba2;
}

/* Contact Section */
.contact {
  background: rgba(255, 255, 255, 0.02);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-input,
.form-textarea {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e4e4e7;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.05);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: #71717a;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Light Theme Styles */
body.light-theme .section-subtitle {
  color: #4a4a4a;
}

body.light-theme .about-text p {
  color: #2a2a2a;
}

body.light-theme .skill-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .skill-card h3 {
  color: #1a1a1a;
}

body.light-theme .skill-card p {
  color: #4a4a4a;
}

body.light-theme .project-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .project-content h3 {
  color: #1a1a1a;
}

body.light-theme .project-content p {
  color: #4a4a4a;
}

body.light-theme .form-input,
body.light-theme .form-textarea {
  background: white;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

body.light-theme .form-input:focus,
body.light-theme .form-textarea:focus {
  background: white;
  border-color: #667eea;
}

body.light-theme .nav-link {
  color: #1a1a1a;
}

body.light-theme .nav-link:hover {
  color: #667eea;
}

body.light-theme .hero-subtitle {
  color: #4a4a4a;
}

body.light-theme .scroll-text {
  color: #666;
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) BAŞLANGIÇ --- */

/* 1. Kırılma Noktası: Tabletler (ve altı) */
@media (max-width: 768px) {
  /* --- ANA DÜZELTME: NAVBAR --- */
  .nav-container {
    flex-direction: column; /* Logoyu ve sağ tarafı alt alta diz */
    gap: 1rem;
  }

  .nav-right {
    flex-direction: column; /* Linkleri ve butonları alt alta diz */
    gap: 1.5rem;
    align-items: center; /* Hepsini ortala */
  }

  .nav-links {
    gap: 1.5rem; /* Linklerin arasını ayarla */
    flex-wrap: wrap; /* Sığmazsa alt satıra at */
    justify-content: center; /* Linkleri ortala */
  }

  .nav-link {
    font-size: 0.875rem;
  }
  /* --- NAVBAR DÜZELTMESİ BİTTİ --- */

  .hero {
    padding: 6rem 1.5rem;
  }

  .cta-group {
    flex-direction: column; /* Butonları alt alta diz */
    align-items: center;
  }

  .btn {
    width: 100%; /* Butonlar tam genişlik kaplasın */
    max-width: 300px;
    text-align: center; /* Buton yazısını ortala */
  }

  .profile-image-wrapper {
    width: 150px;
    height: 150px;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  /* Padding'i küçült */
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 4rem 1.5rem;
  }
}

/* 2. Kırılma Noktası: Telefonlar (ve altı) */
@media (max-width: 480px) {
  /* HTML'deki clamp() zaten iyi çalışıyor ama emin olmak için küçültelim */
  .hero-title {
    font-size: 2.25rem; /* Başlığı mobilde küçült */
  }

  .hero-subtitle {
    font-size: 1.125rem; /* Alt başlığı küçült */
  }

  .section-title {
    font-size: 1.75rem; /* Bölüm başlıklarını küçült */
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .nav-links {
    gap: 1rem; /* Linklerin arasını biraz daha daralt */
  }

  .lang-btn {
    padding: 0.5rem 1rem; /* Dil butonlarını küçült */
  }

  .project-content {
    padding: 1.5rem; /* Proje kartlarının iç boşluğunu azalt */
  }

  .about-text p {
    font-size: 1rem; /* Hakkımda yazılarını küçült */
    line-height: 1.7;
  }

  .skill-card {
    padding: 1.5rem; /* Yetenek kartlarının boşluğunu azalt */
  }
}
/* --- MOBİL UYUMLULUK (RESPONSIVE) BİTİŞ --- */
