@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-color: #333333;
    --background-color: rgb(247, 242, 242);
    --hover-color: rgb(100, 100, 100);
    --card-bg: white;
    --image-filter: none;
}

body {
    min-height: 100vh;
    font: 16px -apple-system-body, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: var(--background-color);
    color: var(--font-color);
    position: relative;
    transition: background-color 0.6s ease, color 0.6s ease;
}

body.dark-mode {
    --font-color: #acacac;
    --background-color: #292929;
    --hover-color: #bbbbbb;
    --card-bg: #1a1a1a;
    --image-filter: grayscale(10%) brightness(80%);
}

body.dark-mode .mapboxgl-canvas {
    filter: brightness(0.8) contrast(1.1);
}

.bio-container, .pages--blogpage1, .pages--displaymode, .pages--custom-site1, .pages--custom-site2, .pages--linkedin, .pages--current-workplace {
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

div {
    unicode-bidi: isolate;
}

a {
    text-decoration: none;
    color: inherit;
}
p {
    font-size: 18px;
    line-height: 1.6rem;
    letter-spacing: 0.5px;
    font-weight: 400;
    font-family: "Silka Regular", sans-serif;
}

                                   /* Navigation / Header Area */
header {
    background-color: var(--background-color);
}
                                    /* Central Navigation Pill */
nav.pages--header {
    width: 100%;
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.5vw;
    opacity: 0.7;
}
.pages--link-all, .pages--link-about, .pages--link-projects, .pages--link-media {
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
}
div.pages--selector {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 23px;
    transform: translateX(0px);
    width: max-content;
    padding: 8px 5px 8px 5px;
}
body.dark-mode div.pages--selector {
    background: var(--card-bg);
    color: #acacac;
}
.pages--selector a {
    position: relative;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-family: "silka medium", sans-serif;
    transition: background-color 0.3s ease;
}
.filter--highlighter {
    position: absolute;
    background: white;
    height: calc(100% - 16px);
    width: 55px; /* Adjusted width for better fit, needs to be calculated, javascript */
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}
body.dark-mode .filter--highlighter {
    background: #2D1E22;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}
.filter--selector {
    position: relative;
    z-index: 1;
}
.filter--selector a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: inherit;
    color: inherit;
    font-weight: 700;
}
.filter--selector a:hover {
    transition: color 0.3s ease-in-out;
    color: var(--hover-color);
}
                                    /* logo / branding area */
img.logo--image {
    display: flex;
    align-items: center;
    font-size: 18px;
    height: 80px;
    width: auto;
    justify-content: center;
}

                                    /* right side contact link */
.contact--container {
    font-size: 18px;
    font-weight: 700;
}
.contact--container a:hover {
    transition: color 0.3s ease-in-out;
    color: rgb(100, 100, 100);
}

                                      /* Content Area Start */
div.pages--flexContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px;
    margin-bottom: 30px;
}
div.flex-container-layout {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    max-width: 1200px;
}
span.bold-text {
    font-weight: 700;
    font-size: 30px;
    font-family: 'Chewie-DEMO-ExtraBold', sans-serif;
}
span.bold-text-title {
    font-weight: 700;
    font-size: 25px;
    font-family: 'Chewie-DEMO-ExtraBold', sans-serif;
}
span.bold-text-title-blog {
    font-weight: 700;
    font-size: 25px;
    font-family: 'Chewie-DEMO-ExtraBold', sans-serif;
}
.bio-container {
    flex: 1 1 calc(66% - 20px);
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    min-height: 400px;
}
.memoji-container{
    display: flex;
    justify-content: center;
}
.memoji-image {
    width: 125px;
    height: auto;
}
.pages--custom-site-btn {
    font-size: 80px;
    position: absolute;
    bottom: 10px;
    right: 40px;
    z-index: 10;
}

                                    /* Mapbox GL JS Map Styling */
