/* Global styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.square {
    width: 100px;
    height: 100px;
    background-color: #3498db;
}

.hidden {
    display: none !important;;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

.img-layout {
    pointer-events: none;
}


/* Typography */
.font-anonymous {
    font-family: 'Anonymous Pro', monospace !important;
    font-weight: bold;
}

.font-balsamiq {
    font-family: "Balsamiq sans", sans-serif !important;
    font-weight: bold;
}


.h0-5 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 180px;
    font-weight: bold;
    line-height: 0.8;
}

.h0-75 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 120px;
    font-weight: bold;
}

h1, .h1 {
    font-family: "Balsamiq sans", sans-serif;
    font-size: 80px;
    font-weight: bold;
}

.h1-75 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 50px;
    font-weight: bold;
}

h2, .h2 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 40px;
    font-weight: bold;
}

.h2-5 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 34px;
    font-weight: bold;
}

h3, .h3 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 28px;
    font-weight: bold;
}

.h3-5 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 24px;
}

h4, .h4 {
    font-family: 'Anonymous Pro', monospace;
    font-size: 20px;
    font-weight: normal;
}

.text-justify {
    text-align: justify;
}


/* Utilities */
.px-2-5 {
    padding-left: 12px;
    padding-right: 12px;
}

.px-1-5 {
    padding: 0 6px
}

.ps-3p {
    padding-left: 3%;
}

.ps-5p {
    padding-left: 5%;
}

.ps-10p {
    padding-left: 10%;
}

.pe-3p {
    padding-right: 3%;
}

.pe-5p {
    padding-right: 5%;
}

.pe-10p {
    padding-right: 10%;
}

.px-3p {
    padding-left: 3%;
    padding-right: 3%;
}

.px-5p {
    padding-right: 5%;
    padding-left: 5%;

}

.px-10p {
    padding-right: 10%;
    padding-left: 10%;
}

.px-20p {
    padding-right: 20%;
    padding-left: 20%;
}

.pt-3p {
    padding-top: 3%;
}

.pt-5p {
    padding-top: 5%;
}

.pt-10p {
    padding-top: 10%;
}

.pb-3p {
    padding-bottom: 3%;
}

.pb-5p {
    padding-bottom: 5%;
}


.py-3p {
    padding-top: 3%;
    padding-bottom: 3%;
}

.py-5p {
    padding-top: 5%;
    padding-bottom: 5%;
}

.p-3p {
    padding: 3%;
}

.p-5p {
    padding: 5%;
}

.ms-3p {
    margin-left: 3%;
}

.ms-5p {
    margin-left: 5%;
}

.ms-15p {
    margin-left: 15%;
}

.me-5p {
    margin-right: 5%;
}

.mx-3p {
    margin-left: 3%;
    margin-right: 3%;
}

.m-3p {
    margin: 3%;
}

@media (min-width: 0px) {
    .px-10p {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }
}

@media (min-width: 1200px) {
    .px-xl-15p {
        padding-left: 15% !important;
        padding-right: 15% !important;
    }
}


.w-60 {
    width: 60% !important;;
}

.rounded-50 {
    border-radius: 50px !important;
}


.bg-dark {
    background-color: #171717 !important;
}

.bg-white {
    background-color: #F4F3FB !important;
}

.bg-white-20 {
    background-color: rgba(244, 243, 251, 0.2) !important;
}

.bg-purple {
    background-color: #8F83D9 !important;
}

.bg-purple-30 {
    background-color: rgba(143, 131, 217, 0.3) /*  30% opacity without affecting text  */
}

.bg-purple-50 {
    background-color: rgba(143, 131, 217, 0.5);
}

.bg-dark-purple {
    background-color: #312A60 !important;
}

.bg-light-gray {
    background-color: #D9D9D9 !important;
}

.bg-gray {
    background-color: #98A2B3 !important;
}

.bg-dark-gray {
    background-color: #464646 !important;
}

.bg-dark-gray-20 {
    background-color: rgba(70, 70, 70, 0.2) !important;
}


.text-purple {
    color: #8F83D9 !important;
}

.text-dark-purple {
    color: #312A60 !important;
}

.text-light-gray {
    color: #D9D9D9 !important;
}

.text-gray {
    color: #98A2B3 !important;
}

.text-dark-gray {
    color: #464646 !important;
}

.text-black {
    color: #171717 !important;
    opacity: 100 !important;
}

.text-dark {
    color: #171717 !important;
    opacity: 100 !important;
}

.text-white {
    color: #F4F3FB !important;
}

