
body {
    font-family: "Inter", serif;
    background-color: white;
    overflow: overlay;
}

* { 
    color: white;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    /* border: grey 1px solid; */
}

:root {
    --font-biggest: clamp(5rem, 7vw, 20rem);
    --font-bigger: clamp(1.25rem, 3vw, 17.5rem);
    --font-big: clamp(1rem, 2vw, 15rem);
    --font-standard: clamp(0.5rem, 0.9vw, 12.5rem);
    --font-small: clamp(0.4rem, 0.75vw, 10rem);
    --font-smaller: clamp(0.35rem, 0.7vw, 7rem);
    --font-smallest: clamp(0.3rem, 0.6vw, 6rem);

    --color-light: rgb(150, 150, 150);
    --color-standard: rgb(70, 70, 70);
    --color-dark: rgb(40, 40, 40);
    --color-darker: rgb(20, 20, 20);
    --color-darkest: rgb(15, 15, 15);
}

svg {
    overflow: visible;
    width: 100%;
    height: 100%;
}

.icon {
    color: var(--color-standard);
}

/*Animations*/

@keyframes fadeIn { 
    from { 
        opacity: 0;
    } 
    to { 
        opacity: 1;
    } 
}

@keyframes fadeOut { 
    from { 
        opacity: 1; 
    } 
    to { 
        opacity: 0; 
    } 
}

@keyframes slideDown { 
    from { 
        transform: translateY(-20px);
        opacity: 0; 
    } 
    to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}

@keyframes navBarSlideDown {
    from {
        transform: translate(-50%, 25px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 50px);
        opacity: 1;
    }
}

@keyframes bodyIdle {
    50% {
        transform: rotate(5deg) translate(10px, 5px);
    }
    to {
        transform: rotate(0deg) translate(0, 0);
    }
}

