/**
 * CSS Fixes for Footer and Browser Compatibility
 * Addresses CSS parsing warnings and provides modern footer styling
 */

/* Suppress CSS parsing warnings for vendor prefixes */
* {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Modern Footer Styles - Enhanced Version */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 4rem;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 50%, #dc3545 100%);
    z-index: 1;
}

.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Brand Section */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.footer-subtitle {
    font-size: 1.1rem;
    color: #dc3545;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer Titles */
.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #dc3545;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #dc3545;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 10px;
}

/* Contact Section */
.footer-contact {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cccccc;
    font-size: 0.95rem;
}

.contact-item i {
    color: #dc3545;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.contact-item span {
    transition: color 0.3s ease;
}

.contact-item:hover span {
    color: #ffffff;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon i {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

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

/* Platform-specific hover effects */
.social-icon.facebook:hover {
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.3);
}

.social-icon.twitter:hover {
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3);
}

.social-icon.instagram:hover {
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.social-icon.youtube:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    margin: 3rem 0 2rem;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 1.5rem;
}

.copyright-text {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
    text-transform: lowercase;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo {
        font-size: 2rem;
    }
    
    .footer-subtitle {
        font-size: 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        font-size: 1.8rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-brand,
.footer-title,
.footer-links,
.footer-contact,
.social-icons {
    animation: fadeInUp 0.6s ease-out;
}

.footer-title {
    animation-delay: 0.1s;
}

.footer-links {
    animation-delay: 0.2s;
}

.footer-contact {
    animation-delay: 0.3s;
}

.social-icons {
    animation-delay: 0.4s;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-footer {
        background: #000000;
        border-top: 2px solid #ffffff;
    }
    
    .footer-logo {
        color: #ffffff;
    }
    
    .footer-subtitle {
        color: #ff0000;
    }
    
    .footer-title {
        color: #ffffff;
    }
    
    .footer-links a {
        color: #ffffff;
    }
    
    .footer-links a:hover {
        color: #ff0000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modern-footer *,
    .modern-footer *::before,
    .modern-footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .social-icon:hover {
        transform: none;
    }
}
