/* ============================================================
   SAWA RENT CAR — Modern Animations & Micro-interactions
   Scroll Animations · Glassmorphism · Smooth Transitions
   ============================================================ */

/* ─────────────────────────────────────────────────
   CARD HOVER EFFECTS
   ───────────────────────────────────────────────── */
.card-hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ─────────────────────────────────────────────────
   BUTTON ANIMATIONS
   ───────────────────────────────────────────────── */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animate:active {
    transform: scale(0.98);
}

/* ─────────────────────────────────────────────────
   HERO ANIMATIONS
   ───────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

.hero-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────
   PRICE CALCULATOR SLIDER
   ───────────────────────────────────────────────── */
.deal-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    outline: none;
    transition: background 0.3s ease;
}

.deal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-accent);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.deal-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Price change animation */
.deal-price-amount, .deal-price-currency {
    transition: transform 0.3s ease;
}

.deal-price-amount.changing {
    animation: pricePop 0.3s ease;
}

@keyframes pricePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────────
   NAVBAR SCROLL EFFECT
   ───────────────────────────────────────────────── */
.navbar {
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 26, 58, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
.navbar-toggler {
    transition: transform 0.3s ease;
}

.navbar-toggler:active {
    transform: scale(0.95);
}

/* ─────────────────────────────────────────────────
   FOOTER ANIMATIONS
   ───────────────────────────────────────────────── */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-accent);
}

/* ─────────────────────────────────────────────────
   SCROLL INDICATOR
   ───────────────────────────────────────────────── */
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-indicator i {
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────
   SMOOTH SCROLL
   ───────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ─────────────────────────────────────────────────
   TOUCH DEVICE OPTIMIZATIONS
   ───────────────────────────────────────────────── */
@media (hover: none) {
    .card-hover-lift:hover,
    .car-card:hover,
    .offer-card:hover,
    .feature-card:hover,
    .step-card:hover,
    .testimonial-card:hover,
    .deal-card:hover {
        transform: none;
    }
}

/* ─────────────────────────────────────────────────
   KEYBOARD FOCUS VISIBILITY
   ───────────────────────────────────────────────── */
*:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────────────
   WHATSAPP BOOKING BUTTON
   ───────────────────────────────────────────────── */
.booking-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.booking-divider::before,
.booking-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.booking-divider span {
    padding: 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #34d368, #1e9c54);
    color: white;
}

.btn-whatsapp i {
    font-size: 20px;
}

/* ─────────────────────────────────────────────────
   FLOATING WHATSAPP BUTTON
   ───────────────────────────────────────────────── */
.floating-cta .whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-cta .whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.floating-cta .phone {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
