/* Fonts from `fonts` folder */
@font-face {
    font-family: 'brugty';
    src: url('../fonts/Brugty\ DEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'maloney';
    src: url('../fonts/Maloney.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'maloney-extrude';
    src: url('../fonts/Maloney\ extrude.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nexa';
    src: url('../fonts/Nexa\ Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nexa-bold';
    src: url('../fonts/Nexa\ Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Variables */
:root {
    --green: #006241;
    --darkGreen: #004D2D;
    --turquoise: #77ddc5;
    --darkTurquoise: #2FA7B5;
    --yellow: #FFC100;
    --brown: #8A6B26;
    --blue: #2379BE;
    --darkBrown: #361B04;
    --lightBrown: #E5C493;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'nexa', sans-serif;
}

/* General styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

body {
    background-color: var(--turquoise);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 11;
}

nav * {
    z-index: 11;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

nav ul li a {
    text-decoration: none;
    color: #636363;
    font-size: 1rem;
    font-family: 'brugty', sans-serif;
    padding: 0.6rem 1.2rem;
    /* background-color: rgba(255, 255, 255, 0.55); */
    border-radius: 2.5rem;
    text-transform: uppercase;

    transition: all 0.4s;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    border-radius: .25rem;
    transform: translateY(-10px);
    transition: all 0.3s ease, visibility 0s;
    gap: 0;

    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
    background-color: #fff;
}

.dropdown-content li {
    transition: all 0.3s;
    margin: 0;
    width: 100%;
}

.dropdown-content li a {
    width: 100%;
    font-size: .8rem;
    display: inline-block;
    padding: .8rem .2rem;
}

.dropdown-content li:hover {
    background-color: #d9d9d9;
}

.dropdown-content li a:hover {
    background: none !important;
}

.dropdown:hover .dropdown-content li:not(:last-child) {
    margin-bottom: .7rem;
}

nav ul li a.active {
    color: #000;
    background-color: rgba(255, 255, 255, 0.55);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.55);
}

footer {
    background-color: var(--turquoise);
    text-align: center;
    padding: .6rem 0;
    font-family: 'nexa', sans-serif;
    text-transform: uppercase;
    font-size: .8rem;
}

/* --- HOME PAGE --- */
#hero {
    background-image: url('../images/home/bg-top.png');
    background-size: cover;
    background-position: center bottom;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#hero header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

#hero header h1 {
    font-family: 'maloney', sans-serif;
    font-size: 7rem;
    letter-spacing: 0.2rem;
    color: #fff;
    text-align: center;
    z-index: 9;
}

#hero header h1::before {
    content: 'Portfolio';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    letter-spacing: 0.2rem;
    color: var(--green);
    text-align: center;
    z-index: -1;
}

#hero header .board {
    position: absolute;
    top: -1.75rem;
    left: -2rem;
    padding: .5rem 3rem;
    background-color: var(--yellow);
    border-radius: 60%;
    rotate: -5deg;
    font-family: 'brugty', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    border: 3px solid white;
    box-shadow: 0 0 0 10px var(--yellow);
    z-index: -2;
}

#hero a {
    background: none;
    border: none;
    outline: none;
    appearance: none;
    text-decoration: none;
    cursor: pointer;
    font-family: 'brugty', sans-serif;

    background-color: var(--green);
    color: #fff;
    padding: .4rem 1.5rem;
    font-size: 1.25rem;
    border-radius: .8rem;
    text-transform: uppercase;

    transition: all 0.3s;
}

#hero a:hover {
    background-color: var(--darkGreen);
}

#learning {
    padding: .5rem 0;
    background-color: var(--turquoise);
    position: relative;
}

#learning h2 {
    font-family: 'maloney', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

#learning h2::before {
    content: 'Learning Outcomes';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: var(--green);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

#learning .outcomes {
    background-image: url('../images/home/curved_lines.png');
    background-size: cover;
    background-position: center top;
    min-height: 40vh;

    display: flex;
    flex-wrap: wrap;
}

#learning .outcomes .outcome {
    flex: 1;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* #learning .outcomes .outcome:nth-child(odd) {
    transform: translateY(-1.3rem);
}

#learning .outcomes .outcome:nth-child(even) {
    transform: translateY(1.3rem);
} */

#learning .outcomes .outcome:nth-child(1) {
    transform: translateY(-2.6rem);
}

#learning .outcomes .outcome:nth-child(2) {
    transform: translateY(3.6rem);
}

#learning .outcomes .outcome:nth-child(3) {
    transform: translateY(-2.2rem);
}

#learning .outcomes .outcome:nth-child(4) {
    transform: translateY(-3rem);
}

#learning .outcomes .outcome:nth-child(5) {
    transform: translateY(1.6rem);
}

#learning .outcomes .outcome img {
    width: 60px;
}

