/* Custom Styles for MAID Help Canada */

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

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Slider transitions */
.slider-slide {
    transition: opacity 0.8s ease-in-out;
}

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

.slider-slide.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Slider image loading */
.slider-slide .bg-cover {
    transition: transform 0.8s ease-in-out;
}

.slider-slide.active .bg-cover {
    transform: scale(1.05);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Button pulse animation */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text - more subtle and professional */
.gradient-text {
    background: linear-gradient(135deg, #2C5AA0 0%, #4A7BC8 50%, #27AE60 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Section spacing */
.section-spacing {
    padding: 5rem 0;
}

/* Subtle gradient backgrounds */
.gradient-bg-soft {
    background: linear-gradient(135deg, #F8F9FA 0%, #ffffff 50%, #F8F9FA 100%);
}

.gradient-bg-primary {
    background: linear-gradient(135deg, #2C5AA0 0%, #4A7BC8 100%);
    position: relative;
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, #4A7BC8 0%, #27AE60 100%);
}

.gradient-bg-light {
    background: linear-gradient(to bottom, rgba(44, 90, 160, 0.03) 0%, transparent 100%);
}

/* Animated gradient for CTA sections */
.gradient-animated {
    background: linear-gradient(135deg, #2C5AA0, #4A7BC8, #27AE60, #4A7BC8, #2C5AA0);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
}

@keyframes gradient-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Subtle overlay patterns */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .responsive-text {
        font-size: 1.5rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #2C5AA0;
    outline-offset: 2px;
}

/* Mobile menu animations */
#mobile-menu {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

/* Navigation brand hover effect */
nav a.group:hover .fa-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Smooth menu transitions */
nav a {
    position: relative;
}

/* Removed underline animation for cleaner look */

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* ===================================
   MAID POPUP SYSTEM STYLES
   =================================== */

/* Popup overlay */
.maid-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.maid-popup-overlay.show {
    opacity: 1;
}

.maid-popup-overlay.closing {
    opacity: 0;
}

/* Popup content */
.maid-popup-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
}

.maid-popup-overlay.show .maid-popup-content {
    transform: scale(1) translateY(0);
}

/* Close button */
.maid-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.maid-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.maid-popup-close i {
    font-size: 1.5rem;
    color: #333;
}

/* Popup icon */
.popup-icon-large {
    font-size: 5rem;
    animation: popup-icon-pulse 2s ease-in-out infinite;
}

@keyframes popup-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Popup body */
.maid-popup-body {
    margin-top: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .maid-popup-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .maid-popup-body h2 {
        font-size: 1.75rem;
    }
    
    .maid-popup-body p {
        font-size: 1rem;
    }
    
    .popup-icon-large {
        font-size: 3.5rem;
    }
}

/* Popup scrollbar styling */
.maid-popup-content::-webkit-scrollbar {
    width: 8px;
}

.maid-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.maid-popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.maid-popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Animation for urgent elements */
@keyframes urgent-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 38, 38, 0.6);
    }
}

.urgent-glow {
    animation: urgent-glow 2s ease-in-out infinite;
}
