@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:ital@0;1&display=swap');

:root{
    --black: #343434;
    /* --white: #fff9f9; */
    /* --light-grey: #F7EEEE; */
    --white: #fcf6ff;
    --light-grey: #e5dbea;
    --grey: #949191;
    --blue-hyper: #d0f5f7;
    --transparent: rgba(0, 0, 0, 0);
    --light-btn: #344966;
    --dark-btn: #7F96FF;
    --comment: #1b8c39;
}

html{
    height: 100%;
}

*{
    margin:0;
    padding:0;
    border: 0;
    background-color: var(--white);
    color: var(--black);
}

body{
    font-family: 'Montserrat', sans-serif;
    min-width: 100vw;
    /* position: fixed; */
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}

a, .btn{
    transition: all 300ms ease;
    background: none;
}

/* #region Nav Desktop */
nav, .nav-links{
    display: flex;
}

nav{
    justify-content: space-around;
    align-items: center;
    height: 12vh;
}

.name{
    font-family: 'Archivo Black', sans-serif;
    font-size: 2rem;
}

.name:hover{
    cursor: default;
}

.nav-links{
    font-size: 1.5rem;
    gap: 2rem;
    list-style: none;
}

a{
    color: black;
    text-decoration: none;
    text-decoration-color: var(--blue-hyper);
}

a:hover{
    color: var(--grey);
    text-decoration: underline;
    text-decoration-color: var(--blue-hyper);
}
/* #endregion */
/* #region Nav Mobile */
#mobile-nav{
    display: none;
    width: 100vw;
    border: 0;
    padding: 0;
    margin: 0;
}

.mobile-menu{
    position: relative;
    display: inline-block;
}

.mobile-links{
    position: absolute;
    top: 100%;
    right: 0;
    overflow: hidden;
    width: fit-content;
    max-height: 0;
    background-color: var(--white);
    transition: all 300ms ease-in-out;
}

.mobile-links a{
    display: block;
    padding: 10px 0;
    text-align: right;
    font-size: 1.5rem;
    color: var(--black);
    text-decoration: none;
    transition: all 300ms ease-in-out;
}

.mobile-links li{
    list-style: none;
}

.mobile-links.open{
    max-height: 300px;
}

/* Hamburger Icon */
.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: var(--black);
    transition: all 200ms ease-in-out;
}

.hamburger-icon span:first-child{
    transform: none;
}

.hamburger-icon span:first-child{
    opacity: 1;
}

.hamburger-icon span:first-child{
    transform: none;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}
/* #endregion */
/* #region Sections */
section{
    padding: 4vh;
    /* height: 100vh; */
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container{
    display: flex;
}
/* Hero */
#hero{
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 88vh;
}

#hero .pic-container{
    display: flex;
    height: 700px;
    width: 700px;
    margin: auto 0;
}

#hero .pic-container img{
    border-radius: 50%;
}

.hero-text{
    align-self: center;
    text-align: center;
}

.hero-text p{
    font-weight: 600;
}

.section-p1{
    text-align: center;
}

.section-p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.section-h1{
    font-family: 'Archivo Black', sans-serif;
    font-size: 3rem;
    text-align: center;
}

#social-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.icon{
    cursor: pointer;
    height: 2rem;
}

.btn-container{
    background: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1, .btn-color-2{
    border: var(--light-btn) 0.1rem solid;
}

.btn-color-1:hover, .btn-color-2:hover{
    cursor: pointer;
}

.btn-color-1, .btn-color-2:hover{
    background-color: var(--light-btn);
    color: var(--white);
}

.btn-color-1:hover{
    background: var(--dark-btn);
    border: var(--dark-btn) 0.1rem solid;
}

.btn-color-2{
    background: none;
}

.btn-color-2:hover{
    border: var(--white) 0.1rem solid;
}

.btn-container{
    gap: 1rem;
}

/* Projects */
#projects {
    height: 1600px;
}

#projects .section-h1{
    margin-bottom: 2rem;
}

#projects .section-container{
    justify-content: center;
}

#projects .pic-container{
    display: flex;
    height: 350px;
    width: 350px;
    margin: auto 0;
}

#projects .pic-container img{
    border-radius: 15% 4%;
}

#projects .text-container{
    max-width: 18vw;
    padding: 1.5rem;
    align-self: center;
    text-align: center;
}

.details-container{
    background: none;
    height: 375px;
    width: 275px;
    border: solid var(--light-grey) 3px;
    border-radius: 5%;
    text-align: center;
    justify-items: center;
    padding: 2rem;
    margin: 2rem;
}

.details-container .btn-container{
    width: 275px;
}

.project-thumb{
    background: none;
    width:100%;
    justify-content: center;
}

.project-thumb img{
    width: 80%;
    border-radius: 5%;
}

.gif-swap{
    display: none;
}

.details-container:hover{
    background-color: var(--light-grey);
}

.details-container:hover .gif-swap{
    display: unset;
}

.details-container:hover .still-swap{
    display: none;
}

.project-text{
    background: none;
    text-align: center;
    align-self: center;
    padding: 0.5rem;
}

.project-name{
    background: none;
    font-size: 1.2rem;
}

.project-text p{
    background: none;
    font-size: 0.9rem;
}

/* .preload{
    display: none;
}

.preload.loaded{
    display: unset;
}

.preload-still.loaded{
    display: none;
} */

/* Education */

#education .section-h1{
    margin-bottom: 2rem;
}

#education .section-container{
    display: flex;
    justify-content: center;
    gap: 5rem;
}

#education .pic-container img{
    border-radius: 50%;
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.section-text{
    width: 40%;
    align-self: center;
    text-align: center;
}

.section-text h1{
    font-family: 'Archivo Black', sans-serif;
    font-size: 2rem;
    padding: 1rem, 0, 0.5rem, 0;
}
.section-text p{
    padding: 0.5rem;
}

/* About */

#about .section-h1{
    margin-bottom: 2rem;
}

#about .section-container{
    display: flex;
    justify-content: center;
    gap: 3rem;
}

#about .pic-container img{
    border-radius: 5%;
    width: 300px;
    object-fit: cover;
}

#about .section-text{
    width: 30%;
}

#about .section-text p{
    font-size: 1.1rem;
}

#about .pic-container .museum-goers-pic{
    width: 500px;
}

/* CONTACT */

#contact{
    height: 500px;
}

#contact .section-container{
    justify-content: center;
    margin: 7.5rem auto;
}

.contact-border{
    border-radius: 2rem;
    border: var(--black) 0.1rem solid;
    border-color: var(--black);
    margin: 2rem, auto;
    padding: 0.5rem;
}

.contact-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 1rem;
}

.mail-icon{
    height: 1.8rem;
}

.contact-container p{
    font-size: 1.7rem;
}

#contact .section-container{
    margin-top: 3rem;
}
/* #endregion */

/* #region write ups */

#beastro-body .section-container{
    display: block;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 70%;
}

#beastro-body p{
    margin: 1rem 0;
}

#beastro-body img{
    width: 70%;
}

.snippet{
    color: var(--black);
    background-color: var(--white);
    padding: 5px 1px 0px 5px;
    border: 5px solid var(--light-btn);
    border-radius: 8px;
    width: 80%;
    overflow: auto;
}

.comment{
    color: var(--comment);
}

#phase-drift-body .section-container{
    display: block;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 70%;
}

#phase-drift-body p{
    margin: 1rem 0;
}

#phase-drift-body img{
    width: 50%;
}

#phase-drift-body li{
    margin: 0 1.5rem;
}

#phase-drift-body iframe{
    padding: 0.5rem 0;
}

/* #endregion */