/* HERO STYLING */

.hero {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #000;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.hero .splash {
    box-shadow: 0 0 8em 8em #000000 inset;
    background-image: url(/imgs/index/hero/splash.PNG);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; 
    background-size: cover;
    background-position: center;
}

.hero-inner {
    height: calc(100vh - 4.55em);
    width: 100vw;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: min(1em, 2.1vh);
    user-select: none;
    margin-left: 5%;
    position: relative;
    z-index: 10;
}

.hero .avatar {
    height: 35em;
}

.hero .arrow-desktop {
    height: 3em;
    margin-bottom: 27em;
}

.hero .arrow-mobile {
    display: none;
}

.hero .text-container {
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    margin-left: 2em;
    margin-bottom: 20em;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: 4em;
    font-weight: 400;
}

.hero p {
    font-size: 1.5em;
    width: 35em;
    max-width: 80%;
    margin-bottom: .3em;
}

.hero .icons {
    font-size: 1.5em;
    display: flex;
    gap: .3em;
}

.hero .icons>* {
    height: 2em;
    width: 2em;
    display: block;
    border-radius: 1em;
    background-color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: translate .15s;
}

.hero .icons>*:hover {
    translate: 0 -.1em;
    color:#88a0bd;
}

.hero-bg {
    width: 100vw;
    height: 100%;
    font-size: 1.5em;
    color: #2F394D ;
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    word-wrap: break-word;
    pointer-events: none;
}

.text-container a{
    font-style: italic;
}

.currentpro:hover{
    text-decoration: underline;
    color: #88a0bd;
}

/* PROJECTS SECTION */

.projects {
    display: flex;
    justify-content: center;
}

.projects .wrapper {
    flex-direction: column;
}

.projects h1 {
    font-size: 2.2em;
    margin-top: 2.2em;
    margin-left: 1vw;
}

.projects .boxes {
    margin-top: 2em;
    margin-bottom: 8em;
    margin-left: 1vw;
    margin-right: 1vw;
    width: calc(100% - 2vw);
    height: 22em;
    font-family: 'Roboto Mono';
    font-size: min(1.05vw, 16px);
    display: flex;
    gap: 2em;
    user-select: none;
}

.projects .box {
    background-color: #6D7176;
    width: 100%;
    border-radius: 1.25em;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: scale .15s, box-shadow .15s;
}

.projects .box:hover {
    scale: 1.02;
    box-shadow: 0 0 2em .3em #272c3a;
}

.projects .ctg {
    width: 100%;
}

.projects .text {
    width: 100%;
    padding: .5em;
    height: 100%;
    margin-top: 0;
    padding-top: .6em;
    align-items: center;
    justify-content: space-between;
    display: flex;
    font-size: 1.4em;
}

.projects .text .text-stack {
    display: flex;
    flex-direction: column; 
    gap: 0.3em;             
    text-align: left;
}

.projects .text p {
    margin-left: .8em;
}

.projects .text i {
    margin-right: .8em;
}

.projects .genre-tag {
    max-width: fit-content;
    font-size: 0.5em;
    background-color: #464b53;
    color: aliceblue;
    padding: .2em .5em;
    border-radius: .5em;
    margin-left: 16px;
    margin-top: .3em;
    margin-right: -1em;
    display: inline-block;
}

/* MOBILE SNAP */

@media (max-aspect-ratio: 6/10) {
    .projects .boxes {
        flex-direction: column;
        height: auto;
        width: auto;
        font-size: 3.5vw;
        gap: 1.3em;
        margin-left: .5em;
        margin-right: .5em;
    }


    .projects .box {
        height: 21em;
    }


    .projects h1{
        margin-left: 1em;
    }

    .hero{
        height: 100vh;
    }


    .hero .splash{
        box-shadow: 0 0 4em 4em #000 inset;
    }

    .hero-inner {
        flex-direction: column-reverse; 
        justify-content: center;
        align-items: center;
        text-align: center; 
        padding-top: 2em;
    }


    .hero .avatar {
        height: 18em; 
        margin-right: 0;   
    }


    .hero .text-container {
   
        margin-bottom: 0; 
        width: 100%;       
        justify-content: center;

    }


    .hero h1 {
        font-size: 2.5em; 
        line-height: 1.2;
        margin-bottom: 1em;
        margin-right: 1em;
        margin-top: 2em;
    }


    .hero p {
        font-size: 1em;   
        margin-bottom: 2em;
    }


    .hero .arrow-desktop {
        display: none;    
    }


    .hero .icons {
        justify-content: center;
        margin-left: -2em;
        margin-bottom: 1em;
    }


    footer {

        flex-direction: column;
        align-items: center;
        gap: .5em;
        padding-bottom: 0em;
        text-align: center;
    
    }
    

    .footer-icons {
        margin-left: 0;
        margin-right: .5em; 
    }
}

@media (max-height: 800px) {
    .hero .text-container {
        /* Reduce margin to prevent text from being pushed into the navbar */
        margin-bottom: 5em; 
    }

    .hero .arrow-desktop {
        display: none;
    }
}

/* Optional: For very short screens */
@media (max-height: 600px) {
    .hero .text-container {
        margin-bottom: 2em;
    }

    .hero .arrow-desktop {
        display: none;
    }
}
