html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    text-align: center;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    touch-action: manipulation; 
    position: relative;
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; 
}

section {
    position: fixed;
    width: 100%;
    min-height: 1vh;
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    top: 1vh;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%) translateY(0);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease-in-out;
    margin-bottom: auto;
}

#intro {
    height: 800px;
}

.my-name {
    position: relative;
    display: flex;
}
  
.my-name span {
    /* font-size: 100px; */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    font-weight: bold;
    opacity: 0;
    animation: drop 0.5s linear forwards;
    text-shadow: rgba(255,255,255,1) 0px 0px 10px;
}

.my-name span:nth-child(1) {
    animation-delay: 0s;
}

.my-name span:nth-child(2) {
    animation-delay: 0.2s;
}

.my-name span:nth-child(3) {
    animation-delay: 0.4s;
}

.my-name span:nth-child(4) {
    animation-delay: 0.6s;
}

.my-name span:nth-child(5) {
    animation-delay: 0.8s;
}

.my-name span:nth-child(6) {
    animation-delay: 1s;
}

.my-name span:nth-child(7) {
    animation-delay: 1.2s;
}

.my-name span:nth-child(8) {
    animation-delay: 1.4s;
}

.my-name span:nth-child(9) {
    animation-delay: 1.6s;
}

.my-name span:nth-child(10) {
    animation-delay: 1.8s;
}

.my-name span:nth-child(11) {
    animation-delay: 2s;
}

.my-name span:nth-child(12) {
    animation-delay: 2.2s;
}

.my-name span:nth-child(13) {
    animation-delay: 2.4s;
}

.my-name span:nth-child(14) {
    animation-delay: 2.6s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(10px);
    }
    75% {
        transform: translateY(-10px);
    }
}

  
@keyframes drop {
    0% {
      transform: translateY(-200px) scaleY(0.9);
    }
    5% {
      opacity: 0.7;
    }
    50% {
      transform: translateY(0px) scaleY(1);
      opacity: 1;
    }
    65% {
      transform: translateY(-17px) scaleY(0.9);
    }
    75% {
      transform: translateY(-22px) scaleY(0.9);
    }
    85% {
        transform: translateY(-27px) scaleY(0.9);
    }
    100% {
      transform: translateY(0px) scaleY(1);
      opacity: 1;
    }
}

/* DO BY DIMENSION -- LIMIT TESTING LOWKEY */

/* .typing-container {
    color: white;
    display: inline-block;
} */

.typing-container h1 {
    /* font-size: clamp(2rem, 2.5vw, 3.5rem); */
    font-weight: normal;
}
  
.typing-container {    
    color: white;
    display: inline-block;
    margin-top: 10px;
    opacity: 0;
    animation: showTypingText 1s ease-out forwards;
    animation-delay: 3.3s; 
}
  
.typing-text {
    /* font-size: clamp(1em, 3em, 5rem); */
    padding-right: 0.2em;
    position: relative;
    font-weight: bold;
}
  
.typing-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0; 
    height: 2px;
    background-color: white;
    animation: underline 1s forwards;
    transition: width 0.5s ease;
}
  
@keyframes underline {
    from {
      width: 0;
    }
    to {
      width: 95%;
    }
}

