@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

* {
    padding: 0;
    margin: 0;
    transition: all 0.3s ease-in-out;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #060c21;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 1000px;
}

a {
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.logo {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    margin-top: 8%;
}

.logoContainer {
    margin: 1rem 0;
    position: relative;
    height: 225px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.link {
    height: 2.75rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin: 0.5rem 0;
    border-radius: 15px;
}

.links {
    display: flex;
    flex-direction: column;
    width: 700px;
    justify-content: space-around;
    flex: 1;
}

.links-row {
    display: flex;
    flex-direction: row;
    width: 700px;
    justify-content: space-around;
    flex: 1;
}

.link img {
    height: 2rem;
    aspect-ratio: 1;
}

.link span {
    width: 80%;
    text-align: center;
}

.linkIcon {
    height: 2rem !important;
    aspect-ratio: 1;
}

.link:nth-child(1) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #e8b1e4;
    color: #ffffff;
}

.link:nth-child(2) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #BFACE0;
    color: white;
}

.link:nth-child(3) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #A084CA;
    color: white;
}

.link:nth-child(4) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #645CAA;
    color: white;
}

.link:nth-child(5) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #4b4585;
    color: white;
}

.link:nth-child(6) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #413b71;
    color: white;
}

.link:nth-child(7) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #352e5c;
    color: white;
}

.link:nth-child(8) {
    background: linear-gradient(90deg, rgba(241, 241, 241, 0.1) 30%, rgba(113, 113, 113, 0.3) 100%), #211d38;
    color: white;
}

.link:hover {
    filter: drop-shadow(0px 5px 1px rgba(0, 0, 0, 0.2));
    transform: scale(1.05);
}

.link>* {
    transition: all 0.3s ease-in-out;
    transition-delay: 0.1s;
}

.link:hover>* {
    transform: scale(1.1);
    filter: drop-shadow(0px 5px 1px rgba(0, 0, 0, 0.2));
}

.link.smaller-image img {
    height: 1.2rem; /* Adjust the height as needed */
    aspect-ratio: 1;
}

.greetings {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.about {
    font-size: 100%;
    font-weight: 500;
    min-height: 3em;
    max-width: 600px;
    padding: 5px;
    margin-bottom: 2rem;
    color: white;
}

/* Form CSS below */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.form-wrapper {
    background-color: #d9d9d9;
    padding: 20px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    width: 600px;
    max-width: 90%;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-col label {
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 600;
}

.form-col input,
.form-col textarea {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.form-col input::placeholder,
.form-col textarea::placeholder {
    color: #888;
}

.form-container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 1rem;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 0.5rem;
    font-size: 1rem;
    resize: vertical; /* Allow resizing in vertical direction only */
}

.form-row {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

.btnx {
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: #645CAA;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btnx:hover {
    background-color: #413b71;
}

.projects {
    display: none;
    flex-direction: column;
    width: 700px;
    justify-content: space-around;
    flex: 1;
}

@media (max-width: 800px) {
    body {
        background-size: 100%;
        font-size: 90%;
    }

    .about {
        margin-bottom: 0;
    }

    .form-container {
        max-width: 90%;
    }

    .link span {
        width: 70%;
        text-align: center;
        justify-content: center;
    }

    .linkIcon {
        display: none;
    }

    .links {
        max-width: 90%;
    }

    .links-row {
        max-width: 90%;
        flex-direction: column;
    }
}

@media (max-height: 600px) {
    body {
        background-size: 100%;
    }

    .form-container {
        max-width: 90%;
    }

    .link span {
        display: none;
        width: 70%;
        text-align: center;
        justify-content: center;
    }

    .linkIcon {
        display: none;
    }

    .links {
        max-width: 90%;
        flex-direction: row;
    }

    .links-row {
        flex-direction: column;
        max-width: 90%;
    }
}
