/*
COLOR PALETTE

Dark green    #3c8453
Sandy beige   #bcaa96
Dark gray     #222222
Light gray    #d3d4d6
Off-white     #f6f6f6
*/


:root {
    --gray-0: oklch(99% 0 none);
    --gray-1: oklch(95% 0 none);
    --gray-2: oklch(90% 0 none);
    --gray-3: oklch(80% 0 none);
    --gray-4: oklch(70% 0 none);
    --gray-5: oklch(60% 0 none);
    --gray-6: oklch(40% 0 none);
    --gray-7: oklch(25% 0 none);
    --gray-8: oklch(15% 0 none);

    --blue: oklch(35.34% 0.124 262.37);
    --yellow: oklch(90.87% 0.178 95.33);

    --font-body: "Montserrat", sans-serif;
    --font-accent: "Lato", sans-serif;
}




/* GLOBAL STYLES 
------------------------------------*/

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html,
body {
    height: 100%;
}

body {
    background: #f6f6f6;
    color: #222222;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3 {
    font-family: var(--font-accent);
    font-weight: 400;
    margin: 0;
}

h1 {
    font-size: 4.375rem;
    line-height: 0.85;
    font-weight: 400;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

/* sticky footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Links
------------------------------------*/

a {
    color: #26355D;
}

a:hover {
    color: #FFDB00;
    text-decoration: none;
}

footer a {
    color: #FFDB00;
}

footer a:hover {
    color: #26355D;
}


.btn {
    background: #26355D;
    color: #f6f6f6;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.2rem;
    display: inline-block;
    padding: 7px;
    letter-spacing: 0.1em;
    line-height: 1;
    border-radius: 4px;
}

.content-wrapper {
    margin: 0 auto;
    max-width: 56.25rem;


}



/* NAVIGATION
------------------------------------*/

/* Add sticky dark background to navigation bar */
.navbar {
    background-color: #222222;
    color: #f6f6f6;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* Arrange navigation items with flexbox layout */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 56.25rem;
    margin: 0 auto;
    padding: 0 1.875rem;
}


/* Style logotype link with accent color and weight */
.nav-logo {
    color: #FFDB00;
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
}


/* Add flexbox layout and spacing to navigation menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Style navigation links with color and hover transition */
.nav-menu li a {
    color: #f6f6f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

/* Add hover color change to navigation links */
.nav-menu li a:hover {
    color: #FFDB00;
}


/* Add button styling to contact navigation link */
.nav-menu li:last-child a {
    background-color: #FFDB00;
    color: #26355D;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}


/* Highlight active page link with color and underline */
.nav-menu a.active {
    color: #FFDB00;
    border-bottom: 2px solid #FFDB00;
    padding-bottom: 0.25rem;
}

/* Invert contact button colors on hover */
.nav-menu li:last-child a:hover {
    background-color: #26355D;
    color: #FFDB00;
}


/* Responsive Menu for Small Screens */
@media screen and (max-width: 700px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
}



/* ANIMATIONS
------------------------------------*/

/* NAV MENU HOVER ANIMATION */

.navbar .nav-menu li a,
.navbar .nav-menu li button {
    display: inline-block;
    transition: transform 250ms ease,
}

.navbar .nav-menu li:hover a,
.navbar .nav-menu li:hover button {
    transform: translateY(-4px);
}


/* button MENU HOVER ANIMATION */
button,
.btn {
    transition: transform 250ms ease;
}

button:hover,
.btn:hover {
    transform: translateY(-10px);
}

/* Logotype keyframe animation */
@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.nav-logo {
    display: inline-block;
    animation-name: fade-out;
    animation-duration: 1000ms;
    animation-timing-function: ease;
    animation-direction: alternate;
    animation-iteration-count: 2;
    animation-fill-mode: forwards;

}

/* Three cards animation */
.anim-cell {
    inline-size: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    margin-block-end: 1rem;
    background: radial-gradient(circle at top left, #FFDB00, #26355D);
}

/* position shapes inside the cell */
.anim-cell>div {
    position: absolute;
}



/*Animation 1: clip-path */
.shape-clip {
    inline-size: 80%;
    block-size: 80%;
    inset-inline-start: 10%;
    inset-block-start: 10%;
    background: #f6f6f6;
    clip-path: polygon(50% 5%,
            85% 25%,
            95% 60%,
            70% 90%,
            30% 90%,
            5% 60%,
            15% 25%);
    animation: blob-morph 5s infinite alternate ease-in-out;
}

/* Morph between a few different shapes */
@keyframes blob-morph {
    0% {
        clip-path: polygon(50% 5%,
                85% 25%,
                95% 60%,
                70% 90%,
                30% 90%,
                5% 60%,
                15% 25%);
    }

    50% {
        clip-path: polygon(50% 0%,
                90% 20%,
                100% 55%,
                75% 95%,
                25% 95%,
                0% 55%,
                10% 20%);
    }

    100% {
        clip-path: polygon(50% 10%,
                80% 30%,
                95% 55%,
                65% 85%,
                35% 85%,
                5% 55%,
                20% 30%);
    }
}

/*Animation 2: Animation 2: pulsing circle using filter */
.anim-filter {
    background: #26355D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-filter {
    inline-size: 70%;
    block-size: 70%;
    border-radius: 50%;
    background: #FFDB00;
    transform-origin: center;
    animation: pulse-filter 3s infinite alternate ease-in-out;
}

@keyframes pulse-filter {
    0% {
        transform: scale(0.7);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.3)) hue-rotate(0deg);
    }

    50% {
        transform: scale(1);
        filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.6)) hue-rotate(30deg);
    }

    100% {
        transform: scale(0.85);
        filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.7)) hue-rotate(90deg);
    }
}