.hover-big:hover {
    transform: scale(1.05) !important;
    transition: all 0.3s ease-in-out !important;
}

.hover-bigger:hover {
    transform: scale(1.1) !important;
    transition: all 0.3s ease-in-out !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

.hover-color:hover {
    color: #98A2B3 !important;
}

.hover-purple:hover {
    color: #8F83D9 !important;
}

.pill {
    border-radius: 50rem !important; /* rounded-pill */
    padding: 0.5rem 1rem !important; /* p-3 */
    display: inline-block; /* d-inline-block */
}


.button-see-more {
    position: absolute;
    text-align: center;
    justify-content: center;
    width: 50%;
    height: 15%;
    bottom: 5%;
    right: 5%;
    z-index: 2;
    border: 3px solid rgba(70, 70, 70, 0.3);
    backdrop-filter: blur(8px);
}


/* layout */
.layout-image-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
}

.layout-image-center-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.layout-image-top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.layout-image-top-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.layout-image-top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.layout-image-center-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.layout-image-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
}

.layout-image-bottom-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.square-nested {
    width: 97%;
    height: 97%;
}

.button-size {
    width: 200px !important;
}


/* home */
#home-intro-container1 {
    width: 33%;
    aspect-ratio: 469 / 354;
}

#home-intro-container2 {
    width: 32%;
    aspect-ratio: 458 / 344;
}

#home-intro-container3 {
    width: 17%;
    aspect-ratio: 244 / 344;
}

#home-quote-portfolio {
    width: 198px !important;
}

#home-quote-aboutme {
    width: 137px !important;
}

#home-tools .layout-image-top-left {
    width: 474px;
    height: 401px;
}

#home-tools .layout-image-bottom-right {
    width: 391px;
    height: 347px;
}




/* about me */
#aboutme-intro-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.intro-pill {
    border: 1px solid rgba(70, 70, 70, 0.2);
}


#aboutme-intro-circle {
    width: 304px;
    height: 304px;
    float: left;
    shape-outside: circle(50%);
    -webkit-shape-outside: circle(50%);
    clip-path: circle(50%);
    border-radius: 50%;
    position: relative;
}

#aboutme-intro-circle img {
    width: 97%;
    height: 97%;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 50%;
}

#aboutme-intro-square {
    width: 266px;
    height: 306px;
    position: relative;
}

#aboutme-line {
    position: absolute;
    right: 0;
}

#aboutme-past-square1 {
    width: 32%;
    aspect-ratio: 431 / 323;
}

#aboutme-past-square2 {
    width: 16%;
    aspect-ratio: 232 / 323;
}

#aboutme-past-square3 {
    width: 41%;
    aspect-ratio: 583 / 323;
}

#aboutme-present #aboutme-present-circle-top {
    width: 511px;
    height: 448px;
}

#aboutme-present #aboutme-present-circle-bottom {
    width: 389px;
    height: 759px;
}

#aboutme-collab h4 {
    width: 85%;
}

#aboutme-collab-lightbulb {
    width: 22%;
    aspect-ratio: 1 / 1;
}

#aboutme-collab .layout-image-top-left {
    width: 585px;
    height: 279px;
}

#aboutme-collab .layout-image-bottom-right {
    width: 364px;
    height: 146px;
}


/* resume */
#education .layout-image-top-right {
    width: 606px;
    height: 485px;
}

#education .layout-image-bottom-left {
    width: 617px;
    height: 310px;
}

#skills .layout-image-top-left {
    width: 586px;
    height: 285px;
}

#skills .layout-image-bottom-right {
    width: 370px;
    height: 273px;
}

.resume-intro-circle {
    position: absolute;
    top: 132px;
    right: 1px;
    width: 392px;
    height: 784px;
    border-radius: 392px 0 0 392px;
}

.resume-intro-picture {
    width: 576px;
    height: 576px;
}

.resume-intro-title {
    padding-top: 9.5%;
}

.resume-intro-title div {
    padding-top: 15px;
}

.resume-intro-text {
    padding-top: 5.3%;
    padding-right: 10%;
    padding-bottom: 8%;
}

.resume-education-container {
    position: relative;
}

.resume-education-container-logo {
    position: relative;
    display: inline-block;
}

.resume-education-image {
    width: 416px;
    height: 432px;
}

.resume-education-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    bottom: 1px;
    right: 15px;

}

.resume-education-circle i {
    transform: translate(-2px, 5px);
}

.resume-education-list li {
    list-style: disc;
}

.resume-education-list li::marker {
    color: #312A60;
}


.resume-experience-title {
    padding-top: 8%;
    padding-bottom: 4%;
}

