/* Mahalaxmi Insurance - Modern Animation System */

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Utility Classes */
.animate-fadeInUp { animation: fadeInUp 0.8s var(--ease-out-expo) forwards; }
.animate-fadeIn { animation: fadeIn 1s ease-out forwards; }
.animate-zoomIn { animation: zoomIn 0.8s var(--ease-out-expo) forwards; }
.animate-slideInRight { animation: slideInRight 0.8s var(--ease-out-expo) forwards; }
.animate-slideInLeft { animation: slideInLeft 0.8s var(--ease-out-expo) forwards; }

/* Staggered Delay Helpers */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Interactive Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(97, 0, 0, 0.1);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(254, 214, 91, 0.3);
    border-color: rgba(254, 214, 91, 0.5);
}

/* Page Transitions */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}
body.loaded {
    opacity: 1;
}

/* Scroll Animation Reveal Hook */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-out-expo);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Popup Animations & Modal Styles */
.insurance-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 29, 14, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.insurance-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.insurance-popup-card {
    background: white;
    width: 95%;
    max-width: 900px;
    border-radius: 2.5rem;
    overflow: hidden;
    display: flex;
    box-shadow: 0 40px 100px rgba(97, 0, 0, 0.2);
    transform: scale(0.9) translateY(40px);
    transition: all 0.6s var(--ease-out-expo);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.insurance-popup-overlay.active .insurance-popup-card {
    transform: scale(1) translateY(0);
}

.popup-left {
    background: #610000;
    width: 35%;
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.popup-right {
    background: #fbfbe2;
    width: 65%;
    padding: 3rem;
    position: relative;
}

@media (max-width: 768px) {
    .insurance-popup-card { flex-direction: column; max-height: 90vh; overflow-y: auto; border-radius: 1.5rem; }
    .popup-left { width: 100%; padding: 2rem; }
    .popup-right { width: 100%; padding: 2rem; }
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(27, 29, 14, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #610000;
    color: white;
    transform: rotate(90deg);
}