/*Animation 3 Blend-mode orbits */
.anim-blend {
    background: #f6f6f6;
}

.shape-blend {
    inline-size: 70%;
    block-size: 70%;
    border-radius: 50%;
    opacity: 0.9;
    mix-blend-mode: multiply;
    transform-origin: center;
}

/* First orbiting circle */
.shape-blend.one {
    background: #FFDB00;
    inset-inline-start: 6%;
    inset-block-start: 18%;
    animation: orbit-left 4.5s infinite alternate ease-in-out;
}

/* Second orbiting circle */
.shape-blend.two {
    background: #26355D;
    inset-inline-end: 6%;
    inset-block-end: 18%;
    animation: orbit-right 4.5s infinite alternate ease-in-out;
}

@keyframes orbit-left {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(8%, -6%);
    }

    100% {
        transform: translate(15%, 4%);
    }
}

@keyframes orbit-right {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-8%, 6%);
    }

    100% {
        transform: translate(-15%, -4%);
    }
}

/* HOME
------------------------------------*/
.home {
    background: url(../images/Closeup-of-Stone-Steps.jpg) no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;

}

.home .content-wrapper {
    flex: 1 0 auto;
}

.content-bg {
    background: rgba(246, 246, 246, 0.9);

    padding: 1.875rem;
}

@media screen and (max-width: 650px) {
    .home .content-wrapper {
        padding: 10px;
    }

    .content-bg {
        padding: 20px;
    }
}

/* RESUME
------------------------------------*/
.resume header h1 {
    margin-top: 2rem;
}

.resume header::before {
    background: url(../images/Closeup-of-Stone-Steps.jpg) center / cover;
    background-size: cover;
    content: " ";
    display: block;
    height: 375px;
}


.resume-section {
    margin-bottom: 50px;
}

.resume-section h2 {
    border-bottom: 2px dashed #d3d4d6;

}


@media screen and (max-width: 500px) {
    .resume header::before {
        height: 200px;
    }

    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 2.6rem;
    }
}



/* Projects
------------------------------------*/

.project-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 650px) {
    .project-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media screen and (min-width: 1024px) {
    .project-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.project-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-item h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
}

.project-item p {
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
}

.project-item .btn {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    background: #FFDB00;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.project-item .btn:hover {
    background: #005fa3;
}



/* Sup Grid Styling 
------------------------------------*/





/* Work Experience
------------------------------------*/
.work-item {
    margin: 1.875rem 0;
}

.work-details p {
    margin: 0;
}


@media screen and (min-width: 860px) {
    .work-item {
        display: grid;
        grid-template-columns: 300px 1fr;
        column-gap: 20px;
    }

    .work-summary p:first-child {
        margin-top: 0;
    }
}



/* Education
------------------------------------*/
.education-item {
    margin: 1.875rem 0;
}

.education-item p {
    margin: 0;
}

/* FOOTER
------------------------------------*/
footer {
    background: #222222;
    /* fallback for var(--gray-8) */
    color: #d3d4d6;
    /* fallback for var(--gray-3) */
}


.socials {
    list-style-type: none;
    padding: 0;
}

.socials li {
    display: inline-block;
    margin-left: 10px;
}

.socials img {
    width: 32px;
}

footer .socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width: 860px) {
    footer {
        display: flex;
        justify-content: space-between;
        padding: 0 1.25rem;
    }
}

@media screen and (max-width: 859px) {
    footer {
        text-align: center;
        padding: 10px;
    }
}

/* Contact button */
#contactPopover {
    position: fixed;
    z-index: 24;
    inset-inline-start: 1rem;
    inset-block-start: 4rem;
}


