.top-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* background-image: linear-gradient(rgb(0, 0, 0), rgb(4, 30, 45) 60%, rgb(39, 24, 53)); */
    min-height: 46rem;
    /* background-color: green; */
    background-color: transparent;
    padding: 10px;
    z-index: 2;
}

.intro-container {
    display: flex;
    width: 70rem;
    /* background-image: linear-gradient(rgb(0, 0, 0), rgb(4, 30, 45) 60%, rgb(39, 24, 53)); */
    border-radius: 12px;
    background-color: transparent;
    margin-left: 2em;
    z-index: 2;
    align-items: start;
    min-height: 25rem;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Inter";
    font-size: 2em;
    font-weight: 600;
    /* width: 60%; */
    line-height: 1.65em;
    padding: 1em;
    min-height: 100%;
    overflow: hidden;
}

.welcome-intro {
    display: block;
}

.interest-intro {
    font-weight: 400;
    font-size: 0.8em;
}

.photo-container {
    /* background-image: linear-gradient(45deg, black, #0b2121, #440628);
    display: flex; */
    justify-content: center;
    align-items: center;
    width: 35rem;
    aspect-ratio: 1/1;
    border-radius: 15px;
    z-index: 20;
    transition: all 0.3s ease;
    /* background-color: red; */
}


.photo {
    width: 23rem;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    object-position: center top;
    /* box-shadow: 5px 5px 9px rgba(0,0,0,0.5); */
    transition: all 0.3s ease;
}

.photo:hover {
    /* Scales based on image no unit */
    transform: scale(1.05);
}


.featured-heading {
    font-size: 2rem;
    font-family: Inter;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    color: var(--text-color);
}

.featured-container {
    padding: 30px;
    /* background-image: linear-gradient(rgb(20, 19, 19), rgb(48, 6, 6), rgb(6, 53, 79), rgb(0, 5, 14)); */
    min-height: 80rem;
    z-index: 9000;
    max-height: 130rem;
}

