/* Base styles */
.contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
}

.contactcont {
    display: flex;
    flex-direction: column;
    padding-inline: 10%;
    padding-top: 2%;
}

.contact h2 {
    font-size: 6vw; /* Responsive heading based on viewport width */
    color: #F1F1F1;
    font-family: "Jomhuria", serif;
    letter-spacing: 0.5vw;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 2%;
}

.mails {
    font-size: 2vw;
    text-align: left;
    max-width: 60vw;
    color: #F1F1F1;
    display: flex;
    gap: 5%;
}

.mails section {
    display: flex;
    flex-direction: column;
}

.mails section h3 {
    font-family: "Jomhuria", serif;
    font-weight: 400;
    font-size: 2.5vw;
    letter-spacing: 5px;
}

.mails section a {
    font-family: "Antic Didone", serif;
    opacity: 50%;
    transition: 0.1s;
}

.mails section a:hover {
    opacity: 1;
    transition: 0.1s;
}

.copyright {
    color: #F1F1F1;
    text-align: right;
    font-family: monospace;
    font-size: 1vw;
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 5%;
    padding-bottom: 1%;
    padding-right: 5%;
}

/* Tablet view */
@media (max-width: 1024px) {
    .contact h2 {
        font-size: 10vw; /* Increase heading size slightly on medium screens */
    }
    .mails {
        flex-direction: column;
        font-size: 4rem;
        max-width: 80vw;
    }
    .mails section h3 {
        font-size: 8vw;
        letter-spacing: 3px;
    }

    .mails section a {
        font-size: 6vw;
        margin-bottom: 5%;
        margin-top: -2%;
    }

    .copyright {
        font-size: 1rem;
        text-align: center;
        padding-right: 0;
    }
}

/* Mobile view */
@media (max-width: 600px) {
    .contactcont {
        padding-inline: 5%;
        padding-top: 5%;
        align-items: center;
    }
    .contact h2 {
        font-size: 18vw;
        letter-spacing: 0.3vw;
    }
    .mails {
        max-width: 100%;
        border-left: 1px solid #F1F1F1;
        padding-left: 5%;
    }
    .mails section h3 {
        font-size: 10vw;
        letter-spacing: 2px;
        margin-bottom: 0;
    }
    .mails section a {
        font-size: 6vw;
        margin-bottom: 5%;
        margin-top: -5%;
    }
    .copyright {
        font-size: 0.5rem;
        text-align: center;
        padding-right: 0;
        margin-top: 10%;
        padding-bottom: 2%;
    }
}
