/*
CSS RESETS:
 Border box reset:
https://www.paulirish.com/2012/box-sizing-border-box-ftw/
 62.5% Fix: https: //www.aleksandrhovhannisyan.com/blog/62-5-percent-font-size-trick/
*/

/* CSS HEX */
:root {
--alice-blue: #f4faffff;
--bice-blue: #386fa4ff;
--raisin-black: #272727ff;
--madder: #a31621ff;
--rojo: #db222aff;
--golden-glow: #ead637ff;
--golden-bronze: #cba328ff;
--bright-amber: #f9c80eff;
--tiger-flame: #f86624ff;
}

/* =========================================
CSS RESETS
========================================= */

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-size: 1.6rem;
    /* font-size 1.6rem is now the same as 16px */
    line-height: 1.6;
}

/* =========================================
NAV BAR
========================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--alice-blue);
    color: var(--bice-blue);
    font-family: "Merriweather Sans", sans-serif;
    position: relative;
    width: 100vw;
    z-index: 10;
}

.home .navbar {
    position: fixed;
}

.dropbtn {
    font-family: "Merriweather Sans", sans-serif;
    margin-top: -2px;
    font-size: 18px;
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--bice-blue);
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s, background-color 0.3s;
    padding: 5px 10px;
}

.dropbtn:hover,
li:has(.dropdown-menu.show) .dropbtn {
    color: var(--alice-blue);
    background-color: var(--raisin-black);
    border-radius: 4px;
}

.dropdown-menu {
    display: none;
    background-color: var(--alice-blue);
    position: absolute;
    min-width: 7em;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
    padding: 10px 0px;
}

/* Logo styling */
.logo a {
    color: var(--bice-blue);
    font-family: "Cal Sans", sans-serif;
    text-decoration: none;
    font-size: 24px;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
}

/* Navigation links styling */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    color: var(--bice-blue);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s, text-decoration 0.3s, background-color 0.3s;
    padding: 5px 10px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--alice-blue);
    background-color: var(--raisin-black);
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: var(--bice-blue);
    height: 3px;
    width: 25px;
    margin: 5px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--alice-blue);
        z-index: 100;
        /* Green background for mobile view */
    }

    .dropbtn {
        margin: auto;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu a {
        display: none;
    }

    .dropdown-menu.show a {
        display: block;
        width: auto;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--alice-blue);
        /* Lighter color for active/hover */
        background-color: var(--raisin-black);
        /* Darker green background on hover */
        border-radius: 4px;
        /* Optional: rounded corners */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

}

/* =========================================
HOME
========================================= */

.home {
    width: auto;
    height: 100vh;
    height: 100dvh;
}

.carousel {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: no-repeat center/100% url(../assets/skybg.png);
    position: relative;
    z-index: 0;
    display: flex;
    overflow: hidden;
    justify-content: center;
}

.slideshow {
    background-color: black;
}

.slides {
    height: 110vh;
    width: auto;
    aspect-ratio: 16/9;
    opacity: 0.75;
}

.prev,
.next {
    cursor: pointer;
    position: fixed;
    top: 50%;
    color: var(--bice-blue);
    background-color: var(--alice-blue);
    opacity: 0.5;
    padding: 5px 20px 5px 17px;
    font-weight: bold;
    font-size: 24px;
    transition: 0.2s ease;
    border-radius: 50%;
    text-align: center;
    z-index: 10;
    margin: 0 1.3vw;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    color: var(--alice-blue);
    background-color: var(--raisin-black);
    opacity: 1;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.35
    }

    to {
        opacity: 0.75
    }
}


/* @media screen and (max-width: 900px) {
    .shift {
        translate: -400px;
    }
} */

/* =========================================
FLEXBOX BODY
========================================= */

body {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
    margin: 0 auto;
    background: url(../assets/skybg.png) no-repeat;
    background-size: cover;
    display: flex;
    padding: 0;
    width: 100%;
    flex-direction: column;
}

