@tailwind base;
@tailwind components;
@tailwind utilities;




 .btn-switch-text > span {
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
 .btn-switch-text .btn-double-text {
    transition: opacity 0.65s, transform 0.85s;
    transition-timing-function: cubic-bezier(0.15, 0.85, 0.31, 1);
    letter-spacing: 3px;
    font-family: 'Campton', sans-serif;
}
 .btn-switch-text .btn-double-text:before {
    content: attr(data-text);
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    color: inherit;
    font-size: inherit;
    transform: translate(-50%, 100%);
    transition: opacity 0.5s, transform 0.8s;
    transition-timing-function: cubic-bezier(0.15, 0.85, 0.31, 1);
    z-index: 2;
}
 .btn-switch-text:hover .btn-double-text:before, .btn.btn-switch-text:active .btn-double-text:before {
    transform: translate(-50%, 0);
    opacity: 1;
    z-index: 3;  /* Üstte kalması için z-index */
}

 .btn-switch-text:hover .btn-double-text, .btn.btn-switch-text:active .btn-double-text {
    transform: translateY(-200%);
}
 .btn-switch-text:hover .btn-double-text:before, .btn.btn-switch-text:active .btn-double-text:before {
    transform: translate(-50%, 150%);
    opacity: 1;
}

.swiper {
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
  }




  #home .swiper-pagination{
    text-align: end !important;
    padding-right: 100px ;
  }
  #home .swiper-pagination-bullet{
    background-color: transparent !important;
    border: 2px solid #fff !important;
    width: 16px !important;
    height: 16px !important;
    margin-bottom: 10px !important;
  }
  #home .swiper-pagination-bullet-active{
      position: relative;
  }
  #home .swiper-pagination-bullet-active::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
  }

  .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: 20px !important;
  }


  .swiper-button-next, .swiper-button-prev{
    top: 15% !important;
  }
  .swiper-button-prev, .swiper-rtl .swiper-button-next{
    right: 4% !important;
    left: auto !important;
    color: #000 !important;
  }
  .swiper-button-next, .swiper-rtl .swiper-button-prev{
    color: #000 !important;
  }
  .swiper-button-next:after, .swiper-rtl .swiper-button-prev:after{
    font-size: 24px !important;
  }
  .swiper-button-prev:after, .swiper-rtl .swiper-button-next:after{
    font-size: 24px !important;
  }
  @media (max-width: 768px) {
    .swiper-button-prev, .swiper-rtl .swiper-button-next{
      right: 10% !important;
      left: auto !important;
      color: #000 !important;
    }

  }

  #etkinliklerimiz .swiper-pagination{
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  #etkinliklerimiz .swiper-pagination-bullet{
    background-color: transparent !important;
    border: 2px solid #000 !important;
    width: 20px !important;
    height: 20px !important;
  }
  #etkinliklerimiz .swiper-pagination-bullet-active{
      position: relative;
  }
  #etkinliklerimiz .swiper-pagination-bullet-active::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background-color: #000;
    border-radius: 50%;
  }
  .active{
    color: #303138 !important;
  }

  .nav-link {
    --nav-width: 0;
  }

  .nav-link::after {
    width: var(--nav-width) !important;
  }

  .nav-link:hover::after {
    width: 100% !important;
  }

  .nav-link.active {
    font-weight: 600;
  }

  #etkinliklerimiz .swiper-pagination{
    display: none !important;
  }
@media (max-width: 768px) {
  #anasayfa .swiper-pagination{
    padding-right: 50px !important;
  }
  #etkinliklerimiz .swiper-pagination{
    display: block !important;
  }
	#home .swiper-pagination {padding-right:50px !important;}
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #000;
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* Aktif bullet */
.swiper-pagination-bullet-active {
  width: 20px;
  height: 20px;
  opacity: 1;
}

/* Aktif bullet'ın hemen yanındakiler */
.swiper-pagination-bullet-active-prev,
.swiper-pagination-bullet-active-next {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* İkinci dereceden komşular */
.swiper-pagination-bullet-active-prev-prev,
.swiper-pagination-bullet-active-next-next {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* Üçüncü dereceden komşular */
.swiper-pagination-bullet-active-prev-prev-prev,
.swiper-pagination-bullet-active-next-next-next {
  width: 8px;
  height: 8px;
  opacity: 0.4;
}


.burger {
  position: relative;
  width: 30px;
  height: 20px;
  background: transparent;
  cursor: pointer;
}

@media(min-width: 768px) {
    .burger{
      display: none;
    }
}

.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: black;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 21px;
  left: 5px;
}


@media (max-width: 768px) {
  .navigation-mobile{
    background-color: #fff;
    position: fixed;
    top: 96px;
    left: 0;
    width: 100%;
    height: 95vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }
  .navigation-mobile.active{
    opacity: 1;
    visibility: visible;
  }
  .navigation-mobile ul{
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 0;
  }
  .navigation-mobile ul li{
    border-bottom: 1px solid #85858560;
    width: 100%;
    padding: 15px 15px;
  }
  .navigation-mobile ul li a::after{
    display: none;
  }
  .navigation-mobile ul li .nav-link{
    border: none !important;
    padding:  0 !important;
  }
}
