:root {
  --primary-color: #9945e8;
  --primary-light: #b76af8;
  --primary-dark: #7b2cc8;
  --secondary-color: #e066ff;
  --text-primary: #ffffff;
  --text-secondary: #d1d1d1;
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 10px;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --border-radius-md: 12px;
  --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- PLAN B: CANLI ARKA PLAN (ORBS) --- */
.background-orbs {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 10s infinite ease-in-out alternate;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary-color); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--secondary-color); bottom: 10%; right: -50px; animation-duration: 12s; }
.orb-3 { width: 200px; height: 200px; background: #5865F2; top: 40%; left: 40%; animation-duration: 15s; opacity: 0.2; }

@keyframes floatOrb {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 50px); }
}

/* --- PLAN A: GLASSMORPHISM --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
.glass-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.glass-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  backdrop-filter: blur(5px);
}

/* --- TEMEL YAPILAR --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: var(--spacing-md); }
a { text-decoration: none; color: var(--text-primary); transition: var(--transition-speed); }
h1, h2, h3 { font-family: 'Poppins', sans-serif; }

.section-title { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: 1rem; }
.highlight { color: var(--primary-color); text-shadow: 0 0 15px rgba(153, 69, 232, 0.4); }

/* --- HEADER & NAV --- */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5%; position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all 0.3s ease;
}
header.scrolled { background: rgba(0, 0, 0, 0.9); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.code-icon { color: var(--primary-color); }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { font-weight: 500; position: relative; }
nav a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
  background: var(--primary-color); transition: 0.3s;
}
nav a:hover::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1002; }
.bar { width: 25px; height: 3px; background: white; transition: 0.3s; }

/* --- HERO SECTION --- */
#home {
  min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative;
}
.hero-content {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
  flex-wrap: wrap-reverse; /* Mobilde görsel üstte, yazı altta olsun istersen wrap yap */
}
.about-section { flex: 1; min-width: 300px; }
.logo-section { flex: 0 0 350px; max-width: 100%; display: flex; justify-content: center; }

.profile-image {
  width: 300px; height: 300px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 30px rgba(153, 69, 232, 0.5);
  border: 2px solid var(--primary-color);
  animation: float 4s ease-in-out infinite;
}
.profile-image img { width: 100%; height: 100%; object-fit: cover; }

.type-container { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-light); }
.german-tag {
  font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-secondary); opacity: 0.7; margin-bottom: 1.5rem; border-left: 3px solid var(--primary-color); padding-left: 10px;
}

.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s;
}
.btn.primary { background: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(153, 69, 232, 0.4); }
.btn.secondary { background: transparent; border: 2px solid var(--primary-color); color: white; margin-left: 10px; }
.btn:hover { transform: translateY(-3px); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 2rem; color: var(--primary-color); animation: bounce 2s infinite;
}

/* --- PROJELER & KARTLAR --- */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem;
}
.project-card {
  border-radius: var(--border-radius-md); overflow: hidden; transition: 0.3s;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.project-image img { width: 100%; height: 160px; object-fit: cover; }
.project-details { padding: 1.5rem; }
.tech-tag { font-size: 0.75rem; padding: 2px 8px; background: rgba(153, 69, 232, 0.2); border-radius: 10px; margin-right: 5px; color: var(--primary-light); }

/* Stats */
.github-stats { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.stat-card { flex: 1; min-width: 150px; text-align: center; padding: 1.5rem; border-radius: var(--border-radius-md); }
.stat-card span { display: block; font-size: 2rem; font-weight: bold; margin: 0.5rem 0; }

/* --- SKILLS --- */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.skill { padding: 1rem; border-radius: var(--border-radius-md); transition: 0.3s; position: relative; }
.skill:hover { background: rgba(255, 255, 255, 0.1); }
.skill-bar-container { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.skill-bar { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); width: 0; transition: width 1s ease-out; }

/* --- CONTACT --- */
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.social-icon {
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.2rem; transition: 0.3s;
}
.social-icon:hover { transform: scale(1.1) rotate(5deg); }
.social-icon.spotify:hover { background: #1DB954; box-shadow: 0 0 20px #1DB954; }
.social-icon.youtube:hover { background: #FF0000; box-shadow: 0 0 20px #FF0000; }
.social-icon.github:hover { background: #333; box-shadow: 0 0 20px #666; }
.social-icon.instagram:hover { background: #d6249f; box-shadow: 0 0 20px #d6249f; }

.contact-form { max-width: 600px; margin: 0 auto; padding: 2rem; border-radius: var(--border-radius-md); }
.form-group { margin-bottom: 1rem; }
.glass-input { width: 100%; padding: 1rem; border-radius: 8px; outline: none; }
.glass-input:focus { border-color: var(--primary-color); }

/* --- MUSIC PLAYER (YENİ - PLAK STİLİ) --- */
.vinyl-player-container {
  position: fixed; bottom: 20px; left: 20px; z-index: 1000;
  display: flex; align-items: center;
}

.vinyl-record-wrapper {
  width: 60px; height: 60px; position: relative; z-index: 2;
  cursor: pointer; transition: transform 0.3s;
}
.vinyl-record-wrapper:hover { transform: scale(1.1); }

.vinyl-record {
  width: 100%; height: 100%; border-radius: 50%;
  background: #111;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
/* Dönme Animasyonu */
.vinyl-record.spinning { animation: spin 4s linear infinite; box-shadow: 0 0 20px var(--primary-color); }

.vinyl-art {
  width: 60%; height: 60%; border-radius: 50%;
  background-size: cover; background-position: center;
}
.center-hole {
  position: absolute; width: 12px; height: 12px; background: #000; border-radius: 50%;
  border: 2px solid #333;
}

.player-controls {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 15px 10px 40px; /* Soldan boşluk plak için */
  border-radius: 0 30px 30px 0;
  margin-left: -30px; /* Plak içine girsin */
  display: flex; flex-direction: column; gap: 5px;
  transform: translateX(-120%); /* Başlangıçta gizli */
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  max-width: 200px;
}

/* Player aktif veya hover durumunda açılsın */
.vinyl-player-container:hover .player-controls, 
.vinyl-player-container.active .player-controls {
  transform: translateX(0); opacity: 1;
}

.song-info { font-size: 0.8rem; white-space: nowrap; overflow: hidden; width: 140px; }
.scrolling-text { display: inline-block; animation: scrollText 5s linear infinite; }
.control-buttons { display: flex; align-items: center; gap: 10px; }
.play-btn { background: none; border: none; color: white; cursor: pointer; font-size: 1.2rem; }
.volume-slider { width: 80px; height: 4px; accent-color: var(--primary-color); }

/* --- ANİMASYONLAR --- */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  
  nav {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
    flex-direction: column; justify-content: center; align-items: center;
    transition: 0.4s ease;
  }
  nav.active { right: 0; box-shadow: -5px 0 30px rgba(0,0,0,0.5); }
  nav ul { flex-direction: column; align-items: center; }
  nav ul li { font-size: 1.5rem; }
  
  .hero-content { flex-direction: column; text-align: center; gap: 2rem; }
  .logo-section { flex: 0 0 auto; }
  .profile-image { width: 200px; height: 200px; margin: 0 auto; }
  .about-section h1 { font-size: 2rem; }
  .cta-buttons { justify-content: center; }
  
  /* Mobilde player her zaman açık olmasın, ikon kalsın */
  .vinyl-player-container:hover .player-controls { transform: translateX(0); opacity: 1; }
  
  .menu-overlay.active {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.5); z-index: 999;
  }
}
