/*===== General Layout ====== */
/* Import Poppins font from Google Fonts */
@import url("https://fonts.googleapis.com/css?family=Poppins:400,700,800|Inter:400|Ultra:400");
html, body{
    width:100%;
    height: auto;
    scroll-behavior: smooth;
}
body {
    font-size: 62.5%;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    position: relative;
}
button {
    cursor: pointer;
}
h2 {
    font-size: 3.2em;
}
a {
    text-decoration: none;
    color: black;
    border: none;
}
#canvas1 {
    position: absolute;
    top:0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
}
/*=====Header====== */
header {
    display: flex;
    height: 18.4em;
}
.header-logo {
    display: none;
    margin-left: 5em;
}
.header-logo img{
    width: 22.3em;
    height: 11.1em; 
}
.main-nav {
    position: relative;
    width: 100vw;
}
.nav-menu {
    background: white;
    position: fixed;
    height: 100vh;
    width: 100%;
    transform: translateX(100%);
    transition: all .4s ease-out;
    z-index: 1000;
}
.nav-menu ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    /* margin-top: 35%; */
    background: white;
    transition: all .3s ease-out;
}
.nav-menu ul li{
    font-size: 4.8em;
    margin: 10%;
    position: relative;
}
.nav-menu ul li::before{
    content:'';
    bottom: 0;
    left: 0;
    position: absolute;
    width: 18%;
    height: .1em;
    background: black;
    border-radius: 50%;
    transform: scaleX(0);
    transform-origin: center;
}
.nav-menu ul li::after{
    content:'';
    position: absolute;
    left: -1em;
    top:0;
    height: 1.2em;
    width: .8em;
    background: rgba(255,255,255,1);
    transition:all .3s;
    z-index: 1;
}
.nav-menu ul li:nth-child(3)::before {
    width: 25%;
}

.nav-menu ul li:hover::after{
    animation: wipe .3s ease-out forwards;
}
@keyframes wipe {
    0%{transform: translateX(0);}
    100%{transform: translateX(5.2em);}
}
.nav-menu ul li:hover::before {
    animation: underline .25s ease-out forwards;
    /* transform: scaleX(100%); 
    border-radius: 2em; */
}
.nav-menu ul li:hover{
    transition: .3s;
    /* animation: blink .5s ease-out forwards; */
}
@keyframes blink {
    0%{}
    50%{
        color: rgb(133, 131, 131);
    }
    100%{
        color: black;
    }
}
@keyframes underline {
    0%{}
    50%{
        transform: scaleX(300%); 
    }
    100%{
        transform: scaleX(100%); 
        border-radius: 2em;
    }
}
.nav-icon {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    top: 6.3em;
    right:5em;
    cursor: pointer;
    z-index: 1001;
}
.bars {
    width: 4.8em;
    height: .6em;
    border-radius: 2em;
    background: black;
    margin: .52em 0;
    transition: transform 0.3s ease;
}
.bars:first-child {
    transform-origin: right top;
}
.bars:nth-child(2) {
    width: 1.6em;
    opacity: 1;
    transition: all 0.2s ease;
}
.bars:nth-child(3) {
    transform-origin: right bottom;
}
.scroll-indicator {
    width: 4.4em;
    height: 4.em;
    position: fixed;
    top: 70%;
    right: 5em;
    transform: rotateZ(-90deg);
    z-index: 998;
}
/* Animation class */
.animate-scroll-indicator {
    animation: move 0.7s ease-out alternate 4;
}
@keyframes move {
    0%{transform: translateY(0) rotateZ(-90deg);}
    /* 95%{transform: translateY(3em) rotateZ(-90deg);} */
    100%{transform: translateY(2.8em) rotateZ(-90deg);}
}
/*=====Header Ends====== */

