/* Footer Styles */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.125rem;
}

/* Footer Titles */
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.125rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item span {
    color: var(--gray-300);
}

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

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

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-links a::before {
    content: '→';
    font-size: 0.875rem;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Newsletter */
.newsletter-text {
    color: var(--gray-300);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-700);
    border-radius: var(--border-radius);
    background: var(--gray-800);
    color: var(--white);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: var(--gray-400);
}

.newsletter-input:focus {
    border-color: var(--primary-color);
    background: var(--gray-700);
}

.newsletter-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.newsletter-btn i {
    font-size: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.company-info {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.footer-links-bottom {
    display: flex;
    gap: 2rem;
}

.footer-links-bottom a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-item {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
}

/* Logo Image Fallback for Footer */
.footer-logo-img[alt]::after {
    content: attr(alt);
    display: block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

/* Animation for Footer Elements */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(2) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.3s;
}