/* Modern Animations for Give Us Transport Solutions */

/* Parallax Hero Effect */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Staggered Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card.animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.service-card:nth-child(1).animate { transition-delay: 0.15s; }
.service-card:nth-child(2).animate { transition-delay: 0.3s; }
.service-card:nth-child(3).animate { transition-delay: 0.45s; }
.service-card:nth-child(4).animate { transition-delay: 0.6s; }
.service-card:nth-child(5).animate { transition-delay: 0.75s; }

/* Hover Lift Effect */
.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 128, 128, 0.2);
}

/* About Images Fade */
.about-image img {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}

.about-image img.animate {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Review Cards Slide In */
.review-card {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.review-card.animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Booking Form Slide In */
.booking-form {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booking-form.animate {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Contact Items Fade */
.contact-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.contact-item.animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.contact-item:nth-child(1).animate { transition-delay: 0.1s; }
.contact-item:nth-child(2).animate { transition-delay: 0.2s; }
.contact-item:nth-child(3).animate { transition-delay: 0.3s; }

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Button Pulse Animation */
.btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 128, 128, 0);
    }
}

/* Floating Chat Button */
.chat-button {
    animation: float 3s ease-in-out infinite;
}

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

/* Section Title Underline Animation */
.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--primary-color, #008080);
    margin: 1rem auto 0;
    transition: width 0.6s ease;
}

.section-title.animate::after {
    width: 80px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
