/* Footer Styling */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    position: relative;
    animation: fadeIn 1s ease-in-out forwards;
}

footer p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Scroll-to-top button styling */
.scroll-to-top {
    background-color: #FF5722;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.5rem;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: buttonFadeIn 0.8s ease forwards;
}

.scroll-to-top:hover {
    background-color: #FF7043;
    transform: scale(1.1);
}

/* Animation for Footer and Scroll-to-top Button */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================
   MEDIA QUERIES
   ========================== */

/* 1. Mobile Devices: 320px to 480px */
@media (min-width: 320px) and (max-width: 480px) {
    footer {
        padding: 15px;
        font-size: 0.9rem;
    }

    .scroll-to-top {
        padding: 8px;
        font-size: 1.2rem;
        bottom: 10px;
        right: 10px;
    }
}

/* 2. Tablets/iPads: 480px to 768px */
@media (min-width: 480px) and (max-width: 768px) {
    footer {
        padding: 18px;
        font-size: 1rem;
    }

    .scroll-to-top {
        padding: 9px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}

/* 3. Laptops/Small Screens: 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    footer {
        padding: 20px;
        font-size: 1.1rem;
    }

    .scroll-to-top {
        padding: 10px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* 4. Desktops/Large Screens: 1024px to 1200px */
@media (min-width: 1024px) and (max-width: 1200px) {
    footer {
        padding: 20px;
        font-size: 1.1rem;
    }

    .scroll-to-top {
        padding: 12px;
        font-size: 1.7rem;
        bottom: 30px;
        right: 30px;
    }
}

/* 5. Extra-Large Devices: 1200px and above */
@media (min-width: 1200px) {
    footer {
        padding: 25px;
        font-size: 1.2rem;
    }

    .scroll-to-top {
        padding: 15px;
        font-size: 2rem;
        bottom: 40px;
        right: 40px;
    }
}