/* Footer Styles */
:root {
    --footer-bg: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --footer-text: #d1d5db;
    --footer-text-secondary: #9ca3af;
    --footer-text-hover: #ffffff;
    --footer-border: #374151;
    --footer-accent: #f53939;
    --footer-secondary: #fb912f;
    --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--footer-accent), var(--footer-secondary), transparent);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: var(--footer-transition);
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--footer-transition);
}

.footer-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(245, 57, 57, 0.3));
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--footer-text-hover);
    letter-spacing: -0.5px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--footer-text-secondary);
    margin-bottom: 32px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: var(--footer-transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 57, 57, 0.1), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: var(--footer-text-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 57, 57, 0.3);
}

.social-icon {
    font-size: 20px;
    z-index: 1;
    position: relative;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--footer-text-hover);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-accent), var(--footer-secondary));
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: var(--footer-transition);
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--footer-text-hover);
    transform: translateX(4px);
}

.footer-link:hover::before {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--footer-text-secondary);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links li {
    margin: 0;
}

.footer-bottom-link {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--footer-transition);
}

.footer-bottom-link:hover {
    color: var(--footer-text-hover);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 0;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 0 16px;
    }
    
    .footer-container {
        padding: 0 12px;
    }
    
    .footer-brand-name {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .footer-section-title {
        font-size: 16px;
    }
    
    .footer-link {
        font-size: 14px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-icon {
        font-size: 18px;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }


/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .footer {
        border-top: 2px solid var(--footer-accent);
    }
    
    .footer-link {
        text-decoration: underline;
    }
    
    .footer-link:hover {
        text-decoration: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .footer-section {
        animation: none;
    }
    
    .social-link::before,
    .footer-link::before {
        transition: none;
    }
}