.resume-experience-job {
    /*  width: 575px;*/
    width: 45%;
}

.resume-experience-entry {
    min-height: 200px;
    height: auto;
}

.resume-experience-description {
    width: 35%;
}


.resume-experience-row {
    align-items: stretch; /* makes all three columns the same height */
}

.resume-experience-job,
.resume-experience-description {
    flex: 1; /* take up remaining space equally */
}

.resume-experience-timeline {
    padding-left: 10%;
    padding-right: 10%;
    position: relative;
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resume-experience-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    outline: 2px dashed #171717;
    outline-offset: 4px;
    margin-top: 6px;
    margin-bottom: 6px;
    background-color: #fff;
    z-index: 1;
}

.resume-experience-dotted-line {
    flex-grow: 1;
    width: 2px;
    background: repeating-linear-gradient(
            to bottom,
            gray,
            gray 4px,
            transparent 4px,
            transparent 8px
    );
    margin-top: -1px; /* align perfectly with circle */
}

/* skills & languages  */
.accordion {
    background: none;
    border: none;
    flex: 1;
    padding-left: 3%;
    padding-right: 3%;
}

.accordion-header {
    background: none;
    border: none;
}

.accordion-content {
    background: none;
    border: none;
    padding-left: 80px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.skills-language .accordion-content {
    width: 70%;
    margin-left: auto;
}

.accordion-content ul li.h4 {
    display: list-item;
    list-style-type: disc;
    list-style-position: outside;
    text-align: left;
}

.accordion-content ul li::marker {
    color: #F4F3FB;
}

.accordion-item {
    background: none;
    border: none;
}

.accordion-button {
    background: transparent;
    box-shadow: none;
}

.accordion:first-child {
    border-right: 2px solid rgba(244, 243, 251, 0.4);
    text-align: right;
}

#skills {
    position: relative;
    overflow: visible;
}

#skills::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px; /* match your border-radius */
    background-color: #F4F3FB; /* black */
    z-index: -1; /* behind #skills */
}


/* portfolio */
#cube .layout-image-bottom-right {
    width: 608px;
    height: 305px;
}

#bravo-container .layout-image-bottom-left {
    width: 497px;
    height: 260px;
}

#animation-container .layout-image-top-right {
    width: 617px;
    height: 425px;
}

#animation-container .layout-image-top-right {
    width: 617px;
    height: 425px;
}

#snackatopia-container .layout-image-top-left {
    width: 512px;
    height: 411px;
}

#snackatopia-container .layout-image-bottom-right {
    width: 272px;
    height: 131px;
}

#portfolio-container .layout-image-bottom-right {
    width: 386px;
    height: 362px;
}

#beunhaas-container .layout-image-top-right {
    width: 271px;
    height: 126px;
}

#beunhaas-container .layout-image-bottom-left {
    width: 277px;
    height: 352px;
}


.portfolio-pill-tech:hover {
    opacity: 60%;
    transition: all 0.3s ease;
}


.portfolio-purple-pill-tech {
    background-color: rgba(143, 131, 217, 0.3); /*  30% opacity without affecting text  */

    /* Create the gradient border */
    border: 3px solid rgba(143, 131, 217, 0.4);
}

.portfolio-cube-container-description {
    width: 60%;
}

.portfolio-container-square {
    width: 32%;
    aspect-ratio: 1 / 1;
    margin: 5%;
    overflow: hidden;
    position: relative;

}

.portfolio-container-square video {
    /*
    width: 422px;
    height: 422px;
     */
    display: block; /* prevent inline spacing */
    border-radius: 50px; /* match container rounded */
    width: 101%;
    object-fit: cover;
}

.portfolio-image-small {
    width: 80%;
}

.portfolio-container-small {
    flex: 1;
    width: 100% !important;
    border-radius: 50px;
    position: relative;
}

.portfolio-bravo-animation-pill-tech {
    background-color: rgba(243, 244, 251, 0.5); /*  opacity without affecting text  */

    /* Create the gradient border */
    border: 3px solid rgba(243, 244, 251, 0.6);
}

.portfolio-animation-container-video {
    width: 100%;
    overflow: hidden;
    position: relative;

}

.portfolio-animation-container-video video {
    /*
    width: 422px;
    height: 422px;
     */
    display: block; /* prevent inline spacing */
    border-radius: 50px; /* match container rounded */
    width: 100%;
    object-fit: cover;
}

.snackatopia-picture {
    width: 100%;
    border-radius: 50px;
    object-fit: cover;
}

