@font-face {
    font-family: "Lato";
    src: url(../fonts/Lato/Lato-Regular.ttf);
}

html {
    scroll-behavior: smooth;
}

:root {
    --header-height: 60px;
}

section,
#summary,
#skills-titlecard {
    scroll-margin-top: var(--header-height);
}

.raleway-font {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 25px;
}

.oswald-font {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: monospace;
}

.parallax-container {
 
    background: linear-gradient(175deg, #ffffff 0%,#ccc2e7, rgba(160, 191, 237, 0.8), rgba(212, 109, 223, 0.4) 95%);
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}


.navigation-container {
    display: flex;
    justify-content: flex-end !important;
    padding-right: 10%;
}

.navigation-bar {
    width: 50%;
    max-width: 1000px;
    min-width: 500px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-content: space-around;
    }

.nav-item-container {
    flex: 1 0 auto;
}

.navigation-item a {
    transition: transform 0.3s ease-in-out;
}

.navigation-item a:hover {
    transform: scale(1.1) translateY(-3px);
}

#header-container {
    background: linear-gradient(to left, rgb(36, 60, 25) 0%, rgb(36, 60, 25) 10%, #72914c 10%, #72914c 100%);
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo-container {
    max-width: 10%;
}

#logo-container img {
    width: 45px;
    margin: 30%;
}

.navigation-item {
    display: flex;
    padding: 8px 15px 10px 15px;
    justify-content: center;
}

.navigation-item a {
    text-decoration: none;
}

.summary-container {
    display: flex;
    background: linear-gradient(#72914c 0%,#e6ffc8, rgba(230, 255, 200, 0.8), rgba(255,255,255,0) 95%);
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#summary-photo-container {
    display: flex;
    justify-content: start;
    align-items: center;
}

.summary-item img{
    width: 100%;
    max-width: 700px;
    height: auto;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
}

#summary-text {
    width: 90%;
}

.skills-header {
    width: 100vw;
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    width: 100vw;

}

.card-filler-underline {
    background-color: black;
    height: 3px;
    width: 100%;
    max-width: 500px;
}

.skills-grid-item {
    
    min-width: 20vw;
}

.cv-icons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cv-icon {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.cv-icon:hover {
    transform: scale(1.2) translateY(-3px);
}

.cv-icon img {
    max-width: 50px;
    height: auto;
}



#skills-titlecard {
    display: flex;
    flex-direction: column;
    width: 50vw;
    margin: 100px auto 50px auto;
    text-align: center;
    align-items: center;
}

#experience-card {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1 / 3;
}

#skills-card {
    display: flex;
    flex-direction: column;
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    padding: 20px;
}

#strengths-card {
    display: flex;
    flex-direction: column;
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    padding-top: 40px;
}

.experience-text-area {
    padding: 0px 10px 10px 10px;
}

.experience-text-area a {
    width: 50%;
}

.skills-text-area {
    padding: 0px 10px 10px 10px;
}

.skills-text-area h3 {
    margin-top: 20px;
}

.skills-text-area li {
    padding: 10px;
}

.skills-text-area summary {
    font-size: 25px;
    font-weight: bold;
}

#experience-card h2 {
    max-width: 25vw;
    font-weight: bold;
    margin-bottom: 5vh;;
}

#skills-card h2 {
    font-weight: bold;
    margin-bottom: 5vh;;

}

#strengths-card h2 {
    font-weight: bold;
    margin-bottom: 5vh;
}

#skills-card {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
    margin-left: 1vw;
}

#skills-card:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 20px 5px rgba(230, 238, 255, 0.8);
    transform: translateY(-5px);
}

#experience-card .experience-content {
    padding: 20px;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    border-right-style: solid;
    border-right-width: 1px;
}

#experience-card .experience-content:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 20px 5px rgba(226, 234, 255, 0.8);
    transform: translateY(-5px);
    border-style: none;
}

#strengths-card .strengths-content {
    padding: 20px;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    border-right-style: solid;
    border-right-width: 1px;
}

#strengths-card .strengths-content:hover {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 20px 5px rgba(226, 234, 255, 0.8);
    transform: translateY(-5px);
    border-style: none;
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 280px;
    pointer-events: none;
    border-radius: 50%;
    z-index: 1;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.05) 55%,
        rgba(255, 255, 255, 0.0) 70%
    );

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.parallax-container > *:not(#cursor-glow) {
    position: relative;
    z-index: 2;
}

summary {
    list-style: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    display: none;
}

summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;

    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

details[open] summary::before {
    transform: rotate(90deg);
}

