@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&family=Outfit:wght@100..900&display=swap');

/*
https://coolors.co/b80c09-6b2b06-e5e7e6-b7b5b3-141301
https://coolors.co/c9cba3-ffe1a8-e26d5c-723d46-472d30
https://coolors.co/aa8f66-ed9b40-ffeedb-61c9a8-ba3b46
https://coolors.co/0a0908-22333b-eae0d5-c6ac8f-5e503f
https://coolors.co/f1f7ed-243e36-7ca982-e0eec6-c2a83e
https://coolors.co/283d3b-197278-edddd4-c44536-772e25
https://coolors.co/eff1ed-373d20-717744-bcbd8b-766153
*/

:root {
    --mint-cream: #f1f7ed;
    --mint-cream-transparent: #f1f7ed81;
    --dark-slate-grey: #243e36;
    --cambridge-blue: #7ca982;
    --cambridge-blue-transparent: #7ca98233;
    --cambridge-blue-transparent-bold: #7ca9829c;
    --nyanza: #e0eec6;
    --old-gold: #c2a83e;
    --old-gold-transparent: #c2a83ec9;
    --dark-brown: #371d10
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li, a {
    text-decoration: none;
    list-style-type: none;
}

h1 {
    font-size: 42px;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    background-image: linear-gradient(to bottom right, var(--mint-cream), var(--old-gold));
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--dark-slate-grey);
}

/* Navbar Styles */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cambridge-blue-transparent);
    backdrop-filter: blur(3px);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    min-width: 280px;
    transition: top 0.6s ease-in-out;
}

.navbar.nav-hidden {
    top: -80px;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    font-weight: 200;
    display: flex;
    white-space: nowrap;    
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 8px;
}

.nav-links li a {
    color: var(--dark-slate-grey);
    text-decoration: none;
    font-weight: 400;
    padding: 6px 10px;
    transition: 0.2s;
}

.nav-links li a:hover {
    background-color: var(--nyanza);
    color: var(--dark-slate-grey);
    font-weight: 600;
    border-radius: 8px;
}

.nav-burger {
    display: none;
    font-size: 22px;
    font-weight: medium;
    color: var(--dark-slate-grey);
    cursor: pointer;
    user-select: none;
}

/* Footer Styles */

.footer {
    color: var(--mint-cream);
    text-align: center;
    bottom: 0;
    padding: 1px 0;
    width: 100%;
    font-size: 12px;
}

/* General Section Styles */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    width: 100%;
    z-index: 100;
    max-width: 1200px;
    margin: 40px auto;
}

.card img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    border-radius: 10px;
    z-index: 100;
}

.card {
    background: var(--mint-cream-transparent);
    backdrop-filter: blur(3px);
    padding-bottom: 30px;
    width: 100%;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    z-index: 100;
}

.card a {
    padding-top: 20px;
    display: block;
    text-decoration: underline;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: 18px;
    z-index: 100;
}

.card p {
    display: block;
    padding-top: 20px;
    color: var(--dark-slate-grey);
    font-size: 16px;
    margin: 0 25px;
    text-align: justify;
    transition: 0.5s ease;
    z-index: 100;
}

.card:hover {
    transform: translateY(-10px) rotate(2deg);
    background-color: var(--nyanza);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    z-index: 100;
}

.card:hover a {
    color: var(--dark-slate-grey);
    z-index: 100;
}

.card:hover img {
    filter: brightness(70%);
    z-index: 100;
}

.divider {
    height: 2px;
    width: 80vw;
    margin: 0 auto;
    background: linear-gradient(to right, #ffffff00, var(--old-gold), #ffffff00);
    border-radius: 2px;
    z-index: 100;
}

.decorative {
    fill: var(--cambridge-blue);
    position: fixed;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.down-arrow {
    text-align: center;
    font-size: 30px;
    pointer-events: none;
    animation: floating 3s ease-in-out infinite;
}

/* Page Specific Styles */

/* Home Page */

.section-intro, .section-links {
    color: var(--greenish-white);
    min-height: 100vh;
    display: flex;
    padding: 50px;
    position: relative;
}

    /* Intro Section */

.section-intro {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 150px;
}

.section-intro .intro-text {
    max-width: 500px;
    z-index: 1;
}

.section-intro .intro-text p {
    position: relative;
    margin: 0;
    padding-bottom: 40px;
}

.section-intro .intro-text .explore {
    position: relative;
    background-color: var(--cambridge-blue);
    width: 120px;
    text-align: center;
    padding: 8px 16px;
    border-radius: 12px;
    transition: 0.3s ease;
    color: var(--mint-cream);
    font-weight: 500;
}

.section-intro .intro-text .explore:hover {
    cursor: pointer;
    width: 150px;
    background-color: var(--mint-cream);
    font-weight: 600;
    text-decoration: underline;
    color: var(--dark-slate-grey);
}

.section-intro .intro-image {
    position: relative;
    width: 30vw;
    height: 20vw;
    object-fit: cover;
    border-radius: 24px;
    object-position: center 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

    /* Links Section */

.placeholder {
    min-height: 100vh;
}

.section-links {
    flex-direction: column;
}

.section-links h2,
.section-links p,
.section-links .card-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-links.animate h2,
.section-links.animate p,
.section-links.animate .card-container {
    opacity: 1;
    transform: translateY(0);
}

.section-links h2 {
    transition-delay: 0.2s;
}

.section-links p {
    transition-delay: 0.5s;
}

.section-links .card-container {
    transition-delay: 0.7s;
}

/* Profile Page */

.profile-body .section-profile {
    min-height: 75vh;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-body .section-profile .profile-text {
    transform: translateY(10%);
    max-width: 500px;
    z-index: 1;
}

.profile-body .section-profile .profile-text h1 {
    font-size: 2.5rem;
}

.profile-body .section-profile .profile-text p {
    transform: translateY(10%);
    text-align: justify;
    text-justify: inter-word;
}

.profile-body .section-profile .profile-image-contact {
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    z-index: 1;
}

.profile-body .section-profile .profile-image-contact img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}   

.profile-body .section-profile .profile-image-contact img:hover {
    transition: all 0.5s ease-in-out;
    animation: rotating 3s ease infinite;
}

@keyframes rotating {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

.profile-body .section-more-about {
    padding: 60px 20px;
    text-align: center;
    z-index: 100;
}

.profile-body .section-more-about h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--dark-slate-grey);
    z-index: 100;
}

.profile-body .section-more-about div {
    background: var(--cambridge-blue-transparent);
    backdrop-filter: blur(3px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin: 20px auto;
    padding: 30px;
    max-width: 800px;
    text-align: justify;
    z-index: 100;
    transition: 0.3s;
}

.profile-body .section-more-about div:hover {
    background: var(--nyanza);
    transform: translateY(-10px);
}

.profile-body .section-more-about h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-slate-grey);
    z-index: 100;
}

.profile-body .section-more-about p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--dark-slate-grey);
    z-index: 100;
}