#learning .outcomes .outcome figcaption {
    font-family: 'brugty', sans-serif;
    text-shadow:
    -3px -3px 0 var(--darkGreen),
     0   -3px 0 var(--darkGreen),
     3px -3px 0 var(--darkGreen),
     3px  0   0 var(--darkGreen),
     3px  3px 0 var(--darkGreen),
     0    3px 0 var(--darkGreen),
    -3px  3px 0 var(--darkGreen),
    -3px  0   0 var(--darkGreen);
    font-size: 1.2rem;
    font-style: bold;
    color: #fff;
    margin: .5rem 0;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

#mabuhay {
    background-image: url('../images/home/bg-bottom.png');
    background-size: cover;
    background-position: center top;
}

#mabuhay .passport {
    flex: 4;
}

#mabuhay .passport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

#mabuhay .mabuhay {
    flex: 5;
    padding: 2rem 2.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mabuhay .mabuhay h2 {
    font-family: 'maloney', sans-serif;
    font-size: 6rem;
    color: #fff;
    margin: 1rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

#mabuhay .mabuhay h2::before {
    content: 'Mabuhay!';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: var(--darkTurquoise);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

#mabuhay .mabuhay p {
    font-family: 'nexa', sans-serif;
    font-size: 1.2rem;
    color: var(--brown);
    margin: 1rem 0;
    text-align: justify;
    position: relative;
    z-index: 2;
}

#mabuhay .mabuhay a {
    text-decoration: none;
    background-color: var(--darkTurquoise);
    color: #fff;
    padding: .4rem 2rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-family: 'brugty', sans-serif;
    font-size: 1.2rem;
}

/* --- ABOUT PAGE --- */
#about .mabuhay {
    padding-bottom: 0;
}

#about .mabuhay h2 {
    margin-top: 3rem;
}

#about #mabuhay .row {
    padding-top: 5rem;
}

/* #about #mabuhay .passport {
    position: relative;
}

#about #mabuhay .passport img {
    max-height: 600px;
    position: absolute;
    bottom: 0;
    left: 0;
} */

#skill-interest {
    display: flex;
    width: 100%;
}

#skill-interest article {
    width: 50%;
}

#skill-interest article figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#skill-interest article h5 {
    font-family: 'brugty', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin: 1rem 0;
    text-transform: uppercase;
}

#skill-interest .title {
    position: relative;
    max-width: 250px;
    margin: 0 auto;
}

#skill-interest .title img {
    width: 90%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

#skill-interest .title h5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.5rem;
}

#skill .title h5 {
    rotate: -5deg;
    top: 38%;
}

#interests .title h5 {
    top: 50%;
    rotate: 8deg;
}


/* --- OUTCOMES PAGE --- */
#outcomes {
    min-height: calc(100vh - 45.59px);
    background-image: url('../images/outcomes/bg.png');
    background-size: cover;
    background-position: center top;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

#outcomes h2 {
    font-family: 'maloney', sans-serif;
    font-size: 4rem;
    color: #fff;
    margin: .5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

#outcomes h2::before {
    content: 'Learning Outcomes';
    display: block;
    font-family: 'maloney-extrude', sans-serif;
    font-size: inherit;
    font-weight: bold;
    color: var(--blue);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

#outcomes .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#outcomes .outcome {
    width: 20%;
    min-width: 250px;
    max-width: 300px;

    transition: all 0.3s;
}

#outcomes .outcome:hover {
    transform: translateY(-10px);
}

#outcomes .outcome img {
    width: 100%;
    aspect-ratio: 1/1;
}

/* --- SUBOUTCOMES PAGE --- */
.sub-outcome {
    min-height: calc(100vh - 45.59px);
    background-image: url('../images/interactive/bg.png');
    background-size: cover;
    background-position: center top;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.sub-outcome h2 {
    font-size: 3rem;
    font-family: 'Brugty', sans-serif;
    color: var(--darkBrown);
    text-align: center;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow:
    -3px -3px 0 #fff,
     0   -3px 0 #fff,
     3px -3px 0 #fff,
     3px  0   0 #fff,
     3px  3px 0 #fff,
     0    3px 0 #fff,
    -3px  3px 0 #fff,
    -3px  0   0 #fff;
}

.sub-outcome p {
    text-align: center;
    color: var(--darkBrown);
    max-width: 750px;
    margin: 0 auto 2rem;
}

.sub-outcome p.brief-desc {
    font-family: 'nexa-bold', sans-serif;
    font-weight: 700;
}

.sub-outcome .box {
    background-color: var(--lightBrown);
    border: 4px solid var(--darkBrown);
    margin: .8rem auto 2rem;
    border-radius: .6rem;
    padding: .5rem;
    max-width: 900px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.sub-outcome .box:hover {
    background-color: #D1AF84;
}

.sub-outcome .box .image-container {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--darkBrown);
    width: 100px;
}

.sub-outcome .box .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-outcome .box .texts {
    flex: 1;
    padding: 1rem;
    color: var(--darkBrown);
}

.sub-outcome .box .texts h4 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.sub-outcome .box .texts h3 {
    font-size: 2rem;
    font-family: 'Brugty', sans-serif;
    margin-bottom: .5rem;
}

.sub-outcome .box .texts p {
    margin: 0;
}

/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: none;
}

