* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Wix Madefor Text", sans-serif;
}

html {
    scroll-behavior: smooth;
}

.nav-container {
    background-color: #f7f4ed;
    color: #FFF;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: 700;
    font-size: 2rem;
    user-select: none;
    color: #072851;
}

.nav-bar-contents {
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 2rem, 65rem);
    margin: 0 auto
}

.nav-items {
    display: flex;
    column-gap: 1.5rem;
}

.nav-items>li {
    list-style: none;
    user-select: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #4a4a4a;
    cursor: pointer;
}


#contact-me {
    background-color: #094fa4;
    border-radius: 1rem;
    color: #FFF;
}

#contact-me:hover {
    background-color: #0d5dbe;
}

.section-container {
    width: min(100% - 2rem, 65rem);
    margin: 0 auto;
}

.padded-section-container {
    padding: 4rem 0;
}

#hero {
    height: 45rem;
    background: linear-gradient(rgba(7, 40, 81, 0.9), rgba(9, 79, 164, 0.9)),
        url(hero-img.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}


.hero-greeting {
    font-size: 1.25rem;
    color: #EFEFEF;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
}


.hero-title {
    font-size: 5rem;
    color: #FFF;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #EEE;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-cta {
    display: flex;
    column-gap: 2rem;
    justify-content: center;
}

.hero-cta-button {
    width: fit-content;
    padding: 0.5rem 0.75rem;
    background: none;
    border: 1px solid #f7f4ed;
    color: #f7f4ed;
    font-weight: 500;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 150ms;
}

.hero-cta-button:hover {
    transform: scale(102.5%);
}

#hero-view-work-cta:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#hero-contact-cta {
    background-color: #CFB065;
    border-color: #CFB065;
    color: #000;
}

#hero-contact-cta:hover {
    border-color: rgb(218, 187, 112);
    background-color: rgb(218, 187, 112);
}

#about {
    background-color: #f7f4ed;
}

.about-heading {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-para {
    font-size: 1rem;
    line-height: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.tech-profs-sub-heading {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.technologies-grid {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    row-gap: 1.5rem;
}

.technology-card-container {
    width: 9rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.technology-card {
    width: fit-content;
    padding: 0.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 100ms;
}

.technology-card:hover {
    transform: scale(1.05);
}

.technology-card>img {
    width: 3.5rem;
    height: 3.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.technology-card>span {
    display: block;
    text-align: center;
    background-color: #072851;
    width: fit-content;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    user-select: none;
    font-size: 0.95rem;
}

.text-light {
    color: #FFF;
}

.text-dark {
    color: #000;
}


#work {
    background-color: #f7f4ed;
}


.contact-heading {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-para {
    font-size: 1rem;
    line-height: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-email-link {
    text-decoration: none;
    font-weight: 600;
    color: #094fa4;
}

.contact-form {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
}

.contact-form-short-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.contact-form-short-input {
    width: calc(50% - 0.5rem);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: none;
    font-size: 1rem;
}

.contact-form-message {
    width: 100%;
    resize: none;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border: none;
    height: 8rem;
    font-size: 0.85rem;
}

#contact-form-send {
    background-color: #094fa4;
    border: none;
    border-radius: 1rem;
    color: #FFF;
    padding: 0.75rem 5rem;
    cursor: pointer;
    width: fit-content;
}

#contact-form-error-text {
    color: #f61818;
}

#contact-form-send:hover {
    background-color: #0d5dbe;
}

#contact {
    background-color: #f7f4ed;
}




#modal-darken {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    opacity: 0;
    background-color: #000;
    pointer-events: none;
}

.show-darkener {
    pointer-events: all !important;
    opacity: 0.4 !important;
    transition: opacity 200ms;
}

.open-modal {
    display: block !important;
}

.modal {
    /*width: 30rem;*/
    width: min(calc(100% - 3rem), 30rem);
    position: fixed;
    background-color: #FFF;
    top: 10rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.5rem;
    padding: 4rem 2.5rem 1rem 2.5rem;
    display: none;
    z-index: 1002;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.3);
}

.modal::before {
    content: "";
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #67f967 0%, #309630 100%);
    height: 0.75rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.warning-modal::before {
    background: linear-gradient(90deg, #fe9c93 0%, #fc635a 100%) !important;
}

.modal-close-icon-container {
    width: 1.8rem;
    height: 1.8rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 0.5rem;
}

.modal-icon-container {
    margin: 0 auto 1rem auto;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background: linear-gradient(225deg, #67f967 0%, #309630 100%);
}

.modal-icon-container-warning {
    background: linear-gradient(225deg, #fe9c93 0%, #fc635a 100%);
}

.alerts-icon {
    width: 100%;
    height: 100%;
    filter: invert(99%) sepia(0%) saturate(7500%) hue-rotate(239deg) brightness(101%) contrast(105%);
    padding: 0.75rem;
}

.close-icon {
    width: 100%;
    height: 100%;
    filter: invert(93%) sepia(11%) saturate(236%) hue-rotate(150deg) brightness(82%) contrast(90%);
}

.modal-actions {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
    margin-top: 0.5rem;
}

.modal-close {
    padding: 0.4rem 1.25rem;
    font-size: 0.8rem;
    color: #5d8ca9;
    border: none;
    border-radius: 0.25rem;
    background-color: #fbfbfb;
    border: #5d8ca9 solid 1px;
    cursor: pointer;
}

.modal-close:hover {
    background-color: #efefef;
}

.modal-title-text {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-message-text {
    font-weight: 300;
    font-size: 1rem;
    text-align: center;
    display: block;
    color: #555;
    margin-bottom: 2.5rem;
}





@media only screen and (max-width: 700px) {
    .nav-bar-contents {
        justify-content: center;
    }

    .nav {
        display: none;
    }
}

@media only screen and (max-width: 780px) {
    .technologies-grid {
        grid-template-columns: auto auto auto;
    }
}

@media only screen and (max-width: 500px) {
    .technologies-grid {
        grid-template-columns: auto auto auto auto;
    }

    .technology-card-container {
        grid-column: span 2;
    }

    .technology-card-container:nth-last-child(1):nth-child(odd) {
        grid-column: 2 / span 2;
    }
}