@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;

}

body {
    background: #2b2a53;
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
}

html {
    scroll-behavior: smooth;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    display: flex;
    justify-content: right;
    align-items: center;
    z-index: 100;
}

section {
    padding: 5rem;
    width: 68%;
    margin: auto;
}

@media (max-width: 768px) {
    section {
        padding: 2rem 1rem;
    }
}

ul {
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#bg {
    position: absolute;
    height: 90vh;
    object-fit: cover;
    margin-top: 110vh;
    margin-left: 75rem;
    z-index: 20;
}

#bg2 {
    position: absolute;
    height: 90vh;
    object-fit: cover;
    margin-top: 230vh;
    margin-right: 75rem;
    z-index: 20;
}

@media (max-width: 768px) {
    #bg,
    #bg2 {
        display: none;
    }
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8rem;
}

/* Navigation ==================================================================== */

#nav-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.navigation {
    background-color: #3a396871;
    border-radius: 100px;
    display: flex;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: scale(1);
    transform-origin: right center;
    filter: drop-shadow(5px 5px 8px #27243e);
    order: 1;
}

.navigation a {
    text-decoration: none;
    color: #97af9c;
    padding: 6px;
    margin: 0 10px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navigation ul {
        flex-direction: column;
        display: none;
    }

    #collapsed-nav {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        padding: 1rem;
    }

    .navigation.active ul {
        display: flex;
        background: #3a3968e4;
        padding: 1rem;
        border-radius: 10px;
    }

    .header-link:hover {
        color: #2c263a;
        background: #97af9c;
        transition: all 0.3s ease;
        z-index: 0;
    }
}

.nav-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 100px;
    background: #97af9c;
    width: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.header-link {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #97af9c;
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 100px;
    transition: color 0.3s ease;
}
  
.header-link:hover {
    color: #2c263a;
}

.nav-shrunk {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

#collapsed-nav {
    display: none;
    background-color: #6463a0b7;
    padding: 10px 15px;
    border-radius: 100px;
    color: #97af9c;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 2;
}
  
#collapsed-nav:hover {
    background-color: #3a3968;
}
  
#nav-wrapper:hover .navigation {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Parallax ===================================================================== */

.parallax {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 180px 80px;
    background-color: #000000;
    z-index: 0;
}

.parallax h2 {
    position: absolute;
    top: 22%;
    left: 18%;
    justify-content: right;
    font-size: 3em;
    color: #ffffff;
    margin-bottom: 10px;
}

.parallax p {
    position: absolute;
    top: 22%;
    left: 18%;
    justify-content: right;
    font-size: 1em;
    color: #ffffff;
    font-weight: 300;
}

.parallax img {
    position: absolute;
    top: 0%;
    left: 0%;
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .parallax {
        background-image: url('images/bg.jpeg');
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 100vh;
        width: auto;
        padding: 4rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .parallax h2 {
        font-size: 2em;
        left: 10%;
        top: 20%;
    }

    .parallax p {
        font-size: 1em;
        left: 10%;
        top: 30%;
    }

    #back1 {
        /*position: absolute;
        top: 0%;
        width: 100vw;
        height: auto;*/
        display: none;
    }

    #back2 {
        /*position: absolute;
        top: 0%;
        width: 100vw;
        height: auto;*/
        display: none;
    }

    #back3 {
        /*position: absolute;
        top: 0%;
        width: 100vw;
        height: auto;*/
        display: none;
    }
}

#back3 {
    position: absolute;
    z-index: 0;
}

/* Texts ======================================================================== */

#text {
    position: absolute;
    font-size: 4.9em;
    color: #ffffff;
}

#text2 {
    padding: 14vh 1vh;
    position: absolute;
    font-size: 1.4em;
    color: #cdc6df;
}

#aboutme {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
    width: 80%;
    position: relative;
    background: #2b2a53;
    border-radius: 10px;
}

.title {
    position:relative;
    text-align: left;
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 2rem;
    margin-top: 3rem;
    overflow: hidden;
}

.body {
    font-size: 1em;
    color: #ffffff;
    font-weight: 300;
    margin-bottom: 2rem;
}

