@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* Reset + base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    height: auto;
    width: 100%;
    background-color: #f9f9f9;
    margin: 0;
}

/* Sticky nav */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1rem;
    z-index: 999999;

}

.nav_content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.menu_btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    align-self: flex-end;
    max-width: fit-content;
}



/* Responsive section layout */
.section_grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content_section {
    flex: 1;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    min-height: 300px;
    width: 100%;
    position: relative;
    z-index: 8000;
    /* starting height */
}

/* */
#hero {
    background-image: url('https://images.unsplash.com/photo-1532637644947-13094c2745f1?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    /* */
    position: relative;
    z-index: 8000;
    /* */
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero_title {
    position: relative;
    z-index: 8000;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-grow: 1;
}

.hero_title h2 {
    font-size: 2.75rem;
    line-height: 2;
    max-width: 98%;
    width: auto;
    position: relative;
    z-index: 9999;
    align-self: center;
    font-family: "Playfair Display", serif;
}

.hero_text {
    flex-grow: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    align-self: center;
    line-height: 2;
    margin: 0.25%;
    max-width: none;
    font-family: "Source Sans 3", sans-serif;
    color: #fff;
}

.hero_text p {
    font-size: 1.15rem;
    font-weight: 400;
}

.hero_img img {
    align-self: center;
    width: fit-content;
    max-width: 35%;
    position: absolute;
    right: 15%;
    height: fit-content;
    border-radius: 50%;
    z-index: 6000;
    visibility: hidden;
    mask-image: radial-gradient(circle at 0% 1%,
            rgb(57, 55, 55) 10%,
            rgba(50, 38, 38, 0.853) 80%);
}

/* --- --*/
.overlay_1 {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 35vh;
}

.overlay_1 img {
    align-self: center;
    max-height: 60%;
    max-width: 75%;
    mask-image: radial-gradient(circle at 25% 5%,
            rgb(255, 255, 255) 10%,
            rgba(55, 55, 55, 0.627) 80%);
    border-radius: 12px;
}

/* */
.divider-section {
    background: url('https://images.unsplash.com/photo-1735585142563-1fea15aba663?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center top;
    background-size: cover;
    height: 60vh;
    position: relative;
}

.next-section {
    position: relative;
    top: -80px;
    /* adjust so it appears to emerge from behind the wall */
    z-index: 10;
    background: transparent;
    border-radius: 2rem 2rem 0 0;
    padding: 2rem;
}




/* */

.overlay_3 {
    position: absolute;
    z-index: 5000;
    right: 0%;
    max-width: fit-content;
    overflow-x: hidden;
    width: 100;
    display: flex;
    justify-content: flex-end;

}

.overlay_5 {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 9999;
    top: 30%;
    max-width: fit-content;
    right: 20%;
}

.overlay_5 img {
    align-self: center;
    max-width: 80%;
    mask-image: radial-gradient(circle at 25% 5%,
            rgb(255, 255, 255) 10%,
            rgba(55, 55, 55, 0.627) 80%);
    border-radius: 12px;
}

#rellaxImg {

    max-height: 25%;
    max-width: 98%;
    mask-image: radial-gradient(circle at 25% 5%,
            rgb(255, 255, 255) 10%,
            rgba(55, 55, 55, 0.627) 80%);
    border-radius: 12px;
}

.overlay_3 img {

    max-height: 55%;
    max-width: 55%;
    mask-image: radial-gradient(circle at 25% 5%,
            rgb(255, 255, 255) 10%,
            rgba(55, 55, 55, 0.627) 80%);
    border-radius: 12px;
}

.overlay_4 {}

.overlay_4 img {}

.overlay_2 {
    border: 0.5px dashed white;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 35vh;
}

.overlay_2 img {
    align-self: center;
    max-height: 75%;
    max-width: 98%;
    mask-image: radial-gradient(circle at 25% 5%,
            rgb(255, 255, 255) 10%,
            rgba(55, 55, 55, 0.627) 80%);
    border-radius: 12px;
}

/* ------------
hero section
--------------*/
#experience_1,
#skills_1 {
    height: fit-content;
    background-color: #232323;
    color: #fff;
    margin-top: 0%;
    min-height: 100vh;

}

