/* TAM Projeler Slider - Tamamen İzole CSS */
.tam-projects-section {
  padding: 80px 0;
  position: relative;
}

.tam-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.tam-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.tam-section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.tam-section-title p {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Slider Yapısı */
.tam-slider-container {
  position: relative;
  overflow: hidden;
  margin: 0 -10px;
}

.tam-slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.tam-slide {
  min-width: 800px;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Swipe Indicator - Mobil UX İyileştirmesi */
.swipe-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  animation: swipeIndicatorPulse 2s infinite;
  transition: opacity 0.5s ease;
}

.swipe-dots {
  display: flex;
  gap: 5px;
}

.swipe-dots i {
  font-size: 8px;
  opacity: 0.6;
  animation: dotPulse 1.5s infinite ease-in-out;
}

.swipe-dots i:nth-child(1) {
  animation-delay: 0s;
}

.swipe-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.swipe-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

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

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Proje Kartı */
.tam-project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tam-project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tam-project-image {
  position: relative;
  overflow: hidden;
  height: 900px; /* Görsel yükseklik 900px */
}

.tam-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.tam-project-card:hover .tam-project-image img {
  transform: scale(1.05);
  filter: blur(3px);
}

.tam-project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 20px;
  color: #fff;
}

.tam-project-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tam-project-category {
  font-size: 15px;
  opacity: 0.8;
}

.tam-project-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tam-project-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.tam-project-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.tam-project-link:hover {
  background-color: #555;
}

/* Navigasyon Butonları */
.tam-nav-buttons {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
}

.tam-prev,
.tam-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tam-prev svg,
.tam-next svg {
  width: 20px;
  height: 20px;
  fill: #333;
  transition: fill 0.3s ease;
}

.tam-prev:hover,
.tam-next:hover {
  background-color: #333;
  border-color: #333;
}

.tam-prev:hover svg,
.tam-next:hover svg {
  fill: #fff;
}

/* Galeri Proje Bilgi Overlay'ı */
.tam-gallery-project-info {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: none;
  max-width: 600px;
  width: 100%;
  margin-top: auto;
}

.project-info-content {
  max-width: 100%;
}

.gallery-project-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
  text-align: center;
}

.gallery-project-category {
  font-size: 14px;
  color: #F18A3A;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: center;
}

.gallery-project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.detail-item i {
  color: #F18A3A;
  font-size: 11px;
}

.gallery-project-system {
  margin-top: 10px;
  text-align: center;
}

.system-badge {
  display: inline-block;
  background: rgba(241, 138, 58, 0.2);
  color: #F18A3A;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(241, 138, 58, 0.3);
}

.tam-gallery-counter {
  display: none; /* Counter'ı gizle */
}

.tam-gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  box-sizing: border-box;
  transform: translateY(-50%);
  z-index: 10;
}