#intro {
    margin-top: 5rem;
    font-size: large;
}

@keyframes lineDrawToRight {
    0% {
        width: 0;
    }
    100% {
        width: 70%;
    }
}

.left-title::after {
    background-color: #d9c8e381;
    content: "";
    display: inline-block;
    height: 1.5px;
    position: relative;
    vertical-align: middle;
    width: 70%;
    left: 2rem;
    margin-right: -50rem;
    animation: lineDrawToRight .8s ease-out;
}

/* About Me ===================================================================== */

/*#portrait {
    width: 18rem;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(10px 11px 8px #1d193a);
}*/

#portrait {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    filter: drop-shadow(10px 11px 8px #1d193a);
}

/*#gif {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    position: static;
    margin: 2rem auto;
    display: block;
}*/

#gif {
    position: absolute;
    margin-right: 77rem;
    margin-top: 16rem;
    width: 18rem;
    object-fit: cover;
    z-index: 10;
}

#portrait-container {
    display: relative;
    padding-left: 4rem;
    float: right;
    margin-right: 3rem;
    padding-bottom: 2rem;
}

#gif {
    position: absolute;
    margin-right: 77rem;
    margin-top: 16rem;
    width: 18rem;
    object-fit: cover;
    z-index: 10;
}

/* Projects ====================================================================== */

#projects {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    width: 80%;
    padding-top: 4rem;
}

.projects-grid {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

#project-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    #project-items {
        grid-template-columns: 1fr;
    }
}

.p-item {
    display: grid;
    width: 100%;
    height: auto;
}

.p-item.reveal-margin {
    margin-bottom: 13rem;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.title-container {
    margin-left: 3px;
    margin-bottom: 3px;
}

.img-container {
    position: relative;
    display: inline-block;
    width: 17rem;
    height: auto;
    margin-left: 10px;
    margin-bottom: 15px;
    flex: 1;
}

.project-name {
    font-size: 2em;
    color: #f8d296;
    margin-bottom: 0;
}

.subtitle {
    font-size: 1em;
    color: #cdc6df;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .project-name,
    .title {
        font-size: 1.4em;
    }
}

.project-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.project-img:hover {
    transform: scale(1.05);
    cursor: pointer;
    opacity: 0.5;
}

.project-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.img-container:hover .project-description {
    visibility: visible;
    opacity: 1;
}

/* Art Portfolio ==================================================================== */

#art {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    width: 80%;
    padding-top: 4rem;
}

#art-portfolio {
    column-count: 3;
    column-gap: 1.5rem;
}

.a-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.a-pic {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.a-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Favs ======================================================================== */

#favs {
    padding-top: 2.5rem;
    padding-bottom: 20rem;
    width: 80%;
    padding-top: 4rem;
    position: relative;
}

#fav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    #fav {
        grid-template-columns: 1fr;
    }
    .list-item:hover {
        transform: translateY(0px);
    }
    .list-item p:hover {
        background: #7370ac;
    }
    .hover-img, 
    .body.favs, 
    .f-pic {
        display: none;
    }
}

.list-item {
    flex: 1 1 250px;
    position: relative;
    background: #504d81;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.list-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.list-item h2 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
    color: #dedaee;
}

.list-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 12px 0 0 12px;
}

/*
.list-item:nth-child(1)::before {
    background: linear-gradient(180deg, #b67ed6, #77589a);
}
.list-item:nth-child(2)::before {
    background: linear-gradient(180deg, #7ab980, rgb(76, 148, 127));
}
.list-item:nth-child(3)::before {
    background: linear-gradient(180deg, #83a0e5, #516aad);
}*/

.list-item p {
    display: inline-block;
    background: #7370ac;
    padding: .4rem .8rem;
    margin: .25rem;
    border-radius: 20px;
    font-size: .95rem;
}

.list-item p:hover {
    background: #7370ac6f;
    cursor: pointer;
}

.f-pic {
    position: relative;
    width: 15rem;
    height: 15rem;
    z-index: 2;
}

.hover-img {
    position: absolute;
    width: 15rem;
    height: 15rem;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.list-item.pics p:hover + .hover-img,
.list-item.pics p:hover ~ .hover-img {
    opacity: 1;
}

/* Education ===================================================================== */

#education {
    padding-top: 2.5rem;
    width: 80%;
    padding-top: 4rem;
    position: relative;
}

