/* Ken Burns + Parallax Hybrid Effect */
@keyframes kenBurnsParallax {
    0% {
        transform: scale(1) translate(0, var(--parallax-y, 0));
    }
    25% {
        transform: scale(1.08) translate(-15px, calc(var(--parallax-y, 0) - 10px));
    }
    50% {
        transform: scale(1.12) translate(12px, calc(var(--parallax-y, 0) - 8px));
    }
    75% {
        transform: scale(1.08) translate(-8px, calc(var(--parallax-y, 0) + 8px));
    }
    100% {
        transform: scale(1) translate(0, var(--parallax-y, 0));
    }
}

.about-hero-photo {
    animation: kenBurnsParallax 25s ease-in-out infinite;
    --parallax-y: 0px;
}

/* Icon Hover Animations */
@keyframes slideXInfinite {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(8px);
    }
    75% {
        transform: translateX(-8px);
    }
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes rotateWiggleInfinite {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}

.animate-slide-x-infinite {
    animation: slideXInfinite 1.5s ease-in-out infinite;
}

.animate-pulse-scale {
    animation: pulseScale 1.2s ease-in-out infinite;
}

.animate-rotate-wiggle-infinite {
    animation: rotateWiggleInfinite 1.5s ease-in-out infinite;
}

/* Hero Slider Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.swiper-slide-active .hero-title {
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.swiper-slide-active .hero-desc {
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.swiper-slide-active .hero-cta {
    animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.swiper-slide-active .hero-feature:nth-child(1) {
    animation: heroFadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.swiper-slide-active .hero-feature:nth-child(2) {
    animation: heroFadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.swiper-slide-active .hero-feature:nth-child(3) {
    animation: heroFadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.swiper-slide-active .hero-feature:nth-child(4) {
    animation: heroFadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

.swiper-slide-active .hero-image {
    animation: heroZoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Hero Section */
.hero-section {
    overflow: visible;
}

/* Hero Title */
.hero-title {
    font-weight: 900;
}

/* Hero Title Gradient Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-animate {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777, #2563eb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.dark .gradient-animate {
    background: linear-gradient(135deg, #93c5fd, #c4b5fd, #fda4af, #93c5fd);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Light Mode - Slide Specific Gradients */
