.cookie-popup {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-popup.active {
    transform: translateY(0);
}

/* Smooth scrolling için */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    background: #f6f6f6 !important;
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-thumb {
    background: #a0a0a0 !important;   
}

/* Mobil menü transition'ı için */
#mobileMenu {
    will-change: transform;
    z-index: 50;
}

/* Header için cam efekti */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hover animasyonu için smooth transition */
.group span {
    transition: width 0.3s ease-in-out;
}

/* Active menü item stili */
header a.text-red-700 span {
    width: 100%;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.slider-container {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.slider-track {
    animation: slide 80s linear infinite;
    display: inline-flex;
    white-space: nowrap;
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* Smooth transitions */
.slider-track img {
    transition: all 0.3s ease-in-out;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    .flex.items-center {
        gap: 16; /* Mobil için daha az boşluk */
    }
    .min-w-\[200px\] {
        min-width: 150px;
    }
    .slider-track img {
        max-height: 3rem;
    }
}

.white-logo {
    filter: brightness(0) invert(1);
}

/* Back to Top Button Stilleri */
#backToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: rgba(220, 38, 38, 0.9); /* red-600 with opacity */
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#backToTop:hover {
    background-color: rgba(185, 28, 28, 0.9); /* red-700 with opacity */
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#backToTop i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

#backToTop:hover i {
    transform: translateY(-2px);
}

/* Mobil görünüm için özel stiller */
@media (max-width: 640px) {
    #backToTop {
        bottom: 5rem; /* WhatsApp butonunun üstünde konumlandır */
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    #backToTop i {
        font-size: 1rem;
    }
}

/* WhatsApp butonu için yeni bounce animasyonu */
@keyframes bounce-side {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}

/* WhatsApp kulakçığı için özel stiller */
.karayel-whatsapp-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #25d366;
    color: white;
    padding: 0.75rem;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0;
}

.karayel-whatsapp-float:hover {
    background-color: #22c55e;
    padding-right: 1rem;
    transform: translateY(-50%) translateX(-5px);
    gap: 0.5rem;
}

.karayel-whatsapp-float .karayel-whatsapp-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.karayel-whatsapp-float:hover .karayel-whatsapp-text {
    max-width: 150px;
    margin-left: 0.5rem;
    opacity: 1;
}

.karayel-whatsapp-float i {
    font-size: 1.5rem;
}

/* Mobil görünüm için özel stiller */
@media (max-width: 640px) {
    .karayel-whatsapp-float {
        top: auto;
        bottom: 80px;
        right: 16px;
        border-radius: 9999px;
        padding: 0.75rem;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .karayel-whatsapp-float:hover {
        transform: none;
        padding: 0.75rem;
    }

    .karayel-whatsapp-float .karayel-whatsapp-text {
        display: none;
    }
}

/* Smooth transitions için genel class */
.transition-all {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer'daki sosyal medya ikonları için özel stil */
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}

/* Mobil cihazlarda butonların konumu ve stilleri */
@media (max-width: 640px) {
    #backToTop {
        bottom: 16px;
        right: 16px;
    }
    
    .whatsapp-float {
        position: fixed;
        top: auto;
        bottom: 80px;
        right: 16px;
        transform: none !important;
        border-radius: 9999px;
        padding: 1rem;
        width: auto;
    }
    
    .whatsapp-float:hover {
        transform: none !important;
        padding: 1rem;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .footer-social-icons {
        display: flex;
        justify-content: flex-start;
        gap: 1.5rem;
    }
    
    .footer-social-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Tablet için özel ayarlar */
@media (min-width: 641px) and (max-width: 1024px) {
    .whatsapp-float {
        transform: translateY(-50%);
    }
    
    .whatsapp-float:hover {
        transform: translateY(-50%) translateX(-5px);
    }
}

/* Overlay z-index'i */
#overlay {
    z-index: 45;
}

/* Animasyon sınıfları */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-active {
    opacity: 1;
    transform: translateY(0);
}

/* Gecikme sınıfları */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Farklı animasyon tipleri */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

/* Aktif durumlar */
.fade-in.animate-active,
.slide-up.animate-active,
.slide-left.animate-active,
.slide-right.animate-active {
    opacity: 1;
    transform: translate(0);
}

/* İş Ortakları Slider Stilleri */
.partner-card {
    @apply bg-white p-6 rounded-xl shadow-sm hover:shadow-lg transition-all duration-300;
    transform: perspective(1000px) rotateY(0deg);
    backface-visibility: hidden;
}

.partner-card:hover {
    transform: perspective(1000px) rotateY(10deg);
}

.partner-logo {
    @apply w-full h-16 object-contain transition-all duration-300 filter grayscale hover:grayscale-0;
}

/* Slider Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

/* Mobil Menü Animasyonları */
.mobile-menu-enter {
    transform: translateX(100%);
    opacity: 0;
}

.mobile-menu-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-out;
}

.mobile-menu-exit {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

/* Hero Banner Animasyonları */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Hero elementleri için özel animasyon sınıfları */
.hero-title {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.hero-buttons {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* Hero tab butonları için smooth animasyon */
.hero-tab-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-tab-button:hover::before {
    left: 100%;
}

/* Gelişmiş bounce animasyonu için */
@keyframes heroContentBounce {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    60% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
    80% {
        transform: translateY(2px);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content-enter {
    animation: heroContentBounce 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}