.profile-body .section-more-about ul {
    padding-left: 20px;
    margin: 10px 0;
    z-index: 100;
}

.profile-body .section-more-about ul li {
    margin: 8px 0;
    color: var(--dark-slate-grey);
    z-index: 100;
}

.profile-body .section-more-about a {
    color: var(--cambridge-blue);
    text-decoration: none;
    transition: 0.2s;
    z-index: 100;
}

.profile-body .section-more-about a:hover {
    text-decoration: underline;
    color: var(--dark-brown);
    z-index: 100;
}

/* Hometown Page */

.hometown-body .section-overview {
    min-height: 90vh;
    display: flex;
    padding-top: 40px;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.hometown-body .overview-text {
    width: 400px;
    height: 400px;
}

.hometown-body .overview-text a {
    color: var(--dark-brown);
    font-weight: 600;
    text-decoration: underline;

}
.hometown-body .overview-text p {
    padding-top: 20px;
    font-size: 1rem;
    text-align: justify;
}

.hometown-body .map-container {
    width: 400px;
    height: 400px;
    overflow: hidden;
}

.hometown-body .map-container svg {
    width: 400px;
    height: auto;
    display: block;
}

.hometown-body .section-culture {
    min-height: 180vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Local Foods Page */

.local-food-body .section-overview {
    height: 30vh;
    justify-items: center;
    padding: 120px;
    text-align: center;
    z-index: 100;
}

.local-food-body .section-overview p {
    font-size: 1.1rem;
}

.local-food-body .section-food {
    margin: 100px auto;
}

/* Tourist Places Page */

/* Section Overview */
.tourist-places-body .section-overview {
    text-align: center;
    padding: 120px 30px;
}

.tourist-places-body .section-overview p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 10px auto;
}

    /* Section Places */
.section-places {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
}

    /* Category Title */
.places-category h3 {
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
    border-left: 6px solid var(--dark-slate-grey);
    padding-left: 10px;
}

/* Grid List */
.places-category ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding-left: 0;
}

/* Place Card */
.places-category li {
    background-color: var(--mint-cream-transparent);
    backdrop-filter: blur(3px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.places-category li:hover {
    transform: translateY(-5px);
    background-color: var(--nyanza);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Image Style */
.places-category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Caption */
.places-category figcaption {
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--dark-brown);
}

.places-category figcaption strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    color: var(--dark-slate-grey);
}

/* responsive adjustments for all pages */

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s ease-in-out, opacity 0.2s ease-in-out;
    }

    .card-container {
        max-width: 400px;
    }
    
    /* ! blur is still buggy*/

    .nav-links.nav-active {
        background-color: var(--cambridge-blue-transparent);
        backdrop-filter: blur(3px);
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 8px 0;
        text-align: center;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .nav-burger {
        display: flex;
        flex-direction: column;
        height: 20px;
        justify-content: center;
    }

    .section-intro {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .section-intro .intro-image {
        width: 80vw;
        height: 50vw;
    }

    .section-intro .intro-text {
        margin: 0 auto;
    }

    .profile-body .section-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .profile-body .section-profile .profile-text {
        padding: 40px;
    }

    .hometown-body .section-overview {
        flex-direction: column;
        padding: 20px 0;
        margin-top: 100px;
    }

    .hometown-body .overview-text,
    .hometown-body .map-container {
        width: 90%;
        max-width: 400px;
        height: auto;
    }

    .local-food-body .section-overview {
        margin-bottom: 250px;
    }

    .tourist-places-body .section-overview h1 {
        font-size: 2rem;
    }
    .tourist-places-body .section-overview p {
        font-size: 1rem;
    }
}