/* ============================================
   FLIGHT PAGE ANIMATIONS
   Beautiful Animations and Effects
   ============================================ */

/* ========== HERO SECTION ANIMATIONS ========== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ========== BOOKING FORM ANIMATIONS ========== */
.booking-form-container {
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: all 0.4s ease;
}

.booking-form-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

.form-tabs .form-tab {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-tabs .form-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.form-tabs .form-tab:hover::before {
    left: 100%;
}

.form-tabs .form-tab.active {
    animation: tabPulse 0.5s ease;
}

/* ========== FORM INPUTS ANIMATIONS ========== */
.booking-form input,
.booking-form select {
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.2) !important;
}

.booking-form .btn-check:checked + label {
    animation: buttonPop 0.3s ease;
}

.book-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.book-btn:hover::before {
    width: 300px;
    height: 300px;
}

.book-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.4) !important;
}

/* ========== CONTENT CARDS ANIMATIONS ========== */
.booking-section .card {
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

section .card {
    transition: all 0.4s ease;
}

section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15) !important;
}

/* ========== FLOATING ELEMENTS ========== */
.flight-page::after {
    content: '';
    position: fixed;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(0, 188, 212, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ========== ICON ANIMATIONS ========== */
.fa-plane,
.fa-plane-departure,
.fa-plane-arrival,
.fa-globe,
.fa-city,
.fa-building,
.fa-calendar,
.fa-user,
.fa-users {
    transition: all 0.3s ease;
}

.input-group:hover .fa-plane,
.input-group:hover .fa-city,
.input-group:hover .fa-calendar,
.input-group:hover .fa-user {
    transform: scale(1.2) rotate(5deg);
    color: #f39c12;
}

/* ========== SECTION ANIMATIONS ========== */
section {
    animation: fadeIn 1s ease-out;
}

section h2,
section h3,
section h4,
section h5 {
    animation: fadeInUp 0.8s ease-out;
}

section p {
    animation: fadeInUp 1s ease-out;
}

/* ========== BADGE ANIMATIONS ========== */
.badge {
    animation: badgeFloat 3s ease-in-out infinite;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tabPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes buttonPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(26, 115, 232, 0.5);
    }
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HOVER EFFECTS ========== */
.form-label {
    transition: all 0.3s ease;
}

.form-control:focus + .form-label,
.form-select:focus + .form-label {
    color: #f39c12;
    transform: translateX(5px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .flight-page::after {
        display: none;
    }
    
    .booking-form-container:hover {
        transform: translateY(-4px);
    }
}

/* ========== LOADING ANIMATIONS ========== */
.form-control,
.form-select {
    position: relative;
}

.form-control::after,
.form-select::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #f12711);
    transition: width 0.3s ease;
}

.form-control:focus::after,
.form-select:focus::after {
    width: 100%;
}

/* ========== BUTTON RIPPLE EFFECT ========== */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

/* ========== GRADIENT ANIMATIONS ========== */
.btn-search {
    background: linear-gradient(135deg, #f39c12 0%, #f12711 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