#skills_1 {
    background-color: var(--color-bg);

}

#projects_1 {
    min-height: 99vh;
    max-height: none;
}

#experience_1 {
    position: relative;
    z-index: 8000;
}


/* */

.project_list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    /* ensures all project_blocks are centered */
    padding: 2rem 1rem;
}

.project_card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 0.5px solid white;
    padding: 1rem;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.project_block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;

    /* 🔒 Consistent width */
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.project_block:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.project_title {

    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.project_title h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: #444;
    flex-grow: 1;
    font-family: "Playfair Display", serif;
}

.project_title img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.project_description {
    font-size: 0.95rem;
    font-weight: 300;
    color: #444;
    flex-grow: 1;
    line-height: 2.25;
    font-family: "Source Sans 3", sans-serif;
}

.project_highlights {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
    font-weight: 300;
    color: #444;
    line-height: 1.9;
    font-family: "Source Sans 3", sans-serif;
}

.project_highlights li {
    margin-bottom: 0.5rem;
}

.project_link {
    align-self: flex-start;
    color: #007BFF;
    font-weight: 300;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.25rem;
    font-family: "Source Sans 3", sans-serif;
}

.project_url {
    align-self: flex-start;
    color: #007BFF;
    font-weight: 300;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    font-family: "Source Sans 3", sans-serif;
}

.project_url:hover {
    text-decoration: underline;
}

/**/
.projects {
    margin: 0.5% 0%;
    width: 100%;
    align-self: center;
}

.projects_container {
    /*     width: 100%;
    max-width: 75%;
    align-self: center;*/

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}



.project_card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #333;
    flex-grow: 1;
    font-family: "Playfair Display", serif;
}

.project_card p {
    flex-grow: 1;
    /* pushes link to bottom */
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
}



.project_card:hover {
    transform: translateY(-4px);
}

/* */
.section_title {

    align-self: center;
    /**/
    text-align: center;
    flex-grow: 0.5;
    line-height: 2;
    width: 100%;
    font-family: "Playfair Display", serif;
}

.section_title h3 {
    align-self: center;
    /**/
    text-align: center;
    line-height: 2;
    /**/
    font-size: 2rem;
    color: #444;
    font-weight: 400;
    margin: 0.25rem 0rem;
}

.section_title.md h3 {
    font-size: 1.25rem;
    font-weight: 400;
}


.section_title h2 {
    align-self: center;
    /**/
    text-align: center;
    line-height: 2;
    /**/
    font-size: 2.75rem;
    font-family: "Playfair Display", serif;
    color: #444;
    font-weight: 500;
    width: 100%;
    margin: 0.25rem 0rem;
}

.section_title.list h2 {
    align-self: center;
    /**/
    text-align: left;
    line-height: 2;
    /**/
    font-size: 1.75rem;
    color: #444;
    font-weight: 500;
    width: 100%;
    margin: 0.25rem 0rem;
}

.section_text {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    /* */
    height: auto;
    /* */
    margin: 1.5% 0%;
    flex-grow: 1;
    width: 100%;
    /* */
    position: relative;
    z-index: 9999;
}

.section_text p {
    align-self: center;
    flex-grow: 1;
    /* */
    max-width: 98%;
    /* */
    margin: 0.25%;
    /* */
    line-height: 2;
    text-align: center;
    font-size: 1rem;
    /* */
    font-weight: 300;
}

.section_text.sm p {
    font-size: 1rem;
    color: #444;
    font-family: "Source Sans 3", sans-serif;
}

.section_text.md p {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    max-width: 75%;
    align-self: center;
    margin-top: 1rem;
    font-family: "Source Sans 3", sans-serif;
}

/* -----------------------

info cards

------------------------ */
.ul_list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 90%;
    align-self: center;
    width: 100%;
    margin: 0.25%;
    padding: 0.25%;
    list-style: circle;
    list-style-position: inside;
    font-family: "Source Sans 3", sans-serif;
}


.ul_list li {
    font-size: 1rem;
    color: #444;
    text-align: left;
    font-family: "Source Sans 3", sans-serif;
    width: 100%;
    line-height: 3;
    font-weight: 300;
}

