/* I did a thing */

@font-face {
    font-family: 'CreatoDisplay-Regular'; /* Choose a name for your font */
    src: url('./fonts/CreatoDisplay-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #94959c;
    --secondary-color: #4dff62;
}

body {
    font-family : CreatoDisplay-Regular;
    background-color:#121214;
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--primary-color);
}

h3 {
    color: white;
}

/* TRANSITION */

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

/* DESKTOP NAV */

.divider {
    cursor: default;
    color: var(--primary-color);
}

nav, 
.nav-links {
    display: flex
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 10vh; /* takes 17% of the view height */
}

.nav-links {
    gap: 1rem;
    list-style: none;
    font-size: 1.5rem; /* rem is a unit of measurement that is similar to pixels */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: white;
    /* text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: var(--primary-color); */
}

.logo {
    font-size: 2rem;
    color: white;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

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

.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: white;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgb(53, 53, 53);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links a:hover {
    color: white;
}

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

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

.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);
}

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

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

/* SECTIONS */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 10vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

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

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

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

.section__text__p3 {
    font-size: 1.25rem;
    margin-bottom: 0rem;
    text-align: center;
}

.title {
    font-size: 3rem;
    text-align: center;
    color: var(--secondary-color);
}

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

/* ICONS */

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

.icon:hover {
    color: var(--secondary-color);
}

.school-icon {
    height: 4rem;
    align-self: center;
    cursor: pointer;
}

.graphic {
    cursor: default
}

/* BUTTONS */

.btn-container {
    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: rgb(202, 202, 202) 0.1rem solid;
    
}

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

.btn-color-1, .btn-color-2:hover {
    background: white;
    color: black;
}

.btn-color-1:hover {
    background: black;
    color: white;
    border-color: white;
}

.btn-color-2 {
    background: none;
    color: rgb(202, 202, 202);
}

.btn-color-2:hover {
    border: rgb(0, 0, 0) 1 0.1rem solid;
}

.btn-container {
    gap: 1rem
}

/* ABOUT SECTION */

#about {
    position: relative;
    height: 25vh;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: left;
}

.about-container2 {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;

    flex-wrap: wrap;
    display: flex;
    justify-content:center;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.school-details-container {
    justify-content: center;
    flex-direction: row;
    display: flex;
    padding-bottom: 0.5rem;
}

.about-containers, .about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
    box-shadow: -5px 5px 0px var(--secondary-color);
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    /* background: #393a41; */
    border-radius: 2rem;
    border: #35353a 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section_pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.p__school {
    align-self: center;
    padding-left: 0.5rem;
}

.p__about {
    line-height: 1.5rem;
}

.p-centered {
    text-align: center;
}

.p__project {
    line-height: 1.5rem;
    padding: 1rem;
}


/* EXPERIENCE SECTION */

#experience {
    position: relative;
    height: 25vh;
}

.experience-sub-title {
    color: rgb(168, 170, 182);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-between;
}

article {
    width: 10rem;
    display: flex;
    /* justify-content: space-between; */
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* PROJECTS SECTION */

#projects {
    position: relative;
    height: 10vh;
}

.color-container {
    border-color: rgb(92, 92, 92);
    background: #242429;
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
    /* box-shadow: -5px 5px 0px var(--secondary-color); */
}

.project-title {
    margin: 1rem;
    color: white;
}

.project-btn {
    color: var(--primary-color);
    border-color: rgb(92, 92, 92)
}

.project-container {
    flex-grow: 0;
}

/* CONTACT  */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 25vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: #35353a;
    background: #242429;
    margin: 2rem auto;
    padding: 0.5rem;
}

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

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}
/* above is a class override! (kind of) */

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* POPUP CONTAINER */

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;

    height: 325px;
    width: 325px;
    /* margin: auto 0; */

    display: none;
    flex-direction: column;
    align-items: center;
}

.background-blur {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2000vh;
    height: 2000vw;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-container.open {
    display: flex;
}

.background-blur.open {
    display: flex;
}

.popup-btn {
    margin-top: auto;
    margin: 0.25rem;
}

.popup-btn-container  {
    margin-top: auto;
}

.popup-container p {
    font-size: 1.05rem;
    margin: auto;
}

.popup-container h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}