/* ==========================================
   ANIMATIONS & TRANSITIONS
   ========================================== */

:root {
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== FADE ANIMATIONS ========== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== SCALE ANIMATIONS ========== */

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

/* ========== SLIDE ANIMATIONS ========== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== ROTATION ANIMATIONS ========== */

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0);
    }
}

/* ========== BOUNCE ANIMATIONS ========== */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ========== SHIMMER ANIMATIONS ========== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes shimmerSlow {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ========== FLOAT ANIMATIONS ========== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(15px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

/* ========== GLOW ANIMATIONS ========== */

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

@keyframes glowBox {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.7);
    }
}

/* ========== UTILITY CLASSES ========== */

/* Fade In Classes */
.animate-fade-in {
    animation: fadeIn var(--transition-base);
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-base);
}

.animate-fade-in-down {
    animation: fadeInDown var(--transition-base);
}

.animate-fade-in-left {
    animation: fadeInLeft var(--transition-base);
}

.animate-fade-in-right {
    animation: fadeInRight var(--transition-base);
}

/* Slide Classes */
.animate-slide-down {
    animation: slideDown var(--transition-base);
}

.animate-slide-up {
    animation: slideUp var(--transition-base);
}

.animate-slide-in-left {
    animation: slideInLeft var(--transition-base);
}

.animate-slide-in-right {
    animation: slideInRight var(--transition-base);
}

/* Scale Classes */
.animate-scale-in {
    animation: scaleIn var(--transition-base);
}

.animate-scale-up {
    animation: scaleUp var(--transition-base);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2s infinite;
}

/* Bounce Classes */
.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounceIn var(--transition-slow);
}

/* Spinner Classes */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

.animate-spin-reverse {
    animation: spinReverse 1s linear infinite;
}

/* Float Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

/* Glow Classes */
.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-glow-box {
    animation: glowBox 2s ease-in-out infinite;
}

/* Shimmer Class */
.animate-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========== DELAY UTILITIES ========== */

.delay-75 { animation-delay: 75ms; }
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }
.delay-1000 { animation-delay: 1000ms; }

/* ========== DURATION UTILITIES ========== */

.duration-fast { animation-duration: var(--transition-fast); }
.duration-base { animation-duration: var(--transition-base); }
.duration-slow { animation-duration: var(--transition-slow); }
.duration-75 { animation-duration: 75ms; }
.duration-100 { animation-duration: 100ms; }
.duration-150 { animation-duration: 150ms; }
.duration-200 { animation-duration: 200ms; }
.duration-300 { animation-duration: 300ms; }
.duration-500 { animation-duration: 500ms; }
.duration-700 { animation-duration: 700ms; }
.duration-1000 { animation-duration: 1000ms; }

/* ========== HOVER EFFECTS ========== */

