/* Custom Animation Styles for Neshatie.com */

/* 1. Smooth Button Hover Effects */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark, .btn-outline-primary {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--bs-primary-dark, #0a58ca);
    border-color: var(--bs-primary-dark, #0a58ca);
}

/* 2. Gallery Image Zoom on Scroll */
.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.gallery-item img {
    transition: transform 0.6s ease-out;
    width: 100%;
    display: block;
}

/* When the item becomes visible via AOS */
[data-aos="zoom-in"].aos-animate .gallery-item img {
    transform: scale(1);
}

/* Initial state for zoom-in might be handled by AOS, 
   but we want a hover effect too */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* 3. Card Hover Lift (Enhancement to existing) */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

.glass-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* 4. Section Title Underline Animation */
.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--bs-primary);
    transition: width 0.6s ease-out;
}

/* Animate underline when section is visible */
[data-aos].aos-animate .section-title h2::after {
    width: 60px;
}

/* 5. Soft Fade Up Override */
[data-aos="fade-up"] {
    transform: translate3d(0, 30px, 0);
}

/* 6. Pulse Animation for "Register Now" Badges */
@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.animate-pulse {
    animation: pulse-soft 2s infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    [data-aos] {
        /* Optional: Disable translations on mobile if it causes jank, 
           or reduce offset */
        transition-duration: 0.6s !important;
    }
}