@keyframes showTypingText {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  

/* #about{
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease-in-out;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transform: translateY(-20%) translateX(-50%);
} */

/* body.loaded section.next :is(#about) {
    transform: translateX(-20%) translateY(-100%);
    opacity: 1;
    pointe.r-events: auto;
} */


/* .box .avatar {
    opacity: 1 !important;
} */

.box {
    display: flex;
    align-items: center;
    justify-content: start;
    border-radius: 15px;
    border-width: thick;
    background-color: rgba(255, 255, 255, 0.1) !important;
    height: 22vh;
    width: 80vw;
    padding-left: 50px;
}

/* 
.avatar {
    margin-left: 0% !important;
    width: clamp(15px, 50px, 125px);
    height: clamp(15px, 50px, 125px);
    border-radius: 50%;
} */

.avatar img {
    padding-left: 0% !important;
    /* width: 10vw;
    height: 15vh; */
    border-radius: 50%;
}

.avatar img:hover {
    /* transform: scale(1.1); */
    animation: bounceIn 1s infinite 2s;
}

.intro-text {
    margin-left: clamp(1vw, 2vw, 5vw);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(1px, 15px, 20px);
    margin-right: clamp(1vw, 2vw, 5vw);
}

.education-text {
    margin-left: 5vw;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(1px, 15px, 20px);
    margin-right: 5vw;
}

@keyframes bounceIn {
	0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
	40% {
    transform: translateY(-30px);
  }
	60% {
    transform: translateY(-15px);
  }
}


body.loaded section.active {
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
}

body.loaded section.active:is(#about) {
    transform: translateX(-50%) translateY(-30%);
    opacity: 1;
}

body.loaded section.prev {
    transform: translateX(-50%) translateY(-50%);
    opacity: 0;
}

body.loaded section.next {
    transform: translateX(-50%) translateY(50%);
    opacity: 0;
}

.scroll-indicator-container {
    position: fixed;  
    bottom: 5px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    width: auto;
    height: auto;
    padding: 0;
    z-index: 1000; 
}

.scroll-indicator {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    color: white;
    opacity: 0; 
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    gap: 5px; 
    min-width: 120px;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    visibility: hidden; 
    position: fixed;    
    bottom: 1px; 
    animation: bounce 2s infinite ease-in-out; 
}

.scroll-indicator.visible {
    opacity: 0.5;
    visibility: visible;
    animation: bounce 2s infinite ease-in-out;
}

.scroll-indicator .arrow {
    font-size: 1rem;
    opacity: 0.5;
    animation: bounce 2s infinite ease-in-out;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5vh; 
}

p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    margin-bottom: 1vh;
    margin-top: 0.5vh;
}

.icons {
    pointer-events: auto;
    transform: translateY(50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22vw;
    /* position: relative; */
    z-index: 99; 
}

.icons a {
    pointer-events: auto;
    /* position: relative; */
    z-index: 99; 
}

.icons img {
    pointer-events: auto;
    width: 10vw;
    height: 10vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 99; 
}

.icons img:hover {
    transform: scale(1.2);
}

.container {
    position: fixed;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    top: 25vh;
    gap: 30px;
}

/* .box {
    width: 80vw; 
    height: 20vh;
} */

.container .box:last-child {
    background-color: transparent;
    visibility: hidden;
    position: relative;
}
  
.container .box:last-child > * {
    visibility: visible;
    position: relative;
}
  

.projects-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    height: auto;
    margin: auto;
    margin-top: 5%; 
}

#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.project {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    position: relative;
    overflow: visible;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.project img {
    width: 100%; 
    height: 350px;  
    object-fit: fill;
    border-radius: 15px;
    pointer-events: none;
}

.project .thought-bubble {
    max-width: 100%;
}

.thought-bubble {
    position: absolute;
    top: 106%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 12px;
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
    max-width: 80%;
    /* white-space: normal; */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    /* width: auto;  */
    /* max-width: 100%;  */
    /* word-wrap: break-word;  */
    z-index: 10;
    height: auto;
    /* min-height: 30px; */
    /* bottom: auto; */
}

.thought-bubble::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.9);
}

.project:hover .thought-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.project:hover {
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.8);
}