.school-grid {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    align-content: center;
    filter: drop-shadow(5px 5px 8px #222233);
    justify-content: center;
}

@media (max-width: 768px) {
    .school-grid {
        grid-template-columns: 1fr;
    }

    #favs {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
        width: 80%;
        padding-top: 4rem;
        position: relative;
    }
}

/*
.school-section {
    display: grid;
    background-color: #504d81;
    grid-template-columns: clamp(250px, 20vw, 300px) clamp(350px, 50vw, 450px);
    grid-gap: 1.5rem;
    padding: 1.3rem;
    border-radius: 8px;
    margin: 1.5rem;
    justify-self: center;
    align-items: center;
}*/

.school-section {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 2 columns on desktop */
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem;
    background-color: #504d81;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

/*.school-name-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    justify-self: center;
    padding-left: 1rem;
    color:#dedaee;
}*/

.school-name-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
    color: #dedaee;
  }

.school-name-grid > img {
    width: 60px;
    height: auto;
    object-fit: contain;
    align-self: center;
    justify-self: center;
}

.school-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#college-info {
    display: grid;
    grid-template-rows: 15px 45px 45px;
}

#highschool-info {
    display: grid;
    grid-template-rows: 15px 45px 70px;
}

.years {
    color:#cdc7eb;
}

.school-text {
    font-size: 16px;
    line-height: 20px;
}

@media (max-width: 768px) {
    .school-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
  
    .school-name-grid {
        justify-content: center;
        padding-left: 0;
    }
  
    .school-name-grid img {
        margin-bottom: 0.5rem;
    }
  
    .school-name {
        text-align: left;
    }
  
    #college-info, #highschool-info {
        text-align: left;
    }
}

/* Sidebars ====================================================================== */

#contact-sidebar {
    width: 40px;
    position: fixed;
    bottom: 2.0rem;
    left: 2.0rem;
    right: auto;
    z-index: 100;
}

#socials-list {
    font-size: 2rem;
    display: grid;
    grid-template-rows: 60px 60px 60px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    filter: drop-shadow(1.4px 1.2px 1.2px #392c4f);
}

.fa-brands {
    color:#cdc6df;
    font-size: 1.7rem;
}

.fa-brands:hover {
    color:#aaa8c9;
    font-size: 1.9rem;
}

#email-sidebar {
    height: 100%;
    width: 60px;
    position: fixed;
    right: 20px;
    bottom: 0;
    display: flex;
    z-index: 10;
}

#email-link-container {
    align-self: flex-end;
    display: flex;
}

#email-link {
    align-self: flex-end;
    text-align:end;

    position: relative;
    writing-mode: vertical-rl;
    text-orientation: mixed;

    text-decoration: none;
    color: #cdc6df;
    font-size: 12px;

    height: 500px;
    padding-right: 10px;
    padding-left: 30px;
    letter-spacing: 0.2rem;
    display: block;

    transition: all 0.2s linear
}

#email-link:hover {
    color:#aaa8c9;
    padding-bottom: 7px;
}

#email-link::after {
    background-color: #cdc6df;
    content: "";
    display: inline-block;
    width: 1.3px;
    position: relative;
    vertical-align: auto;
    height: 33%;
}

@media (max-width: 768px) {
    #contact-sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: #2b2a53;
        z-index: 100;
        padding: 0.5rem 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #socials-list {
        display: flex;
        gap: 2rem;
        font-size: 1.7rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #email-sidebar {
        position: fixed;
        margin: 1rem auto;
        justify-content: right;
    }
}

/* Footer ======================================================================= */

.footer {
    position: relative;
    display: flex;
    background: #3a39689a;
    padding: 10px 20px;
    text-align: center;
    justify-content: center;
    z-index: 100;
}

#footer-content {
    color: #cdc6df;
    font-size: 1em;
    font-weight: 200;
    line-height: 1;
    text-decoration: none;
    transition: all 0.1s linear;
}

#footer-content:hover {
    color:#aaa8c9;
}