/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 0 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Company Info Section */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: var(--transition);
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.footer-logo-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary-red);
    font-family: var(--font-secondary);
    line-height: 1.1;
    letter-spacing: 6px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-300);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Footer Titles */
.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1rem 0;
    font-family: var(--font-secondary);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 1px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--primary-red);
    font-weight: bold;
}

.footer-link:hover {
    color: var(--white);
    padding-left: 1rem;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-item svg {
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-value:hover {
    color: var(--primary-red);
}

/* Footer Newsletter */
.footer-newsletter {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-family: var(--font-secondary);
}

.newsletter-header p {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    flex: 1;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: var(--gray-400);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.legal-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.legal-link:hover {
    color: var(--primary-red);
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-red);
    transition: var(--transition);
}

.legal-link:hover::after {
    width: 100%;
}

/* Developed by Section */
.footer-developed {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.developed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.developed-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.developed-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.developed-accent {
    color: var(--primary-red);
    font-weight: 700;
}

.developed-link:hover {
    transform: translateY(-1px);
}

.developed-link:hover .developed-accent {
    color: var(--primary-red-light);
}

.developed-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 2rem;
    color: var(--primary-red);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.developed-badge:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--primary-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.developed-badge svg {
    color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-link {
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item svg {
        margin-top: 0;
    }
    
    .footer-newsletter {
        padding: 2rem 0;
    }
    
    .newsletter-header h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .developed-text {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-logo-text h3 {
        font-size: 1.25rem;
    }
    
    .footer-social {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation for footer elements */
.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; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive elements */
.footer-section:hover .footer-title::after {
    width: 60px;
    transition: width 0.3s ease;
}

.footer-link:hover {
    transform: translateX(5px);
}

.contact-item:hover svg {
    transform: scale(1.1);
    color: var(--primary-red-light);
}

/* Focus states for accessibility */
.footer-link:focus,
.social-link:focus,
.legal-link:focus,
.contact-value:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .footer {
        background: var(--white) !important;
        color: var(--primary-black) !important;
        box-shadow: none !important;
    }
    
    .footer-title,
    .footer-logo-text h3 {
        color: var(--primary-black) !important;
    }
    
    .footer-link,
    .contact-value {
        color: var(--primary-black) !important;
    }
    
    .social-link {
        display: none;
    }
}