.tam-gallery-prev,
.tam-gallery-next {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.tam-gallery-prev:hover,
.tam-gallery-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.tam-gallery-prev svg,
.tam-gallery-next svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.tam-gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.tam-gallery-close:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.tam-gallery-close svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Medya Sorguları */
@media screen and (min-width: 1000px) {
  .tam-slide {
    min-width: 25%;
  }
  
  .tam-project-image {
    height: 450px;
    width: 100%;
  }
}

@media screen and (min-width: 600px) and (max-width: 999px) {
  .tam-slide {
    min-width: 50%;
  }
  
  .tam-project-image {
    height: 500px;
    width: 100%;
  }
  
  .tam-section-title h2 {
    font-size: 32px;
  }
  
  /* Tablet için galeri proje bilgisi */
  .gallery-project-title {
    font-size: 24px;
  }
  
  .gallery-project-details {
    gap: 15px;
  }
  
  .detail-item {
    font-size: 13px;
  }
  
  /* Tablet galeri proje bilgisi de sabit */
  .tam-gallery-project-info {
    padding: 35px 25px 25px;
    transform: translateY(0) !important; /* Sabit pozisyon */
  }
}

/* iPhone 14 Pro Max Özel Optimizasyonu */
@media screen and (max-width: 430px) and (min-height: 900px) {
  .tam-projects-section {
    padding: 60px 0;
  }
  
  .tam-container {
    padding: 0 15px;
  }
  
  .tam-section-title {
    margin-bottom: 40px;
  }
  
  .tam-section-title h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  
  .tam-section-title p {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .tam-slider-container {
    margin: 0 -10px;
  }
  
  .tam-slide {
    min-width: 100%;
    padding: 0 10px;
  }
  
  .tam-project-image {
    height: 300px;
    width: 100%;
  }
  
  .tam-project-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .tam-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .tam-project-overlay {
    padding: 25px 15px;
  }
  
  .tam-project-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .tam-project-category {
    font-size: 14px;
  }
  
  .tam-project-content {
    padding: 18px 15px;
  }
  
  .tam-nav-buttons {
    margin-top: 30px;
    gap: 15px;
  }
  
  .tam-prev,
  .tam-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .tam-prev svg,
  .tam-next svg {
    width: 18px;
    height: 18px;
  }
  
  .tam-projects-action {
    margin-top: 40px;
  }
  
  /* Mobil galeri proje bilgisi */
  .tam-gallery-project-info {
    padding: 25px 20px 20px;
    transform: translateY(0) !important; /* Sabit pozisyon - her zaman görünür */
  }
  
  .gallery-project-title {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .gallery-project-category {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .gallery-project-details {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .detail-item {
    font-size: 12px;
  }
  
  .system-badge {
    padding: 4px 12px;
    font-size: 11px;
  }
  
  /* Swipe indicator mobil optimizasyonu */
  .swipe-indicator {
    bottom: 15px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media screen and (max-width: 430px) {
  .tam-projects-section {
    padding: 50px 0;
  }
  
  .tam-container {
    padding: 0 15px;
  }
  
  .tam-section-title {
    margin-bottom: 35px;
  }
  
  .tam-section-title h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  
  .tam-section-title p {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .tam-slider-container {
    margin: 0 -8px;
  }
  
  .tam-slide {
    min-width: 100%;
    padding: 0 8px;
  }
  
  .tam-project-image {
    height: 280px;
    width: 100%;
    border-radius: 8px 8px 0 0;
  }
  
  .tam-project-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
  }
  
  .tam-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  }
  
  .tam-project-overlay {
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  }
  
  .tam-project-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  
  .tam-project-category {
    font-size: 13px;
    opacity: 0.9;
  }
  
  .tam-project-content {
    padding: 15px;
    display: none; /* Mobile'da content gizli */
  }
  
  .tam-project-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  
  .tam-project-link {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .tam-nav-buttons {
    margin-top: 25px;
    gap: 12px;
  }
  
  .tam-prev,
  .tam-next {
    width: 44px;
    height: 44px;
    border: 2px solid #F18A3A;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .tam-prev svg,
  .tam-next svg {
    width: 16px;
    height: 16px;
  }
  
  .tam-projects-action {
    margin-top: 35px;
  }
  
  /* Mobil galeri proje bilgisi */
  .tam-gallery-project-info {
    padding: 20px 15px 15px;
    transform: translateY(0) !important; /* Sabit pozisyon - her zaman görünür */
  }
  
  .gallery-project-title {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .gallery-project-category {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  .gallery-project-details {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .detail-item {
    font-size: 11px;
  }
  
  .system-badge {
    padding: 3px 10px;
    font-size: 10px;
  }
  
  /* Swipe indicator küçük mobil */
  .swipe-indicator {
    bottom: 12px;
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .swipe-dots i {
    font-size: 6px;
  }
}

@media screen and (max-width: 599px) {
  .tam-projects-section {
    padding: 50px 0;
  }
  
  .tam-slide {
    min-width: 100%;
  }
  
  .tam-project-image {
    height: 400px;
    width: 100%;
  }
  
  .tam-section-title h2 {
    font-size: 28px;
  }
  
  .tam-section-title p {
    font-size: 16px;
  }
  
  .tam-project-title {
    font-size: 20px;
  }
  
  /* Galeri proje bilgisi */
  .tam-gallery-project-info {
    transform: translateY(0) !important; /* Sabit pozisyon - her zaman görünür */
  }
  
  .gallery-project-title {
    font-size: 22px;
  }
  
  .gallery-project-details {
    gap: 10px;
  }
}

/* Touch optimizasyonları */
@media (hover: none) and (pointer: coarse) {
  .tam-prev,
  .tam-next {
    min-height: 44px;
    min-width: 44px;
  }
  
  .tam-project-card {
    transition: none;
  }
  
  .tam-project-card:active {
    transform: scale(0.98);
  }
  
  .tam-project-image img {
    transition: none;
  }
  
  /* Mobil cihazlarda galeri bilgisi her zaman görünür ve sabit */
  .tam-gallery-project-info {
    transform: translateY(0) !important;
    transition: none !important;
  }
}

/* Performance optimizasyonları mobile için */
@media (max-width: 768px) {
  .tam-project-card {
    will-change: transform;
  }
  
  .tam-project-image img {
    will-change: transform;
  }
  
  .tam-slider-wrapper {
    will-change: transform;
  }
  
  .tam-gallery-content {
    width: 95%;
    height: 95%;
  }
  
  .tam-gallery-image {
    max-height: 70%;
    margin-bottom: 15px;
  }
  
  .tam-gallery-project-info {
    padding: 15px 20px;
    margin-top: 10px;
  }
  
  .gallery-project-title {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .gallery-project-category {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .gallery-project-details {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .detail-item {
    font-size: 11px;
    justify-content: center;
  }
  
  .system-badge {
    padding: 3px 10px;
    font-size: 10px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .tam-project-card,
  .tam-prev,
  .tam-next,
  .tam-project-image img,
  .tam-slider-wrapper {
    transition: none !important;
  }
  
  .tam-project-card:hover {
    transform: none !important;
  }
  
  .tam-project-image img {
    transform: none !important;
  }
  
  .swipe-indicator {
    animation: none !important;
  }
  
  .swipe-dots i {
    animation: none !important;
  }
}

/* Projeler Action */
.tam-projects-action {
  text-align: center;
  margin-top: 50px;
}

/* Tam Ekran Galeri */
.tam-fullscreen-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tam-fullscreen-gallery.active {
  opacity: 1;
  visibility: visible;
}

.tam-gallery-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tam-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tam-gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

.tam-gallery-image {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
  margin-bottom: 20px;
}