@supports (anchor-name: --x) and (position-anchor: --x) {
    #contactBtn {
        anchor-name: --contact-anchor;
    }

    #contactPopover:popover-open {
        position-anchor: --contact-anchor;
        inset-inline-start: anchor(--contact-anchor inline-start);
        inset-block-start: calc(anchor(--contact-anchor block-end) + .5rem);
    }
}



/* contact button look */
.nav-menu li:last-child :is(a, button) {
    background: #FFDB00;
    color: #26355D;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    transition: .3s;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.nav-menu li:last-child :is(a, button):hover {
    background: #26355D;
    color: #FFDB00;
}

/* popover base  */
#contactPopover {
    container-type: inline-size;
    position: relative;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
    min-inline-size: 280px;
    inline-size: clamp(320px, 90vw, 33vw);
}


#contactPopover::backdrop {
    background: rgba(0, 0, 0, .45);
}

/* content */
.contact-close {
    position: absolute;
    inset: .5rem .5rem auto auto;
    border: 0;
    border-radius: 999px;
    background: #f4f4f4;
    inline-size: 2rem;
    block-size: 2rem;
    cursor: pointer;
}

.contact-content {
    display: grid;
    gap: .9rem;
}

.contact-headshot {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}

.contact-name {
    margin: 0 0 .25rem;
    font-size: 1.25rem;
}

.contact-bio {
    margin: 0 0 .5rem;
    color: #475569;
    line-height: 1.45;
}

.contact-email,
.contact-phone {
    display: inline-block;
    margin-block: .15rem;
}

/* medium: 2 cols, no bio */
@container (min-width:380px) {
    .contact-content {
        grid-template-columns: 120px 1fr;
        align-items: start;
    }

    .contact-headshot {
        width: 120px;
        height: 120px;
    }

    .contact-bio {
        display: none;
    }
}

/* large: 2 cols + bio */
@container (min-width:640px) {
    .contact-content {
        grid-template-columns: 160px 1fr;
        column-gap: 1rem;
    }

    .contact-headshot {
        width: 160px;
        height: 160px;
    }

    .contact-bio {
        display: block;
    }
}

/* small screens: viewport horizontally */
@media (max-width:480px) {
    #contactPopover {
        inline-size: 100vw;
        border-radius: 0;
    }
}


/* SVG animation */
.svg-page {
    display: flex;
    justify-content: center;
    margin-block: auto;
    padding-block: 3rem;
}

.svg-landscape {
    inline-size: min(900px, 100%);
    block-size: auto;
    display: block;
}

/* Sun – pulse + rotate */
.svg-sun {
    animation: svg-pulse 3s ease-in-out infinite,
        svg-rotate 20s linear infinite;
    animation-delay: 0.5s;
    transform-origin: center;
    transform-box: fill-box;
    opacity: 0;
}


@keyframes svg-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes svg-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/* Mountains – slide in */
.svg-mountain-1,
.svg-mountain-2 {
    opacity: 0;
}

.svg-mountain-1 {
    animation: svg-slide-left 1.5s ease-out forwards;
    animation-delay: 0.8s;
}

.svg-mountain-2 {
    animation: svg-slide-right 1.5s ease-out forwards;
    animation-delay: 1s;
}



@keyframes svg-slide-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes svg-slide-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Cloud – float horizontally */
.svg-cloud {
    animation: svg-float 8s ease-in-out infinite;
    animation-delay: 1.2s;
    opacity: 0;
}

@keyframes svg-float {

    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }
}


/* Stars – twinkle */
.svg-star {
    animation: svg-twinkle 2s ease-in-out infinite;
    opacity: 0;
}

.svg-star-1 {
    animation-delay: 1.5s;
}

.svg-star-2 {
    animation-delay: 1.7s;
}

.svg-star-3 {
    animation-delay: 1.9s;
}


@keyframes svg-twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}


/* Ground – slide up */
.svg-ground {
    animation: svg-slide-up 1.5s ease-out forwards;
    opacity: 0;
}

.svg-ground-1 {
    animation-delay: 1.3s;
}

.svg-ground-2 {
    animation-delay: 1.5s;
}


@keyframes svg-slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Circles – scale in */
.svg-circle {
    animation: svg-scale-in 1s ease-out forwards;
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
}

.svg-circle-1 {
    animation-delay: 2s;
}

.svg-circle-2 {
    animation-delay: 2.2s;
}

.svg-circle-3 {
    animation-delay: 2.4s;
}

@keyframes svg-scale-in {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Buildings – grow up */
.svg-building {
    animation: svg-grow-up 1.2s ease-out forwards;
    opacity: 0;
    transform-origin: bottom;
    transform-box: fill-box;
}

.svg-building-1 {
    animation-delay: 1.6s;
}

.svg-building-2 {
    animation-delay: 1.8s;
}


@keyframes svg-grow-up {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}