/*===== Main ====== */
.mission {
    display: none;
}
.section {
    height: 90em;
}
.tagline {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 0;
    height: auto;
}
.tagline img {
    width: 43em;
    height: auto;
    align-self: center;
}
.quote {
    display: flex;
    flex-direction: column;
}
.quote .statement2 {
    align-self: center;
    width: 16em;
    margin: -8em auto;
    font-size: 1.6em;
}
.quote .statement1 {
    align-self: flex-start;
    font-size: 9.6em;
    font-family: "impetus", sans-serif;
    line-height: -12em;
    margin-left: 5%;
}
.quote .statement3 {
    align-self: flex-end;
    font-family: "impetus", sans-serif;
    font-size: 9.6em;
    line-height: -12em;
    margin-right: 5%;
}
.statement3 {
    transform: rotate(180deg);
}
.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}
.contact p {
    font-size: 1.6em;
    width: 80%;

}
.contact form {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: auto;
    font-size: 1.6em;
    box-shadow: 0 1em 2em rgba(0,0,0,0.2);
    border-radius: 1.6em;
    border: none;
}
.contact form input {
    padding: 1em;
    width: 60%;
}
.contact form> *{
    border-radius: 1.2em;
    border: none;
}
.contact form input, .contact form textarea{
    margin: .5em 1.6em 1.6em;
    box-shadow: 
        inset 0 0 1em rgba(0,0,0,0.1),
        0 .2em .5em rgba(0,0,0,0.2);
    border: none;
    padding: 1em;
}
.contact form label {
    margin:.5em 1.6em 0;
}
.contact form button {
    width: 60%;
    margin:.6em 1.6em 1.6em;
    padding: .5em 0;
    border: none;
    font-size: 1.2em;
    box-shadow: 0 .3em .8em rgba(0,0,0,0.2);
}
.all-projects{
    display: block;
    text-decoration: none;
    color: white;
    background: black;
    font-size: 3.2em;
    width: 60%;
    text-align: center;
    border-radius: 2em;
    padding: .2em 1em;
    margin: 5vh auto;
    box-shadow: 0 1em 2em rgba(0,0,0,0.2);
}
.about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.toolbox-container-ouside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.toolbox-container-inside {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows items to wrap onto the next line */
    gap: 10px; /* Adjust gap between skill bricks */
    border: none;
    width: 90%;
}
.toolbox-container-inside div {
    display: inline-flex;
    align-items: center;
    text-align: center;
    background-color: #ddd; /* Brick color */
    box-shadow: .2em .2em .5em rgba(0,0,0,0.2); /* Soft shadow for depth */
    border-radius: 2em; 
    height: 3.2em;
    width: auto;
    font-size: 1.2em;
    white-space: nowrap;
    padding:0 1.6em;
}
.toolbox-container-inside div:nth-child(even) {
    margin-right: 2%; /* Push odd items to the right */
}
.toolbox {
    font-size: 2.4em;
}
.bio{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.bio p {
    font-size: 1.6em;
    width: 74%;
}
.bio .bold, .intro .bold{
    font-weight: 700;
}
.brand-logo {
    width:100%;
}
.intro h2{
    font-weight: 400;
    width: 50%;
    margin-top: 1.2em;
}
.introduction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30%;
}
/*------- Slideshow Start  -------*/
.icon{
    width: 2.5em;
    height: 2.5em;
    margin: 0 1em;
    cursor: pointer;
}
.prev, .next{
    width: 5em;
    height: 5em;
    cursor: pointer;
}
.play-pause {
    width: 5em;
    height: 5em;
    border: none !important;
}
.big-image {
    width: 100%;
    height: auto;
    margin-bottom: 5em;
}
.big-image>img {
    width: 100%;
    border-radius: 2em;
}
.slideshow, .big-image{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 75vw;
    position: relative;
}
.img-nav {
    display: flex;
    justify-content: space-between;
    width: 105vw;
    position: absolute;
    top: 60%;
}
.slider-icons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 90%;
}
.slider-control {
    cursor:pointer;
    position: absolute;
    bottom: 5%;
}
img.clickable {
    width: 10vw;
    height: auto;
    cursor: pointer;
    transition: all 1s;
    padding: 20px;
}
.slideThumbnail {
    margin-top: 3em;
}
.feedback {
    display: none;
}
.contact-left img {
    display: none;
}
.contact {
    margin-top: 10vh;
}
/*------- Slideshow End  -------*/

/*===== Main Ends ====== */

/*===== Footer ====== */
footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 90em;
    /* position: absolute;
    bottom:0; */
}
footer .bottom-row {
    height: 5em;
}
footer>div{
    width: 100%;
}
.github, .social, .logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5em 0;
}
.github a img{
    width: 11.6em;
    height: 11.6em;
}
.social img{
    width: 4.8em;
    height: 4.8em;
    margin: 1.6em 0;
}
.logo img{
    width: 18em;
    height: 8.96;
}
.bottom-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}
/*=====Footer Ends====== */