summary:hover {
    transform: scale(1.03) translateY(-3px);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(0deg, #72914c 0%,#e6ffc8, rgba(230, 255, 200, 0.8), rgba(255,255,255,0) 95%);
    margin-top: 50px;;
}

#contact-title,
#projects-title {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 50vw;
    margin: 100px auto 50px auto;
    text-align: center;
}

.contact-card-cont {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
}

.contact-item {
    width: 100%;
    display: flex;
    position: relative;
    align-items: center;
}

.contact-trail-email,
.contact-trail-linkedin,
.contact-trail-github{
    position: absolute;
    margin-left: 20px;

    opacity: 0;
    transform: translateX(20px);
    white-space: nowrap;

    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.contact-item:has(.contact-card.is-open) .contact-trail-email,
.contact-item:has(.contact-card.is-open) .contact-trail-linkedin,
.contact-item:has(.contact-card.is-open) .contact-trail-github {
    opacity: 1;
    transition-delay: 0.15s;
    transform: translateX(0);

}


.contact-card {
    display: flex;
    border: black;
    border-width: 3px;
    border-style: solid;
    justify-content: center;
    align-items: center;
    width: 20%;
    margin: 10px;
    margin-left: 20px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
}

.contact-card a {
    padding: 20px;;
    display: inline-block
}

.contact-card address {
    padding: 20px;
    margin-bottom: 0px;
}

.contact-card {
    display: flex;
    justify-content: space-between;
    transition: transform 0.5s ease;
    cursor: pointer;
    height: 70px;
    max-width: 200px;
}

.contact-card.is-open {
    transform: scale(1.2) translateX(500px);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 20px 5px rgba(226, 234, 255, 0.8);
}

.contact-card img {
    max-width: 50px;
    height: auto;
}

#email-cont {
    background: linear-gradient(
    175deg,
    #ffffff 0%,
    #e8ecfb 30%,
    rgba(186, 198, 240, 0.75) 65%,
    rgba(201, 170, 230, 0.35) 95%);
}

#linkedin-cont {
    background: linear-gradient(
        120deg,
        #fdfdff 0%,
        #dde6f7 25%,
        rgba(160, 185, 235, 0.85) 60%,
        rgba(190, 140, 215, 0.45) 100%
    );
}

#github-cont {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ece6f9 28%,
        rgba(180, 170, 235, 0.75) 60%,
        rgba(210, 160, 230, 0.4) 95%
    );
}

#email-cont img {
    margin-right: 20px;
}

footer {
    height: 50px;
    width: 100%;
    background-color: #72914c;
}

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

.footer-cont div {
    padding-left: 50px;
    color: rgb(255, 255, 255);


}

/* =========================
   MOBILE RESPONSIVENESS
   ========================= */

@media (max-width: 768px) {

    .navigation-bar {
        width: 100%;
        min-width: unset;

    }

    .navigation-item a {
        font-size: 18px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .summary-container {
        padding-top: 30px;
        display: flex;
        flex-direction: column-reverse;
    }

    .summary-item img {
        margin: 30px;
        width: auto;
        height:auto;
        max-width: 80vw;
        border-radius: 15%;
        border: black;
        border-style: solid;
        border-width: 5px;
    }

    #experience-card,
    #skills-card,
    #strengths-card {
        grid-column: auto;
        grid-row: auto;
        margin: 0;
        border-radius: 20px;
    }
}

   @media (max-width: 768px) {

    .contact-item {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 90%;
        max-width: 250px;
        transform: none !important;
        cursor: default;
    }

    .contact-card.is-open {
        transform: none !important;
        box-shadow: none;
    }

    .contact-trail-email,
    .contact-trail-linkedin,
    .contact-trail-github {
        display: none;
    }

    .contact-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 0 18px 4px rgba(220, 230, 255, 0.7);
    }

    .contact-card a,
    .contact-card address {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 18px;
        font-size: 18px;
    }

    .contact-card img {
        max-width: 36px;
    }

    .footer-cont div {
        max-height: 50px;
        padding: 0;;
    }

    .footer-cont {
        display: flex;
        flex-direction: column;

    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 768px), (pointer: coarse) {
    #cursor-glow {
        display: none;
    }
    .contact-card,
    .contact-card.is-open {
        transform: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: none !important;
    }

        * {
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #skills-card,
    #experience-card .experience-content,
    #strengths-card .strengths-content {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    *:hover {
        transform: none !important;
    }

    #email-cont address {
        display: none;
    }

    #email-cont::before {
        content: attr(mobile-text);
        font-weight: 600;
        padding-left: 16px;
    }
}