html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #222222;
    height: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #111;
    height: 100vh;
}

#sections-container {
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

#blob-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -10;
}

.blob {
    position: fixed;
    width: 40vw;
    height: 40vw;
    background: #3FC1C9;
    border-radius: 50%;
    filter: blur(9vw);
    opacity: 0.4;
    pointer-events: none;
}


/* Positioning blobs */
.blob:nth-child(1) {
    top: -10vw;
    left: -10vw;
}

.blob:nth-child(2) {
    bottom: -10vw;
    right: -10vw;
}

@media (max-width: 768px) {
    .blob {
        width: 45vw;
        height: 45vw;
        filter: blur(11vw);
    }
}

.sections {
    /* position: fixed; */
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items:center;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

#aboutme-container {
    background-color: rgba(30, 30, 30, 0.4);
    height: 80dvh;
    width: 68vw;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: flex-start;
    box-shadow: 2px 2px 16px 4px rgba(0,0,0,0.25);
    border-radius: 10px;
    font-family: poppins;
    color: white;
    /* min-width: 226px;
    min-height: 425px; */
    max-height: 80dvh;
    /* gap:20px; */
}

.title {
    padding-bottom: 15px;
}

#intro-container {
    box-shadow: 2px 2px 16px 4px rgba(0,0,0,0.25);
    border-radius: 10px;
    height: 56dvh;
    width: 52vw;
    /* margin-top: 20px; */
    padding: 5px 20px;
    display: flex;
    align-items: center;
    min-width: 226px;
    min-height: 245px;
}

.text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-shadow: 0 0 8px #78a1cc;
}
/* section-1 mobile size */

@media (max-width: 420px) {
    .blob {
        width: 60vw;
        height: 60vw;
        filter: blur(14vw);
    }
    .blob:nth-child(1) {
        animation: moveBlob1 8s linear infinite;
    }

    .blob:nth-child(2) {
        animation: moveBlob2 8s linear infinite;
    }
    #aboutme-container {
        height: 80dvh;
        width: 80vw;
    }
    #intro-container {
        height: inherit;
        width: inherit;
        box-shadow: none;
        margin-top: -10px;
    }
    .text {
        font-size: 12px;
    }
    .title {
        margin-top: 20px;
        font-size: 22px;
    }
}

/*  */

@media (min-width: 421px) and (max-width: 684px) {
    .text {
        font-size: 13px;
    }
    #intro-container {
        height: inherit;
        width: inherit;
        box-shadow: none;
        margin-top: 0px;
    }
}

@media (min-width: 685px) and (max-width: 896px) {
    .text {
        font-size: 14px;
    }
}

@media (min-width: 897px) and (max-width: 1400px) {
    .text {
        font-size: 16px;
    }
}

@media (min-width: 1401px) and (max-width: 2000px){
    .text {
        font-size: 18px;
    }
}

@media (min-width: 2001px) {
    .text {
        font-size: 24px;
    }
}

#modules-container {
    height: auto;
    width: 74vw;
    display: grid;
    justify-content: center;
    align-items: center;
    font-family: poppins;
    color: white;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5px;
    min-width: 280px;
    min-height: 400px;
}

.names-container {
    background-color: rgba(30, 30, 30, 0.4);
    height: 20dvh;
    width: auto;
    box-shadow: 2px 2px 14px 4px rgba(0,0,0,0.25);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.names-container:hover {
    background-color: rgba(86, 116, 128, 0.2);
    transform: scale(1.02);
    /* box-shadow: 2px 2px 14px 4px rgba(169, 209, 255, 0.2); */
    /* background-color: rgba(200, 100, 100, 0.3); */
    /* background-color: rgba(255, 170, 150, 0.2); */
}

.module-name {
    font-weight: bold;
    text-shadow: 0 0 8px rgba(91,132,177, 0.5);
}

@media (min-width: 415px) and (max-width: 760px) {
    .module-name {
        font-size: 13px;
    }
}

@media (min-width: 761px) and (max-width: 1199px) {
    .module-name {
        font-size: 16px;
    }
}

@media (min-width: 1200px) and (max-width: 1378px) {
    .module-name {
        font-size: 18px;
    }
}

@media (min-width: 1379px) and (max-width: 1800px){
    .module-name {
        font-size: 20px;
    }
    #modules-container{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .names-container {
        display: grid;
        flex: 0 0 calc(25% - 10px);
        box-sizing: border-box;
        text-align: center;
    }
}

@media (min-width: 1801px) {
    .module-name {
        font-size: 25px;
    }
    #modules-container{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .names-container {
        display: grid;
        flex: 0 0 calc(25% - 10px);
        box-sizing: border-box;
        text-align: center;
    }
}


@media (max-width: 600px) {
    #modules-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 824px) {
    .names-container {
        height: 12dvh;
    }
}

#selected-module {
    display: grid;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: poppins;
    height: auto;
    /* width: 80vw; */
    width: 70vw;
    gap: 5px;
    min-width: 278px;
    min-height: fit-content;

}

#name-project {
    height: 15dvh;
    width: inherit;
    background-color: rgba(30, 30, 30, 0.4);
    box-shadow: 2px 2px 14px 4px rgba(0,0,0,0.25);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-width: 278px;
    min-height: fit-content;

}

#name {
    margin: auto;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 10px #5b84b1;
}

