@import url('https://fonts.googleapis.com/css2?family=Lato&family=Questrial&display=swap');

:root {
    --white: 255, 255, 255; /* #ffffff */
    --red: 209, 17, 65; /* #d11141 */
    --green: 0, 177, 89; /* #00b159 */
    --blue: 0, 174, 219; /* #00aedb */
    --dark-blue: 1, 157, 197; /* #019dc5 */
    --orange: 243, 119, 53; /* #f37735 */
    --yellow: 255, 196, 37; /* #ffc425 */
    --light-grey: 231, 231, 231; /* #e7e7e7 */
    --grey: 126, 126, 126; /* #7e7e7e */
    --black: 33, 37, 41; /* #212529 */
    --max-width: 1080px;
    --min-width: 290px;
}

/* Setting a universal standard of styling */
* {
    font-family: 'Lato', sans-serif;
    border: 0;
    padding: 0;
    margin: 0;
}

body {
    overflow-x: hidden;
}

/* Setting different font classes */
.big-font {
    color: rgba(var(--black), 1);
    font-family: 'Questrial', sans-serif;
}

.small-font {
    font-family: 'Lato', sans-serif;
    color: rgba(var(--grey), 1);
}

/* Setting default body style */
body {
    background: rgba(var(--white), 1);
    color: rgba(var(--black), 1);
    overflow-x: hidden;
    min-width: var(--min-width);
}

a {
    text-decoration: none;
    color: rgba(var(--black), 1);
}

a:hover {
    text-decoration: none;
    color: rgba(var(--black), 1);
}

