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

:root {
    --primaryColor: #56b589;
    --primaryColor-trans: #56b58988;
    --secondaryColor: #3a805e;
    --secondaryColor-trans: #3a805e88;
    --snowWhite: #f5fefd;
    --lightGray: #f8f8f8;
    --gray: #919191;
    --headerWidth: 15%;
    --contentWidth: 3vw;
    --contentHeight: 3vh;
    --header1Size: 3rem;
    --header2Size: 2rem;
    --header3Size: 1.75rem;
    --strongSize: 1.35rem;
    --paragraphSize: 1.25rem;
    --cardWidth: 600px;
    --cardHeight: 400px;
    --dialogBG: #f6f6f6;
    --bubblePaddingHeight: .75rem;
    --bubblePaddingWidth: 1rem;
}

html {
    font-size: 16px;
    font-family: 'Lato', 'Roboto', Arial, Helvetica, sans-serif;
}

body {
    position: relative;
}

button:hover {
    cursor: pointer;
}

header {
    display: flex;
    flex-direction: column;
    background-color: var(--primaryColor);
    width: var(--headerWidth);
    color: var(--snowWhite);
    align-items: center;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

#headerName {
    font-weight: bolder;
    margin: 1.25rem 0;
    font-size: 1.25rem;
}

#headerPict {
    overflow: hidden;
    border-radius: 150px;
    width: 9.375rem;
    height: 9.375rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}

#headerPict img {
    width: 150%;
    height: auto;
    /* margin-top: 50px; */
}

header p {
    /* font-size: .8rem; */
    margin: 1.25rem 0;
    text-align: center; 
    padding: 0 20px;
    text-wrap: balance;
}

.icon-container li {
    list-style: none;
    margin: 0 5px;
}

.icon-container {
    display: flex;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 1.75rem;
}

.line {
    width: 90%;
    box-shadow: 0 0 0 .1px black;
}

nav {
    margin-top: 1.25rem;
}

nav ul li {
    list-style: none;
    margin: 1rem 0;
    align-items: center;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--snowWhite);
    display: flex;
    /* justify-content: center; */
    align-items: center;
}

nav ul li button {
    all: unset;
    color: var(--snowWhite);
    display: flex;
    align-items: center;
}

nav ul li a i, nav ul li button i {
    width: 25px;
    align-items: center;
    justify-self: center;
}

nav ul li a span, nav ul li button span {
    justify-content: flex-start;
}

#cta {
    margin-top: .45rem;
    margin-bottom: 1.25rem;
    background-color: var(--secondaryColor);
    color: var(--snowWhite);
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 5px 0px #00000044;
    padding: 10px 15px;
    transition: all .3s ease;
}

#cta:hover {
    background-color: var(--secondaryColor-trans);
}

main {
    /* position: absolute; */
    margin-left: var(--headerWidth);
    top: 0;
    background-color: var(--lightGray);
    width: calc(100% - var(--headerWidth));
}

.mobile-text {
    display: none;
}

section:last-child {
    margin-bottom: 30px;
}

.picture-overlay {
    display: none;
}

#text {
    width: 47rem;
    margin-right: 6.25rem;
    text-align: justify;
}

#text h1 {
    font-size: var(--header1Size);
}

#text h3 {
    /* default font size or just leave it empty */
    font-size: var(--header3Size);
    font-family: 'Lato';
    color: var(--secondaryColor);
    margin-bottom: .75rem;
}

#text p {
    font-family: 'Lato';
    font-size: var(--paragraphSize);
    margin-bottom: .5rem;
}

#intro {
    display: flex;
    padding: var(--contentHeight) var(--contentWidth);
    margin-bottom: 30px;
}

#text ul {
    margin-left: 32px;
    margin-bottom: 2rem;
}

#text ul li {
    font-family: 'Lato';
    font-weight: 400;
    font-size: var(--paragraphSize);
}

#closeDown {
    display: none;
}

#profilePictContainer {
    width: 550px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    align-self: center;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}

#profilePictContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-ctaSection {
    display: none;
}

#ctaSection {
    display: flex;
    text-wrap-mode: nowrap;
}