.mapboxgl-canvas {
    display: block;
    width: 100%;
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    height: 400px;
}
#map {
    position: relative;
    top: 0;
    bottom: 0;
    width: 100%;
}
body.dark-mode .mapboxgl-canvas {
    filter: 
        brightness(0.7)
        contrast(1.4)
        saturate(1.9)
        sepia(1)
        hue-rotate(-60deg);
}
.mapboxgl-ctrl-group, .mapboxgl-ctrl-bottom-right, .mapboxgl-ctrl-bottom-left {
    display: none !important;
}

                                    /* Custom Site Example 1 Styling */
.pages--custom-site1 {
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(/assets/images/recroot-bg.svg);
    background-size: cover;
    background-position: bottom;
    position: relative;
}
body.dark-mode .pages--custom-site1 {
    background-image: url(/assets/images/recroot-bg-dark.svg);
}
.pages--custom-site1-img {
    max-width: 90%;
    max-height: 90%;
}
.pages--custom-site-btn {
    font-size: 80px;
    position: absolute;
    bottom: 10px;
    right: 40px;
}
.pages--custom-site-btn a:hover {
    color: rgb(100, 100, 100);
    transition: color 0.3s ease-in-out;
}
                                    /* Custom Site Example 2 Styling */
.pages--custom-site2 {
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(/assets/images/vouch-for-bg.svg);
    background-size: cover;
    background-position: left;
    position: relative;
}
body.dark-mode .pages--custom-site2 {
    background-image: url(/assets/images/vouch-for-bg-dark.svg);
}
.pages--custom-site2-img {
    max-width: 90%;
    max-height: 90%;
    margin-left: 5%;
    padding-right: 20px;
}
                                    /* Linked In Square */
.pages--linkedin {
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: #2767C2;
    flex: 1;
    height: 200px;
    width: auto;
    margin: 0;
}
body.dark-mode .pages--linkedin {
    background-color: #1a1a1a;
}
.pages--linkedin-profile {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
}
.linkedin-square {
    max-width: 30%;
    max-height: 30%;
}
.linkedin-square:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}
.pages--social-toggle-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}
                                    /* Current Workplace Square */