#beunhaas-container .portfolio-image-small img {
    height: 400px;
}

#cube .flex-wrap {
    width: 95%;
}


/* contact */
#contact-titles {
    border-right: 2px solid #312A60;
    text-align: right;
}

#contact .layout-image-top-left {
    height: 100%;
    width: auto;
}


/* Footer */
.footer-black .footer-heading {
    color: #F4F3FB !important;
    font-family: "Balsamiq sans", sans-serif !important;
    text-decoration: none;
}

.footer-white .footer-heading {
    color: #171717 !important;
    font-family: "Balsamiq sans", sans-serif !important;
    text-decoration: none;
}

.footer-black hr {
    color: #F4F3FB !important;
}

.footer-white hr {
    color: #171717 !important;
}

.footer-black .footer {
    background-color: #171717 !important;
}

.footer-white .footer {
    background-color: #F4F3FB !important;
}

.footer-black .footer-content {
    color: #D9D9D9 !important;
}

.footer-white .footer-content {
    color: #464646 !important;
}

.footer-nocontact #footer-contact {
    display: none;
}


/* Navbar */
.navbar-black .navbar-title {
    color: #171717 !important;
    font-family: "Balsamiq sans", sans-serif !important;
    text-decoration: none;
}

.navbar-white .navbar-title {
    color: #F4F3FB !important;
    font-family: "Balsamiq sans", sans-serif !important;
    text-decoration: none;
}

.navbar-black .navbar-nav {
    font-family: "Balsamiq sans", sans-serif !important;
    background-color: #171717 !important;
}

.navbar-white .navbar-nav {
    background-color: #F4F3FB !important;;
    font-family: "Balsamiq sans", sans-serif !important;

}

.text-navbar {
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-black .text-navbar {
    color: #F4F3FB !important;
}

.navbar-white .text-navbar {
    color: #171717 !important;
}

.text-navbar h4 {
    margin: 0;
    line-height: 1.2;
    padding: 20px 40px;
}

/* Disable hover effect on the current page */
.navbar-white .text-navbar h4.current-page:hover {
    color: #171717 !important;
}

.navbar-black .text-navbar h4.current-page:hover {
    color: #F4F3FB !important;

}

.current-page {
    display: inline-block;
    background-color: #8F83D9;
    border-radius: 50rem;
    user-select: none;
}

.navbar-black .current-page {
    color: #F4F3FB;
}

.navbar-white .current-page {
    color: #171717;
}


/* mobile */

.current-page-mobile {
    display: inline-block;
    background-color: #8F83D9;
    color: white;
    border-radius: 50rem;
    user-select: none;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* Navbar toggler (hamburger icon) */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}


.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 48px;
    height: 36px;
    display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon div {
    content: "";
    display: block;
    background-color: #171717;
    height: 8px;
    border-radius: 2px;
    position: absolute;
    width: 100%;
    left: 0;
    transition: all 0.3s;
}

.navbar-black .navbar-toggler-icon::before,
.navbar-black .navbar-toggler-icon::after,
.navbar-black .navbar-toggler-icon div {
    background-color: #171717;
}

.navbar-white .navbar-toggler-icon::before,
.navbar-white .navbar-toggler-icon::after,
.navbar-white .navbar-toggler-icon div {
    background-color: #F4F3FB;
}


.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon div {
    top: 14px;
}

.navbar-toggler-icon::after {
    bottom: 0;
}


/* RESPONSIVE: Small screens */
@media (max-width: 576px) {
    /* Hide regular navbar */
    #navbarNav {
        display: none !important;
    }

    .navbar-toggler {
        display: block !important;
    }

    .navbar-toggler-icon {
        display: block !important;
    }

    /* Show full-page mobile menu */
    #mobile-menu {
        display: flex;
    }
}

/* Full-screen mobile menu */
#mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Hide initially */
    width: 100%;
    height: 100%;
    background-color: #171717;
    color: white;
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    transition: left 0.3s ease-in-out;
}

/* Slide-in effect */
#mobile-menu.open {
    left: 0;
}

/* Close (X) button */
#close-mobile-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    color: white;
    font-size: 4rem;
    border: none;
    cursor: pointer;
}

/* Menu items */
#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 5rem 0 0 0;
    text-align: center;
    width: 100%;
}

#mobile-menu ul li {
    margin: 1.5rem 0;
}

#mobile-menu ul li a {
    color: white;
    font-size: 60px;
    text-decoration: none;
    font-family: 'Anonymous Pro', monospace;
    transition: color 0.3s;
}

#mobile-menu ul li a:hover {
    color: #8F83D9;
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

