/* MPay Landing Page Styles */
:root {
    --primary-color: #c70529;
    --secondary-color: #01006b;
    --accent-color: #f8f9fa;
}

.bg-primary { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.border-primary { border-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.text-secondary { color: var(--secondary-color); }
.border-secondary { border-color: var(--secondary-color); }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #a00422;
    border-color: #a00422;
}

/* Fix color contrast for better accessibility */
.text-primary-contrast {
    color: #e91e63; /* Higher contrast red */
}

.bg-primary-contrast {
    background-color: #e91e63; /* Higher contrast red */
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #000552;
    border-color: #000552;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Performance optimizations */
.btn-primary, .btn-secondary {
    transition: all 0.2s ease-in-out;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile menu enhancements */
.mobile-menu-item {
    position: relative;
    overflow: hidden;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mobile-menu-item:hover::before {
    left: 100%;
}

/* Mobile hamburger animation */
.hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile touch optimizations */
@media (max-width: 640px) {
    /* Ensure minimum touch target size */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve touch feedback */
    .btn-primary, .btn-secondary {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
    
    /* Prevent zoom on input focus */
    input, textarea, select {
        font-size: 16px;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better mobile spacing */
    .mobile-spacing {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Enhanced mobile menu styling */
    .mobile-menu {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Mobile menu item animations */
    .mobile-menu-item {
        transform: translateX(-20px);
        opacity: 0;
        animation: slideInFromLeft 0.3s ease-out forwards;
    }
    
    .mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
    .mobile-menu-item:nth-child(2) { animation-delay: 0.2s; }
    .mobile-menu-item:nth-child(3) { animation-delay: 0.3s; }
    .mobile-menu-item:nth-child(4) { animation-delay: 0.4s; }
    .mobile-menu-item:nth-child(5) { animation-delay: 0.5s; }
}

@keyframes slideInFromLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