/* Controls all Projects items */
.projects-container {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    width: 80%;
    border-radius: 32px;
    padding: 40px;
    gap: 3em;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px 0 var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

/* lower portion of featured container */
.bottom {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}


/* Controls single Project item */
.project-item {
    display: flex;
    align-items: center;
    min-height: 12rem;
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding-left: 25px;
    padding-top: 15px;
    padding-right: 25px;
    padding-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-item:hover {
    /* Enlarges the project item*/
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1);
}

.project-img-container {
    display: flex;
    flex-direction: column;
    height: 78%;
    margin-right: 1.5rem;
    margin-left: 1rem;
}

.source-code-btn {
    display: flex;
    font-family: Inter;
    font-weight: 400;
    font-size: 0.9em;
    text-decoration: none;
    text-align: left;
    margin-top: 8px;
}

.project-img {
    width: 15rem;
    border-radius: 3px;
    object-fit: contain;
    object-position: center;
}

.project-desc {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 79.5%;
    width: 100%;
    /* background-color: lightblue; */
    margin-right: 1rem;
}

.project-title {
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-detail {
    font-size: 1em;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

@media (max-width: 1100px) {
    .connect-container {
        flex-direction: column;
        padding: 20px;
    }

    .project-img-container {
        align-items: flex-start;
    }

    .project-item {
        padding-top: 0;
        padding-bottom: 50px;
    }

    .email-container {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 1300px) {
    .photo {
        width: 26vw;
    }
}


@media (max-width: 900px) {
    .top-flex {
        flex-direction: column;
        min-height: auto;
        /* 1. Add this to remove the 46rem min-height from desktop */
    }

    .intro-container {
        width: 100%;
        height: auto;
        /* 2. Change from 15em to auto */
        min-height: auto;
        /* 3. Add this to override the desktop 25rem min-height */
        margin-left: 0;
        margin: 0;
    }

    .photo-container {
        height: 25em;
        width: 100%;
        display: flex;
        margin-top: 0;
        justify-content: center;
        align-items: center;
        padding-bottom: 2rem;
        /* Add a little bottom padding if it sits too close to Featured */
    }

    .intro {
        display: flex;
        height: auto;
        flex-shrink: 0;
        font-size: 2.9vmax;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    #typewriter-container.intro {
        margin: 0;
    }

    .welcome-intro {
        width: 100%;
        text-align: center;
    }

    #typewriter-container {
        margin-bottom: 0;
    }

    .photo {
        width: 18em;
    }

    .featured-container {
        height: auto;
        min-height: auto;
        max-height: none;
        padding-bottom: 2rem;
    }

    .featured-heading {
        font-size: 1.8rem;
    }

    .projects-container {
        margin: 20px auto;
        width: 100%;
        padding: 20px;
        gap: 2em;
    }

    .project-item {
        flex-direction: column-reverse;
        height: auto;
        justify-content: center;
        align-items: center;
        /* background-color: orange; */
        min-height: 25em;
        padding-top: 20px;
    }

    .project-img-container {
        display: flex;
        flex-direction: column;
        margin: 0;
        height: auto;
        /* background-color: red; */
    }

    .project-img {
        min-width: 16em;
    }

    .project-desc {
        height: auto;
        min-height: 10em;
        padding: 10px;
        margin-bottom: 10px;
        width: 100%;
    }

    .project-title {
        font-size: 1.5em;
    }

    .project-detail {
        font-size: 1em;
        height: 100%;
        line-height: 1.5em;
        margin-top: 5px;
        margin-bottom: 20px;
    }

    .connect-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 40px 20px;
        width: 100%;
        margin-top: 2rem;
        position: relative;
    }

    .social-container {
        justify-content: center;
        width: 100%;
    }

    .email-container {
        justify-content: center;
        width: 100%;
        height: auto;
    }

    .email {
        text-align: center;
        font-size: 1.1em;
    }
}

@media (max-width: 450px) {
    .intro {
        font-size: 1.7em;
    }

    .project-detail {
        font-size: 1em;
    }
}

@media (max-width: 400px) {
    .intro {
        font-size: 1.3em;
    }

    .project-title {
        font-size: 20px;
    }

    .project-img {
        height: 70%;
    }

    .project-detail {
        font-size: 13px;
    }

    .project-item {
        height: auto;
        padding: 20px;
        padding-bottom: 0;
    }

    .source-code-btn {
        font-size: 15px;
        padding-left: 20px;
    }
}

/* Prevents scrolling when menu is toggled */
body.no-scroll {
    overflow: hidden;
}

/* Socials Section */
.connect-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* background-color: rgb(22, 18, 18); */

    /* Important for changing height of expanded and shrinked view */
    min-height: 10rem;
}

.social-container {
    display: flex;
    /* background-color: lightblue; */
    gap: 20px;
    color: black
}

.social-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.2em;
    width: 3.2em;
    border-radius: 50%;
    border: 2px solid;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.social-container i {
    font-size: 1.5em;
}

.social-container a:hover:first-child {
    color: #0072b1;
    box-shadow: 0 0 25px #0072b1;
    border-color: #0072b1;
}

.social-container a:hover:nth-child(2) {
    color: rgb(115, 49, 185);
    box-shadow: 0 0 25px rgb(115, 49, 185);
    border-color: rgb(115, 49, 185);
}

.social-container a:hover:last-child {
    color: green;
    box-shadow: 0 0 25px green;
    border-color: green;
}

.social-container a:hover:nth-child(3) {
    color: #c1558b;
    box-shadow: 0 0 25px #c1558b;
    border-color: #c1558b
}

.email-container {
    display: flex;
    align-items: center;
    /* background-color: blue; */
    height: 4rem;
    /* padding: 1em;
    border-radius: 10px;
    width:auto; */
}

.email {
    font-family: 'Google Sans';
    letter-spacing: 1.5px;
    font-size: 1.3em;
}