#ctaSection a {
    background-color: var(--primaryColor);
    border: none;
    padding: 12px 25px;
    color: var(--snowWhite);
    border-radius: 3px;
    width: fit-content;
    font-size: var(--paragraphSize);
    transition: all .3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);
}

#ctaSection #resume {
    background-color: #4f4f4f;
    margin-left: .75rem;
}

#ctaSection #resume:hover {
    background-color: #4f4f4f88;
}

#ctaSection a:hover {
    background-color: var(--primaryColor-trans);
}

#about {
    background-color: #fff;
    padding: var(--contentHeight) var(--contentWidth);
}

blockquote {
    font-size: var(--header2Size);
    padding-left: 14px;
    border-left: 4px solid var(--primaryColor);
    margin: 1rem 0;
}

section > p {
    font-size: var(--paragraphSize);
    text-align: justify;
}

#overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    justify-content: space-around;
    gap: 3rem 2rem;
    margin: 3rem 0;
}

.overview-item img {
    width: 50px;
}

.name, .desc {
    display: block;
}

.name {
    font-size: var(--strongSize);
    margin-bottom: .35rem;
}

.desc {
    text-align: justify;
    font-size: var(--paragraphSize);
}

#certifications {
    padding: var(--contentHeight) var(--contentWidth);
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel > ul {
  position: relative;
  height: 100%;
  margin-top: 3rem;
  margin-bottom: 16px;
}

.slide {
    width: 53.5rem;
    margin: 0 auto;
    display: none;
    list-style-type: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
.slide[data-active] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
  
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}
  
.carousel-button.prev {
    left: 2rem;
}
  
.carousel-button.next {
    right: 2rem;
}
  
.carousel-dots {
    display: flex;
    justify-content: center;
}
  
.dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin: 0 3px;
}
  
.dot.active {
    background-color: #717171;
}

#programs {
    background-color: #fff;
    padding: var(--contentHeight) var(--contentWidth);
}

#programs > p {
    margin-bottom: 3rem;
}

.view-less-button {
    display: none;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
}

.img-container {
    /* width: var(--cardWidth); */
    /* width: calc(var(--cardWidth * 0.9)); */
    height: var(--cardHeight);
    /* border-radius: 15px; */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
}

.img-container img {
    height: 100%;
    object-fit: cover;
}

#organizationCard img {
    height: 100%;
}

.card-item {
    width: 41.25rem;
    width: auto;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .3);
    /* padding: 20px 25px; */
    overflow: hidden;
    background-color: var(--lightGray);
    background: transparent;
    /* border: 1px solid gray; */
    border-radius: 10px;
}

.card-item p {
    font-size: var(--paragraphSize);
}

.text-container {
    margin: 20px 25px;
}

.text-container > strong {
    font-size: var(--strongSize);
    margin-left: 0.5rem;
}

.text-container > span {
    display: block;
    margin-left: 0.5rem;
    color: #808080;
    /* font-weight: bolder; */
    font-family: 'Roboto', Arial;
}

.text-container > p {
    margin-left: .5rem;
    margin-top: .5rem;
    text-align: justify;
    backdrop-filter: blur(10px);
}

#portfolio {
    padding: var(--contentHeight) var(--contentWidth);
}

footer {
    background-color: var(--primaryColor);
    margin-left: var(--headerWidth);
}

dialog {
    margin: revert;
    padding: revert;
    border: none;
    height: fit-content;
    max-height: 60vh;
    width: 50vw;
    border-radius: 10px;
    outline: none;
}

#dialogAboutMe{
    background-color: var(--dialogBG);
    text-align: justify;
    text-wrap-style: pretty;
}

dialog::backdrop {
    backdrop-filter: blur(10px);
    background: #00000088;
}

#bio {
    padding: var(--bubblePaddingHeight) var(--bubblePaddingWidth);
    margin-bottom: 1rem;
}

#aboutMe {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.bubble {
    border-radius: 7px;
    background-color: white;
}

.bubble > h3 {
    border-bottom: 2px solid var(--dialogBG);
    padding: var(--bubblePaddingHeight) var(--bubblePaddingWidth);
}

