/* ============================================
   PORTFOLYO SİTESİ - ANA STİL DOSYASI
   ============================================ */

/* --- CSS Değişkenleri --- */
:root {
  --primary: #2b2bee;
  --primary-light: #5656ff;
  --primary-rgb: 43, 43, 238;
  --bg-dark: #101022;
  --surface-dark: #1a1a2e;
  --surface-card: #15152a;
  --surface-lighter: #232342;
  --text-primary: #ffffff;
  --text-secondary: #b0b8c4;
  --text-muted: #6b7280;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Açık Tema --- */
html.light {
  --bg-dark: #f8f9fc;
  --surface-dark: #ffffff;
  --surface-card: #f1f3f8;
  --surface-lighter: #e8eaf0;
  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
}
html.light body { background-color: var(--bg-dark); color: var(--text-primary); }
html.light .bg-background-dark { background-color: var(--bg-dark) !important; }
html.light .bg-surface-dark { background-color: var(--surface-dark) !important; }
html.light .bg-surface-card { background-color: var(--surface-card) !important; }
html.light .project-card,
html.light .glass { background-color: rgba(255,255,255,0.8) !important; }
html.light .text-white { color: var(--text-primary) !important; }
html.light .text-gray-400 { color: var(--text-secondary) !important; }
html.light .text-gray-500 { color: var(--text-muted) !important; }
html.light .text-gray-300 { color: var(--text-secondary) !important; }
html.light .border-white\\/5, html.light .border-white\\/10 { border-color: rgba(0,0,0,0.08) !important; }
html.light .bg-white\\/5 { background-color: rgba(0,0,0,0.04) !important; }
html.light .bg-white\\/10 { background-color: rgba(0,0,0,0.06) !important; }
html.light .navbar.scrolled { background: rgba(255,255,255,0.85) !important; border-bottom-color: rgba(0,0,0,0.08) !important; }
html.light .mobile-menu { background: rgba(248,249,252,0.98) !important; }
html.light .mobile-nav-link { color: var(--text-primary) !important; }
html.light .gradient-text { background-image: linear-gradient(135deg, var(--primary), #7c3aed) !important; }
html.light .hero-glow-1, html.light .hero-glow-2 { opacity: 0.3; }
html.light .preloader { background: var(--bg-dark); }
html.light footer { background-color: var(--surface-dark) !important; }

/* --- Genel Sıfırlama ve Temel Stiller --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary);
  color: white;
}

/* --- Erişilebilirlik: Focus Stilleri --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.25);
}

/* Focus-visible olmayan durumda outline kaldır */
:focus:not(:focus-visible) {
  outline: none;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  animation: preloaderAutoHide 4s forwards;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 24px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.4);
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  animation: preloaderFill 1.8s ease-in-out forwards;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(var(--primary-rgb), 0.5); }
}

@keyframes preloaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes preloaderAutoHide {
  0%, 80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), #a855f7);
  z-index: 9998;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}


/* --- Navigasyon --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 2rem;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 1rem 2rem;
  background: rgba(16, 16, 34, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: white !important;
}

/* --- Mobil Menü --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(16, 16, 34, 0.98);
  backdrop-filter: blur(30px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all var(--transition-normal);
  transform: translateX(50px);
  opacity: 0;
}

.mobile-menu.open a {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu a:hover {
  color: white;
  transform: translateX(10px) !important;
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 300;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: white;
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* --- Hero Bölümü --- */
.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(var(--primary-rgb), 0.2);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: glowFloat 8s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: glowFloat 10s ease-in-out infinite reverse;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

.hero-badge {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(var(--primary-rgb), 0.4));
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Image */
.hero-image-container {
  position: relative;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(60px);
  animation: imageGlow 4s ease-in-out infinite;
}

@keyframes imageGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

.floating-badge {
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.spinning-icon {
  animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bounce-element {
  animation: bounceGentle 2s ease-in-out infinite;
}

@keyframes bounceGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}


/* --- Proje Kartları --- */
.project-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.15);
}

.project-card .project-image {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-card .project-arrow {
  transition: all var(--transition-normal);
}

.project-card:hover .project-arrow {
  color: var(--primary);
  transform: translate(4px, -4px);
}

.filter-btn {
  transition: all var(--transition-normal);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 25px -5px rgba(var(--primary-rgb), 0.4);
}

/* --- Yetenek Barları --- */
.skill-bar-fill {
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.skill-bar-fill.animated {
  /* width is set inline */
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.6);
  opacity: 0;
  transition: opacity 0.3s ease 1.3s;
}

.skill-bar-fill.animated::after {
  opacity: 1;
}

.skill-item {
  transition: all var(--transition-normal);
}

.skill-item:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateX(5px);
}