/* Styling scroll to top button */
.scroll-top-btn {
    position: fixed;
    right: 30px;
    bottom: 5px;
    width: 50px;
    height: 50px;
    font-size: 20px;
    line-height: 30px;
    border-radius: 50%;
    background-color: rgba(var(--white), 1);
    box-shadow: 0 0 10px rgba(var(--light-grey), 1);
    outline: none;
    border: 5px solid transparent;
    color: rgba(var(--blue), 1);
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.scroll-top-btn.active {
    opacity: 1;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 25px;
    pointer-events: auto;
    z-index: 10;
}

.scroll-top-btn.active:hover {
    border: 5px solid rgba(var(--blue), 1);
    transform: translateY(-5px);
}

.scroll-top-btn:focus {
    outline: none;
}

/* Components */
.title {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.title-dot {
    height: 7px;
    width: 7px;
    background-color: rgba(var(--blue), 1);
    border-radius: 50%;
    box-shadow: 0 5px 25px 5px rgba(var(--blue), 0.5);
}

.title-text {
    text-transform: uppercase;
    font-size: 15px;
    line-height: 10px;
    font-weight: lighter;
    letter-spacing: 2px;
}

.button-blue {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.button-blue a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Lato', sans-serif;
    color: rgba(var(--blue), 1);
    border: 1px solid rgba(var(--blue), 1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 10px rgba(var(--light-grey), 0.3);
}

.button-blue a:hover {
    background-color: rgba(var(--dark-blue), 1);
    box-shadow: 6px 6px 15px rgba(var(--light-grey), 0.4);
    color: rgba(var(--white), 1);
    border: 1px solid rgba(var(--dark-blue), 1);
    transform: translateY(-2px);
}

.button-dark-blue {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.button-dark-blue a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Lato', sans-serif;
    color: rgba(var(--white), 1);
    background-color: rgba(var(--blue), 1);
    border: 1px solid rgba(var(--white), 1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 10px rgba(var(--light-grey), 0.3);
}

.button-dark-blue a:hover {
    background-color: rgba(var(--white), 1);
    box-shadow: 6px 6px 15px rgba(var(--light-grey), 0.4);
    color: rgba(var(--dark-blue), 1);
    border: 1px solid rgba(var(--dark-blue), 1);
    transform: translateY(-2px);
}

/* Nav Section */
.nav {
    height: 120px;
    display: flex;
    position: fixed;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding-left: 50px;
    padding-right: 50px;
    z-index: 999;
    background-image: linear-gradient(rgba(var(--white), 0.7), rgba(var(--white), 0));
}

.nav-bar {
    height: 70px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    flex: 1;
    height: 70px;
}

.nav-right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    height: 70px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    column-gap: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    justify-content: center;
    align-items: start;
}

.logo-img {
    height: 60px;
}

.logo-top-text {
    letter-spacing: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
}

.logo-bottom-text {
    letter-spacing: 2px;
    font-size: 12px;
    line-height: 12px;
}

.nav-pill {
    transition: 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(var(--black), 0.1);
    border-radius: 25px;
    display: flex;
    position: relative;
    justify-content: space-around;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    width: 180px;
    height: 50px;
    box-shadow: 3px 3px 10px rgba(var(--light-grey), 0.2);
}

.nav-pill:hover {
    background-color: rgba(var(--light-grey), 0.5);
    box-shadow: 6px 6px 20px rgba(var(--light-grey), 0.2);
}

.nav-pill-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 80px;
    height: 40px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.2s ease;
    background-color: none;
}

.nav-pill-toggle:hover {
    background-image: linear-gradient(to right, rgba(var(--blue), 0), rgba(var(--blue), 0.1));
    transition: background-image 0.3s ease;
}
  
.nav-pill-toggle.work:hover {
    background-image: linear-gradient(270deg, rgba(var(--blue), 0), rgba(var(--blue), 0.1));
    transition: background-image 0.3s ease;
}

.nav-pill-text {
    text-align: center;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 15px;
    color: rgba(var(--black), 1);
}

.nav-pill-glow {
    background-color: rgba(var(--blue), 1);
    border-radius: 2px;
    width: 24px;
    height: 4px;
    margin-bottom: -2px;
    margin-left: 38px;
    box-shadow: 0 2px 25px 2px rgba(var(--blue), 1);
}

.nav-pill-glow.life {
    margin-left: 118px;
}

.nav-pill-glow.nil {
    display: none;
}

.nav-pill-outline {
    z-index: -1;
    background-color: rgba(var(--blue), 0.1);
    border-radius: 20px;
    width: 90px;
    height: 40px;
    display: block;
    position: absolute;
    top: 4px;
    left: 6px;
}

.nav-pill-outline.life {
    left: auto;
    right: 6px;
}

.nav-pill-outline.nil {
    display: none;
}

.socials-container {
    display: flex;
    text-decoration: none;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    column-gap: 10px;
}

.socials-icon {
    color: rgba(var(--black), 1);
    height: 40px;
    width: 40px;
    line-height: 40px;
    font-size: 30px;
    border-radius: 50%;
    box-shadow: 3px 3px 10px rgba(var(--light-grey), 1),
                -4px -4px 10px rgba(var(--black), 0.2);
    cursor: pointer;
    position: relative;
    transition: 0.15s;
    backdrop-filter: blur(15px);
}

.socials-icon.github:hover {
    transform: scale(1.2) rotate(10deg);
    color: rgba(var(--white), 1);
    background-color: #1A1E22;
}

.socials-icon.linkedin:hover {
    transform: scale(1.2) rotate(10deg);
    color: rgba(var(--white), 1);
    background-color: #0C64C5;
}

.socials-icon.youtube:hover {
    transform: scale(1.2) rotate(10deg);
    color: rgba(var(--white), 1);
    background-color: #F70000;
}

.socials-icon.instagram:hover {
    transform: scale(1.2) rotate(10deg);
    color: rgba(var(--white), 1);
    background-color: #d62976;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
}

/* 404 Section */
.error {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 10px;
}

/* Splash Section */
.splash {
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.splash-body {
    position: relative;
    max-width: var(--max-width);
    height: 600px;
    border-radius: 15px;
    box-shadow: 10px 10px 30px rgba(var(--light-grey), 0.5), -10px -10px 30px rgba(var(--white), 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(var(--white), 1);
    margin: 0 30px;
}

.mac-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding-left: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.mac-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.red {
    background: #FF5F56;
}

.yellow {
    background: #FFBD2E;
}

.green {
    background: #27C93F;
}

.splash-content {
    width: calc(100% - 10px);
    height: 590px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    z-index: 2;
    margin-top: 35px;
}

.splash-top-text {
    font-size: 65px;
    line-height: 65px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.splash-bottom-text {
    font-size: 20px;
    margin: 30px auto;
    text-align: center;
    width: 70%;
    color: rgba(var(--grey), 1);
}

.txt-type > .txt {
    border-right: 2px solid rgba(var(--grey), 1);
}

.splash-down-arrow {
    margin-top: 30px;
    font-size: 20px;
    line-height: 20px;
    color: rgba(var(--blue), 1);
    animation: splash-arrow 2.5s infinite ease;
}

@keyframes splash-arrow {
    0% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Projects Section */
.projects {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.projects-body {
    max-width: var(--max-width);
    height: 680px;
    box-shadow: 20px 20px 60px rgba(var(--light-grey), 1), -20px -20px 60px rgba(var(--white), 1);
    border: 3px solid rgba(var(--light-grey), 1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-container {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.projects-content {
    position: relative;
    overflow: hidden;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 3px solid rgba(var(--grey), 1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    transition: border 0.3s ease-in-out, background-image 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.projects-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
    background-image: radial-gradient(circle farthest-side at 20% 0, rgba(var(--white), 0), rgba(var(--blue), 0.1));
}

.projects-content:hover::before {
    opacity: 1;
}

.projects-content:hover {
    border: 3px solid rgba(var(--black), 1);
}

.projects-arrow {
    font-size: 25px;
    color: rgba(var(--black), 1);
    transition: transform 0.3s ease;
}

.projects-content:hover .projects-arrow {
    transform: translateX(10px);
}

.projects-title {
    width: 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.projects-title-text {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.projects-top-text {
    font-weight: bolder;
    font-size: 30px;
    letter-spacing: 1px;
}

.tech-stack {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    width: fit-content;
    margin: 15px 0;
    column-gap: 8px;
}

.tech-stack img {
    width: 30px;
    padding-right: 7px;
}

.lang {
    border: 2px solid rgba(var(--green), 1);
    background-color: rgba(var(--green), 1);
    color: rgba(var(--white), 1);
    border-radius: 5px;
    padding: 5px;
    font-size: 15px;
}

.prog {
    border: 2px solid rgba(var(--green), 1);
    border-radius: 5px;
    padding: 5px;
    font-size: 15px;
}

.projects-img {
    margin-top: -30px;
}

.img {
    width: 100%;
    max-width: 850px;
    transform: translateY(70px);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.projects-content:hover .img {
    transform: translateY(50px);
}

/****************************************** LIFE *******************************************/
/* About Section */
.about {
    width: 100vw;
    height: 100vh;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

.about-content {
    position: relative;
    max-width: var(--max-width);
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-img img {
    width: 70%;
    object-fit: cover;
    box-shadow: 10px 10px 30px rgba(var(--light-grey), 0.5), -10px -10px 30px rgba(var(--white), 0.5);
    border-radius: 15px;
}

.about-img-mobile {
    display: none;
}

.about-text {
    width: 70%;
    text-align: justify;
}

.about-top-text {
    font-size: 50px;
}

.about-bottom-text {
    font-size: 20px;
}

/* Education Section */
.education {
    max-width: var(--max-width);
    margin: 0 auto;
    margin-top: 20px;
}

.education-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.education img {
    max-width: 50%;
    margin-bottom: -10px;
    transition: 0.3s;
}

.education-card:hover h3 {
    color: rgba(var(--blue), 1);
}

.education-card:hover img {
    transform: translateY(-15px);
}

.education-card:hover .splash-txt {
    box-shadow: 2px 2px 15px 5px #ccc;
}

.education-card {
    width: 49%;
    margin-top: 4em;
}

.splash-txt {
    box-shadow: 2px 2px 15px 0px #ccc;
    padding: 1.1rem;
    width: 70%;
    margin: 0 auto;
    z-index: 2;
    transition: 0.3s;
    border-radius: 10px;
}

.splash-txt h3 {
    font-size: 1.8em;
    margin: 10px 2px 10px 2px;
    transition: 0.3s;
}

.splash-txt h6 {
    font-size: 1.2em;
    margin: 5px 2px 0 2px;
    opacity: 0.4;
}

.splash-txt p {
    font-size: 1em;
    margin: 10px 2px 5px 2px;
}

/* Involvement & Achievements Section */
.involvement {
    max-width: var(--max-width);
    margin: 0 auto;
    margin-top: 100px;
}

.involvement-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 25px;
    box-shadow: 10px 10px 30px rgba(var(--light-grey), 0.5), -10px -10px 30px rgba(var(--white), 0.5);
    padding: 20px 80px;
    margin-bottom: 20px;
}

.involvement-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.involvement-role {
    font-size: 30px;
}

.involvement-org-img img {
    width: 100px;
}

.involvement-date {
    font-size: 12px;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 25px;
    color: rgba(var(--dark-blue), 1);
    border: 1px solid rgba(var(--dark-blue), 1);
    margin-top: 5px;
}

.involvement-story-section {
    display: flex;
    flex-direction: row;
    gap: 60px;
    justify-content: space-between;
    margin: 0 auto;
    margin-top: 30px;
    align-items: center;
}

.involvement-story-section img {
    width: 50%;
    border-radius: 25px;
    box-shadow: 10px 10px 30px rgba(var(--light-grey), 1), -10px -10px 30px rgba(var(--white), 0.5);
}

.involvement-section-top-text {
    font-size: 20px;
    margin-bottom: 20px;
}

.involvement-section-bottom-text {
    text-align: justify;
}

/* Project Section */
.project {
    max-width: var(--max-width);
    margin: 0 auto;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.p-nav {
    margin-left: 10px;
    transition: 0.3s ease-in-out;
}

.p-nav:hover {
    transform: translateY(-2px);
}

.p-splash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.p-splash video {
    width: 100%;
    max-width: var(--max-width);
    border-radius: 10px;
    box-shadow: 20px 20px 60px rgba(var(--light-grey), 1), -20px -20px 60px rgba(var(--white), 1);
    margin-top: 20px;
    margin-bottom: 20px;
}

.p-splash-image {
    width: 90%;
    max-width: var(--max-width);
}

.p-splash h1 {
    margin-top: 40px;
}

.p-tech-stack {
    justify-content: center;
}

.p-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 20px;
}

.p-icon {
    font-size: 20px;
}

.p-content {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    color: rgba(var(--black), 1);
}

@media screen and (max-width: 1200px) {
    /* Projects Section */
    .projects-body {
        height: 100%;
    }

    .projects-content {
        padding-top: 30px;
    }
    
    .projects-content::before {
        opacity: 1;
    }
    
    .projects-top-text {
        font-size: 18px;
        letter-spacing: 1px;
        font-weight: 900;
    }
    
    .tech-stack {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .projects-img {
        margin-top: 0;
    }

    .img {
        min-height: auto;
        margin-top: 20px;
        transform: none;
    }
    
    .projects-content:hover .img {
        transform: none;
    }

    /* About Section */
    .about {
        height: fit-content;
    }

    .about-content {
        flex-direction: column;
        height: fit-content;
    }

    .about-img img {
        width: 45%;
        margin-top: 120px;
        margin-bottom: 20px;
    }

    /* Education Section */
    .education {
        margin-top: 50px;
    }

    .education-card {
        width: 50%;
    }

    .education img {
        max-width: 65%;
    }
}

@media screen and (max-width: 768px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 15px;
        z-index: 10;
    }

    .scroll-top-btn.active {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 15px;
        z-index: 10;
    }

    /* Components */
    .button-blue a {
        font-size: 10px;
    }

    .button-dark-blue a {
        font-size: 10px;
    }

    /* Navigation Section */
    .nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .logo-text {
        display: none;
    }

    .socials-container {
        display: none;
    }

    .socials-container-hamburger {
        position: absolute;
        padding: 90px 10px;
        border: 1px solid rgba(var(--black), 0.1);
        box-shadow: 3px 3px 10px rgba(var(--light-grey), 0.2);
        backdrop-filter: blur(15px);
        border-radius: 25px;
        transition: height 0.3s ease, opacity 0.3s ease;
        height: 0px;
        overflow: hidden;
        opacity: 0;
    }

    .socials-container-hamburger .socials-icon {
        backdrop-filter: none;
        top: -80px;
    }

    .hamburger {
        cursor: pointer;
        display: block;
        position: relative;
    }

    .hamburger input {
        display: none;
    }
    
    .hamburger svg {
        height: 3em;
        transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .line {
        fill: none;
        stroke: rgba(var(--black), 1);
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 3;
        transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .line-top-bottom {
        stroke-dasharray: 12 63;
    }
    
    .hamburger input:checked + svg {
        transform: rotate(-45deg);
    }
    
    .hamburger input:checked + svg .line-top-bottom {
        stroke-dasharray: 20 300;
        stroke-dashoffset: -32.42;
    }

    .hamburger input:checked ~ .socials-container-hamburger {
        opacity: 1;
        height: 100px;
        display: block;
    }

    /* Splash Section */
    .splash-body {
        box-shadow: none;
        margin: 0;
    }

    .mac-window {
        display: none;
    }

    .splash-content {
        border: none;
        width: 100%;
        height: 100%;
    }

    .splash-top-text {
        font-size: 50px;
    }

    .splash-bottom-text {
        width: 90%;
    }

    .splash-blob {
        display: none;
    }

    /* About Section */
    .about-img {
        display: none;
    }

    .about-img-mobile {
        display: block;
    }

    .about-img-mobile img {
        margin: 150px 0 50px 0;
        width: 80%;
        object-fit: cover;
        box-shadow: 10px 10px 30px rgba(var(--light-grey), 0.5), -10px -10px 30px rgba(var(--white), 0.5);
        border-radius: 15px;
    }

    .about-text {
        width: 90%;
    }

    .about-top-text {
        font-size: 35px;
    }

    .about-bottom-text {
        font-size: 14px;
    }

    /* Education Section */
    .education-card {
        width: 100%;
    }

    .splash-txt {
        width: 90%;
    }

    /* Involvements & Achievements Section */
    .involvement-card {
        padding: 20px;
    }

    .involvement-story-section {
        flex-direction: column;
        gap: 20px;
    }

    .involvement-story-section img {
        width: 90%;
    }
}