main {
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

section {
    flex: 0 1 auto;
    /* for a grid that wraps, set an initial size for each section in flex: */
    /* flex: 0 1 200px; */
    padding: 0;
    /* add margin if you don't want to use gap in flex container (main) */
}

/* =========================================
MEDIA QUERIES
========================================= */

@media screen and (max-width:650px) {
    /* css for mobile here  */
}

/* =========================================
BIOGRAPHY
========================================= */
.biography {
    background: url(../assets/skybg.png) no-repeat fixed;
    background-size: cover;
    display: flex;
}

.biography .content-wrapper {
    max-width: 66%;
    background: none;
    background-color: rgba(56, 112, 164, 0.25);
    padding: 50px;
}

.blurb {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.blurb img {
    border-radius: 100%;
    max-width: 300px;
    flex-shrink: 0;
}

.blurb .autobio {
    width: auto;
    background: rgba(244, 250, 255, 0.25);
    padding: 30px;
}

@media (max-width: 768px) {
    .blurb {
        flex-direction: column;
    }
}

/* ======================================== 
RESUME
========================================= */
.resume {
    background: url(../assets/skybg.png) no-repeat fixed;
    background-size: cover;
    display: flex;
}

.resume .content-wrapper {
    max-width: 66%;
    background: none;
    background-color: rgba(56, 112, 164, 0.25);
    padding: 50px;
}

.resume-section {
    margin-bottom: 50px;
}

.resume-section h2 {
    border-bottom: 2px dashed rgb(250, 238, 241);
}

.download-link {
    position: fixed;
    top: 80px;
    left: 5px;
    font-size: 1.5rem;
}

@media screen and (max-width:1200px) {
    .download-link {
        position: absolute;
    }
}

@media screen and (max-width:500px) {
    .resume header::before {
        height: 200px;
    }

    h1 {
        font-size: 5.2rem;
    }

    h2 {
        font-size: 2.8rem;
    }
}

/* ======================================== 
PROJECTS     .projects-works
========================================= */

.btn {
    border: none;
    outline: none;
    text-decoration: none;
    padding: 12px 16px;
    background-color: var(--alice-blue);
    cursor: pointer;
    font-family: "Merriweather Sans", sans-serif;
}

.btn:hover {
    background-color: rgb(199, 203, 207);
}

.btn.active {
    background-color: var(--raisin-black);
    color: var(--alice-blue);
}

.project-image img {
    max-width: 500px;
    max-height: 500px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    margin: 0;
}

.row,
.row>.column {
    padding: 1em;
}

.column {
    flex: 0 1 30%
}

.show {
    display: block;
}

.project-item p {
    margin-bottom: 25px;
}

@media screen and (min-width:860px) {
    .project-item {
        display: flow-root;
        margin: 10px 0 50px 0;
    }

    .project-item img {
        float: left;
        margin-right: 20px;
    }
}


@media screen and (min-width:650px) and (max-width:859px) {
    .project-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }

    .project-item img {
        width: 100%;
    }
}

@media screen and (max-width:500px) {
    .project-item img {
        width: 100%;
        margin: 10px;
    }
}

/* Work Experience 
--------------------------------------------*/
.work-item {
    margin: 30px 0;
}

.work-details p {
    margin: 0;
}

@media screen and (min-width:860px) {
    .work-item {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 20px;
    }

    .work-summary p:first-child {
        margin-top: 0;
    }
}

/* Education 
--------------------------------------------*/
.education-item {
    margin: 30px 0;
}

.education-item p {
    margin: 0;
}


/* =========================================
FOOTER
========================================= */

footer {
    font-family: "Merriweather Sans", sans-serif;
    background: var(--bice-blue);
    color: var(--alice-blue);
    position: relative;
    bottom: 0;
    width: 100vw;
    z-index: 10;
}

.home footer {
    position: fixed;
}

.socials {
    list-style-type: none;
    padding: 0;
}

.socials li {
    display: inline-block;
    margin-left: 20px;
}

.socials img {
    width: 32px;
}

.socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width: 860px) {
    footer {
        display: flex;
        justify-content: space-between;
        padding: 15px 20px 5px;
    }
}

@media screen and (max-width: 859px) {
    footer {
        text-align: center;
        padding: 10px;
    }
}
