@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary-color: #f2480b;
  --primary-light: #ff6633;
  --primary-dark: #d13c00;
  --dark-color: #090c10;
  --dark-secondary: #151b25;
  --light-color: #ffffff;
  --text-secondary: #999999;
  --transition-fast: 0.3s;
  --transition-medium: 0.5s;
  --transition-slow: 0.8s;
  
  /* Liquid Glass Teması */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(10px);
}

/* Özel Scrollbar Tasarımı */
::-webkit-scrollbar {
  width: 8px;
  background-color: var(--dark-color);
}

::-webkit-scrollbar-track {
  background-color: var(--dark-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-light);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Accounts for fixed navbar */
  scrollbar-width: thin; /* Firefox için */
  scrollbar-color: var(--primary-color) var(--dark-secondary); /* Firefox için */
  /* Daha dengeli bir temel boyut için html font-size ayarı eklendi (masaüstü) */
}

@media screen and (min-width: 769px) {
  html {
    font-size: 15px; /* 15.5px'den 15px'e düşürüldü */
  }
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--dark-color);
  color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Su Baloncuğu Efekti */
.water-bubble {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(242, 72, 11, 0.8) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: 99996;
  opacity: 0;
  animation: bubbleFloat 2s ease-out forwards;
}

@keyframes bubbleFloat {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, calc(-50% - 100px)) scale(1.2);
    opacity: 0;
  }
}

/* Tıklanabilir Elemanlara Efekt */
a, button, .btn, .nav__link, .service__card, .project__card, .skills__card, .video, .icon {
  position: relative;
  overflow: hidden;
}

a::after, button::after, .btn::after, .nav__link::after, 
.service__card::after, .project__card::after, .skills__card::after, 
.video::after, .icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(242, 72, 11, 0.4);
  opacity: 0;
  border-radius: 50%;
  transform: scale(1);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.5s, opacity 0.5s;
}

a:active::after, button:active::after, .btn:active::after, .nav__link:active::after,
.service__card:active::after, .project__card:active::after, .skills__card:active::after,
.video:active::after, .icon:active::after {
  opacity: 1;
  transform: scale(20);
  transition: transform 0.5s, opacity 0s;
}

/* Özel splash efekt düzeltmesi */
.btn:active::after {
  opacity: 1;
  transform: scale(20);
  transition: transform 0.5s, opacity 0s;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(242, 72, 11, 0.4);
  opacity: 0;
  border-radius: 50%;
  transform: scale(1);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.5s, opacity 0.5s;
}

/* Mobil cihazlarda efektleri kaldır */
@media (max-width: 768px) {
  .water-bubble,
  .cursor-follower,
  .click-splash {
    display: none !important;
  }
  
  /* Mobil cihazlar için bölüm ve sayfa düzeltmeleri */
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    scroll-behavior: auto !important;
  }
  
  body {
    display: block !important;
  }
  
  section {
    overflow: visible !important;
    position: relative !important;
    z-index: auto !important;
    height: auto !important;
    min-height: auto !important;
    transform: none !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }
  
  /* Scroll snap özelliklerini kaldır */
  html, body {
    scroll-snap-type: none !important;
  }
  
  /* Servis bölümü düzeltmeleri */
  .service, 
  .service__container, 
  .service__grid,
  .service__card {
    position: relative !important;
    overflow: visible !important;
    z-index: auto !important;
    transform: none !important;
    height: auto !important;
  }
  
  .service__card::before {
    display: none !important;
  }
  
  /* Bölüm içeriği düzeltmeleri */
  .section__container {
    overflow: visible !important;
    position: relative !important;
    z-index: auto !important;
    height: auto !important;
  }
  
  a::after, button::after, .btn::after, .service__card::after, 
  .project__card::after, .skills__card::after, .video::after, .icon::after {
    display: none !important;
  }
  
  /* Mobil cihazlar için service sınıfı düzeltmeleri */
  .service {
    position: relative;
    overflow: visible !important;
    z-index: auto !important;
    transform: none !important;
  }
  
  .service__card {
    position: relative;
    overflow: visible !important;
    z-index: auto !important;
    transform: none !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1) !important;
  }
  
  .service__card::before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  .service__card:hover::before {
    height: 0 !important;
  }
  
  .section__container {
    overflow: visible !important;
    position: relative !important;
  }
  
  .service__grid {
    overflow: visible !important;
    position: relative !important;
    z-index: auto !important;
  }
  
  section {
    overflow: visible !important;
    position: relative !important;
    z-index: auto !important;
  }
  
  /* Yeni parmak takip efektleri */
  .touch-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, left, top, opacity;
    box-shadow: 0 0 12px rgba(242, 72, 11, 0.5), 
                inset 0 0 8px rgba(255, 150, 100, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  
  .touch-ripple-small {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 5px rgba(242, 72, 11, 0.3));
  }
  
  .touch-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    will-change: transform, opacity;
    filter: blur(1px);
  }
  
  .touch-ripple-end {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9996;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 8px rgba(242, 72, 11, 0.5));
  }
}

/* Mobil cihazlarda daha yumuşak geçişler */
@media (max-width: 768px) {
  .service__grid,
  .skills__grid,
  .project__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 15px !important;
    margin: 0 -15px !important;
    padding: 0 15px 15px !important;
  }
  
  .service__card,
  .skills__card,
  .project__card {
    flex: 0 0 auto !important;
    width: 85% !important;
    scroll-snap-align: center !important;
    margin: 5px 0 !important;
  }
}