.bubble > p {
    padding: var(--bubblePaddingHeight) var(--bubblePaddingWidth);
}

#left-section-container {
    width: 40%;
    height: 100%;
}

#left-section-container > .bubble:first-child {
    margin-top: 0;
}

#left-section-container > .bubble {
    margin: 1rem 0;
}

#right-section-container {
    /* background-color: green; */
    width: 57%;
}

#dialogContact .img-container {
    border-radius: 100px;
    height: 100px;
    width: 100px;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 0;
}

#dialogContact .img-container img {
    width: 100%;
}

#dialogContact {
    width: 32vw;
}

#dialogContact .header {
    display: flex;
    justify-content: center;
    align-items: center;
}

#dialogContact .text {
    margin-left: 15px;
}

#dialogContact .text > p {
    margin-top: .4rem;
}

#dialogContact .text > span {
    color: #808080;
}

#dialogContact button {
    border: none;
    font-size: var(--paragraphSize);
    padding: 0;
    margin: 0;
    outline: none;
}

#dialogContact .container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 1rem;
}

#dialogContact .ig-container {
    width: 150px;
    height: fit-content;
    overflow: hidden;
}

#dialogContact .container img {
    width: 100%;
}

.contact-display {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: fit-content;
    max-width: 100%;
    font-family: sans-serif;
    width: 80%;
    justify-content: space-between;
    margin: 10px 0;
}

.contact-text {
    user-select: all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
    color: #111827;
}

.copy-btn {
    border: none;
    background: transparent;
    /* cursor: pointer; */
    /* padding: 0.25rem; */
    /* border-radius: 0.375rem; */
    transition: background 0.2s ease;
}

.copy-btn i {
    color: #696969;
}

.copy-btn i:hover {
    color: #a9a9a9;
}

.contact-display > i {
    font-size: 1.25rem;
}

#linkedin > i {
    /* color: #0a66c2; */
    color: #000;
}

#github > i {
    color: #000;
}

.closeDialog {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    color: red;
    font-size: 1.5rem;
    background: transparent;
    border-radius: 100%;
    transition: all .2s ease-in-out;
}

.closeDialog:hover {
    color: #ff000088;
}

.hyperlinks {
    color: var(--secondaryColor);
}

.hyperlinks:hover {
    color: var(--secondaryColor-trans);
}

.dropdown {
    display: none;
}

footer {
    display: none;
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    body {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #e0e0e0;
    }

    #layoutWrapper {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        width: 90vw;
        max-width: 2160px;
        height: 90vh;
        max-height: 1600px;
        border-radius: 20px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        background-color: var(--lightGray);
        overflow: auto;
        position: relative;

        /* Hide overflow scrollbar from breaking border */
        scrollbar-width: thin; /* Firefox */
        overflow: clip scroll;
        /* Chrome fix using mask */
        -webkit-mask-image: radial-gradient(white 99%, transparent 100%);
    }

    header {
        width: var(--headerWidth);
        height: 100%;
        background-color: var(--primaryColor);
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }

    main {
        width: calc(100% - var(--headerWidth));
        background-color: var(--lightGray);
        padding: 0;
        overflow: auto;
        margin-left: 0;
        /* display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; */
    }

    section:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 2160px) {
    main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
@media (max-width: 1336px) {
    #headerName {
        font-size: 1.15rem;
        margin: .75rem 0;
    }

    header {
        font-size: .75rem;
    }

    header p {
        margin: .75rem 0;
        font-size: .8rem;
    }

    #headerPict {
        width: 7.5rem;
        height: 7.5rem;
    }

    .icon-container {
        margin-bottom: .75rem;
    }

    .contact-icon {
        width: 1.5rem;
    }

    nav {
        margin-top: .5rem;
    }

    nav ul li {
        margin: .5rem 0;
    }

    nav ul li button, nav ul li a {
        font-size: .8rem;
    }

    #cta {
        font-size: .8rem;
        padding: .5rem .75rem;
    }

    #text {
        margin-right: 3rem;
    }

    .slide {
        width: auto;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .card-item {
        width: 90%;
        place-self: center;
    }

    .card-item .img-container {
        height: 475px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    #headerName {
        font-size: .75rem;
        margin: .5rem 0;
    }

    #headerPict {
        width: 5rem;
        height: 5rem;
    }

    header {
        font-size: .5rem;
    }

    header p {
        margin: .5rem 0;
    }

    nav {
        margin-top: .25rem;
    }

    nav ul li {
        margin: .5rem 0;
    }

    nav ul li a, nav ul li button {
        font-size: .5rem;
    }

    .icon-container {
        margin-bottom: .5rem;
    }

    .icon-container img {
        width: 1rem;
    }

    #cta {
        font-size: .5rem;
        padding: .35rem .5rem;
        margin-bottom: .75rem;
    }

    #text {
        margin-right: 2rem;
    }

    #text h1 {
        font-size: 1.5rem;
    }

    #text h3 {
        font-size: 1rem;
    }

    #text p {
        font-size: .75rem;
    }

    #text ul li {
        font-size: .75rem;
    }

    #profilePictContainer {
        height: 17.5rem;
        /* width: auto; */
    }

    #ctaSection a {
        font-size: .75rem;
        padding: .5rem .75rem;
    }

    section blockquote {
        font-size: 1.35rem;
    }

    section > p {
        font-size: .75rem;
    }

    .name {
        font-size: 1.15rem;
    }

    .desc {
        font-size: .75rem;
    }
}