#arrow {
    cursor: pointer;
    border-radius: 50%;
    height: 35px;
    width: 35px;
    margin-left: 43px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#module-detail {
    width: inherit;
    /* height: 70dvh; */
    height: 60dvh;
    display: flex;
    flex-direction: column;
    justify-content:center;
    background-color: rgba(30, 30, 30, 0.4);
    box-shadow: 2px 2px 14px 4px rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 10px 50px;
    min-width: 278px;
    min-height: fit-content;
    overflow-y: auto;
}

.detail-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    /* max-height: 100%;
    flex-grow: 1; */
    opacity: 0;
    animation: fade-in 0.5s ease-in-out forwards, slide-in 0.5s ease-in-out forwards;
}


@keyframes fade-in {
    to {
        opacity: 1;
    }
}
  
@keyframes slide-in {
    from {
        transform: translateY(30px);
    }
    to {
        transform: translateY(0);
    }
}

/* section-2 mobile size */

@media (max-width: 414px) {
    #modules-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .names-container {
        flex: 0 0 calc(50% - 10px);
        box-sizing: border-box;
        text-align: center;
    }
    .module-name {
        font-size: 12px;
    }
    #module-detail {
        padding: 5px 20px;
        height: 70dvh;
        /* justify-content:flex-start; */
    }
    #selected-module {
        width: 90vw;
    }
    .detail-text {
        font-size: 12.5px;
    }
    #arrow {
        margin-left: 14px;
    }
}

/*  */

@media (min-width: 415px) and (max-width: 614px) {
    .detail-text {
        font-size: 12px;
    }
    #module-detail {
        padding: 5px 20px;
    }
    #arrow {
        margin-left: 18px;
    }
}

@media (min-width: 615px) and (max-width: 812px) {
    .detail-text {
        font-size: 14px;
    }
}

@media (min-width: 813px) and (max-width: 1400px) {
    .detail-text {
        font-size: 15px;
    }
}

@media (min-width: 1401px) and (max-width: 1920px){
    .detail-text {
        font-size: 18px;
    }
}

@media (min-width: 1921px) {
    .detail-text {
        font-size: 22px;
    }
}

#code-link {
    color: #4FC3F7;
    cursor: pointer;
}

#code-link:hover {
    text-decoration-line: underline;
}

#infos-container {
    background-color: rgba(30, 30, 30, 0.4);
    border-radius: 10px;
    box-shadow: 2px 2px 14px 4px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    /* align-items: center;*/
    justify-content: center;
    font-family: poppins;
    color: white;
    height: 90dvh;
    width: 80vw;
    min-height: 400px;
    min-width: 280px;
}


#skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom:50px;
    margin-left: 10px;
    margin-right: 10px;
}

#skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

#contact-container {
    display: grid;
    /* flex-direction: column; */
    /* text-align: center; */
    justify-content: center;
    margin-bottom: 20px ;
}

.skill-box {
    border-radius: 10px;
    /* box-shadow: 1px 1px 10px 1px rgba(63, 193, 201, 0.4); */
    /* height: 9vh; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    white-space: nowrap;
    min-width: 90px;
    text-shadow: 0 0 10px rgb(91,132,177);
    border: 1px solid rgba(42, 60, 80, 0.8);
    /* animation: glow 3s infinite; */
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(63, 193, 201, 0.4);
    }
    50% {
        box-shadow: 0 0 10px rgba(63, 193, 201, 0.6);
    }
}

/* section-3 mobile-size */

@media (max-width: 414px) {
    .skill-name {
        font-size: 11px;
    }
    .titles {
        font-size: 15px;
    }
    #infos-container {
        /* height: 95vh; */
        /* margin-top: 20px; */
        width: 90vw;
        justify-content: center;
        gap: 8dvh;
    }
    /* #skills-container {
        margin: ;r
    } */
}
/*  */

@media  (min-width: 415px) and (max-width: 579px) {
    .skill-name {
        font-size: 10px;
    }
    .titles {
        font-size: 15px;
    }
}

@media (min-width: 580px) and (max-width: 969px) {
    .skill-name {
        font-size: 12px;
    }
    .titles {
        font-size: 18px;
    }
}

@media (min-width: 970px) and (max-width: 1400px) {
    .skill-name {
        font-size: 14px;
    }
    .titles {
        font-size: 22px;
    }
}

@media (min-width: 1401px) and (max-width: 1750px){
    .skill-name {
        font-size: 20px;
    }
    .titles {
        font-size: 26px;
    }
}

@media (min-width: 1751px) {
    .skill-name {
        font-size: 25px;
    }
    .titles {
        font-size: 33px;
    }
}

#contact-container div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0; 
}

#contact-container p, #contact-container i {
    margin: 0;
    padding: 5px;
}


@media (max-width: 579px) {
    .info {
        font-size: 12px;
    }
    #skills-container {
        margin-bottom: 10px;
    }
}

@media (min-width: 580px) and (max-width: 1400px) {
    .info {
        font-size: 16px;
    }
}

@media (min-width: 1401px) and (max-width: 1750px){
    .info {
        font-size: 20px;
    }
    #skills {
        margin-bottom: 60px;
        margin-left: 50px;
        margin-right: 50px;
    }
}

@media (min-width: 1751px) {
    .info {
        font-size: 28px;
    }
    #skills {
        margin-bottom: 100px;
        margin-left: 50px;
        margin-right: 50px;
    }
}
a {
    text-decoration: none;
    color: white;
}