* {
    padding: 0;
    margin: 0;
}

.footer-main {
    display: flex;
    background-color: #323232;
    padding: 50px 200px 50px 200px;
}



#footer-set1,
#footer-set2,
#footer-set3 {
    width: 30%;
}

.final-footer{
    display: flex;
    width: 100%;
    gap: 350px;
    justify-content: space-between;
}

#final-footer-3{
    text-align: right;
}

.footer-set {
    display: flex;
    flex-direction: column;
}

#logo {
    width: 400px;
    height: auto;
    margin: 0 0 10px 0;
}

/* Prefer a class for footer logos so header logos aren't affected */
.footer-logo {
    width: 400px;
    height: auto;
    margin: 0 0 10px 0;
    max-width: 100%;
    display: block;
}

.description {
    color: #e7e7e7;
    font-size: 16px;
    line-height: 27px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    text-shadow: 0 0 1px #e7e7e7;
}

.footer-set-title {
    font-size: 20px;
    line-height: 1;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0 0 19px 0;
}

.contact-details-text {
    color: #e7e7e7;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    font-weight: 500;
}

#email {
    background: #fff;
    font-size: 16px;
    line-height: 25px;
    border: 1px solid #e3e6ea;
    color: #7b7b7b;
    padding: 5px 10px 5px 10px;
    font-family: Roboto, sans-serif;
    border-radius: 3px;
    width: 100%;
    max-width: 316px;
    height: 49px;
    position: relative;
}

#touch-button {
    background-color: #46af6f;
    color: white;
    align-items: center;
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    padding: 10px 27px 10px;
    width: 200px;
    height: 52px;
    letter-spacing: 0.04em;
    font-family: Poppins, sans-serif;
    border: none;
    margin-top: 15px;
}

.contact-details-icon {
    width: 15px;
    height: auto;
}

.details {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
    font-family: Roboto, sans-serif;
}

.socialicon {
    width: 14px;
    height: auto;
    filter: invert(100%);
}

.socialmedia {
    border-radius: 100%;
    background-color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    /* Adds smooth transition on hover */
}

.socialmediabox {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.socialmedia:hover {
    transform: scale(1.2);
    /* Scales up the icon on hover */
}

#footer-set2 {
    margin-left: 70px;
}

#location {
    margin-top: 25px;
}

.final-footer {
    font-family: "Roboto", sans-serif;
    display: flex;
    padding: 20px 0 20px 0;
}

#final-footer-1 {
    margin-left: 10%;
}

#final-footer-2 {
    margin-left: 30%;
}

#final-footer-3 {
    margin-left: 10%;
}

/* Responsive: tablet and below */
@media (max-width: 991px) {
    .footer-main {
        padding: 40px 60px;
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    #footer-set1,
    #footer-set2,
    #footer-set3 {
        width: 100%;
        margin-left: 0;
    }

    #logo {
        width: 300px;
        max-width: 100%;
    }

    .footer-logo {
        width: 300px;
        max-width: 100%;
    }

    .footer-set {
        align-items: flex-start;
    }

    .description {
        font-size: 15px;
        line-height: 24px;
    }

    .contact-details-text {
        font-size: 14px;
    }

    #email {
        max-width: 100%;
        width: 100%;
    }

    #touch-button {
        width: 100%;
        max-width: 320px;
        padding: 12px 16px;
        box-sizing: border-box;
    }

    .socialmediabox {
        justify-content: flex-start;
    }

    .final-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding-top: 10px;
    }

    #final-footer-1,
    #final-footer-2,
    #final-footer-3 {
        margin-left: 0;
    }
}

/* Responsive: phones */
@media (max-width: 480px) {
    .footer-main {
        padding: 30px 18px;
    }

    #logo {
        width: 200px;
    }

    .footer-logo {
        width: 200px;
    }

    .footer-set-title {
        font-size: 18px;
    }

    .description {
        font-size: 14px;
        line-height: 20px;
    }

    .contact-details-text {
        font-size: 13px;
    }

    .socialmedia {
        width: 36px;
        height: 36px;
    }

    .socialicon {
        width: 14px;
    }

    .details {
        gap: 8px;
    }

    #touch-button {
        width: 100%;
        padding: 10px;
        font-size: 15px;
    }

    #email {
        height: 44px;
    }
}

/* Final footer (credits) styling improvements */
.final-footer {
    background-color: #2b2b2b; /* slightly darker strip for separation */
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 14px 0;
}

.final-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 200px; /* match footer-main horizontal padding on large screens */
    box-sizing: border-box;
}

.final-footer .copyright {
    color: #cfcfcf;
    font-size: 14px;
}

.final-footer .credits {
    color: #d8d8d8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.credits-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.credits-link:hover,
.credits-link:focus {
    color: #46af6f;
    text-decoration: underline;
}

.heart {
    display: inline-block;
    color: #ff6b6b;
    transform: translateY(1px);
}

/* Smaller screens: center and stack the final footer content */
@media (max-width: 991px) {
    .final-footer-inner {
        padding: 0 60px;
        flex-direction: column;
        text-align: center;
    }
    .final-footer .credits {
        justify-content: center;
    }
}