/* Slide 1 - Gray Background: Koyu Gri + Mavi tonları */
.slide-1-bg .gradient-animate {
    background: linear-gradient(135deg, #475569, #3b82f6, #8b5cf6, #475569);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slide 2 - Rose Background: Koyu Pembe/Rose tonları */
.slide-2-bg .gradient-animate {
    background: linear-gradient(135deg, #881337, #e11d48, #f43f5e, #881337);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slide 3 - Green Background: Koyu Yeşil tonları */
.slide-3-bg .gradient-animate {
    background: linear-gradient(135deg, #14532d, #16a34a, #22c55e, #14532d);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slide 4 - Blue Background: Koyu Mavi tonları */
.slide-4-bg .gradient-animate {
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #3b82f6, #1e3a8a);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode - Slide Specific Gradients */
/* Slide 1 - Gray Background: Beyaz + Mavi-Mor-Pembe */
.dark .slide-1-bg .gradient-animate {
    background: linear-gradient(135deg, #ffffff, #93c5fd, #c4b5fd, #fda4af, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slide 2 - Bordo Background: Beyaz + Pembe tonları */
.dark .slide-2-bg .gradient-animate {
    background: linear-gradient(135deg, #ffffff, #fecdd3, #fda4af, #fb7185, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slide 3 - Yeşil Background: Beyaz + Açık Yeşil + Sarı tonları */
.dark .slide-3-bg .gradient-animate {
    background: linear-gradient(135deg, #ffffff, #d9f99d, #86efac, #bef264, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slide 4 - Lacivert Background: Beyaz + Açık Mavi + Cyan tonları */
.dark .slide-4-bg .gradient-animate {
    background: linear-gradient(135deg, #ffffff, #a5f3fc, #67e8f9, #bfdbfe, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Title Responsive - xl/xxl'de büyük, lg'de 2 satır, küçük ekranlarda büyük */
@media (min-width: 1536px) {
    /* xxl: 1536px+ - Extra büyük ekranlar */
    .hero-title {
        font-size: 5rem !important; /* 80px - text-8xl */
        line-height: 1.1 !important;
    }
}

@media (min-width: 1280px) and (max-width: 1535px) {
    /* xl: 1280px-1535px - Büyük ekranlar */
    .hero-title {
        font-size: 4rem !important; /* 64px - text-7xl */
        line-height: 1.1 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    /* lg: 1024px-1279px - Laptop */
    .hero-title {
        font-size: 3rem !important; /* 48px - text-5xl yerine */
        line-height: 1 !important;
    }
}

@media (max-width: 1023px) {
    /* md: 768px-1023px - Tablet */
    .hero-title {
        font-size: 3.75rem !important; /* text-6xl - mobilde büyük kalabilir */
    }
}

@media (max-width: 767px) {
    /* sm/xs: 0-767px - Mobile */
    .hero-title {
        font-size: 3rem !important; /* text-5xl - mobilde de biraz küçült */
    }
}

/* Hero Image Heights */
.hero-image {
    max-height: 600px;
    padding-top: 1.25rem; /* pt-5 = 20px */
}

.hero-image img,
.hero-image video {
    max-height: 600px;
}

/* Hero Progress Bar Container */
.hero-progress-container {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(249, 115, 22, 0.3), transparent);
}

/* Hero Progress Bar */
.hero-progress-bar {
    width: 0%;
    transition: width 7s linear;
    background: linear-gradient(to right, #f97316, #fb923c, #ea580c);
}

/* Pagination Custom */
.swiper-pagination-custom {
    z-index: 50;
    padding-left: 3px;
}

/* Modern Pagination Dots */
.hero-pagination-bullet {
    position: relative;
    width: 12px;
    height: 12px;
    background: rgba(71, 85, 105, 0.4);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(71, 85, 105, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.dark .hero-pagination-bullet {
    background: rgba(100, 116, 139, 0.3);
    border-color: rgba(148, 163, 184, 0.5);
}

.hero-pagination-bullet:hover {
    transform: scale(1.2);
    border-color: rgba(59, 130, 246, 0.8);
}

.hero-pagination-bullet-active {
    width: 40px;
    border-radius: 20px;
    background: rgba(249, 115, 22, 0.5);
    border-color: transparent;
}

.dark .hero-pagination-bullet-active {
    background: rgba(251, 146, 60, 0.3);
}

.hero-pagination-bullet-active .bullet-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #f97316, #fb923c, #ea580c);
    width: 0%;
    transition: width 7s linear;
}

/* Fire Flicker Animation */
@keyframes fireFlicker {
    0%, 100% {
        transform: scale(1) rotate(-5deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        filter: brightness(1.3);
    }
}

.fire-emoji {
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

/* Product Card Gradient Background */
.product-card-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
}

/* Slide Background Gradients - Full Width */
.swiper-slide {
    position: relative;
    overflow: visible;
}

/* Slide 1 - Teslimat (Gray) */
.slide-1-bg {
    background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 30%, #cbd5e1 50%, rgba(203, 213, 225, 0.4) 75%, transparent 100%);
}

.dark .slide-1-bg {
    background: linear-gradient(to bottom, #030712 0%, #111827 30%, #1f2937 50%, rgba(31, 41, 55, 0.5) 75%, transparent 100%);
}

/* Slide 2 - HELI (Koyu Bordo) */
.slide-2-bg {
    background: linear-gradient(to bottom, #fff5f7 0%, #ffe4e6 30%, #fecdd3 50%, rgba(254, 205, 211, 0.3) 75%, transparent 100%);
}

.dark .slide-2-bg {
    background: linear-gradient(to bottom, #450a0a 0%, #7f1d1d 30%, #991b1b 50%, rgba(153, 27, 27, 0.5) 75%, transparent 100%);
}

/* Slide 3 - EP (Koyu Yeşil) */
.slide-3-bg {
    background: linear-gradient(to bottom, #f0fdf4 0%, #dcfce7 30%, #bbf7d0 50%, rgba(187, 247, 208, 0.3) 75%, transparent 100%);
}

.dark .slide-3-bg {
    background: linear-gradient(to bottom, #052e16 0%, #14532d 30%, #166534 50%, rgba(22, 101, 52, 0.5) 75%, transparent 100%);
}

/* Slide 4 - İstif Pazarı (Koyu Lacivert) */
.slide-4-bg {
    background: linear-gradient(to bottom, #dbeafe 0%, #bfdbfe 30%, #93c5fd 50%, rgba(147, 197, 253, 0.4) 75%, transparent 100%);
}

.dark .slide-4-bg {
    background: linear-gradient(to bottom, #1e3a8a 0%, #1e40af 30%, #1d4ed8 50%, rgba(29, 78, 216, 0.5) 75%, transparent 100%);
}

/* ========================================== */
/* Homepage Slider Button Dark Mode Fix */
/* ========================================== */

/* Slide 1 (Teslimat) - Slate/Gray Dark Mode Buttons */
.dark .dark\:bg-slate-700 {
    background-color: rgb(51 65 85) !important;
}

.dark .dark\:hover\:bg-slate-800:hover {
    background-color: rgb(30 41 59) !important;
}

/* Slide 2 (HELI) - Red Dark Mode Buttons */
.dark .dark\:bg-red-700 {
    background-color: rgb(185 28 28) !important;
}

.dark .dark\:hover\:bg-red-800:hover {
    background-color: rgb(153 27 27) !important;
}

/* Slide 3 (EP) - Green Dark Mode Buttons */
.dark .dark\:bg-green-700 {
    background-color: rgb(21 128 61) !important;
}

.dark .dark\:hover\:bg-green-800:hover {
    background-color: rgb(22 101 52) !important;
}

/* Slide 4 (İstif Pazarı) - Blue Dark Mode Buttons */
.dark .dark\:bg-blue-700 {
    background-color: rgb(29 78 216) !important;
}

.dark .dark\:hover\:bg-blue-800:hover {
    background-color: rgb(30 64 175) !important;
}

/* Dark mode text color for buttons */
.dark .dark\:text-white {
    color: rgb(255 255 255) !important;
}