@media (max-width: 767px) {
    header {
        display: grid;
        grid-template-columns: 60% 40%;
        position: relative;
        height: fit-content;
        width: 100vw;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        background-color: var(--lightGray);
        row-gap: 15px;
    }

    #headerName, header > p, .icon-container, .line, #cta {
        display: none;
    }

    .dropdown.show {
        display: block;
    }

    nav {
        order: 4;
        margin-top: 0;
        grid-column: span 2;
        justify-self: center;
        display: none;
    }

    #headerPict {
        order: 2;
        justify-self: end;
        /* height: 8.5rem; */
        height: 100%;
        width: 100%;
        aspect-ratio: 1 / 1;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    }

    #headerPict img {
        height: 150%;
        width: 100%;
        object-fit: cover;
    }

    .mobile-ctaSection {
        display: flex;
        order: 3;
        grid-column: span 2;
        text-wrap-mode: nowrap;
        justify-content: space-between;
        margin-right: 0;
        flex-wrap: wrap;
        /* justify-content: center; */
        gap: .75rem;
        font-size: 200%;
        font-size: 4.5vw;
    }

    .mobile-ctaSection a {
        background-color: var(--primaryColor);
        border: none;
        padding: 10px 18px;
        color: var(--snowWhite);
        border-radius: 3px;
        width: fit-content;
        text-decoration: none;
        cursor: pointer;
        transition: all .3s ease;
        min-width: 157px;
        width: 48%;
        justify-content: center;
        align-items: center;
        display: flex;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    }

    .mobile-ctaSection a span {
        margin-left: 5px;
    }
    
    .mobile-ctaSection #mobileResume {
        /* margin-left: .75rem; */
        background-color: #4f4f4f;
    }

    .mobile-ctaSection a:hover {
        background-color: var(--primaryColor-trans);
    }

    .mobile-ctaSection #mobileResume:hover {
        background-color: #4f4f4f88;
    }

    .mobile-text {
        order: 1;
        display: block;
        justify-self: start;
    }

    .mobile-text > span {
        font-size: 5vw;
        /* font-size: 1.25rem; */
        color: var(--gray);
    }

    .mobile-text > h1 {
        font-size: 7.5vw;
        /* font-size: 1.65rem; */
        color: #000;
    }
    
    .mobile-text > h3 {
        font-size: 4vw;
        /* font-size: 1rem; */
        color: var(--gray);
        /* text-align: justify; */
        width: 80%;
    }

    .dropdown {
        display: revert;
        font-size: 2rem;
        margin: 0;
        padding: 0;
        background-color: transparent;
        border: none;
        color: var(--snowWhite);
        display: none;
    }

    main {
        font-size: 1rem;
        display: flex;
        flex-direction: column;
        margin-left: 0;
        width: 100vw;
    }

    #intro {
        padding: 16px;
        flex-direction: column;
        margin: 15px 0;
    }

    .picture-overlay {
        display: flex;
        position: absolute;
        align-items: center;
        justify-content: space-between;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: transparent;
        backdrop-filter: blur(5px);
        background-color: rgba(0, 0, 0, .3);
        color: var(--snowWhite);
        padding: 0 10px;
    }
    
    .picture-overlay .text {
        font-size: 1.15rem;
        overflow: hidden;
        width: 70%;
    }
    
    .picture-overlay .text > p {
        font-size: .9rem;
        color: #cccccc;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .picture-overlay > button {
        text-wrap-mode: nowrap;
        background-color: var(--secondaryColor);
        color: var(--snowWhite);
        border: none;
        padding: 5px 10px;
        min-height: 40px;
        height: fit-content;
        border-radius: 5px;
        transition: all .3s ease-in-out;
    }

    .picture-overlay > button:hover {
        background-color: var(--secondaryColor-trans);
    }

    .picture-overlay.expanded {
        display: none;
    }

    #closeDown.expanded {
        display: block;
        order: 3;
        background-color: lightgrey;
        border: none;
        width: fit-content;
        text-wrap-mode: nowrap;
        padding: .75rem 1rem;
        color: black;
        border-radius: 5px;
        justify-self: center;
        transition: all .3s ease;
    }

    #closeDown.expanded:hover {
        background-color: darkgrey;
    }

    #text {
        display: none;
    }

    #text p {
        font-size: var(--paragraphSize);
    }

    #text ul {
        margin-left: 1.5rem;
    }

    #text ul li {
        font-size: var(--paragraphSize);
    }
    
    #text.expanded {
        display: block;
        width: 100%;
        margin-right: 0;
        order: 2;
        padding: 10px 15px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    }

    #text.expanded ul {
        margin-bottom: 1.5rem;
    }

    #text > h1, #text > h3 {
        display: none;
    }

    #ctaSection {
        display: none;
    }

    #profilePictContainer {
        width: 100%;
        height: 90%;
        border-radius: 10px;
        flex-shrink: 0;
        order: 1;
        position: relative;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    }

    #profilePictContainer.expanded {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    #certifications > p {
        text-align: justify;
    }

    #certifications p {
        font-size: var(--paragraphSize);
    }

    #about p {
        font-size: var(--paragraphSize);
    }

    #overview {
        margin-top: 1.5rem;
        gap: 2rem 1rem;
        grid-template-columns: repeat(auto-fill, minmax(200px, 90%));
    }

    #overview > *:nth-child(odd) span {
        text-align: left;
    }

    #overview > *:nth-child(even) {
        text-align: end;
    }

    #overview > :nth-child(even) span {
        text-align: end;
    }

    .carousel-button.prev {
        left: 0;
    }

    .carousel-button.next {
        right: 0;
    }

    .carousel-button {
        font-size: 1rem;
    }

    .slide {
        width: auto;
    }

    #programs > P {
        text-align: justify;
    }

    #programs p {
        font-size: var(--paragraphSize);
    }

    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card-item {
        width: auto;
    }

    .card-item > .img-container {
        height: 200px;
    }

    #programs {
        margin-bottom: 0;
    }

    .card-item > .img-container {
        margin-bottom: 0;
        position: relative;
        height: 100%;
    }

    .card-item > .img-container img {
        width: 100%;
    }

    .card-item > .text-container {
        display: none;
    }

    .card-item > .text-container.expanded {
        display: block;
    }

    .view-less-button {
        display: block;
        order: 3;
        background-color: lightgrey;
        border: none;
        width: fit-content;
        text-wrap-mode: nowrap;
        padding: .75rem 1rem;
        color: black;
        border-radius: 5px;
        justify-self: center;
        margin-top: 1.5rem;
        transition: all .3s ease;
    }

    .view-less-button:hover {
        background-color: darkgrey;
    }
}

@media (max-width: 360px) {
    .mobile-ctaSection {
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light;
    }
}