/* ============================================================
   Yusuf Öztürk — Portfolio  |  style.css
   Dark / Glassmorphism / Siyah-Beyaz Tema
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0f;
  color: #f1f5f9;
  overflow-x: hidden;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#ffffff, #9ca3af);
  border-radius: 3px;
}

/* ─── Animated Grid Background ─── */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ─── Neon Glow Text ─── */
.neon-text {
  text-shadow:
    0 0 25px rgba(255,255,255,0.6),
    0 0 50px rgba(255,255,255,0.3),
    0 0 100px rgba(255,255,255,0.15);
}

.neon-blue {
  text-shadow:
    0 0 20px rgba(59,130,246,0.8),
    0 0 40px rgba(59,130,246,0.4);
}

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 60%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glass-card:hover::before { opacity: 1; }

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255,255,255,0.3);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 30px rgba(255,255,255,0.15),
    0 0 60px rgba(59,130,246,0.1);
}

/* ─── Neon Button ─── */
.btn-neon {
  position: relative;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #0a0a0f;
  border: none;
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255,255,255,0.35), 0 0 20px rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

/* ─── Skill Pill ─── */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #f1f5f9;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: #f1f5f9;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

.skill-pill.blue {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.1);
  color: #93c5fd;
}
.skill-pill.blue:hover {
  background: rgba(59,130,246,0.25);
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.skill-pill.cyan {
  border-color: rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.1);
  color: #67e8f9;
}
.skill-pill.cyan:hover {
  background: rgba(6,182,212,0.25);
  border-color: #06b6d4;
  box-shadow: 0 4px 15px rgba(6,182,212,0.3);
}

.skill-pill.pink {
  border-color: rgba(236,72,153,0.3);
  background: rgba(236,72,153,0.1);
  color: #f9a8d4;
}
.skill-pill.pink:hover {
  background: rgba(236,72,153,0.25);
  border-color: #ec4899;
  box-shadow: 0 4px 15px rgba(236,72,153,0.3);
}

/* ─── Tech Badge ─── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.18);
}

/* ─── Section Title ─── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

/* ─── Orb Blobs ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

/* ─── Progress Bars ─── */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffffff, #d1d5db, #9ca3af);
  background-size: 200% 100%;
  animation: gradientX 3s ease infinite;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Typing Cursor ─── */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: #ffffff;
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ─── Keyframes ─── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes gradientX {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-15px); }
}

/* ─── Project Card Icon ─── */
.project-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

/* ─── Timeline ─── */
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  box-shadow: 0 0 14px rgba(255,255,255,0.7);
  flex-shrink: 0;
  margin-top: 3px;
}

.timeline-line {
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(59,130,246,0.1));
}

/* ─── Stat Card ─── */
.stat-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}

.mobile-menu.open { display: flex; }

/* ─── Footer Link ─── */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-link:hover { color: #f1f5f9; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ─── Nav Link ─── */
.nav-link {
  position: relative;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #d1d5db);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover { color: #f1f5f9; }
.nav-link:hover::after { width: 100%; }

/* ─── Particle Canvas ─── */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ─── Görsel Keskinleştirme & Netlik ─── */
.project-preview-img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform-origin: top center;
}

/* ─── Lightbox Modal (Index) ─── */
.index-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.index-lightbox.active {
  display: flex;
}

.index-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ─── Instagram Animasyonlu Buton ─── */
@keyframes instaPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.4), 0 0 30px rgba(245, 96, 64, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.75), 0 0 45px rgba(188, 24, 136, 0.4);
  }
}

.instagram-btn {
  animation: instaPulse 3s ease-in-out infinite;
}

.instagram-btn:hover {
  animation: none;
  box-shadow: 0 0 30px rgba(225, 48, 108, 0.9), 0 0 50px rgba(245, 96, 64, 0.6) !important;
}

/* ─── Cyber Terminal Typewriter Kapsülü ─── */
.hero-terminal-capsule {
  position: relative;
  background: rgba(12, 14, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(56, 189, 248, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.hero-terminal-capsule:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 45px rgba(56, 189, 248, 0.12);
  transform: translateY(-2px);
}

.hero-terminal-capsule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(255, 255, 255, 0.9), rgba(56, 189, 248, 0.8), transparent);
}

/* Parlayan Neon İmleç */
.neon-cursor {
  display: inline-block;
  width: 3px;
  height: 1.25em;
  background: #38bdf8;
  margin-left: 4px;
  vertical-align: -2px;
  border-radius: 2px;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.8);
  animation: neonBlink 0.85s infinite;
}

@keyframes neonBlink {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.15; transform: scaleY(0.9); }
}

/* ─── İletişim Formu Özel Stilleri ─── */
.cyber-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cyber-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.3s ease;
}

.cyber-input {
  width: 100%;
  background: rgba(13, 16, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-input:focus {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(18, 22, 38, 0.9);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

.cyber-input:focus + .cyber-input-icon,
.cyber-input-wrap:focus-within .cyber-input-icon {
  color: #38bdf8;
}

.cyber-input::placeholder {
  color: #64748b;
}

.cyber-textarea {
  width: 100%;
  background: rgba(13, 16, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 140px;
  resize: vertical;
}

.cyber-textarea:focus {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(18, 22, 38, 0.9);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

.cyber-textarea:focus + .cyber-input-icon,
.cyber-input-wrap:focus-within .cyber-input-icon {
  color: #38bdf8;
}

.cyber-textarea::placeholder {
  color: #64748b;
}
