/* ===== PREMIUM ANIMATIONS & EFFECTS ===== */

/* Fade Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom Animations */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Carousel Animations */
@keyframes carouselFade {
    0% {
        opacity: 0;
        transform: scale(0.98) rotate(0deg);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes carouselSlideLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes carouselSlideRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glow & Shine Effects */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3), 0 0 10px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 30px rgba(0, 212, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3), 0 0 10px rgba(0, 212, 255, 0.1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Floating & Bounce */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

/* Pulse Effect */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Border Animation */
@keyframes borderGlow {
    0% {
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
    50% {
        border-color: rgba(212, 175, 55, 0.8);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    100% {
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
}

/* Text Animations */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
}

/* Rotate Animation */
@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Skew Animation */
@keyframes skewInRight {
    from {
        opacity: 0;
        transform: skewX(-10deg) translateX(100px);
    }
    to {
        opacity: 1;
        transform: skewX(0) translateX(0);
    }
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(-5px);
    }
}

/* ===== APPLY ANIMATIONS ===== */

/* Hero Content Animations */
.hero-content h1 {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-btns {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.hero-btns .btn {
    animation: zoomIn 0.6s ease-out forwards;
}

.hero-btns .btn:nth-child(1) {
    animation-delay: 0.7s;
}

.hero-btns .btn:nth-child(2) {
    animation-delay: 0.9s;
}

/* Carousel Animations */
#hero-carousel {
    animation: glow 3s ease-in-out infinite;
}

.carousel-slide {
    animation: carouselFade 1s ease-in-out;
}

.carousel-slide.active {
    animation: carouselFade 0.8s ease-in-out;
}

.carousel-prev,
.carousel-next {
    animation: pulse 2s infinite;
}

.carousel-prev:hover,
.carousel-next:hover {
    animation: none;
}

/* Service Cards */
.service-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.4s; }
.service-card:nth-child(4) { animation-delay: 0.5s; }
.service-card:nth-child(5) { animation-delay: 0.6s; }
.service-card:nth-child(6) { animation-delay: 0.7s; }

/* Feature Boxes */
.feature-box {
    animation: fadeInUp 0.7s ease-out forwards;
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }
.feature-box:nth-child(4) { animation-delay: 0.4s; }
.feature-box:nth-child(5) { animation-delay: 0.5s; }
.feature-box:nth-child(6) { animation-delay: 0.6s; }

/* Doctor Cards */
.doctor-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.doctor-card:nth-child(1) { animation-delay: 0.1s; }
.doctor-card:nth-child(2) { animation-delay: 0.3s; }
.doctor-card:nth-child(3) { animation-delay: 0.5s; }

/* Testimonial Cards */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.5s; }

/* Button Animations */
.btn:hover {
    animation: bounce 0.6s ease-in-out;
}

.btn-primary {
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    animation: pulse 0.8s ease-out;
}

/* WhatsApp Float Animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Icon Animations */
.service-icon {
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    animation: rotate360 0.8s ease-in-out;
}

.feature-box i {
    transition: all 0.3s;
}

.feature-box:hover i {
    animation: bounce 0.6s ease-in-out;
}

/* Text Animations */
.section-title h2 {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards !important;
}

/* Navigation Link Animations */
.nav-links a {
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    animation: textGlow 0.8s ease-in-out;
}

/* Smooth transitions */
* {
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

/* Gradient animated backgrounds */
.gradient-animated {
    background: linear-gradient(-45deg, #d4af37, #00d4ff, #d4af37, #00d4ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Image Animations */
.about-image-luxury img {
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.about-image-luxury:hover img {
    animation: wave 0.6s ease-in-out;
}

/* Hero Image Container */
#hero-carousel-container {
    animation: fadeInRight 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

#hero-carousel {
    border-radius: 12px;
    overflow: hidden;
}

/* Overlay Animations */
.hero::before,
.hero::after {
    animation: pulse 4s ease-in-out infinite;
}

/* Underline effect for links */
.underline-animation {
    position: relative;
    text-decoration: none;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #00d4ff);
    transition: width 0.4s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

/* Responsive animations */
@media (max-width: 768px) {
    .hero-content h1 {
        animation: fadeInUp 0.6s ease-out forwards;
        animation-delay: 0.1s;
    }

    .hero-content p {
        animation: fadeInUp 0.6s ease-out forwards;
        animation-delay: 0.2s;
    }

    .hero-btns {
        animation: fadeInUp 0.6s ease-out forwards;
        animation-delay: 0.3s;
    }
}