/* --- Zaman Çizelgesi --- */
.timeline-line {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .timeline-line {
    left: 32px;
  }
}

.timeline-dot {
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.timeline-dot.active::after {
  opacity: 0.3;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* --- İletişim Formu --- */
.form-input {
  transition: all var(--transition-normal);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.send-btn {
  position: relative;
  overflow: hidden;
}

.send-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.send-btn:hover::before {
  width: 300px;
  height: 300px;
}

.social-card {
  transition: all var(--transition-normal);
}

.social-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}

.social-card:hover .social-icon {
  transform: scale(1.1);
}

/* --- Scroll Reveal Animasyonları --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active,
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active,
.reveal-left.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active,
.reveal-right.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active,
.reveal-scale.show {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delay */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Hero Giriş Animasyonu --- */
.hero-entrance {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-entrance:nth-child(1) { animation-delay: 0.3s; }
.hero-entrance:nth-child(2) { animation-delay: 0.5s; }
.hero-entrance:nth-child(3) { animation-delay: 0.7s; }
.hero-entrance:nth-child(4) { animation-delay: 0.9s; }
.hero-entrance:nth-child(5) { animation-delay: 1.1s; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
}

/* --- Arka Plan Grid Deseni --- */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* --- Genel Yardımcı Stiller --- */
.glass {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), transparent, rgba(168, 85, 247, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Scroll Down İndikatör --- */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* --- Toast / Bildirim --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.toast-error {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

/* --- Responsive Düzenlemeler --- */
@media (max-width: 640px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hero-image-section {
    height: 350px;
  }

  .hero-glow-1, .hero-glow-2 {
    display: none;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* --- Proje Kartı Filtre Animasyonu --- */
.project-card.hide {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}

.project-card.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

/* --- Erişilebilirlik: İçeriğe Atla --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 0.75rem 0.75rem;
  z-index: 99999;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* --- Focus Visible --- */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}
input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

/* --- Scrollbar Gizle --- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* --- Hizmet Kartları --- */
.service-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(43, 43, 238, 0.1);
}

/* --- Müşteri Yorum Kartları --- */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* --- Tema Geçiş Butonu --- */
.theme-toggle {
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.theme-toggle:hover {
  transform: rotate(20deg);
}

/* --- Tema Geçiş Animasyonu --- */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* --- CV Butonu Pulse --- */
.cv-download-btn {
  position: relative;
}

/* --- Yazdırma Stilleri --- */
@media print {
  .preloader, .navbar, .scroll-progress, .back-to-top, .mobile-menu,
  .hamburger, .hero-glow-1, .hero-glow-2, .bg-grid,
  .scroll-indicator, .theme-toggle, .skip-to-content { display: none !important; }

  body { background: white !important; color: black !important; font-size: 12pt; }

  * { box-shadow: none !important; text-shadow: none !important; }

  a { color: black !important; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important;
  }

  section { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* ===== KVKK / ÇEREZ BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 0;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== SKELETON / SHIMMER LOADING ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
.skeleton-text { height: 1rem; margin-bottom: 0.5rem; border-radius: 0.25rem; }
.skeleton-title { height: 1.5rem; width: 60%; margin-bottom: 1rem; border-radius: 0.25rem; }
.skeleton-avatar { width: 3rem; height: 3rem; border-radius: 50%; }
.skeleton-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== NAV ACTIVE HIGHLIGHT ===== */
.nav-link.active {
  color: var(--primary) !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}



/* ===== PROSE (Blog + Proje Detay) ===== */
.prose-custom p {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.prose-custom h1, .prose-custom h2, .prose-custom h3 {
  color: #fff;
}
.prose-custom a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-custom a:hover {
  color: var(--primary);
}
.prose-custom ul, .prose-custom ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-custom li {
  color: #d1d5db;
  margin-bottom: 0.25rem;
}
.prose-custom blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5rem 0;
}
.prose-custom pre {
  background: #0d0d24;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.prose-custom code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.875rem;
}
.prose-custom img {
  border-radius: 0.75rem;
  max-width: 100%;
  margin: 1.5rem 0;
}

/* ===== PAGE TRANSITION ===== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-dark);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.page-transition.enter {
  animation: pageEnter 0.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes pageEnter {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  51% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

