/* Custom CSS for PremDhara */

/* Tailwind custom configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* Custom gradients and colors */
.gradient-warm {
    background: linear-gradient(135deg, rgb(251, 146, 60) 0%, rgb(251, 113, 133) 100%);
}

.gradient-soft {
    background: linear-gradient(135deg, rgb(59, 130, 246) 0%, rgb(147, 197, 253) 100%);
}

.gradient-gentle {
    background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(134, 239, 172) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, rgb(251, 146, 60) 0%, rgb(59, 130, 246) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(251, 146, 60) 0%, rgb(251, 113, 133) 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 146, 60, 0.3);
}

.card-hover {
    transition: all 0.3s ease;
}

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

/* Carousel styles */
.carousel-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Navigation styles */
.nav-link {
    position: relative;
}

.nav-link.active {
    color: rgb(251, 146, 60);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, rgb(251, 146, 60) 0%, rgb(251, 113, 133) 100%);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.show {
    max-height: 400px;
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgb(251, 146, 60);
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* Success modal animation */
#success-modal {
    animation: fadeIn 0.3s ease;
}

#success-modal > div {
    animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Counter animation */
.counter {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.counter.animate {
    opacity: 1;
}

/* Carousel dots */
.carousel-dot.active {
    background-color: white !important;
    opacity: 1 !important;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-gradient {
        font-size: 1.5rem;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

/* Custom heartbeat animation using CSS */
        .heartbeat {
            animation: heartbeat 1.5s ease-in-out infinite;
        }
        
        @keyframes heartbeat {
            0% {
                transform: scale(1);
            }
            14% {
                transform: scale(1.1);
            }
            28% {
                transform: scale(1);
            }
            42% {
                transform: scale(1.1);
            }
            70% {
                transform: scale(1);
            }
            100% {
                transform: scale(1);
            }
        }
        
        /* Alternative jQuery-controlled heartbeat styles */
        .heartbeat-jquery {
            transition: transform 0.1s ease-in-out;
        }
        
        /* Glow effect for enhanced visual appeal */
        .glow {
            filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.5));
        }

/* Story Carousel Styles */
.story-carousel-slide {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.story-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.story-carousel-dot.active {
    background-color: white !important;
    opacity: 1 !important;
    transform: scale(1.2);
}