/* ===== FOOTER STYLES ===== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Footer Sections */
.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
    font-weight: 600;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

/* About Section */
.footer-about p {
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-links i {
    width: 20px;
    font-size: 0.9rem;
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-contact i {
    color: #3498db;
    font-size: 1.2rem;
    width: 24px;
    margin-top: 2px;
}

.footer-contact span {
    color: #bdc3c7;
    line-height: 1.5;
}

/* Social Media */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
    color: #95a5a6;
}

.newsletter-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}

.newsletter-form button:hover {
    background: #2980b9;
}

/* Copyright */
.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 25px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.copyright {
    margin-bottom: 10px;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.back-to-top.visible {
    display: flex;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .newsletter-form button {
        padding: 10px 20px;
    }
}

/* ===== FOOTER VARIATIONS ===== */

/* Light Theme Footer */
.footer-light {
    background: #f8f9fa;
    color: #333;
}

.footer-light .footer-section h3 {
    color: #2c3e50;
}

.footer-light .footer-section h3::after {
    background: #0073b1;
}

.footer-light .footer-about p,
.footer-light .footer-links a,
.footer-light .footer-contact span {
    color: #666;
}

.footer-light .footer-links a:hover {
    color: #0073b1;
}

.footer-light .social-links a {
    background: #e9ecef;
    color: #555;
}

.footer-light .social-links a:hover {
    background: #0073b1;
    color: white;
}

.footer-light .footer-bottom {
    border-top-color: #dee2e6;
    color: #666;
}

/* Minimal Footer */
.footer-minimal {
    padding: 40px 0 20px;
    background: #34495e;
}

.footer-minimal .footer-container {
    text-align: center;
}

.footer-minimal .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-minimal .social-links {
    justify-content: center;
}

/* Fixed Footer */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* With animation */
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}