/* Footer Styles */
.main-footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    width: 90%;
    margin: 0 auto;
}

/* Brand Section */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #4f46e5; /* Using your primary accent[cite: 11] */
}
.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Links & Headers */
.footer-links h4, 
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Contact Info[cite: 15] */
.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact a:hover { color: var(--primary); }

/* Bottom Bar[cite: 15] */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-flex p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Back to Top Button[cite: 15] */
.back-to-top {
    background: var(--primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

/* Mobile Responsiveness[cite: 12, 15] */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bottom-flex {
        flex-direction: column-reverse;
        gap: 20px;
    }
}