.card_header {
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
}

.card_content {
    font-size: 1rem;
    line-height: 2;
    margin: 1% 0%;
    font-family: "Source Sans 3", sans-serif;
}

.col_flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: auto;

    height: fit-content;
}

.row_flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    height: auto;

    flex-grow: 2;

    height: fit-content;
    position: relative;
    z-index: 9999;
}

.toggle_btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: "Source Sans 3", sans-serif;

}

.toggle_btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Optional: active button appearance */
.info_card.active .toggle_btn::after {
    content: " ▲";
}

.toggle_btn::after {
    content: " ▼";
    font-size: 0.75rem;
}

.hidden {
    display: none;
    visibility: hidden;
}




/* ------ ------ ------ 

        display: none;
        margin-bottom: 0.5rem;
        background: none;
        border: none;
        color: #007BFF;
        cursor: pointer;
        font-weight: bold;
    }

breakpoints 

------ ------ ------ ------ */

@media (max-width: 600px) {
    .project_block {
        padding: 1rem;
    }

    .project_block h2 {
        font-size: 1.05rem;
    }
}


/* Desktop layout */
@media (min-width: 768px) {

    .content_section {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;

    }

    .col_flex {
        flex-direction: column;
    }

    .row_flex {
        flex-direction: row-reverse;
        width: 100%;

    }

    .hero_title {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        max-width: 98%;
    }

    .hero_title h2 {
        align-self: center;
        max-width: 80%;
        font-size: 3rem;
        text-align: left;
    }

    .hero_img img {
        max-width: 25%;
        width: fit-content;
        right: 0%;
        top: 45%;
        visibility: visible;

    }

    .hero_text {
        max-width: 80%;
        align-self: center;
        line-height: 2.5;
        padding: 0.15%;
    }

    .hero_text p {
        font-size: 1rem;
        font-weight: 500;
    }

    .section_grid {
        flex-direction: row;
    }

    .section_text p {
        text-align: left;
    }

    .section_title h2 {
        font-size: 3rem;
        text-align: left;
    }

    .section_title h3 {
        font-size: 1.75rem;
        text-align: left;
    }

    .info_card {
        flex: 1 1 30%;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        transition: box-shadow 0.3s ease;

    }

    .info_card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .card_header {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Accordion style on mobile */
    .card_content {
        max-height: 1000px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
}

/* Closed by default on mobile */
@media (max-width: 768px) {
    .row_flex {
        flex-direction: column;
    }

    .toggle_btn {
        height: 2.25rem;
        width: 6rem;
        border-radius: 5px;
        background-color: #374151;
        color: #fff;
        font-family: "Source Sans 3", sans-serif;
        border: none;
        padding: 0.15%;
        font-size: 0.9rem;
        text-align: center;
    }

    .card_content {
        max-height: 0;
        padding: 0;

    }

    .info_card.active .card_content {
        max-height: 500px;
        /* Adjust based on content length */
        padding-top: 0.5rem;
    }

    .overlay_3 {
        position: unset;
        max-width: fit-content;
        width: 100%;
        max-width: 50%;
    }

    .overlay_3 img {
        max-width: 50%;
        max-width: 50%;
    }
}

/* Base hidden content */
.card_content {
    display: none;
}

/* Show when card is active */
.info_card.active .card_content {
    display: block;
}

/* Desktop view: show all card_content */
@media (min-width: 768px) {
    .card_content {
        display: block !important;
    }

    .toggle_btn {
        display: none;
        /* Hide buttons on desktop */
    }
}


/* -----------------------

footer

------------------------ */
footer {
    height: auto;
    width: 100%;
    margin: 0%;
    background-color: #f9f9f9;
}

.footer_content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: auto;
    min-height: 420px;
    margin: 0;
    width: 100%;

}

.footer_title {
    color: #222222;
    display: flex;
    align-items: center;
    flex-grow: 0;
    font-family: "Playfair Display", serif;
    border-bottom: 0.5px solid #333;
}

.footer_title h2 {
    font-weight: 300;
    font-size: 2.75rem;

}

.footer_social {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: auto;
    flex-grow: 0;
    height: auto;
    width: 100%;
    color: #262020;

}