/* Hero Background Animation */
.hero-animated {
    position: relative;
    overflow: hidden;
    animation: hero-zoom 20s ease-in-out infinite;
}

@keyframes hero-zoom {
    0%, 100% {
        background-size: 100% auto;
    }
    50% {
        background-size: 110% auto;
    }
}

/* Alternative Hero Animation - Scale Transform */
.hero-animated-scale {
    position: relative;
    overflow: hidden;
}

.hero-animated-scale::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    animation: hero-scale-zoom 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes hero-scale-zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hotel Gallery Styles */
.hotel-gallery-section {
    position: relative;
    overflow: hidden;
}

.hotel-gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hotel-gallery-card.delay-1 { animation-delay: 0.1s; }
.hotel-gallery-card.delay-2 { animation-delay: 0.2s; }
.hotel-gallery-card.delay-3 { animation-delay: 0.3s; }
.hotel-gallery-card.delay-4 { animation-delay: 0.4s; }

.hotel-gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hotel-gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.hotel-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotel-gallery-card:hover .hotel-gallery-image img {
    transform: scale(1.1);
}

.hotel-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hotel-gallery-card:hover .hotel-gallery-overlay {
    opacity: 1;
}

.hotel-gallery-content h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.hotel-gallery-content p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Bus Gallery Styles */
.bus-gallery-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bus-gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    transform: translateY(30px);
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    background: white;
}

.bus-gallery-card.delay-1 { animation-delay: 0.15s; }
.bus-gallery-card.delay-2 { animation-delay: 0.3s; }
.bus-gallery-card.delay-3 { animation-delay: 0.45s; }
.bus-gallery-card.delay-4 { animation-delay: 0.6s; }

.bus-gallery-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.bus-gallery-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.bus-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.9);
}

.bus-gallery-card:hover .bus-gallery-image img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.bus-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,123,255,0.8) 0%, rgba(108,117,125,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.8);
}

.bus-gallery-card:hover .bus-gallery-overlay {
    opacity: 1;
    transform: scale(1);
}

.bus-gallery-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bus-gallery-card:hover .bus-gallery-content {
    transform: translateY(0);
}

.bus-gallery-content h5 {
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: none; /* إخفاء عناوين صور الباصات */
}

.bus-gallery-content p {
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    display: none; /* إخفاء وصف صور الباصات */
}

/* Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hotel-gallery-image,
    .bus-gallery-image {
        height: 200px;
    }
    
    .hotel-gallery-content h5,
    .bus-gallery-content h5 {
        font-size: 1rem;
    }
    
    .hotel-gallery-content p,
    .bus-gallery-content p {
        font-size: 0.85rem;
    }
    
    .hotel-gallery-overlay,
    .bus-gallery-overlay {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hotel-gallery-image,
    .bus-gallery-image {
        height: 180px;
    }
    
    .hotel-gallery-card,
    .bus-gallery-card {
        margin-bottom: 20px;
    }
}