@supports (-webkit-touch-callout: none) {
    section {
        min-height: 1vh;
        height: auto;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* @media screen and (max-height: 450px) {
    section {
        min-height: 1vh;
        top: 5vh;
    }
    .scroll-indicator-container {
        bottom: 3vh;
    } 

    .my-name {
        font-size: 1px;
    }
} */

/*
@media screen and (orientation: landscape) and (max-width: 1024px) {
    section {
        top: 5vh;
        min-height: 1vh;
    }
    .scroll-indicator-container {
        bottom: 2vh;
    }
}

@media screen and (max-height: 700px) {
    section {
        top: 20%; 
    }
}

@media screen and (max-height: 500px) {
    section {
        top: 25%; 
    }
}

@media screen and (max-height: 450px) {
    .scroll-indicator-container {
        bottom: 20%;
    }
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
    section {
        top: 4vh;
        min-height: 1vh;
    }
    .scroll-indicator-container {
        bottom: 2vh;
    }
}

@media screen and (max-width: 768px) {
    section {
        top: 5vh; 
    }
    h1 {
        font-size: 3rem;
        margin-bottom: 1.5vh;
    }
    p {
        font-size: 1.2rem;
        margin-bottom: 1.5vh;
    }
    .icons {
        margin-top: 1.5vh;
        gap: 8px;
    }
}
*/

/* @media (min-width: 1367) {
    .projects-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        overflow: visible;
    }

    .project {
        position: relative;
        width: 30%;
        max-width: 350px;
        height: 60vh;
        opacity: 1;
        transform: none;
    }
}  */

@media (min-width: 800px) and (max-width: 1366px) {

    #intro {
        height: 600px;
    }

    .box {
        transform: translateY(-30%);
        height: 25vh;
        /* margin-top: 3vw; */
    }

    .projects-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 50vh;  
        overflow: hidden;
        position: relative;
    }

    .project {
        width: 75vw;
        height: 40vh;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
        position: fixed;
        top: 45%;
        transform: translateX(100%) translateY(-40%);
        opacity: 0;
    }

    .icons {
        transform: translateY(-60%);
    }

    .project img {
        width: 100%;
        min-height: 100%;
    }

    .projects-container, .project {
        overflow: visible !important;
    }

    .project.active {
        pointer-events: auto;
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }

    .project.next {
        pointer-events: none;
        transform: translateX(100%) translateY(-50%);
        opacity: 0.5;
    }

    .project.prev {
        pointer-events: none;
        transform: translateX(-100%) translateY(-50%);
        opacity: 0.5;
    }

    .thought-bubble {
        /* position: absolute; */
        /* bottom: -25%; */
        left: 50%;
        max-height: 300px;
        transform: translateX(-50%);
        width: 90%; 
        text-align: center;
        max-width: 100%;
        font-size: 2vw;
        background: white;
        /* padding-top: 5%; */
        border-radius: 12px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .thought-bubble::after {
        top: -10px;
    }

    .project:hover .thought-bubble {
        opacity: 1;
    }
}

@media screen and (max-width: 700px) {

    body.mobile #intro {
        height: 600px;
    }

    body.mobile .box {
        transform: translateY(-10%);
        /* height: 25vh; */
    }
    body.mobile .projects-container {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 50vh; 
        overflow: hidden;
        position: relative;
    }

    body.mobile .project {
        min-width: 80%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
        position: fixed;
        top: 45%;
        transform: translateX(100%);
        opacity: 0;
    }
    
    body.mobile .icons {
        transform: translateY(-50%);
    }

    body.mobile .projects-container, .project {
        overflow: visible !important;
    }

    body.mobile .project.active {
        pointer-events: auto;
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }

    body.mobile .project.next {
        pointer-events: none;
        transform: translateX(100%) translateY(-50%);
        opacity: 0.5;
    }

    body.mobile .project.prev {
        pointer-events: none;
        transform: translateX(-100%) translateY(-50%);
        opacity: 0.5;
    }

    body.mobile .thought-bubble {
        /* position: absolute; */
        /* bottom: -25%; */
        left: 50%;
        max-height: 300px;
        transform: translateX(-50%);
        width: 90%; 
        text-align: center;
        max-width: 100%;
        font-size: 2vw;
        background: white;
        /* padding-top: 5%; */
        border-radius: 12px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    body.mobile .thought-bubble::after {
        top: -10px;
    }

    body.mobile .project:hover .thought-bubble {
        opacity: 1;
    }
}

/*
@media (max-width: 1024px) and (max-height: 500px) {
    section {
        top: 12vh;
    }
    .project-container {
        height: 80vh;
    }

    .intro-text {
        font-size: 1px;
    }

    .project {
        height: 70vh; 
        max-height: 350px;
    }
}


    
@media screen and (max-width: 480px) {
    section {
        top: 12vh;
    }
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1vh;
    }
    p {
        font-size: 1rem;
        margin-bottom: 1vh;
    }
    .icons {
        margin-top: 1vh;
        gap: 5px;
    }
    .icons img {
        width: 40px;
        height: 40px;
    }
} */
