/* =========================================
   PAGE SECTIONS
   Cover, Summary, Skills, About, Projects
   ========================================= */

/* Cover / Hero Section */
/* Main cover container with centered flex layout */
.cover {
    display: grid;
    grid-template-areas: "coverText coverLanguages";
    grid-template-columns: 1fr 1fr;
    font-weight: 700;
    gap: 5rem;
    height: 100dvh;
    align-items: center;
    justify-items: center;
}

@media  (max-width: 768px) {
    .cover {
        grid-template-areas: "coverText"
                            "coverLanguages";
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100dvh;
        gap: 2rem;
        width: 100%;
        margin-top: 5rem;
        padding: 2rem;
    }
}

.coverText {
    grid-area: coverText;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: flex-end;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
}

@media (orientation: portrait) and  (max-width: 768px) {
    .coverText {
        justify-self: center;
    }
}

.coverText span {
    color: var(--flavorColor);
    font-size: 1.5em;
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.coverText :nth-child(1) {
    animation: renderLeft 1s ease-in-out;
}

.coverText :nth-child(3) {
    animation: renderUp 1s ease-in-out;
    }

.coverText :nth-child(4) {
    animation: renderDown 1s ease-in-out;
}
.myResume {
    animation: renderDown 1s ease-in-out;
    text-decoration: none;
    color: currentColor;
    font-size: .85rem;
}

.myResume:hover {
    color: white;
    box-shadow: 0 0 .5rem var(--flavorColor);

}
.coverTextName {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    text-align: left;
    border-right: .15em solid var(--flavorColor);
    white-space: nowrap;
    width: fit-content;
    overflow: hidden;
    animation: typing 2s steps(25, end), blink-caret 1s step-end infinite;
}

.coverTextName h1 span {
    color: var(--flavorColor);
    font-size: 1.5em;
}

.coverButtons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.coverButtons button:hover {
    box-shadow: 0 0 .5rem var(--flavorColor);
}

.coverLanguages {
    grid-area: coverLanguages;
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-self: flex-start;
    width: fit-content;
    max-width: 100%;
    align-items: center;
}

@media (orientation: portrait) and  (max-width: 768px) {
    .coverLanguages {
        margin-top: 6rem;
        margin-bottom: 6rem;
        justify-self: center;
    }
}

.languages {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: .5rem;
    gap: 1rem;
    animation: reveal 2s ease-in-out;
}

.language {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

.language svg {
    width: 3rem;
    height: 3rem;
    transition:  0.3s ease-in-out, color 0.3s ease-in-out;
}

.language svg:hover {
    color: var(--flavorColor);
    filter: drop-shadow(0 0 .5rem var(--flavorColor));
}

.stack1 {
    animation: levitationstack 7s ease-in-out infinite;
    animation-delay: .1s;
    
}

.stack2 {
    animation: levitationstack 7s ease-in-out infinite;
    animation-delay: .2s;
}

.stack3 {
    animation: levitationstack 7s ease-in-out infinite;
    animation-delay: .3s;
}
.language1, .language2, .language3, .language4, .language5 {
    width: 4rem;
    height: 4rem;
    background-color: #e9e9e9;
    position: relative;
    transition:  0.3s ease-in-out, color 0.3s ease-in-out;
}
.language1 {
    animation: levitation 7s ease-in-out infinite;
}

.language2 {
    animation: levitation 7s ease-in-out infinite;
    animation-delay: .1s;
}

.language3 {
    animation: levitation 7s ease-in-out infinite;
    animation-delay: .2s;
}

.language4 {
    animation: levitation 7s ease-in-out infinite;
    animation-delay: .3s;
}

.language5 {
    animation: levitation 7s ease-in-out infinite;
    animation-delay: .4s;
}

.javaScript>svg {
    color: #f7df1e;
    filter: drop-shadow(0 0 .5rem #f7df1e);
}

.cpp>svg {
    color: #1e75f7;
    filter: drop-shadow(0 0 .5rem #1ec1f7);
}

.css>svg {
    color: #6205e4;
    filter: drop-shadow(0 0 .5rem #6205e4);
}

.react>svg {
    color: #61dafb;
    filter: drop-shadow(0 0 .5rem #61dafb);
}

.html>svg {
    color: #e34f26;
    filter: drop-shadow(0 0 .5rem #e34f26);
}


/* Summary / About Section */
/* Summary grid layout with skills and about me sections */
.summary {
    display: grid;
    height: fit-content;
    grid-template-areas: "skills  aboutMe"
                       ;
    grid-template-columns: 1fr 1fr;
    padding: 3rem;
    gap: 5rem;
    min-height: 100dvh;
    content-visibility: auto;
    align-items: center;
}

@media (orientation: portrait) and (max-width: 768px) {
    .summary {
        grid-template-areas: "skills skills skills"
                            "aboutMe aboutMe aboutMe";
        padding: 2rem;
        width: 100%;
    }
    
    .summary :nth-child(1) {
        align-self: center;
    }
}

.skills {
    grid-area: skills;
    display: flex;
    flex-direction: column;
    animation: renderLeft 1s ease-in-out;
}

.skills p {
    padding-left: 2rem;
    border-left: .2em solid var(--flavorColor);
    font-weight: bold;
    svg {
        filter: drop-shadow(0 0 .5rem var(--flavorColor));
    }
}

.skills .circle-separator {
    position: relative;
    top: -.02rem;
    right: .15rem;
}

@media (orientation: portrait) and (max-width: 320px) {
    .skills .circle-separator {
        right: .15rem;
    }
}
.skills h1 {
    margin-bottom: 1rem;
}
.skills .skillsDetails {

    padding-top: .5rem;
    padding-left: 1.9rem;
    border-left: .2em solid var(--flavorColor);
    position: relative;
}

.skills span {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.skills svg {
    position: relative;
    top: .35rem;
}

.aboutMe {
    grid-area: aboutMe;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    animation: renderRight 1s ease-in-out;
    gap: 1rem;
    font-weight: bold;
    font-size: 1.25rem;
    width: 80%;
    justify-self: center;
}

.aboutMe span {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.aboutMe h1 {
    font-size: 2rem;
}

.aboutMeNumbersContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

@media (orientation: portrait) and (max-width: 768px) {
    .aboutMeNumbersContainer {
        justify-content: space-evenly;
    }
}

.aboutMeNumbers {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: min-content;
    font-weight: bold;
    font-size: 1rem;
}



/* All Projects Section */

/* Container for the "All Projects" section */
.allProjects {
    grid-area: allProjects;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    align-items: center;
    border-radius: .5rem;
    min-height: 100dvh;
    content-visibility: auto;
    contain-intrinsic-size: 100dvh;
}

@media (orientation: portrait) and (max-width: 768px) {
    .allProjects {
        width: 100%;
    }
}

.allProjectsContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.filterButton:hover {
    filter: drop-shadow(0 0 .5rem var(--flavorColor));
}

.allProjectsContainer span {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.allProjectsContainer h1 {
    font-size: 2rem;
}

.allProjectsContainer p {
    font-size: 1.5rem;
}

.allProjectsItem ul {
    margin: .5rem 0 .5rem 0;
}

.allProjectsContainer li {
    position: relative;
}

/* Circle separator for decorative elements */
.circle-separator {
    position: relative;
    margin-top: .5rem;
    margin-bottom: .5rem;
    width: .5rem;
    height: .5rem;
    color: var(--flavorColor);
    filter: drop-shadow(0 0 .5rem var(--flavorColor));
}

.circle-separator circle {
    fill: currentColor;
}

.projectFilterOptionsContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}
.projectFilterOptions  {
    align-self: flex-start;
    translate: 6.5rem 0;
    margin-bottom: 2rem;
    margin-top: 2rem;
    appearance: none;
    background-color: transparent;
    color: currentColor;
    border: solid .1rem var(--flavorColor);
    padding: .5rem;
    width: 10rem;
    transition: all .3s ease-in-out;
    filter: drop-shadow(0 0 .1rem var(--flavorColor));
}

.projectFilterOptions>option {
    color: var(--flavorColor);
    background-color: white;
    border : .2rem solid var(--flavorColor);
    padding: .5rem;
}

.projectFilterOptionsArrow {
    fill: var(--flavorColor);
    position: relative;
    left: 4.8rem;
    bottom: .1rem;
    height: 1rem;
    width: 1rem;
    transition: all .3s ease-in-out;
    filter: drop-shadow(0 0 .1rem var(--flavorColor));
    z-index: -1;
}

.allProjectsItemsContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: space-between;
    flex-wrap: wrap;
    flex-shrink: 0;
    gap: 1rem;
}

@media (orientation: portrait) and (max-width: 768px) {
    .allProjectsItemsContainer {
        width: 100%;
        gap : 0;
    }
}

.allProjectsItemImage {
    img {
    width: 20rem;
    height: 10rem;
    object-fit: cover;
    border-radius: .5rem .5rem 0 0;
    }
}

.prevImgButton, .nextImgButton {
    z-index: 1;
    position: absolute;
    background-color: #b8b8b8;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    padding: .2rem;
}

.prevImgButton {
    margin-top: 4rem;
    margin-right: 17.5rem;
}

.nextImgButton {
    margin-top: 4rem;
    margin-left: 17.5rem;
}

.allProjectsItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20rem;
    height: 45rem;
    background-color: #e9e9e9;
    border-radius: .5rem;
}

.allProjectsItem:hover {
    transition: all .3s ease-in-out;
    transform: translateY(-.5rem);
    box-shadow: 0 0 1rem var(--flavorColor);

}

.allProjectsItemGenres {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
    width: 100%;
}

.viewProjectItemButton {
    z-index: 1;
    position: absolute;
    margin-top: 41.5rem;
    margin-right: 10rem;
}

.allProjectsItemDescription {
    margin-bottom: 1rem;
}

.allProjectsItem span {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.allProjectsItemInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem;
}

/* Featured Works & Projects Section */

.featuredWorks {
    grid-area: featuredWorks;
    display: flex;
    min-height: 100dvh;
    margin-top: 12rem;
    flex-direction: column;
    align-items: center;
    content-visibility: auto;
    contain-intrinsic-size: 100dvh;
}

.featuredWorks span {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.featuredWorks li {
    position: relative;
}

@media (orientation: portrait) and (max-width: 768px) {
    .featuredWorks {
        width: 100%;
        gap : 0;
    }
}

.projectPage {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project {
    display: grid;
    grid-template-areas: "imageContainer infoContainer"
                        "prevNextButtons prevNextButtons";
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 90%;
    justify-self: center;
}

@media (orientation: portrait) and (max-width: 768px) {
    .project {
        grid-template-columns: 1fr;
        grid-template-areas: "imageContainer"
                            "infoContainer" 
                            "prevNextButtons";
        width: 90%;
        max-width: 100%;
    }
}

.projectImageContainer {
    grid-area: imageContainer;
    animation: renderLeft 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (orientation: portrait) and (max-width: 768px) {
    .projectImageContainer {
        align-items: center;
        width: 100%;
    }
}

.projectImageMain {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

@media (orientation: portrait) and (max-width: 768px) {
    .projectImageMain {
        justify-self: center;
    }
}

.projectImageMain img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 0 .5rem var(--flavorColor);
}

.projectImageMain img:hover {
    transform: translateY(-.5rem);
    transition: all 0.3s ease-in-out;

}

@media (orientation: portrait) and (max-width: 768px) {
    .projectImageMain img {
        width: 100%;
    }
}

.projectImageMini {
    display: flex;
    width: 100%;
}

.projectImageMini::-webkit-scrollbar {
    display: none;
}

.projectImageMiniItem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.projectInfoContainer {
    grid-area: infoContainer;
    animation: renderRight 1s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (orientation: portrait) and (max-width: 768px) {
    .projectInfoContainer {
        width: 80%;
        justify-self: center;
    }
}

.projectDescription {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.technologies {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    justify-self: center;
}

.techList {    
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.viewProjectButton {
    align-self: flex-start;
    justify-self: flex-end;
}

.viewProjectButton:hover {
    box-shadow: 0 0 .5rem var(--flavorColor);
}

.projectPrevNextButtons {
    grid-area: prevNextButtons;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.nextProjectButton, .prevProjectButton {
    height: 3rem;
    width: 3rem;
    padding: .4rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nextProjectButton:hover, .prevProjectButton:hover {
    background-color: var(--flavorColor);
    color: #161616ff;
}

.nextProjectButton:hover {
    box-shadow: 0 0 .5rem var(--flavorColor);
}

.prevProjectButton:hover {
    box-shadow: 0 0 .5rem var(--flavorColor);
}

.projectDotButtons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.projectDotButtons button {
    height: .2rem;
    width: .2rem;
    padding: .3rem;
    border-radius: 50%;
    color: calc(1 - var(--flavorColor));
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.projectDotButtons button:hover {
    background-color: var(--flavorColor);
    color: #161616ff;
    box-shadow: 0 0 .5rem var(--flavorColor);
}

/* "Show More" button styling for the projects list */
.showMoreProjectsButton {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    margin-top: 1rem;
    width: 100%;
    font-family: inherit;
    transition: color 0.3s ease-in-out;
}

.showMoreProjectsButton:hover {
    color: var(--flavorColor);
    filter: drop-shadow(0 0 .5rem var(--flavorColor));
}

