/* ====================
   FOOTER STYLES
   ==================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 0;
    position: relative;
}

.dark-theme .footer {
    background: var(--dark-alt);
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-column p {
    color: #adb5bd;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon:nth-child(1):hover { background: #0077B5; } /* LinkedIn */
.social-icon:nth-child(2):hover { background: #1DA1F2; } /* Twitter */
.social-icon:nth-child(3):hover { 
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
} /* Instagram */
.social-icon:nth-child(4):hover { background: #333; } /* GitHub */
.social-icon:nth-child(5):hover { background: #25D366; } /* WhatsApp */

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #adb5bd;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #adb5bd;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .newsletter-form {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}