/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #414042 0%, #2a2a2b 100%);
    color: #fff;
    padding: 70px 20px 30px;
    margin-top: 80px;
    position: relative;
}

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

.footer-section h3 {
    color: #ff2c30;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff2c30;
    border-radius: 2px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.footer-section p i {
    color: #ff2c30;
    width: 20px;
    margin-right: 10px;
}

.footer-section a:hover {
    color: #ff2c30;
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    margin-bottom: 0;
}

.social-links a:hover {
    background: #ff2c30;
    transform: translateY(-5px);
}

.social-links a i {
    font-size: 18px;
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff2c30, #d91d21);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(255, 44, 48, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 44, 48, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    transition: transform 0.3s;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* Pulse animation when visible */
.back-to-top.visible {
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(255, 44, 48, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 44, 48, 0.6);
    }
    100% {
        box-shadow: 0 5px 20px rgba(255, 44, 48, 0.4);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    footer {
        padding: 50px 20px 25px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }

    .footer-bottom {
        margin-top: 40px;
        padding-top: 25px;
        font-size: 12px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 15px 20px;
        margin-top: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

    .footer-section a:hover {
        transform: none;
    }

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

    .footer-bottom {
        font-size: 11px;
        line-height: 1.6;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}