.hover-lift {
    transition: all var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-grow {
    transition: all var(--transition-base);
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all var(--transition-base);
}

.hover-glow:hover {
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}

.hover-brighten {
    transition: all var(--transition-base);
    filter: brightness(1);
}

.hover-brighten:hover {
    filter: brightness(1.1);
}

/* ========== SCROLL EFFECTS ========== */

.scroll-smooth {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVE ANIMATIONS ========== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== LOADING STATE ========== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.skeleton-text {
    height: 16px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-heading {
    height: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 12px 0;
}

/* ========== ACCESSIBILITY ========== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== PRINT STYLES ========== */

@media print {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================
   ULTRA-MODERN UI, THEME & TRANSITIONS
   ========================================== */

/* Modern View Transitions API for seamless page transitions */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fadeOut;
}

::view-transition-new(root) {
    animation: 400ms cubic-bezier(0.4, 0, 0.2, 1) both fadeIn;
}

/* Global background to prevent any flash */
html {
    background-color: #ffffff !important;
}

body {
    background-color: #ffffff !important;
    transition: opacity 0.25s ease;
}

body.page-exiting {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Custom Glassmorphism & Luxury Glow Utilities */
.glass-panel {
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(235, 200, 49, 0.2);
}

.glass-card-dark {
    background: rgba(9, 21, 39, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glowing Accents & Gradient Text */
.text-gradient-gold {
    background: linear-gradient(135deg, #fff 0%, #facc15 50%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-amber {
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.25);
}

.glow-amber-lg {
    box-shadow: 0 0 50px rgba(250, 204, 21, 0.4);
}

/* Shimmer Animation for CTA Buttons */
@keyframes shimmerSweep {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }
    100% {
        transform: translateX(250%) rotate(45deg);
    }
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    transform: rotate(30deg);
    animation: shimmerSweep 4s infinite;
    pointer-events: none;
}

/* Floating animation for badge / car cards */
@keyframes floatingCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

.animate-float {
    animation: floatingCard 5s ease-in-out infinite;
}

/* Card Hover 3D Lift */
.luxury-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.luxury-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 30px 60px rgba(5, 38, 81, 0.18), 0 0 30px rgba(250, 204, 21, 0.15);
}

/* Input Focus Glows */
.luxury-input {
    transition: all 0.3s ease;
    border: 1.5 solid rgba(10, 22, 40, 0.15);
}

.luxury-input:focus {
    border-color: #facc15 !important;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25) !important;
    outline: none !important;
}

/* ==========================================
   STICKY FLOATING ACTION BUTTONS (WhatsApp, Call & Scroll Top)
   ========================================== */
.fixed-floating-actions {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    pointer-events: auto;
}

.floating-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(135deg, #091527 0%, #172a46 100%);
    border: 2px solid #facc15;
    box-shadow: 0 8px 25px rgba(9, 21, 39, 0.5);
}

.floating-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: #facc15;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Call & WhatsApp buttons: Dedicated Green Branding */
.floating-btn--call {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
    animation: pulseCall 3s infinite;
}

.floating-btn--call .floating-btn__icon {
    color: #ffffff;
}

.floating-btn--call:hover {
    transform: scale(1.14);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.65);
    border-color: #ffffff;
}

.floating-btn--call:hover .floating-btn__icon {
    color: #ffffff;
}

.floating-btn--whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    animation: pulseWhatsApp 3s infinite;
    animation-delay: 1.5s;
}

.floating-btn--whatsapp .floating-btn__icon {
    color: #ffffff;
}

.floating-btn--whatsapp:hover {
    transform: scale(1.14);
    background: linear-gradient(135deg, #34e075 0%, #15a090 100%);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
    border-color: #ffffff;
}

.floating-btn--whatsapp:hover .floating-btn__icon {
    color: #ffffff;
}

.floating-btn--scroll-top:hover {
    transform: scale(1.14);
    box-shadow: 0 12px 32px rgba(250, 204, 21, 0.55);
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
}

.floating-btn--scroll-top:hover .floating-btn__icon {
    color: #091527;
}

/* Scroll To Top button — smooth slow collapse & slide down when hidden */
.floating-btn--scroll-top {
    max-height: 0;
    margin-top: -14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.6);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                visibility 0.4s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    overflow: hidden;
    border: 2px solid #facc15 !important;
}

.floating-btn--scroll-top.scroll-to-top-btn--visible {
    max-height: 70px;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    overflow: visible;
}

.floating-btn:active {
    transform: scale(0.95);
}

/* Tooltip on hover */
.floating-btn__tooltip {
    position: absolute;
    right: 70px;
    background: #091527;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(250, 204, 21, 0.3);
    pointer-events: none;
}

.floating-btn__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #091527;
}

.floating-btn:hover .floating-btn__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Badge count indicator for WhatsApp */
.floating-btn__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@keyframes pulseWhatsApp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65), 0 8px 25px rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 25px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 25px rgba(37, 211, 102, 0.5);
    }
}

@keyframes pulseCall {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65), 0 8px 25px rgba(16, 185, 129, 0.45);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(16, 185, 129, 0), 0 8px 25px rgba(16, 185, 129, 0.45);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 8px 25px rgba(16, 185, 129, 0.45);
    }
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    .fixed-floating-actions {
        right: 14px;
        bottom: 20px;
        gap: 12px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    .floating-btn__tooltip {
        display: none;
    }
}


/* ==========================================
   CITY TICKER CAROUSEL (Hero Banner Downside Marquee)
   ========================================== */
.city-ticker-track {
    display: flex;
    width: max-content;
    animation: cityMarquee 38s linear infinite;
}

.city-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes cityMarquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: #f8fafc;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(4px);
}

.city-pill:hover {
    background: rgba(250, 204, 21, 0.16);
    border-color: rgba(250, 204, 21, 0.6);
    color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.2);
}

.ticker-sep {
    color: rgba(250, 204, 21, 0.7);
    font-size: 13px;
    font-weight: 800;
    user-select: none;
    padding: 0 2px;
}

