
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: rgb(10, 21, 43);
    color: rgb(235, 235, 235);
    font-family: Montserrat, sans-serif;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;

}

/* core media queries */

/* Mobile First Approach */
@media (max-width: 768px) {
    .layout-container {
        display: flex;
        flex-direction: column;
        padding-top: 5%;
    }

    .vertical-stack {
        display: flex;
        flex-direction: column;
        padding: 0vw 2vw;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-section {
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.034);
        margin-bottom: 10px;
        width: 70vw;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .experience-container {
        display: flex;
        flex-direction: column;
        margin-bottom: 2em;
        border-radius: 15px;
        transition: 0.3s;
        padding: 15px 5px 20px 15px;
        text-decoration: none;
        margin: 0em 2em 2em;
    }

    .experience-date {
        margin-bottom: 5px;
    }

    .project {
        display: flex;
        flex-direction: column-reverse;
        padding: 3%;
        transition: 0.2s;
        border-radius: 15px;
        text-decoration: none;
        color: white;
        margin: 0em 2em;
    }

    .footer-content {
        text-align: center;
        font-size: 0.8rem;
        width: 100vw;
        background-color: rgba(128, 128, 128, 0.115);
        padding: 5%;
    }


}

/* For larger screens */
@media (min-width: 769px) {
    .layout-container {
        display: flex;
        flex-direction: row;
        max-width: 1280px;
        align-self: center;
        padding: min(1vw, 3vw);
        gap: 3%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 5%;
    }

    .vertical-stack {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        position: sticky;
        top: 20px; /* how far from top before sticking */
        align-self: flex-start; /* important */
    }

    .mobile-section {
        display: none;
    }

    .experience-container {
        display: flex;
        flex-direction: row;
        margin-bottom: 2em;
        border-radius: 15px;
        transition: 0.3s;
        padding: 15px 5px 20px 15px;
        text-decoration: none;
    }

    .project {
        display: flex;
        flex-direction: row;
        gap: 3%;
        cursor: pointer;
        padding: 3%;
        transition: 0.2s;
        border-radius: 15px;
        text-decoration: none;
        color: white;
    }

    .footer-content {
        margin-top: auto;
        text-align: left;
        font-size: 0.8rem;
        width: 60%;
    }
    
}


/* Layout Flexbox Container */

/* Header Styles */

header {
    width: 100%;
}

.header-content {
    position: static;
}

.header-content a {
    text-decoration: none;
    color: rgb(235, 235, 235);
    font-weight: 700;
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.header-content p {
    margin: 2% 0;
}


.intro-title {
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.intro-description {
    color: rgb(168, 168, 168);
    max-width: 75%;
    font-size: 0.9rem;
}



.apps {
    display: flex;
    gap: 5%;
    margin: 5% 0% 5% 0%;
}

.logo-size {
    height: 24px;
    width: 24px;
    object-fit: contain;
    filter: grayscale(100%);
    cursor: pointer;
    transition: 0.3s;
}

.logo-size:hover {
    filter: grayscale(0%);
    transition: 0.3s;
    translate: 0px -3px;
}

/* Nav Styles */
nav {
    margin-bottom: 30px;
    color: rgb(170, 170, 170);
    min-width: 180px;
    max-width: 220px;
    position: static;
    background: none;
}

nav ul {
    list-style: none;
    display: inline-block;
    width: 100%;
    justify-content: space-between;
}

nav li {
    cursor: pointer;
    transition: 0.2s;
    margin: 15px 0px;
    max-width: fit-content;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    
}

nav a {
    text-decoration: none;
    color: inherit;
}

nav li:hover {
    transition: 0.2s;
    color: white;
}

nav li::before {
    content: "";
    display: block;
    height: 1px;
    width: 20px;
    background-color: rgb(145, 144, 144);
    margin-top: 8px;
    margin-right: 4px;
    transition: 0.3s;
}

nav li:hover::before {
    background-color: white;
    width: 60px;
    transition: 0.2s;
}

.strava {
    background: linear-gradient(90deg, #fc4a1a, #f7b733);
    background-size: 200% auto; /* Extra size for animation */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: strava-gradient 6s ease infinite;
}

@keyframes strava-gradient {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 50% center;
    }
    100% {
        background-position: 100% center;
    }
}


/* Main Styles */
main {
    flex: 2;
    text-align: left;
    align-items: flex-end;
}

.description-container {
    margin-bottom: 15%;
}

.main-description {
    margin-bottom: 1.5%;
    line-height: 1.5rem;
    color: rgb(168, 168, 168);
    font-size: clamp(0.9rem, 0.7vw, 1rem);
    font-weight: 300;
    padding: 0px 15px;
}



.experience-container:hover {
    background-color: rgba(255, 255, 255, 0.034);
    transition: 0.3s;
    box-shadow: 0px 0px 30px rgb(197, 197, 197);

}

.experience-container:hover .experience-title {
    color: rgb(88, 204, 204);
}

.experience-container:hover .experience-arrow {
    translate: 2px 0px;
    transition: 0.2s;
    filter: invert(0%) sepia(10%) saturate(1117%) hue-rotate(135deg) brightness(100%) contrast(95%);
}


.experience-date {
    font-size: 0.7rem;
    color: rgba(180, 180, 180, 0.452);
    font-weight: 700;
    flex: 1;
}

.experience-details {
    display: flex;
    flex-direction: column;
    flex: 3;
    gap: 0.5rem;

}

.experience-title {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: white;
    font-size: 0.9rem;
}

.experience-arrow {
    height: 15px;
    width: 15px;
    transition: 0.2s;
    translate: 0px 4px;
}

.experience-description {
    font-weight: 400;
    color: rgb(168, 168, 168);
    font-size: 0.9rem;
}

.experience-skills ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
}

.experience-skills ul li {
    background-color: rgb(17, 94, 83);
    color: rgb(0, 253, 219);
    margin-bottom: 3px;
    text-align: center;
    padding: 5px 7px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}



.highlight {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.2s;
}

.highlight:hover {
    color: rgb(92, 200, 236);
    transition: 0.2s;
}

.tennis {
    font-weight: bold;
    background: linear-gradient(90deg, green, lightgreen);
    background-size: 200% auto; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: background-position 0.3s ease-in-out;
}

.tennis:hover {
    background-position: right center; 
}


.project-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
    margin-top: 15vh;
}



.project-img {
    width: 188px;
    height: 90px;
    object-fit:scale-down;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-description {
    display: flex;
    flex: 3;
    flex-direction: column;
}

.project-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.project-details {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: rgb(168, 168, 168);

}

.project:hover {
    background-color: rgba(255, 255, 255, 0.034);
    transition: 0.2s;
}

.project:hover .project-title {
    color: rgb(88, 204, 204);
}

.project:hover .experience-arrow {
    translate: 3px 2px;
    transition: 0.2s;
    filter: invert(0%) sepia(10%) saturate(1117%) hue-rotate(135deg) brightness(100%) contrast(95%);
}