.pages--current-workplace {
    position: relative;
    border-radius: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    background-image: url(/assets/images/wrap-bg.svg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
body.dark-mode .pages--current-workplace {
    background-image: url(/assets/images/wrap-bg-dark.svg);
}
.pages--current-workplace a {
    text-decoration: none;
    margin-right: 10px;
}
.pages--current-workplace a:hover {
    color: var(--hover-color);
    transition: color 0.3s ease-in-out;
}
.pages--custom-site-btn-pg {
    font-size: 80px;
    position: absolute;
    bottom: 0px;
    right: 5%;
    z-index: 10;
}
.pages--current-workplace-img {
    max-width: 65%;
    max-height: 70%;
    margin-left: 4%;
}

                                    /* Blog Page 1 */
.pages--blogpage1 {
    position: relative;
    border-radius: 45px;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--card-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.pages--blogpage1-content {
    margin-top: 20px;
    width: 80%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    letter-spacing: 0.5px;
    padding: 20px;
}
.pages--custom-site-btn-blog {
    font-size: 80px;
    position: absolute;
    bottom: 15px;
    right: 15%;
    z-index: 10;
}
.pages--custom-site-btn-blog a:hover {
    color: var(--hover-color);
    transition: color 0.3s ease-in-out;
}
                                   /* Toggle Dark/Light */
.pages--displaymode {
    flex: 1;
    align-items: center;
    justify-content: center;
    display: flex;
    width: auto;
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: var(--card-bg);
    transition: background-color 0.4s ease;
}
.pages--displaymode-btn {
    width: 100px;
    height: 50px;
    background-color: #e0e0e0;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.5s ease;
    display: flex;
    align-items: center;
    padding: 5px;
    border: none;
    outline: none;
}    
.pages--display-btn::before {
    content: "";
    position: absolute;
    left: 4px;
    width: 22px;
    height: 22px;
    background-color: var(--card-bg);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.5s ease;
}
.pill-head {
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    position: relative;
    z-index: 2;
}
body.dark-mode .pill-head {
    transform: translateX(50px);
    background-color: var(--background-color);
}
body.dark-mode .pages--displaymode {
    background-color: #1a1a1a;
}
body.dark-mode .pages--displaymode-btn {
    background-color: #555;
}
body.dark-mode .pages--displaymode-btn::before {
    transform: translateX(50px);
    background-color: #fff;
}

                                    /* Spacer Box */
.pages--spacer {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
    width: 100%;
    height: 400px;
    border-radius: 45px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
body.dark-mode .pages--spacer {
    background-color: #1a1a1a;
}


                                    /* Media Queries */

@media only screen and (max-width: 599px) {
    nav.pages--header {
        position: relative;
        flex-direction: column;
        height: auto;
        padding: 15px 3.5vw;
        gap: 5px;
        margin-bottom: 5px;
    }
    img.logo--image {
        display: flex;
        align-items: center;
        width: auto;
        height: 100px;
        margin-top: 30px;
    }
    .contact--container {
        display: none;
    }
    .mapboxgl-canvas {
        height: 200px;
    }
    .pages--custom-site1, .pages--custom-site2 {
        height: 400px; 
        width: 100%;
        border-radius: 45px;
    }
    .pages--linkedin {
        height: 175px; 
        width: 50%;
        border-radius: 45px;
    }
    .linkedin-square {
        max-width: 50%;
        height: auto;
    }
    .pages--current-workplace a {
        text-decoration: none;
        margin-right: 25px;
    }
}
                                        /* Desktop Layout */
@media (min-width: 1024px) {
    .pages--flexcontainer-layout {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 20px;
    }
    .bio-container {
        flex: 2 1 calc(66.66% - 20px);
        min-height: 350px;
    }
    #map, .pages--custom-site1, .pages--custom-site2, .pages--current-workplace {
        flex: 1 1 calc(33.33% - 20px);
        aspect-ratio: 1 / 1;
        min-height: auto;
    }
    .pages--current-workplace {
        height: 285px;
    }
    .pages--social-toggle-group {
        display: flex;
        flex-direction: row;
        flex: 1 1 calc(33.33% - 20px);
        gap: 20px;
        align-self: flex-start;
        height: auto;
    }
    .pages--linkedin, .pages--displaymode {
        flex: 1;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
        width: auto;
        border-radius: 45px;
    }
    .pages--blogpage1 {
        flex: 0 0 calc(66.66% - 13.4px);
        height: 400px;
    }
    .pages--spacer {
        flex: 0 0 calc(33.33% - 13.4px);
        height: 400px;
    }
    .pages--blogpage1-content a {
        margin-right: -40px;
    }
    .pages--blogpage1-text {
        padding: 10px 0px;
    }
    span.bold-text {
        font-weight: 700;
        font-size: 30px;
        font-family: 'Chewie-DEMO-ExtraBold', sans-serif;
    }
    span.bold-text-title, span.bold-text-title-blog {
        font-weight: 700;
        font-size: 45px;
        font-family: 'Chewie-DEMO-ExtraBold', sans-serif;
    }
    p {
        font-size: 25px;
        line-height: 1.8rem;
        letter-spacing: 0.5px;
        padding: 10px 30px;
    }

}

                                     /* Font Face Declarations */

@font-face {
    font-family: 'Chewie-DEMO-ExtraBold';
    src:url('/assets/fonts/webfonts_Chewie-DEMO-ExtraBold/Chewie-DEMO-ExtraBold.ttf.woff') format('woff'),
        url('/assets/fonts/webfonts_Chewie-DEMO-ExtraBold/Chewie-DEMO-ExtraBold.ttf.svg#Chewie-DEMO-ExtraBold') format('svg'),
        url('/assets/fonts/webfonts_Chewie-DEMO-ExtraBold/Chewie-DEMO-ExtraBold.ttf.eot'),
        url('/assets/fonts/webfonts_Chewie-DEMO-ExtraBold/Chewie-DEMO-ExtraBold.ttf.eot?#iefix') format('embedded-opentype'); 
    font-weight: normal;
    font-style: normal;
}
