/*--------------------------------------*/
/* FONT- FACE TANIMLARI (font.css'e EKLE) */
/*--------------------------------------*/

@font-face {
  font-family: 'Orbitron';
  src: url('../font/orbitron.woff2') format('woff2'),
       url('../font/orbitron.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Chakra Petch';
  src: url('../font/chakra.woff2') format('woff2'),
       url('../font/chakra.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------*/
/* BAŞLIK VE HEADER AYARLARI */
/*--------------------------------------*/
header {
  margin-top: 40px;
  padding: 0 5vw 40px;
  text-align: center;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff3333;
  margin: 0;
  padding-top: 40px;
  display: block;
  user-select: none;
}

/*--------------------------------------*/
/* GALERİ GENELİ */
/*--------------------------------------*/
.gallery-section {
  padding: 0 5vw 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1920px;
  margin: 0 auto;
}

/*--------------------------------------*/
/* GALERİ ÖĞESİ */
/*--------------------------------------*/
.gallery-item {
  display: flex;
  flex-wrap: nowrap; /* Yan yana */
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-direction: row; /* Normalde görsel solda */
}

/* Ters yönlü öğeler için (görsel sağda) */
.gallery-item.reverse {
  flex-direction: row-reverse;
}

/*--------------------------------------*/
/* GÖRSEL SARMALAYICISI */
/*--------------------------------------*/
.image-wrapper {
  position: relative;
  width: 90%; /* Genişliği %50 yap, yan yana eşit */
  height: 550px;
  overflow: hidden;
  border-radius: 16px;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.image-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Görselin kendisi */
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  user-select: none;
  transition: transform 0.3s ease;
}

.image-wrapper img:hover {
  transform: scale(1.03);
}

/*--------------------------------------*/
/* METİN BLOĞU */
/*--------------------------------------*/
.text {
  width: 45%; /* Metin bloğu da yanına sığsın */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  color: #ccc;
  user-select: none;
}

.text.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Ters yönlü öğelerde metin başlangıç pozisyonu */
.gallery-item.reverse .text {
  transform: translateX(-40px);
}
.gallery-item.reverse .text.visible {
  transform: translateX(0);
}

/* Başlıklar */
.text-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ff3333;
  font-weight: 600;
}

/* İçerik paragrafı */
.text-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/*--------------------------------------*/
/* RESPONSIVE AYARLAR */
/*--------------------------------------*/

/* Tablet ve küçük laptop */
@media (max-width: 1024px) {
  .gallery-item {
    flex-wrap: wrap; /* Alt alta geçebilir */
    gap: 60px;
  }

  .image-wrapper {
    width: 100%;
    height: auto;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
  }

  .image-wrapper img {
    width: 100%;
    height: auto;
  }

  .text {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 0 15px;
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: none !important;
  }
}

/* Küçük tablet ve büyük telefon */
@media (max-width: 768px) {
  .gallery-item {
    gap: 40px;
  }

  .text-title {
    font-size: 1.4rem;
  }

  .text-content {
    font-size: 0.95rem;
  }
}

/* Telefonlar */
@media (max-width: 480px) {
  header {
    margin-top: 60px;
    padding: 0 3vw 30px;
  }

  .gallery-title {
    font-size: 1.8rem;
    padding-bottom: 15px;
  }

  .gallery-item {
    flex-direction: column !important;
    gap: 30px;
  }

  .image-wrapper {
    width: 100%;
    height: auto;
  }

  .text {
    text-align: center;
    max-width: 100%;
    padding: 0 8px;
  }

  .text-title {
    font-size: 1.3rem;
  }

  .text-content {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