@keyframes legIdle {
    50% {
        transform: rotate(3deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes stabilize {
    to {
        transform: rotate(-360deg);
    }
}

.fade-in {
    animation: fadeIn 0.75s forwards;
    display: inline;
}

.fade-out {
    animation: fadeOut 0.3s forwards;
    pointer-events: none;
}

/* Header */

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 75%;
    opacity: 0;
    animation: slideDown 0.5s 0.5s ease-out forwards;
    margin: 5% auto 5% auto;
}

.header-title {
    font-family: "Cabin", serif;
    font-size: var(--font-standard);
    letter-spacing: 2px;
    color: var(--color-standard);
    text-transform: uppercase;
}

.contact-container {
    display: flex;
    gap: 10px;
}

.email-icon, .linkedin-icon, .github-icon {
    font-size: clamp(1rem, 2vw, 2rem);
    transition: 0.2s;
    &:hover {
        color: rgb(255, 196, 0);
        transform: translateY(-3px);
    }
}

/* Landing */

.landing-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20%;
}

.svg-container {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 3%;
}

.red-clover {
    width: 10%;
}

.red-clover-body {
    animation: bodyIdle 5s infinite;
}

.red-clover-leg {
    animation: legIdle 5s infinite;
}

.blue-ball {
    width: 10%;
    animation: bodyIdle 6s infinite;
}

.main-landing-title {
    font-family: "Newreader", serif;
    font-style: italic;
    font-size: var(--font-biggest);
    color: black;
    opacity: 0;
    animation: slideDown 0.5s 0.75s ease-out forwards;
}

.sub-landing-title {
    font-size: var(--font-standard);
    font-weight: 500;
    text-align: center;
    color: var(--color-dark);
    margin-top: 10px;
    opacity: 0;
    animation: slideDown 0.5s 0.95s ease-out forwards;
}

/* Projects */

.projects-container {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-bottom: 10%;
    gap: 7.5%;
    padding: 10% 10%;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    align-self: flex-end;
    flex-direction: row;
    position: absolute;
    left: 50%;
    width: fit-content;
    gap: 5px;
    align-items: center;
    background-color: var(--color-darkest);
    padding: 10px;
    border-radius: 15px;
}

.nav-button {
    font-size: 1rem;
    background-color: var(--color-darkest);
    width: 15px;
    height: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    &:hover {
        background-color: var(--color-dark);
    }
}

.nav-icon {
    color: var(--color-light);
}

.main-project-title {
    width: fit-content;
    border-radius: 15px;
    transform: translate(0, -150%);
    gap: 5px;
    position: absolute;
    display: flex;
    align-self: flex-start;
}

.main-project-title-text {
    font-size: var(--font-bigger);
    font-weight: 600;
    color: var(--color-dark);
    opacity: 0;
    animation: slideDown 0.5s 1s ease-out forwards;
}

.project {
    display: flex;
    justify-content: space-between;
    align-items: center;
    scroll-snap-align: center;
    flex: 0 0 100%;
    max-width: 100%;
    padding: 7.5%;
    border-radius: 20px;
    background-color: var(--color-darkest);
    opacity: 0;
    animation: slideDown 0.5s 1.25s ease-out forwards;
}

.project-text-container {
    display: flex;
    flex-direction: column;
    padding-right: 10%;
}

.project-title {
    font-size: var(--font-big);
    margin-bottom: 5%;
}

.sub-project-title {
    font-size: var(--font-small);
    letter-spacing: 0.1ch;
    margin-bottom: 5%;
    color: var(--color-standard);
}



.project-text {
    font-size: var(--font-standard);
    margin-bottom: 7.5%;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 7.5%;
}

.chip {
    padding: 2% 2%;
    border-radius: 5px;
    background-color: var(--color-dark);
}

.chip-text {
    font-size: var(--font-smaller);
    color: white;
}

.project-button {
    max-width: 40%;
    min-width: 50px;
    font-size: var(--font-small);
    text-align: center;
    padding: 3%;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    background-color: #0271e3;
    transition: 0.2s;
    &:hover {
        scale: 1.05;
        background: #0080ff;
    }
}

.wip-project-button {
    background-color: var(--color-dark);
    pointer-events: none;
}

.project-media {
    max-width: 50%;
    border-radius: 10px;
}

.project-3-text {
    font-size: var(--font-standard);
}

.tech-stack-container {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    flex-wrap: wrap;
    width: 75%;
    margin: 0 auto 20% auto;
}

.tech-stack-title {
    font-size: var(--font-bigger);
    color: black;
}

.tech-stack-subtitle {
    color: black;
    margin-bottom: 5%;
    font-size: var(--font-standard);
}

.row {
    width: 100%;
    display: flex;
    gap: 1%;
    row-gap: 5px;
}

.tech-stack-icon {
    max-width: clamp(30px, 15%, 100px);
    padding: 2.5%;
    border-radius: 5px;
}

.tech-stack-chip {
    opacity: 0.95;
    flex: 1 1 25%;
    background-color: var(--color-darkest);
    padding: clamp(12.5px, 1%, 30px);
    display: flex;
    align-items: center;
    gap: 5%;
    border-radius: 12px;
    transition: 0.3s;
    &:hover {
        background-color: black;
        transform: translateY(-2px);
    }
}

.html-icon {
    background-color: rgba(255, 0, 0, 0.1);
}

.css-icon {
    background-color: rgba(0, 119, 255, 0.1);
}

.js-icon {
    background-color: rgba(255, 174, 0, 0.1);
}

.python-icon {
    background-color: rgba(0, 153, 255, 0.1);
}

.java-icon {
    background-color: rgba(0, 89, 255, 0.1);
}

.react-icon {
    background-color: rgba(0, 255, 255, 0.1);
}

.tailwind-icon {
    background-color: rgba(0, 195, 255, 0.1);
}

.next-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.tech-stack-chip-text {
    font-size: var(--font-small);
}

.tech-stack-chip-subtext {
    font-size: var(--font-smallest);
    color: var(--color-light);
}

.footer-container {
    width: 100%;
    text-align: center;
}

.footer-text {
    font-size: var(--font-smallest);
    color: var(--color-darkest);
    margin-bottom: 10px;
}

@media screen and (max-width: 1200px) {
    .landing-container {
        margin-top: 20%;
        margin-bottom: 30%;
    }
}

@media screen and (max-width: 900px) {
    .project {
        flex-direction: column;
        gap: 0;
    }
    .project-media {
        margin-top: 10%;
        max-width: 100%;
    }
    .project-button {
        border-radius: 5px;
    }
    .nav-button:hover {
        background-color: var(--color-standard);
        scale: 1;
    }
}

@media screen and (max-width: 700px) {
    .landing-container {
        margin-top: 40%;
        margin-bottom: 40%;
    }
}

@media screen and (max-width: 600px) {
    .tech-stack-chip-text {
        display: none;
    }
    .tech-stack-chip-subtext {
        display: none;
    }
    .tech-stack-chip {
        padding: 10px 0 10px 0;
        justify-content: center;
    }
    .projects-container {
        margin-bottom: 25%;
    }
    .tech-stack-icon {
        padding: 5px;
    }
    .nav-bar {
        padding: 5px;
        border-radius: 7px;
    }
    .nav-button {
        font-size: 0.75rem;
    }
    @keyframes navBarSlideDown {
        from {
            transform: translate(-50%, 20px);
            opacity: 0;
        }
        to {
            transform: translate(-50%, 40px);
            opacity: 1;
        }
    }
}

@media (pointer: coarse) {
    .nav-bar {
        display: none;
    }
}