.modal-content {
    background-color: var(--lightBrown);
    border: 3px solid var(--darkBrown);
    border-top-left-radius: .6rem;
    border-top-right-radius: .6rem;
    max-width: 1000px;
    margin: 6rem auto 0;
    position: relative;
    color: var(--darkBrown);
}

.modal-header {
    padding: 1.5rem 1rem 0;
}

.modal-header h2 {
    text-transform: uppercase;
    font-size: 3rem;
    text-align: center;
    font-family: 'BruGty', sans-serif;
    letter-spacing: 3px;
    font-style: bold;
    text-shadow:
    -3px -3px 0 #fff,
     0   -3px 0 #fff,
     3px -3px 0 #fff,
     3px  0   0 #fff,
     3px  3px 0 #fff,
     0    3px 0 #fff,
    -3px  3px 0 #fff,
    -3px  0   0 #fff;
}

.modal-header .close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--darkBrown);
    color: #fff;
    font-family: 'Brugty', sans-serif;
    padding: .3rem;
}

.modal-body {
    padding: 1rem 2rem;
    height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--darkBrown) var(--lightBrown);
}

.modal-body article {
    margin-bottom: 2rem;
}

.modal-body article h2 {
    text-transform: uppercase;
    font-size: 1.6rem;
    font-family: 'Brugty', sans-serif;
    margin-bottom: 1rem;
}

.modal-body article p {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

.modal-body .pdf {
    margin-bottom: 1rem;
    text-align: center;
}

.modal-body .pdf .images {
    display: flex;
}

.modal-body .pdf .img-container {
    flex: 1;
    width: 70%;
    max-width: 350px;
    aspect-ratio: 16/9;
    background-color: var(--darkBrown);
    overflow: hidden;
    border-radius: .6rem;
    margin: 0 auto;
}

.modal-body .pdf .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body .pdf a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Brugty', sans-serif;
    text-transform: uppercase;
    background-color: var(--darkBrown);
    padding: .7rem 1rem .5rem;
    border-radius: .6rem;
    margin-top: .7rem;
    display: inline-block;
}

.modal-body .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-body .row .col-6 {
    flex: 1;
    padding: 1rem;
}

.modal-body .row .col-6 .img-container {
    width: 100%;
    height: 100%;
    background-color: var(--darkBrown);
    border-radius: .7rem;
}


/* MEDIA QUERIES */
@media screen and (max-width: 768px) {
    nav ul {
        padding: 1rem;
    }

    nav ul li a {
        padding: 0.6rem 1rem;
    }

    #hero header h1 {
        font-size: 5.5rem;
    }

    #hero header .board {
        padding: .5rem 2rem;
        font-size: 1rem;
    }

    #hero button {
        padding: .4rem 1rem;
        font-size: 1rem;
    }

    #learning h2 {
        font-size: 3rem;
    }

    #learning .outcomes .outcome img {
        width: 50px;
    }

    #learning .outcomes .outcome figcaption {
        font-size: 1rem;
    }

    #mabuhay .mabuhay h2 {
        font-size: 4rem;
    }

    #about .mabuhay h2 {
        margin-top: 5rem;
    }

    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .row.reverse {
        flex-direction: column-reverse;
    }

    .modal-body .row .col-6 .img-container {
        height: 250px;
    }

    #skill .title h5 {
        rotate: -5deg;
        top: 32%;
        font-size: .9rem;
    }
    
    #interests .title h5 {
        top: 42%;
        rotate: 8deg;
        font-size: .9rem;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        padding: 1rem;
    }

    nav ul li a {
        padding: 0.6rem 0.8rem;
    }

    footer {
        font-size: .8rem;
    }

    #hero header h1 {
        font-size: 4.7rem;
    }

    #hero header .board {
        padding: .5rem 1.5rem;
        font-size: 1rem;
    }

    #hero button {
        padding: .4rem 0.8rem;
        font-size: 1rem;
    }

    #learning h2 {
        font-size: 2.5rem;
    }

    #learning .outcomes .outcome img {
        width: 40px;
    }

    #mabuhay .passport {
        display: none;
    }

    #mabuhay .mabuhay h2 {
        font-size: 3rem;
    }

    #outcomes {
        padding-top: 9rem;
    }
    
    #outcomes h2 {
        font-size: 3rem;
    }
    
    .sub-outcome {
        padding-top: 9rem;
    }
}