/* Mobil için yeni ve modern dokunmatik efektler */
@media (max-width: 768px) {
  /* Sayfa geçiş efektleri için arka plan desenli element */
  .mobile-page-transition {
    background-image: 
      linear-gradient(45deg, var(--dark-secondary) 25%, transparent 25%), 
      linear-gradient(-45deg, var(--dark-secondary) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, var(--dark-secondary) 75%),
      linear-gradient(-45deg, transparent 75%, var(--dark-secondary) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: mobileBackgroundMove 20s linear infinite;
  }
  
  @keyframes mobileBackgroundMove {
    0% {
      background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
      background-position: 50px 50px, 50px 60px, 60px 40px, 40px 50px;
    }
  }
  
  /* Mobil için özel sayfa kaydırma iyileştirmesi */
  html, body {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Mobil yukarı kaydır animasyonu */
  .mobile-swipe-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    border: 2px solid rgba(242, 72, 11, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    z-index: 99990;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  
  .mobile-swipe-indicator.visible {
    opacity: 1;
  }

  .mobile-swipe-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    animation: swipeIndicator 1.5s ease infinite;
  }
  
  @keyframes swipeIndicator {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    80% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 0;
      transform: translateY(30px);
    }
  }
  
  /* Yanıp sönen border efekti (mobil için) */
  .mobile-pulse-border {
    position: relative;
  }
  
  .mobile-pulse-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: inherit;
    border: 1px solid var(--primary-color);
    opacity: 0;
    z-index: -1;
    animation: mobilePulseBorder 2s infinite;
  }

  @keyframes mobilePulseBorder {
    0% {
      opacity: 0.6;
      transform: scale(0.85);
    }
    70% {
      opacity: 0;
      transform: scale(1.1);
    }
    100% {
      opacity: 0;
      transform: scale(1.1);
    }
  }
  
  /* Mobil için 3D paralaks efekti */
  .mobile-parallax-container {
    position: relative;
    overflow: hidden;
    height: 180px;
    border-radius: 10px;
    margin: 20px 0;
  }

  .mobile-parallax-background,
  .mobile-parallax-middleground,
  .mobile-parallax-foreground {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-out;
  }

  .mobile-parallax-background {
    z-index: 1;
  }
  
  .mobile-parallax-middleground {
    z-index: 2;
  }
  
  .mobile-parallax-foreground {
    z-index: 3;
  }
  
  /* Mobil için özel yükleme animasyonu */
  .mobile-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .mobile-loading.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .mobile-loading-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--primary-light);
    animation: mobileSpinner 1.5s linear infinite;
  }

  @keyframes mobileSpinner {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .mobile-loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: var(--primary-color);
    letter-spacing: 1px;
  }

  /* Mobil için giriş animasyonları */
  .mobile-fade-in {
    animation: mobileFadeIn 0.8s ease forwards;
    opacity: 0;
  }
  
  @keyframes mobileFadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mobil için dokunma dalgası efekti - İyileştirildi */
  .touch-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 72, 11, 0.6) 0%, rgba(242, 72, 11, 0) 70%);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9999;
    animation: touchRipple 0.8s ease-out forwards;
    will-change: transform, opacity;
    box-shadow: 0 0 15px rgba(242, 72, 11, 0.5);
  }
  
  @keyframes touchRipple {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0.7;
    }
    100% {
      transform: translate(-50%, -50%) scale(3);
      opacity: 0;
    }
  }
  
  /* Mobil için dokunma vurgulaması */
  .mobile-touch-highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(242, 72, 11, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 5;
  }
}

/* Yükleme Ekranı */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  opacity: 1;
  visibility: visible;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.logo-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--dark-secondary);
  box-shadow: 0 0 20px rgba(242, 72, 11, 0.2);
  animation: pulse 2s infinite;
  margin: 0 auto;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1px;
  animation: fadeIn 1s ease;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background-color: var(--dark-secondary);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease-out;
}

