/* HERO STYLING */

html, body {
    overflow-y: auto !important;
    height: auto !important;
    }

.hero {
    width: 100vw;
    height: 150%;
    background-size: cover;

}

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

.hero-group{
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    width: fit-content;

}

.hero-inner {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    font-size: min(1em, 2.1vh);
    user-select: none;
    margin-top: 5%;
    z-index: 10;
    
}

.text-container{
    font-family: 'Roboto Mono', monospace;
    height: 63%;
    font-weight: 400;
    width: 80vw;
    margin-left: 0;
    margin-bottom: 3.5em;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
    background-color: rgba(47, 57, 77, 0.6);
    border-radius: 1em;
    padding: 1em 1.2em;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    z-index: 10;

}

.hero h1 {
    font-family: 'kode Mono', monospace;
    font-size: 4.5em;
    font-weight: 600;
    margin-bottom: .3em;
}

.hero p {
    font-size: 1.1em;
    font-family: 'Roboto Mono';
    margin-bottom: 1em;
    margin-left: 1em;
}


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

}

.avatar {
    height: 50%;
    width: 50%;
    margin-right: 3em;
}

.icons{
    margin-left: 1rem;
    font-size: 2em;
    display: flex;
    gap: .1em;
}

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

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

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

/*education and achievements section*/

.hero .cv{
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    width: 80vw;
    margin-left: 0;
    margin-bottom: 0;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
    background-color: rgba(47, 57, 77, 0.6);
    border-radius: 1em;
    padding: 1em 1.2em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
}

.hero .cv .education, .hero .cv .experience {
    font-family: 'Roboto Mono';
    font-size: 1.2em;
    margin-bottom: .1em;
}

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

footer {
    position: relative !important;
    z-index: 100;
    background-color: #000;
    padding: 2em;
    width: 100%;
    bottom: auto;
    margin-top: 2em;
}

/* MOBILE SNAP */

@media (max-width: 768px) {

    
    .hero {
        height: fit-content !important;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .hero-inner {
        height: auto !important;
        display: flex;
        flex-direction: column;
        padding-top: 4em;
        padding-bottom: 4em;
    }


    .hero-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    
    .hero-group .text-container {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;    
        width: 90% !important;
        margin: 0 auto 2em auto !important;
        text-align: center !important;
    }

    
    .hero-group .text-container .info {
        width: 100%;
        text-align: center;
    }

    .hero-group .text-container h1 {
        text-align: center;
        width: 100%;
        margin-top: 0.5em; 
    }

    
    .hero .avatar {
        display: block !important;
        width: 10em !important;
        height: 10em !important;
        object-fit: cover;
        margin-left: 0;
        margin-right: 0;


    }

    .icons{
        margin-left: 2em;
    }


    .hero .cv {
        width: 90% !important;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        box-shadow: none !important;
    }

    
    .hero .cv .education, 
    .hero .cv .experience {
        display: block !important;
        width: 100% !important;
        font-family: 'Roboto Mono', monospace; 
        font-size: 1rem !important; 
        border-radius: 1em;
        padding: 1.5em !important;
        text-decoration: none;
        box-sizing: border-box;
    }

    
    .hero .cv h3 {
        font-family: 'Kode Mono', monospace;
        font-size: 1.5em !important; 
        margin-top: 0;
        margin-bottom: 0.8em;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 0.5em;
        text-align: left;
    }

    .hero h1{
        font-size: 3em;
        margin-top: -2em;
    }
    
    .hero .cv p {
        font-size: 0.95em !important;
        line-height: 1.6;
        text-align: left;
        white-space: normal !important; 
        margin: 0;
    }

   
    .hero .cv b {
        display: block;
        margin-bottom: 0.3em;
        margin-top: 1em;
    }


    .splash, .hero-bg{
        height: 262%;
    }

}
