/* TraPay Enhanced Footer CSS */

/* Enhanced Background Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(-180deg); }
}

.animate-float {
    animation: float 15s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 20s ease-in-out infinite;
    animation-delay: -10s;
}

/* Footer Enhanced Background */
.footer-bg-enhanced {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

/* Footer Columns Animation */
.footer-column {
    opacity: 0;
    transform: translateY(30px);
    animation: footerColumnSlideUp 0.8s ease-out forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

@keyframes footerColumnSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Service Items */
.service-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.service-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Service Icons Enhanced */
.service-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover .service-icon::after {
    opacity: 1;
}

/* Contact Cards Enhancement */
.contact-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Working Hours Enhanced */
.working-hours {
    background: linear-gradient(135deg, rgba(13, 62, 126, 0.2), rgba(59, 130, 246, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.working-hours:hover {
    background: linear-gradient(135deg, rgba(13, 62, 126, 0.3), rgba(59, 130, 246, 0.3));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Newsletter Enhancement */
/* .newsletter-form input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
} */
/* 
.newsletter-form button {
    position: relative;
    overflow: hidden;
}

.newsletter-form button::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 ease;
}

.newsletter-form button:hover::before {
    left: 100%;
} */

/* Social Links Enhanced */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

/* Footer Links Enhancement */
.footer-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--trapay-accent);
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

/* Stats Row Enhancement */
.stats-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-row:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Stat Items Animation */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item [data-count] {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat-item:hover [data-count] {
    background: linear-gradient(135deg, var(--trapay-accent), var(--trapay-warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

/* Footer Title Enhancement */
.footer-title {
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--trapay-accent), var(--trapay-warning));
    border-radius: 1px;
}

/* Copyright Enhancement */
.footer-copyright {
    backdrop-filter: blur(20px);
}

/* Mobile Typography Fixes */
@media (max-width: 768px) {
    /* Fix header typography */
    .footer-enhanced h2 {
        font-size: 1.75rem !important; /* Reduce from 3xl to smaller */
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .footer-enhanced p {
        font-size: 1rem !important; /* Reduce subtitle size */
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix footer titles */
    .footer-title {
        font-size: 1rem !important; /* Reduce from lg to base */
        margin-bottom: 1rem !important;
    }
    
    /* Fix service items */
    .service-item span {
        font-size: 0.875rem !important; /* sm size */
    }
    
    .service-item p {
        font-size: 0.75rem !important; /* xs size */
    }
    
    /* Fix footer links */
    .footer-link {
        font-size: 0.875rem !important;
        padding: 0.375rem 0 !important;
    }
    
    /* Fix contact cards */
    .contact-card span {
        font-size: 0.875rem !important;
    }
    
    .contact-card p {
        font-size: 0.75rem !important;
    }
    
    /* Fix trust badges */
    .footer-enhanced .inline-flex {
        flex-wrap: wrap;
        gap: 0.5rem !important;
        justify-content: center;
    }
    
    .footer-enhanced .inline-flex span {
        font-size: 0.75rem !important;
    }
    
    /* Fix newsletter section */
    /* .newsletter-form input {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .newsletter-form button {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .newsletter-form button span {
        font-size: 0.875rem !important;
    }
     */
    /* Animation delays */
    .footer-column {
        animation-delay: 0s !important;
    }
    
    .service-item:hover {
        transform: translateX(2px);
    }
    
    .contact-card:hover {
        transform: translateY(-2px);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    /* Even smaller fonts for very small screens */
    .footer-enhanced h2 {
        font-size: 1.5rem !important;
    }
    
    .footer-enhanced p {
        font-size: 0.875rem !important;
    }
    
    .footer-title {
        font-size: 0.875rem !important;
    }
    
    /* Reduce padding */
    .trapay-container {
        padding: 1rem !important;
    }
    
    .footer-enhanced .pt-40 {
        padding-top: 12rem !important; /* Keep adequate top padding for CTA overlap */
    }
    
    .footer-enhanced .pb-20 {
        padding-bottom: 3rem !important;
    }
    
    /* Make trust badges smaller */
    .footer-enhanced .inline-flex span {
        font-size: 0.625rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Loading Animation */
.footer-enhanced {
    opacity: 0;
    animation: footerFadeIn 1s ease-out forwards;
}

@keyframes footerFadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Animation */
.footer-enhanced.animate-in .footer-column {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility Enhancements */
.service-item:focus,
.footer-link:focus,
.contact-card:focus,
.social-link:focus {
    outline: 2px solid var(--trapay-accent);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-item,
    .contact-card,
    .working-hours,
    .stats-row {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed,
    .footer-column {
        animation: none;
    }

    .service-item,
    .contact-card,
    .social-link,
    .footer-link {
        transition: none;
    }
}