/*=====Destop View====== */
@media screen and (min-width:768px){
    main {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .header-logo {
        display: block;
    }
    .brand-logo {
        width: 66%;
    }
    .nav-menu {
        box-shadow: -.4em 0 2em rgba(0,0,0,0.1);
    }
    .nav-menu ul{
        background: white;
    }
    .nav-menu ul li {
        margin: 3% 12%;
    }
    .about-me-content{
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1em 2em rgba(0,0,0,0.15);
        border-radius: 4em;
        height: 60em;
        overflow: auto;
    }
    .intro {
        height: auto;
        justify-content: center;
        align-items: center;
    }
    .introduction {
        margin: 0 auto;
    }
    .intro p, .intro h2 {
        width: 100%;
    }
    .mission {
        display: flex;
        justify-content: center;
        font-size: 2.4em;
    }
    footer {
        width: 100%;
        height: 10vh;
    }
    .top-row {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-content: flex-end;
        justify-content: space-around;
    }
    .social {
        width: 20%;
        flex-direction: row;
        justify-content: space-around;
    }
    .github, .logo {
        width: 33.3%;
    }
    .github a img {
        width: 16em;
        height: 16em;
    }
    .github-link {
        font-size: 2.5em;
    }
    .logo img {
        width: 22.4em;
    }
    .tagline {
        width: 50%;
    }
    .tagline img {
        display: none;
    }
    .feedback {
        display: flex;
    }
    .big-image {
        width: 43em;
    }
    .slideThumbnail img{
        width: 5em;
    }
    .img-nav{
        width: 140%;
    }
    .contact {
        flex-direction: row;
        width: 70%;
        justify-content: center;
    }
    .contact-left, .contact-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .contact-left {
        width: 50%;
    }
    .contact-left img{
        display: block;
        width: 51.2em;
    }
    .nav-menu ul li::before{
        width: 25%;
    }
    .nav-menu ul li:nth-child(3):before{
        width: 35%;
    }
}
@media screen and (max-width:768px) {
    .nav-menu ul li::before{
        width: 40%;
    }
    .nav-menu ul li:nth-child(3):before{
        width: 55%;
    }
}
@media screen and (min-width:1024px) {
    .bio{
        width: 50%;
        margin-left: 4em;
        height: 28.8em;
        max-height: 28.8em;
    }
    .toolbox-container-ouside {
        width: 50%;
        margin-right: 4em;
        height: 28.8em;
    }
    .bio {
        flex-wrap: nowrap;
    }
    .toolbox-container-inside {
        width: 46.8em;
    }
    .about-me {
        width: 83%;
    }
    .toolbox-container-inside div {
        margin: .8em;
        padding:0 2.1em;
    }
    .about-me h3 {
        font-size: 2.4em;
    }
    .showroom {
        margin-top: -12vh;
    }
    .nav-menu ul li::before{
        width: 16%;
    }
    .nav-menu ul li:nth-child(3):before{
        width: 22%;
    }
}
.project-summary{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin: 0 auto;
    font-size: 1.6em;
}
.summary h2 {
    align-self: center;
}
/*------ preload video  ------*/
#introVideoWrapper {
    position: fixed; /* or absolute, depending on your layout */
    top: -2em;
    left: 0;
    right: 0;
    z-index: 999; /* Ensure it's above other content */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Fullscreen initially */
}

#introVideo {
    width: 100%; /* Adjust based on your preference */
    max-width: 100%; /* Ensures video does not exceed the screen width */
}
/*------ moving gradient  ------*/
.moving-gradient {
    background-size: 200% 200%;
    animation: moveGradient 1s ease infinite alternate;
}
@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 0%; }
}
/*------ hovers  ------*/
.next-project {
    transition: .5s;
}
.next-project:hover {
    transform: scale(2);
}
h2 {
    transition: transform .5s;
}
h2:hover, .h3:hover{
    transform: scale(1.5);
}
/*------ toggle mode ------*/
/* Estilo do botão de alternância */
.toggle-switch {
    display: inline-block;
    position: fixed;
    width: 7rem; /* Aumentando a largura do botão para acomodar o ícone */
    height: 2.5rem;
    overflow: hidden; /* Garante que o ícone não fique visível fora do botão */
    margin-top: 3rem;
    z-index: 100034;
    right: 3em;
    bottom: 2em;
  }
  /* Estilo do input do botão de alternância */
  .toggle-switch input {
    display: none;
  }
  
  /* Estilo do controle deslizante do botão de alternância */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #b3b0b0;
    border-radius: 2rem;
    transition: 0.4s;
  }
  
  /* Estilo da bolinha deslizante */
  .slider:before {
    content: "";
    position: absolute;
    height: 1.625rem;
    width: 1.625rem;
    left: 1.25rem;
    bottom: .3rem;
    background-color: rgba(255,255,255, 0.8); /* Cor fixa da bolinha (laranja) */
    border-radius: 50%;
    transition: 0.4s;
    border: 3px solid black;
  }
  
  /* Estilo do botão de alternância quando está ativo (ligado) */
  .toggle-switch input:checked + .slider {
    background-color: #f5f382; /* Cor de fundo quando ligado */
  }
  
  /* Estilo da bolinha deslizante quando o botão de alternância está ativo */
  .toggle-switch input:checked + .slider:before {
    transform: translateX(2.875rem); /* Aumentando a distância para acomodar o ícone da lua */
  }
  
  /* Estilo do ícone de alternância (sol e lua) */
  .mode-icon {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 5rem; /* Tamanho igual ao botão */
    top: 0;
    left: 0;
    transition: transform 0.4s;
  }
  
  /* Estilo do ícone do sol e da lua */
  .sun-icon,
  .moon-icon {
    font-size: 2rem; /* Tamanho do ícone */
    transition: opacity 0.4s;
    position: absolute;
    top: 4px;
    opacity: 0; /* Inicialmente oculto */
  }
  
  /* Estilo do ícone da lua quando o botão está ativo */
  .moon-icon {
    right: -1.2rem;
  }
  
  /* Classe para tornar elementos visíveis */
  .visible {
    opacity: 1;
  }
  
  /* Estilo do ícone do sol quando o botão está inativo (desligado) */
  .sun-icon {
    left: .5em;
  }

  
