/* Animasyonlu Güvercin Preloader */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
}

/* Güvercin Container */
.dove-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

/* Güvercin Gövdesi */
.dove {
    position: relative;
    width: 80px;
    height: 60px;
    background: white;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 auto;
    animation: doveBounce 1s ease-in-out infinite;
}

/* Güvercin Başı */
.dove::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
}

/* Güvercin Gagası */
.dove::after {
    content: '';
    position: absolute;
    top: -25px;
    left: 65%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #fbbf24;
    transform: rotate(20deg);
}

/* Güvercin Gözü */
.dove-eye {
    position: absolute;
    top: -15px;
    left: 55%;
    width: 6px;
    height: 6px;
    background: #1e40af;
    border-radius: 50%;
    animation: blink 3s infinite;
}

/* Sol Kanat */
.wing-left {
    position: absolute;
    top: 10px;
    left: -15px;
    width: 50px;
    height: 35px;
    background: white;
    border-radius: 50% 0% 0% 50%;
    transform-origin: right center;
    animation: flapLeft 0.5s ease-in-out infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sağ Kanat */
.wing-right {
    position: absolute;
    top: 10px;
    right: -15px;
    width: 50px;
    height: 35px;
    background: white;
    border-radius: 0% 50% 50% 0%;
    transform-origin: left center;
    animation: flapRight 0.5s ease-in-out infinite;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tüy Detayları (Sol Kanat) */
.wing-left::before,
.wing-left::after,
.wing-right::before,
.wing-right::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.wing-left::before {
    width: 20px;
    height: 25px;
    top: 5px;
    left: 10px;
}

.wing-left::after {
    width: 15px;
    height: 20px;
    top: 15px;
    left: 5px;
}

.wing-right::before {
    width: 20px;
    height: 25px;
    top: 5px;
    right: 10px;
}

.wing-right::after {
    width: 15px;
    height: 20px;
    top: 15px;
    right: 5px;
}

/* Güvercin Kuyruğu */
.dove-tail {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: white;
    border-radius: 0% 0% 50% 50%;
    animation: tailWag 0.8s ease-in-out infinite;
}

.dove-tail::before,
.dove-tail::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.dove-tail::before {
    left: -5px;
    bottom: 0;
}

.dove-tail::after {
    right: -5px;
    bottom: 0;
}

/* Animasyonlar */
@keyframes flapLeft {
    0%, 100% {
        transform: rotate(-25deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

@keyframes flapRight {
    0%, 100% {
        transform: rotate(25deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-5px);
    }
}

@keyframes doveBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes tailWag {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) rotate(-5deg);
    }
    75% {
        transform: translateX(-50%) rotate(5deg);
    }
}

@keyframes blink {
    0%, 90%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 0;
    }
}

/* Yükleniyor Metni */
.loading-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Loading Dots */
.loading-dots {
    display: inline-flex;
    gap: 5px;
    margin-left: 5px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

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

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

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

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Bulutlar (Arka plan) */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    animation: cloudFloat 20s linear infinite;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
}

.cloud-2 {
    width: 150px;
    height: 50px;
    top: 50%;
    left: -150px;
    animation-delay: -5s;
}

.cloud-3 {
    width: 120px;
    height: 45px;
    top: 70%;
    left: -120px;
    animation-delay: -10s;
}

@keyframes cloudFloat {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100vw + 150px));
    }
}

/* Progress Bar */
.progress-bar-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 30px auto 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 100%;
    animation: progressAnimation 2s ease-in-out infinite, shimmer 1.5s linear infinite;
    border-radius: 10px;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Işık Efektleri */
.light-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: lightPulse 3s ease-in-out infinite;
}

@keyframes lightPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Parçacıklar */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.particle-3 {
    top: 60%;
    left: 30%;
    animation-delay: 1s;
}

.particle-4 {
    top: 70%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* Site Adı */
.site-name {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin-top: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.site-slogan {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .dove-container {
        width: 150px;
        height: 150px;
    }
    
    .dove {
        width: 60px;
        height: 45px;
    }
    
    .wing-left, .wing-right {
        width: 40px;
        height: 28px;
    }
    
    .site-name {
        font-size: 24px;
    }
    
    .site-slogan {
        font-size: 12px;
        padding: 0 20px;
    }
    
    .progress-bar-container {
        width: 250px;
    }
}