.loading-text {
  font-size: 16px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.loading-circle {
  position: absolute;
  width: 96px;
  height: 96px;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: rotate 2s linear infinite;
  opacity: 0.3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  box-sizing: border-box;
}

.dot {
  opacity: 0;
  animation: fadeDots 1.5s infinite;
}

.dot:nth-child(1) {
  animation-delay: 0.2s;
}

.dot:nth-child(2) {
  animation-delay: 0.4s;
}

.dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 72, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(242, 72, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 72, 11, 0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes fadeDots {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media screen and (max-width: 768px) {
  .loader {
    max-width: 250px;
    gap: 15px;
  }
  .logo-container {
    width: 70px;
    height: 70px;
  }
  .logo {
    font-size: 24px;
  }
  .loading-bar {
    width: 180px;
  }
  .loading-text {
    font-size: 14px;
  }
  .loading-circle {
    width: 86px;
    height: 86px;
  }
}

/* Yükleme ekranı için ek stiller */
.logo-icon {
  font-size: 24px;
  margin-right: 5px;
  animation: logoFloat 3s ease-in-out infinite;
}

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

@media (max-width: 768px) {
  .logo-icon {
    font-size: 20px;
  }
  @keyframes logoFloatMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.section__title {
  font-size: 2rem; /* 2.2rem'den 2rem'e küçültüldü */
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.section__title:hover::after {
  width: 100%;
}

.section__title span {
  color: var(--primary-color);
}

.section__subtitle {
  font-size: 0.95rem; /* 1rem'den 0.95rem'e küçültüldü */
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn {
  background: linear-gradient(135deg, rgba(242, 72, 11, 0.8), rgba(242, 72, 11, 0.6)); /* Gradient glass efekti */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(242, 72, 11, 0.5);
  color: var(--light-color);
  padding: 0.65rem 1.7rem;
  outline: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px; /* Daha yumuşak köşeler */
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(242, 72, 11, 0.3);
}

.btn i {
  margin-right: 0.5rem; /* İkon ve metin arasına boşluk */
  transition: transform var(--transition-fast);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  transition: all var(--transition-fast);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(242, 72, 11, 0.5);
  background: linear-gradient(135deg, rgba(242, 72, 11, 1), rgba(255, 102, 51, 0.9)); /* Hover'da daha canlı */
  border-color: var(--primary-color);
}

.btn:hover i {
  transform: translateX(3px) rotate(10deg); /* İkonu hafifçe hareket ettir ve döndür */
}

.btn:active {
  transform: translateY(-1px);
}

a {
  text-decoration: none;
  color: var(--light-color);
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem; /* Varsayılan padding biraz artırıldı */
  z-index: 100;
  background: var(--glass-bg); /* Liquid Glass efekti */
  backdrop-filter: var(--glass-blur); /* Liquid Glass blur */
  -webkit-backdrop-filter: var(--glass-blur); /* Safari desteği */
  border-bottom: 1px solid var(--glass-border); /* Cam kenarlık */
  box-shadow: var(--glass-shadow); /* Hafif gölge */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-medium);
}

/* Kaydırıldığında navigasyon çubuğuna eklenecek stil */
nav.scrolled {
  background-color: rgba(9, 12, 16, 0.85); /* Kaydırıldığında opaklık ve renk yoğunluğu artırıldı */
  backdrop-filter: blur(10px); /* Kaydırıldığında bulanıklık artırıldı */
  padding: 1rem 2rem; /* Kaydırıldığında padding azaltıldı */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Hafif bir alt gölge eklendi */
}

.nav__logo {
  font-size: 1.6rem; /* 1.7rem'den 1.6rem'e küçültüldü */
  font-weight: 600;
  color: var(--text-color-light);
}

.nav__logo a {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.nav__logo a:hover {
  transform: translateY(-3px);
}

.nav__logo span {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.nav__logo:hover span {
  color: var(--primary-light);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav__link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav__link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--light-color);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* HEADER */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

/* Video Background */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  filter: brightness(1.05); /* Parlaklığı azalt */
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(9, 12, 16, 0.1), rgba(9, 12, 16, 0.1)); /* Opaklık maksimuma yakın azaltıldı */
  z-index: 2;
  opacity: 0.2; /* Overlay opaklığı maksimuma yakın azaltıldı */
}

/* Video Parçacık Efektleri */
.video-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.video-particle {
  position: absolute;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 10px rgba(242, 72, 11, 0.6), 0 0 20px rgba(242, 72, 11, 0.3);
  filter: blur(0.5px);
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity, background-color, box-shadow;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Parlama efekti */
.video-particle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

/* Parti modu için animasyon */
@keyframes particleParty {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

/* Party mode hint message */
.party-mode-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
  box-shadow: 0 0 15px rgba(242, 72, 11, 0.6);
  text-align: center;
  border: 2px solid rgba(242, 72, 11, 0.6);
}

.party-mode-hint.visible {
  opacity: 1;
  animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 0 20px rgba(242, 72, 11, 0.8); }
  100% { transform: translateX(-50%) scale(1); }
}

/* Mobil cihazlar için daha fazla efekt */
@media (max-width: 768px) {
  .video-particle {
    opacity: 0.8 !important;
    box-shadow: 0 0 12px rgba(242, 72, 11, 0.7), 0 0 24px rgba(242, 72, 11, 0.3) !important;
  }
  
  /* Dokunmatik cihazlarda parçacık boyutu artıyor */
  .touch-device .video-particle {
    width: 7px !important;
    height: 7px !important;
    filter: blur(1px);
  }

  /* Mobil cihazlarda parti modu ipucunu daha görünür yap */
  .party-mode-hint {
    font-size: 14px;
    padding: 10px 15px;
    max-width: 90%;
    white-space: normal;
  }
}

/* Parti modu ipucu */
.party-mode-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.party-mode-hint.visible {
  opacity: 1;
  animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}

.header__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}

.header__container p span {
  color: var(--primary-color);
  font-weight: 600;
}

.header__container h1 {
  font-size: 3.2rem; /* 3.5rem'den 3.2rem'e küçültüldü */
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
  /* animation: fadeInUp 1s ease-out; // Mevcut animasyon kaldırıldı/yorumlandı */
  /* Kelime animasyonu için hazırlık */
  opacity: 1; /* Başlığın kendisi görünür olacak, kelimeler gizlenecek */
}

/* Başlık kelimeleri için stil */
.hero-title-word {
  display: inline-block; /* Kelimelerin yan yana durması için */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero-title-word.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.action__btns {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.video {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition-fast);
}

.video:hover {
  transform: translateY(-3px);
}

.video__icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.video:hover .video__icon {
  /* Genel .video__icon hover efekti - YouTube için varsayılan olarak kalabilir */
  box-shadow: 0 5px 15px rgba(242, 72, 11, 0.4);
  background-color: var(--primary-light);
  transform: scale(1.1);
}

/* GitHub linkine özel hover stilleri */
.video[href*="github.com"]:hover .video__icon {
  background-color: #24292e; /* GitHub Koyu Gri */
  color: var(--light-color); /* İkon rengi beyaz */
  box-shadow: 0 5px 15px rgba(36, 41, 46, 0.4);
}

.video[href*="github.com"]:hover span {
  color: var(--primary-light); /* Metin rengini parlak turuncu yap */
}

.youtube-btn .video__icon {
  background-color: rgba(255, 0, 0, 0.8);
}

.youtube-btn:hover .video__icon {
  background-color: rgba(255, 0, 0, 1);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* ABOUT */
.about {
  background-color: #0c0f14;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--dark-color);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.about::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--dark-color);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.about__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about__image {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 450px;
  margin: 0 auto;
}

.about__image img {
  max-width: 100%;
  border-radius: 16px; /* Daha yumuşak köşeler */
  border: 2px solid var(--glass-border); /* Cam kenarlık */
  box-shadow: var(--glass-shadow); /* Hafif gölge */
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-medium);
  filter: brightness(0.95);
}

.about__image img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.about__details {
  margin-bottom: 2rem;
  line-height: 1.8;
}

@media screen and (min-width: 769px) {
  .about__details {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

/* SKILLS SECTION */
.skills-section {
  background-color: var(--dark-color);
  padding: 2rem 0;
  position: relative;
}

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

.skills__card {
  background: var(--glass-bg); /* Liquid Glass arka plan */
  backdrop-filter: var(--glass-blur); /* Cam efekti */
  -webkit-backdrop-filter: var(--glass-blur); /* Safari desteği */
  border: 1px solid var(--glass-border); /* Cam kenarlık */
  padding: 2rem;
  border-radius: 16px; /* Daha yumuşak köşeler */
  transition: all var(--transition-medium);
  box-shadow: var(--glass-shadow);
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.skills__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* 4px'ten 0'a değiştirildi */
  height: 0;
  background-color: transparent; /* Kırmızı renk yerine saydam */
  transition: none; /* Geçiş efektini kaldır */
  z-index: -1;
  display: none; /* Tamamen gizle */
}

.skills__card:hover::before {
  height: 0; /* Hover durumunda da görünmemesini sağla */
  display: none;
}

.skills__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(242, 72, 11, 0.15); /* Kırmızı tonunda gölge */
  border-color: rgba(242, 72, 11, 0.3); /* Hover'da kenarlık rengi */
  background: rgba(255, 255, 255, 0.08); /* Hover'da biraz daha parlak */
}

.skills__card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skills__card ul {
  list-style: none;
}

.skills__card ul li {
  margin: 0.5rem 0;
  color: var(--light-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast);
}

.skills__card ul li:hover {
  transform: translateX(5px);
  color: var(--primary-color);
}

.skills__card ul li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Contact Info in About Section */
.skills {
  margin-top: 2rem;
}

.skills__section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skills__section ul {
  list-style: none;
}

.skills__section ul li {
  margin: 0.5rem 0;
  color: var(--light-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast);
}

.skills__section ul li:hover {
  transform: translateX(5px);
}

.skills__section ul li i {
  color: var(--primary-color);
  width: 20px;
}

/* Contact Info Links */
.skills__section ul li a {
  color: var(--light-color);
  transition: color var(--transition-fast);
}

.skills__section ul li a:hover {
  color: var(--primary-color);
}

/* SERVICES */
.service {
  background-color: var(--dark-color);
  position: relative;
  overflow: visible;
  z-index: auto;
}

.service__container {
  text-align: center;
}

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

.service__card {
  background: var(--glass-bg); /* Liquid Glass arka plan */
  backdrop-filter: var(--glass-blur); /* Cam efekti */
  -webkit-backdrop-filter: var(--glass-blur); /* Safari desteği */
  border: 1px solid var(--glass-border); /* Cam kenarlık */
  padding: 2rem;
  border-radius: 16px; /* Daha yumuşak köşeler */
  text-align: left;
  transition: all var(--transition-medium);
  box-shadow: var(--glass-shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* 4px'ten 0'a değiştirildi */
  height: 0;
  background-color: transparent; /* Kırmızı renk yerine saydam */
  transition: none; /* Geçiş efektini kaldır */
  z-index: -1;
  display: none; /* Tamamen gizle */
}

.service__card:hover::before {
  height: 0; /* Hover durumunda da görünmemesini sağla */
  display: none;
}

.service__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service__icon {
  width: 60px;
  height: 60px;
  background-color: rgba(242, 72, 11, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: all var(--transition-medium);
}

.service__card:hover .service__icon {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: rotateY(360deg);
}

.service__card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.service__card:hover h4 {
  color: var(--primary-color);
}

.service__card p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.service__card:hover p {
  color: var(--light-color);
}

.read__more {
  color: var(--primary-color);
  font-weight: 500;
}

/* PROJECTS */
.project {
  background-color: #0c0f14;
  position: relative;
  overflow: hidden;
}

.project__container {
  text-align: center;
}

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

.project__card {
  background: var(--glass-bg); /* Liquid Glass arka plan */
  backdrop-filter: var(--glass-blur); /* Cam efekti */
  -webkit-backdrop-filter: var(--glass-blur); /* Safari desteği */
  border: 1px solid var(--glass-border); /* Cam kenarlık */
  border-radius: 16px; /* Daha yumuşak köşeler */
  overflow: hidden;
  position: relative;
  transition: all var(--transition-medium);
  box-shadow: var(--glass-shadow);
}

.project__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px 0 rgba(242, 72, 11, 0.2); /* Kırmızı tonunda gölge */
  border-color: rgba(242, 72, 11, 0.4); /* Hover'da kenarlık rengi */
  background: rgba(255, 255, 255, 0.1); /* Hover'da daha parlak */
}

.project__card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.project__card:hover img {
  transform: scale(1.05);
}

.project__content {
  padding: 1.5rem;
  background-color: #0c0f14;
  position: relative;
  z-index: 1;
  transition: background-color var(--transition-fast);
}

.project__card:hover .project__content {
  background-color: var(--dark-secondary);
}

.project__content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project__content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.project__award {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.project__award i {
  color: gold;
  font-size: 1.1rem;
}

.project__card:hover .project__content p {
  color: var(--light-color);
}

/* FOOTER */
footer {
  background-color: var(--dark-color);
  padding: 2rem 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #0c0f14;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

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

.footer__content {
  max-width: 500px;
}

.footer__details {
  margin: 2rem 0;
  color: var(--text-secondary);
}

.social__icons {
  display: flex;
  gap: 1rem;
}

.icon {
  width: 45px;
  height: 45px;
  background-color: #151b25;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: all var(--transition-medium);
  z-index: -1;
}

.icon:hover::before {
  left: 0;
}

.icon:hover {
  transform: translateY(-5px);
}

.footer__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__form input,
.footer__form textarea {
  background: var(--glass-bg); /* Liquid Glass arka plan */
  backdrop-filter: blur(5px); /* Hafif blur */
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border); /* Cam kenarlık */
  outline: none;
  padding: 1rem;
  border-radius: 5px;
  color: var(--light-color);
  resize: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.footer__form input:focus,
.footer__form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(242, 72, 11, 0.2);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--glass-bg); /* Liquid Glass arka plan */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--glass-shadow);
  z-index: 99;
  box-shadow: 0 5px 15px rgba(242, 72, 11, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.back-to-top:hover {
  background: rgba(242, 72, 11, 0.2); /* Kırmızımsı glass efekti */
  border-color: var(--primary-color);
  transform: translateY(-5px) scale(1.1);
  animation: none;
  box-shadow: 0 10px 30px rgba(242, 72, 11, 0.4);
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    flex-direction: column;
    gap: 1rem;
    padding: 6rem 2rem 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    z-index: 99;
    display: none;
  }
  
  .nav__links.active {
    display: flex;
  }
  
  .nav__link {
    font-size: 1.2rem;
  }
  
  .hamburger {
    display: flex;
    z-index: 100;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .header__container h1 {
    font-size: 3rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .about__container,
  .footer__container {
    grid-template-columns: 1fr;
  }

  .action__btns {
    flex-direction: column;
    align-items: flex-start;
  }

  .about__image {
    text-align: center;
  }

  .skills__grid,
  .service__grid,
  .project__grid {
    grid-template-columns: 1fr;
  }

  .project__card img {
    height: 220px;
  }

  .skills__card,
  .service__card {
    margin-bottom: 1.5rem;
  }

  .section__container {
    padding: 4rem 1rem;
  }

  .nav__logo {
    font-size: 1.2rem;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 468px) {
  html {
    font-size: 14px;
  }

  nav {
    padding: 1rem;
  }

  .header__container h1 {
    font-size: 2.5rem;
  }

  .section__title {
    font-size: 1.7rem;
  }

  .about__image img {
    max-width: 85%;
    border-radius: 10px;
  }

  .skills__card,
  .service__card {
    padding: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .project__card img {
    height: 180px;
  }

  .footer__form input,
  .footer__form textarea {
    padding: 0.8rem;
  }

  .icon {
    margin-right: 0.5rem;
    width: 38px;
    height: 38px;
  }

  .video__icon {
    width: 38px;
    height: 38px;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .section__container {
    padding: 3rem 1rem;
  }
  
  .footer__form {
    width: 100%;
  }
}

@media screen and (min-width: 469px) and (max-width: 768px) {
  .project__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .skills__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .service__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (max-width: 375px) {
  .header__container h1 {
    font-size: 2.2rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .video__icon {
    width: 32px;
    height: 32px;
    margin-right: 5px;
  }

  .video span {
    font-size: 0.85rem;
  }
  
  .action__btns {
    width: 100%;
  }
  
  .video {
    width: 100%;
    justify-content: center;
  }
  
  .service__icon {
    margin-bottom: 0.5rem;
  }
  
  .service__card h4 {
    margin-bottom: 0.5rem;
  }
}

/* Yeni eklenen mobil geliştirmeleri */
@media screen and (max-width: 360px) {
  .header__container h1 {
    font-size: 2rem;
  }
  
  .header__container p {
    font-size: 0.9rem;
  }
  
  .nav__logo {
    font-size: 1.1rem;
  }
  
  .about__details {
    font-size: 0.9rem;
  }
  
  .skills__card ul li,
  .skills__section ul li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }
  
  .service__card p {
    font-size: 0.85rem;
  }
  
  .project__content h3 {
    font-size: 1.2rem;
  }
  
  .project__content p {
    font-size: 0.85rem;
  }
}

/* Orta boyutlu tablet ekranlar için */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .section__container {
    padding: 4rem 2rem;
  }
  
  .service__grid,
  .project__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .about__container {
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
  }
}

/* Touch ekranlar için hover durumları */
@media (hover: none) {
  .nav__link::after {
    width: 0;
  }
  
  .btn::before {
    left: 0;
    width: 0;
  }
  
  .btn:active::before {
    width: 100%;
  }
  
  .service__card:hover,
  .skills__card:hover,
  .project__card:hover {
    transform: translateY(0);
  }
}

/* Daha geniş ekranlar için */
@media screen and (min-width: 1440px) {
  .section__container {
    max-width: 1400px;
  }
  
  html {
    font-size: 16px; /* 16.5px'den 16px'e düşürüldü */
  }
}

/* Mobil menü açıkken arka planın kaydırılmasını engelleme */
body.menu-open {
  overflow: auto;
}

/* Animasyon optimizasyonları */
.service__card, 
.skills__card, 
.project__card {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
}

/* Mobil cihazlarda daha hafif animasyonlar */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .service__card,
  .skills__card,
  .project__card {
    transition: none !important;
    transform: none !important;
  }
  
  .aos-animate {
    transition: none !important;
    animation: none !important;
  }
}

/* Dokunma hedefi boyutlarını iyileştirme */
@media (max-width: 768px) {
  .nav__link,
  .btn,
  .icon,
  .back-to-top,
  .video {
    padding: 0.8rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  .service__card,
  .project__card,
  .skills__card {
    touch-action: manipulation;
  }
  
  input, 
  textarea, 
  button {
    touch-action: manipulation;
  }
}

/* Ana içerik görüntüleme optimizasyonu */
@media (max-width: 768px) {
  .header__container {
    min-height: calc(100vh - 70px);
    padding-top: 70px;
    justify-content: center;
    position: relative;
    z-index: 10;
  }
  
  .video-background video {
    object-fit: cover;
    object-position: center 25%;
    top: 35%;
  }
  
  .header__content {
    position: relative;
    z-index: 5;
    background-color: rgba(9, 12, 16, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 100%;
  }
  
  .header__content h1,
  .header__content h2,
  .header__content p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    margin-bottom: 15px;
  }
  
  .service__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .skills__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .project__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

/* Splash Logo */
.splash-logo {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: var(--primary-color);
  font-size: 30px !important;
  font-weight: 900 !important;
  font-family: "Arial Black", Arial, sans-serif;
  z-index: 2;
  text-shadow: 0 0 15px rgba(242, 72, 11, 0.7);
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  -webkit-text-stroke: 1px rgba(242, 72, 11, 0.3);
}

.splash-logo .logo-icon {
  font-size: 30px;
  margin-right: 5px;
}

.splash-logo span {
  margin-left: 4px !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: var(--primary-color) !important;
  text-shadow: 0 0 15px rgba(242, 72, 11, 0.7) !important;
}

/* Dil seçici stilleri */
.nav-language-selector {
  display: flex;
  align-items: center;
  margin-left: 20px;
  padding: 4px 8px;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav-language-selector:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-language-selector span {
  color: var(--text-secondary);
  margin: 0 4px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.nav-language-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.nav-language-btn:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(242, 72, 11, 0.3);
}

.nav-language-btn.active {
  color: var(--primary-color);
  font-weight: 600;
  transform: scale(1.05);
}

.nav-language-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.nav-language-btn.switching {
  animation: switchPulse 0.6s ease;
}

@keyframes switchPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.flag-icon {
  margin-right: 5px;
  font-size: 1.1em;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: langPop 0.5s ease;
  transform-origin: center;
}

@keyframes langPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.nav-language-btn.active .flag-icon {
  animation: rotate3D 1s ease;
  transform: scale(1.1);
}

@keyframes rotate3D {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

.lang-transition {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Daha gelişmiş dil değiştirme animasyonları */
.lang-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(242, 72, 11, 0.2) 0%, rgba(9, 12, 16, 0.95) 70%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lang-overlay.active {
  opacity: 1;
  visibility: visible;
  animation: pulseBackground 2s ease-in-out;
}

@keyframes pulseBackground {
  0% { background: radial-gradient(circle at center, rgba(242, 72, 11, 0.1) 0%, rgba(9, 12, 16, 0.95) 70%); }
  50% { background: radial-gradient(circle at center, rgba(242, 72, 11, 0.3) 0%, rgba(9, 12, 16, 0.9) 70%); }
  100% { background: radial-gradient(circle at center, rgba(242, 72, 11, 0.2) 0%, rgba(9, 12, 16, 0.95) 70%); }
}

.lang-overlay-content {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  animation: textReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000);
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(242, 72, 11, 0.7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.lang-overlay-content::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  animation: lineExpand 0.8s 0.3s forwards ease-out;
}

@keyframes lineExpand {
  0% { width: 0; }
  100% { width: 80%; }
}

.lang-overlay-content span {
  display: inline-block;
  font-size: 40px;
  animation: flagPop 0.8s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes flagPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes textReveal {
  0% { 
    transform: translateY(20px) scale(0.8); 
    opacity: 0;
    filter: blur(10px);
  }
  100% { 
    transform: translateY(0) scale(1); 
    opacity: 1;
    filter: blur(0);
  }
}

[data-i18n] {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  transform-origin: center;
  position: relative;
}

.content-changing {
  opacity: 0;
  transform: scale(0.9) translateY(10px);
}

.content-changed {
  animation: contentZoomIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes contentZoomIn {
  0% { 
    opacity: 0; 
    transform: scale(0.9) translateY(10px);
    filter: blur(4px);
  }
  60% { 
    opacity: 1; 
    transform: scale(1.03) translateY(-2px);
    filter: blur(0);
  }
  100% { 
    opacity: 1; 
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* 3D dönüş efektleri */
.nav-language-btn.switching {
  animation: switchRotate 0.6s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

@keyframes switchRotate {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(360deg); }
}

.nav-language-btn.active .flag-icon {
  animation: flagRotate 1.2s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

@keyframes flagRotate {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  25% { transform: rotateY(90deg) rotateX(10deg); }
  50% { transform: rotateY(180deg) rotateX(0deg); }
  75% { transform: rotateY(270deg) rotateX(-10deg); }
  100% { transform: rotateY(360deg) rotateX(0deg); }
}

/* Sekme animasyonu efekti */
.nav-language-btn {
  transform-style: preserve-3d;
  perspective: 600px;
  overflow: visible;
}

.nav-language-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(242, 72, 11, 0.15);
  border-radius: 4px;
  transform: translateZ(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-language-btn:hover::before {
  opacity: 1;
  transform: translateZ(-5px);
}

/* Kademeli geçiş animasyonları */
nav [data-i18n] {
  transition-delay: 0.05s;
}

header [data-i18n] {
  transition-delay: 0.1s;
}

#about [data-i18n] {
  transition-delay: 0.15s;
}

#skills [data-i18n] {
  transition-delay: 0.2s;
}

#services [data-i18n] {
  transition-delay: 0.25s;
}

#projects [data-i18n] {
  transition-delay: 0.3s;
}

#contact [data-i18n] {
  transition-delay: 0.35s;
}

/* Mobil uyumluluk için düzenlemeler */
@media screen and (max-width: 768px) {
  .lang-overlay-content {
    font-size: 24px;
  }
  
  .lang-overlay-content span {
    font-size: 30px;
  }
  
  .nav-language-btn.switching {
    animation: switchPulse 0.6s ease;
    transform-style: flat;
  }
}

/* Ek dil değiştirme animasyonları */
@keyframes buttonGlow {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2); }
}

@keyframes flag3DRotate {
  0% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
  30% { transform: perspective(800px) rotateY(180deg) rotateX(25deg); }
  60% { transform: perspective(800px) rotateY(360deg) rotateX(-15deg); }
  100% { transform: perspective(800px) rotateY(360deg) rotateX(0deg); }
}

@keyframes textFadeIn {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes particleFade {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translate(var(--x, 20px), var(--y, -30px)) scale(1.5); opacity: 0; }
}

.flag-3d-container {
  perspective: 800px;
  transform-style: preserve-3d;
  display: inline-block;
  margin-right: 15px;
}

.lang-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  --x: random(-50, 50);
  --y: random(-50, 50);
}

/* Daha canlı animasyonlu içerik geçişleri */
.content-changing {
  filter: blur(3px);
}

/* Dil geçişleri için vurgulanmış animasyonlar */
.nav-language-btn {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.nav-language-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.nav-language-btn:hover::after {
  width: 100%;
  opacity: 1;
}

.nav-language-btn.active::after {
  width: 100%;
  opacity: 1;
  height: 3px;
  animation: linePulse 1.5s infinite;
}

@keyframes linePulse {
  0% { opacity: 0.5; transform: translateX(-50%) scaleX(0.8); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0.5; transform: translateX(-50%) scaleX(0.8); }
}

/* Mobil düzenlemeler için güncellemeler */
@media screen and (max-width: 768px) {
  .flag-3d-container {
    perspective: 400px;
  }
  
  @keyframes flag3DRotate {
    0% { transform: perspective(400px) rotateY(0deg); }
    100% { transform: perspective(400px) rotateY(360deg); }
  }
  
  .lang-particle {
    width: 3px !important;
    height: 3px !important;
  }
}

/* İnternet Explorer ve eski tarayıcılar için alternatif animasyonlar */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .flag-3d-container {
    animation: none !important;
  }
  
  .nav-language-btn.switching {
    animation: switchPulse 0.6s ease;
    transform-style: flat;
  }
  
  .lang-overlay {
    background-color: rgba(9, 12, 16, 0.9);
    backdrop-filter: none;
  }
}

/* Arka Plan Parçacık Efekti */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 5px var(--primary-light);
  transform: translate3d(0, 0, 0); /* GPU hızlandırma */
  will-change: transform, left, top; /* Performans iyileştirmesi */
}

/* Performans için mobil cihazlarda parçacık efektini azalt veya kaldır */
@media (max-width: 768px) {
  .particles-container {
    display: block !important;
    opacity: 0.3;
  }
  
  .particle {
    opacity: 0.2 !important;
    box-shadow: 0 0 3px var(--primary-light) !important;
  }
  
  /* Mobil için hafif dokunma dalgası efekti */
  .touch-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 72, 11, 0.6) 0%, rgba(242, 72, 11, 0) 70%);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9999;
    animation: touchRipple 0.8s ease-out forwards;
    will-change: transform, opacity;
    box-shadow: 0 0 15px rgba(242, 72, 11, 0.5);
  }
  
  @keyframes touchRipple {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0.7;
    }
    100% {
      transform: translate(-50%, -50%) scale(3);
      opacity: 0;
    }
  }
  
  /* Mobil için özel kaydırma animasyonu */
  .nav__link, .btn, .service__card, .skills__card, .project__card {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
  }

  .nav__link::before, .btn::before, .service__card::before, 
  .skills__card::before, .project__card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: linear-gradient(
      75deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg) translateY(100%);
    transition: transform 0.6s ease;
  }
  
  .nav__link.active::before, .btn:active::before, .service__card.active::before, 
  .skills__card.active::before, .project__card.active::before {
    transform: rotate(25deg) translateY(-100%);
  }
  
  /* Mobil için yüklenme ve yeni sayfa geçişleri */
  .mobile-page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    z-index: 99999;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
  }
  
  .mobile-page-transition.active {
    transform: translateY(0);
  }
  
  /* Mobil için dokunmatik geri bildirim vurgusu */
  .mobile-touch-highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(242, 72, 11, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
  }
  
  /* Mobil için özel kartlar arası kaydırma */
  .mobile-card-view {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Firefox için scrollbar gizleme */
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 15px;
    padding-bottom: 15px;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .mobile-card-view::-webkit-scrollbar {
    display: none;  /* WebKit tarayıcılar için scrollbar gizleme */
  }
  
  .mobile-card-view > * {
    flex: 0 0 auto;
    width: 85%;
    scroll-snap-align: center;
  }
  
  /* Mobil scroll göstergesi */
  .mobile-scroll-indicator {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
  }
  
  .mobile-scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .mobile-scroll-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
  }
  
  /* Mobil için giriş animasyonları */
  .mobile-fade-in {
    animation: mobileFadeIn 0.8s ease forwards;
    opacity: 0;
  }
  
  @keyframes mobileFadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobil cihazlarda normalde gizlenecek masaüstü efektleri */
@media (max-width: 768px) {
  .water-bubble,
  .cursor-follower,
  .click-splash {
    display: none !important;
  }
}

/* Eğitim Bölümü Stilleri */
.education-section {
  margin-top: 2rem;
}

.education-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light-color);
  position: relative;
  display: inline-block;
}

.education-section h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.education-timeline {
  position: relative;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Masaüstü görünümünde yatay düzen */
@media screen and (min-width: 769px) {
  .education-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .education-timeline::before {
    display: none;
  }
  
  .education-item {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
    margin-bottom: 20px;
    padding-left: 0;
    flex-direction: column;
    transform: translateY(0);
    transition: all 0.4s ease;
  }
  
  .education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .education-logo {
    position: relative;
    left: auto;
    margin: 0 auto 15px;
    width: 80px;
    height: 80px;
    background: rgba(30, 40, 50, 0.3);
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: all 0.4s ease;
  }
  
  .education-item:hover .education-logo {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(242, 72, 11, 0.4);
  }
  
  .education-content {
    width: 100%;
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--primary-color);
    padding: 1.2rem 1rem;
    height: calc(100% - 95px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: rgba(30, 40, 50, 0.5);
  }
  
  .education-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  .education-degree {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .education-year {
    margin-top: auto;
    font-weight: 500;
  }
}

/* Tablet için orta boyut */
@media screen and (min-width: 769px) and (max-width: 992px) {
  .education-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* Mobil görünüm için dikey düzen */
@media screen and (max-width: 768px) {
  .education-timeline {
    flex-direction: column;
  }
  
  .education-timeline::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 25px;
    width: 2px;
    background: rgba(242, 72, 11, 0.2);
    z-index: 1;
  }

  .education-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-left: 60px;
    z-index: 2;
    transition: all 0.3s ease;
    width: 100%;
  }
}

.education-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  z-index: 2;
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item:hover {
  transform: translateY(-5px);
}

.education-logo {
  position: absolute;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--dark-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.education-item:hover .education-logo img {
  transform: scale(1.1);
}

.education-content {
  background: rgba(30, 40, 50, 0.4);
  border-radius: 10px;
  padding: 1.5rem;
  flex: 1;
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.education-item:hover .education-content {
  background: rgba(30, 40, 50, 0.6);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.education-content h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.education-degree {
  color: var(--light-color);
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
  opacity: 0.9;
}

.education-year {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(242, 72, 11, 0.1);
  margin-top: 0.5rem;
}

@media screen and (max-width: 480px) {
  .education-item {
    padding-left: 45px;
  }
  
  .education-logo {
    width: 35px;
    height: 35px;
  }
  
  .education-content {
    padding: 0.75rem;
  }
  
  .education-content h4 {
    font-size: 1rem;
  }
  
  .education-timeline::before {
    left: 17px;
  }
}

/* Eğitim Bölümü Stilleri */
.education {
  background-color: var(--dark-color);
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(to bottom, #0c0f14, var(--dark-color), #0c0f14);
}

.education::before,
.education::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100px;
  z-index: 0;
}

.education::before {
  top: -50px;
  left: 0;
  background-color: #0c0f14;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.education::after {
  bottom: -50px;
  left: 0;
  background-color: var(--dark-color);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

/* Parlama efekti */
.education::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(242, 72, 11, 0.08), transparent 40%),
              radial-gradient(circle at 70% 30%, rgba(242, 72, 11, 0.05), transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.education__container {
  text-align: center;
  position: relative;
  z-index: 3;
}

.education__container .section__title {
  background: linear-gradient(to right, var(--light-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2rem;
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.education__container .section__subtitle {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.education__container .section__title span {
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.education-timeline {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-top: 4rem;
  position: relative;
  z-index: 3;
  gap: 10px;
}

.education-timeline::before {
  content: '';
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, 
    rgba(242, 72, 11, 0.1),
    rgba(242, 72, 11, 0.6),
    rgba(242, 72, 11, 0.1)
  );
  transform: none;
  border-radius: 2px;
  z-index: 1;
  box-shadow: 0 0 15px rgba(242, 72, 11, 0.3);
}

.education-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.education-item::before {
  content: '';
  position: absolute;
  top: 58px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 20px rgba(242, 72, 11, 0.6);
  border: 3px solid var(--dark-color);
  transition: all 0.4s ease;
}

.education-item:hover::before {
  transform: translateX(-50%) scale(1.3);
  background: var(--primary-light);
  box-shadow: 0 0 30px rgba(242, 72, 11, 0.8);
}

.education-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(20, 25, 30, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 3;
  backdrop-filter: blur(5px);
}

.education-logo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid rgba(242, 72, 11, 0.3);
  animation: pulseBorder 2s infinite;
  z-index: -1;
}

@keyframes pulseBorder {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.education-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.education-item:hover .education-logo img {
  transform: scale(1.1);
}

.education-item:hover .education-logo {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(242, 72, 11, 0.4);
}

.education-content {
  background: rgba(20, 25, 30, 0.6);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  width: 220px;
  max-width: 100%;
  margin-top: 20px;
  transition: all 0.4s ease;
  border-top: 3px solid var(--primary-color);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.education-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(242, 72, 11, 0.1) 0%, 
    rgba(30, 40, 50, 0) 50%
  );
  pointer-events: none;
}

.education-content::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid rgba(20, 25, 30, 0.6);
  z-index: 1;
}

.education-item:hover .education-content {
  transform: translateY(-10px);
  background: rgba(20, 25, 30, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Işıltı efekti animasyonu */
.education-item::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, transparent, rgba(242, 72, 11, 0.05), transparent);
  background-size: 200% 100%;
  animation: lightSweep 3s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes lightSweep {
  0% {
    background-position: 100% 0%;
  }
  100% {
    background-position: -100% 0%;
  }
}

.education-content h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.education-content h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.education-item:hover .education-content h4::after {
  width: 100%;
}

.education-degree {
  color: var(--light-color);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 10px;
  opacity: 0.9;
}

.education-year {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(242, 72, 11, 0.1);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(242, 72, 11, 0.2);
}

.education-item:hover .education-year {
  background: rgba(242, 72, 11, 0.2);
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Eğitim arkaplan efektleri */
.education-bg-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(242, 72, 11, 0.05), rgba(242, 72, 11, 0.02));
  filter: blur(50px);
  z-index: 0;
}

.education-bg-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 15%;
  animation: floatShape 20s ease-in-out infinite, rotateShape 30s linear infinite;
}

.education-bg-shape:nth-child(2) {
  width: 500px;
  height: 500px;
  bottom: 10%;
  right: 10%;
  animation: floatShape 25s ease-in-out infinite reverse, rotateShape 40s linear infinite reverse;
}

@keyframes floatShape {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-20px, 20px); }
  50% { transform: translate(0, 40px); }
  75% { transform: translate(20px, 20px); }
  100% { transform: translate(0, 0); }
}

@keyframes rotateShape {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tablet ve Mobil Görünüm */
@media screen and (max-width: 992px) {
  .education-timeline {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
  }
  
  .education-timeline::before {
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    height: auto;
    transform: none;
    background: linear-gradient(to bottom, 
      rgba(242, 72, 11, 0.1),
      rgba(242, 72, 11, 0.6),
      rgba(242, 72, 11, 0.1)
    );
  }
  
  .education-item {
    width: 100%;
    flex-direction: row;
    padding: 0 0 2rem 2rem;
    align-items: flex-start;
  }
  
  .education-item:last-child {
    padding-bottom: 0;
  }
  
  .education-item::before {
    left: 0;
    top: 40px;
    transform: translateX(-50%);
  }
  
  .education-logo {
    margin-bottom: 0;
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
  }
  
  .education-content {
    margin-top: 0;
    width: auto;
    flex: 1;
    padding: 1.2rem;
    border-top: none;
    border-left: 3px solid var(--primary-color);
  }
  
  .education-content::before {
    display: none;
  }
  
  .education-item:hover .education-logo {
    transform: translateY(0) scale(1.1);
  }
  
  .education-item:hover .education-content {
    transform: translateX(10px);
  }
  
  .education-item:hover::before {
    transform: translateX(-50%) scale(1.3);
  }
  
  .education-content h4::after {
    left: 0;
    width: 40px;
  }
}

@media screen and (max-width: 576px) {  
  .education-content {
    padding: 1rem;
  }
  
  .education-content h4 {
    font-size: 1rem;
  }
  
  .education-degree {
    font-size: 0.85rem;
  }
  
  .education-year {
    font-size: 0.75rem;
  }
  
  .education-logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
  }
  
  .education-item {
    padding-left: 1.5rem;
  }
  
  .education-timeline {
    margin-left: 20px;
  }
  
  .education-item::before {
    width: 16px;
    height: 16px;
    top: 35px;
  }
}

@media screen and (max-width: 768px) {
  .about__image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
  }
}

@media screen and (max-width: 468px) {
  .about__image {
    width: 180px;
    height: 180px;
  }
}

/* Modal Stilleri */
.modal {
  display: none; /* Başlangıçta gizli */
  position: fixed;
  z-index: 100001; /* Diğer her şeyin üzerinde */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Yarı saydam siyah arka plan */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  backdrop-filter: blur(5px);
}

.modal.open {
  display: flex; /* Görünür olduğunda flex ile ortala */
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--glass-bg); /* Liquid Glass arka plan */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin: auto;
  padding: 30px;
  border: 2px solid var(--glass-border); /* Cam kenarlık */
  border-radius: 20px; /* Daha yumuşak köşeler */
  width: 80%;
  max-width: 700px;
  color: #f0f0f0;
  box-shadow: var(--glass-shadow);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
  max-height: 85vh;
  overflow-y: auto;
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  transition: color 0.2s ease;
}

.modal-close-button:hover,
.modal-close-button:focus {
  color: #f2480b; /* Ana renk ile uyumlu hover */
  text-decoration: none;
  cursor: pointer;
}

.modal-img {
  width: 100%;
  max-height: 300px; /* Resim yüksekliğini sınırla */
  object-fit: cover; /* Resmi orantılı sığdır */
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid rgba(242, 72, 11, 0.3);
}

.modal-content h2 {
  color: #f2480b; /* Ana başlık rengi */
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 2em;
}

.modal-content h4 {
  color: #f2ad94; /* Alt başlık rengi */
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(242, 72, 11, 0.2);
  padding-bottom: 5px;
}

.modal-content p,
.modal-content ul {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 0.95em;
}

.modal-content ul {
  list-style: none; /* Madde işaretlerini kaldır */
  padding-left: 0; /* Sol boşluğu sıfırla */
}

.modal-content ul li {
  padding-left: 1.5em; /* İçeriden boşluk ver */
  position: relative;
  margin-bottom: 8px;
}

.modal-content ul li::before {
  content: "\f00c"; /* Font Awesome check ikonu */
  font-family: "Font Awesome 5 Free"; /* Veya kullandığınız sürüm */
  font-weight: 900;
  color: #f2480b; /* Ana renk */
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.9em;
}

/* Modal içindeki link/buton stilleri (varsa) */
.modal-content .btn {
  background-color: #f2480b;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  display: inline-block;
}

.modal-content .btn:hover {
  background-color: #d9400a;
}

/* Küçük ekranlar için modal içeriği */
@media screen and (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 20px;
    max-height: 90vh;
  }
  .modal-content h2 {
    font-size: 1.8em;
  }
}

/* ========================================
   ELECTRIC BORDER EFFECT FOR CARDS
   ======================================== */

/* Electric effect variables */
:root {
  --electric-border-cyan: #00fffb;
  --electric-border-yellow: #f2ff00;
  --electric-light-cyan: oklch(from var(--electric-border-cyan) l c h);
  --electric-light-yellow: oklch(from var(--electric-border-yellow) l c h);
  --electric-gradient-cyan: oklch(from var(--electric-border-cyan) 0.3 calc(c / 2) h / 0.4);
  --electric-gradient-yellow: oklch(from var(--electric-border-yellow) 0.3 calc(c / 2) h / 0.4);
}

/* Add electric effect wrapper to cards */
.service__card,
.project__card,
.skills__card {
  position: relative;
  overflow: visible !important;
}

/* Electric border layers - Hidden by default, shown on hover */
/* Service cards - Cyan (Turkuaz) */
.service__card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--electric-border-cyan);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  filter: url(#electric-turbulence);
}

.service__card::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--electric-border-cyan);
  border-radius: inherit;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

/* Project cards - Yellow (Sarı) */
.project__card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--electric-border-yellow);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  filter: url(#electric-turbulence);
}

.project__card::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--electric-border-yellow);
  border-radius: inherit;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

/* Skills cards - Cyan (Turkuaz) */
.skills__card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--electric-border-cyan);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  filter: url(#electric-turbulence);
}

.skills__card::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--electric-border-cyan);
  border-radius: inherit;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

/* Activate electric effect on hover */
.service__card:hover::before,
.project__card:hover::before,
.skills__card:hover::before,
.service__card:hover::after,
.project__card:hover::after,
.skills__card:hover::after {
  opacity: 1;
}

/* Additional glow effects - using pseudo-elements on inner content */
/* Service cards - Cyan glow */
.service__card:hover {
  box-shadow: 
    0 0 20px rgba(0, 255, 251, 0.3),
    0 0 40px rgba(0, 255, 251, 0.2),
    0 0 60px rgba(0, 255, 251, 0.1),
    inset 0 0 20px rgba(0, 255, 251, 0.05);
  transform: translateY(-5px) scale(1.02);
  transition: all 0.3s ease;
}

/* Project cards - Yellow glow */
.project__card:hover {
  box-shadow: 
    0 0 20px rgba(242, 255, 0, 0.3),
    0 0 40px rgba(242, 255, 0, 0.2),
    0 0 60px rgba(242, 255, 0, 0.1),
    inset 0 0 20px rgba(242, 255, 0, 0.05);
  transform: translateY(-5px) scale(1.02);
  transition: all 0.3s ease;
}

/* Skills cards - Cyan glow */
.skills__card:hover {
  box-shadow: 
    0 0 20px rgba(0, 255, 251, 0.3),
    0 0 40px rgba(0, 255, 251, 0.2),
    0 0 60px rgba(0, 255, 251, 0.1),
    inset 0 0 20px rgba(0, 255, 251, 0.05);
  transform: translateY(-5px) scale(1.02);
  transition: all 0.3s ease;
}

/* Electric glow background effect */
@keyframes electricPulse {
  0%, 100% {
    opacity: 0.3;
    filter: blur(32px);
  }
  50% {
    opacity: 0.5;
    filter: blur(40px);
  }
}

/* Electric background glow - only visible on hover */
.service__card:hover {
  background: 
    radial-gradient(circle at 50% 50%, rgba(0, 255, 251, 0.1), transparent 70%),
    rgba(20, 25, 30, 0.8);
}

.project__card:hover {
  background: 
    radial-gradient(circle at 50% 50%, rgba(242, 255, 0, 0.1), transparent 70%),
    rgba(20, 25, 30, 0.8);
}

.skills__card:hover {
  background: 
    radial-gradient(circle at 50% 50%, rgba(0, 255, 251, 0.1), transparent 70%),
    rgba(20, 25, 30, 0.8);
}

/* Prevent overflow issues */
.service__grid,
.project__grid,
.skills__grid {
  overflow: visible !important;
}

/* Mobile optimization - disable electric effect on smaller screens */
@media (max-width: 768px) {
  .service__card::before,
  .project__card::before,
  .skills__card::before,
  .service__card::after,
  .project__card::after,
  .skills__card::after {
    display: none;
  }
  
  .service__card:hover,
  .skills__card:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 251, 0.2);
    transform: translateY(-3px);
    animation: none;
  }
  
  .project__card:hover {
    box-shadow: 0 10px 30px rgba(242, 255, 0, 0.2);
    transform: translateY(-3px);
    animation: none;
  }
}

/* Spider Clock Widget */
.spider-clock-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 20px rgba(242, 72, 11, 0.3);
  z-index: 98;
  transition: all var(--transition-fast);
  opacity: 0.9;
}

.spider-clock-widget:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(242, 72, 11, 0.5);
  border-color: var(--primary-color);
}

.spider-clock-widget iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

/* Mobil için Spider Clock Widget */
@media screen and (max-width: 768px) {
  .spider-clock-widget {
    width: 120px;
    height: 120px;
    bottom: 70px;
    right: 15px;
  }
}

@media screen and (max-width: 468px) {
  .spider-clock-widget {
    width: 100px;
    height: 100px;
    bottom: 65px;
    right: 10px;
  }
}
