@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

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

body{
    background: #0d141d;
    font-family: 'Poppins';
} 

html {
    scroll-behavior: smooth;
}

header{
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-right {
    display: flex;
    flex-direction: row;
    font-size: large;
    justify-content: right;
    padding : 10px;
    background: transparent;
    backdrop-filter: blur(2px);
}

.top-right h3 {
    margin: 10px 30px;  
}

.spanish{
    color: #f1f1f1 !important;
}

.spanish:hover{
    color: #0d141d !important;
}

.top-right a{
    color: #a393eb;   
    text-decoration: none;  
    border-bottom: 2px solid transparent;
    transition:  0.3s all; 
}

.top-right a:hover{
    color: #f1f1f1;   
    border-bottom: 2px solid #f1f1f1; 
}

.top-right button{
    background-color: #a393eb;
    color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 30px;
    cursor: pointer;
    transition: 0.3s all;
}

.top-right button:hover{
    background-color: #f1f1f1;
    color: #0d141d;
}

.container{
    display: flex;
    flex-direction: column;
}

.title{
    margin: 0px 100px;
    display: flex;
    flex-direction: row;
    justify-content: left;
    margin-top: 10%;
    margin-bottom: 25%;
    margin-left: 15%;
}

.about{
    display: flex;
    flex-direction: column;
    color: #c6c3c6;
    max-width: min(500px , 60%);
}

.about img{
    width: 50px;
}

.about h1{
    color: #a393eb;
    font-size: 44px;
    margin-bottom: 50px;
}

.about p{
    font-size: 20px;
    margin-bottom: 25px;
}

.about button{
    background-color: #a393eb;
    color: #f1f1f1;
    border: none;
    width: 150px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s all;
}

.about button:hover{
    background-color: #f1f1f1;
    color: #0d141d;
}

.cube{
    padding-left: 22%;
    padding-top: 5%;
}

.cube-face {
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    animation: cube 4s infinite linear;
  }
  
  .face {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
  }
  
  .face:nth-child(1) {
    border: 5px solid #a393eb;
    transform: translateZ(-125px) rotateY(180deg);
  }
  .face:nth-child(2) {
    border: 5px solid #f1f1f1;
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
  }
  .face:nth-child(3) {
    border: 5px solid #a393eb;
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
  }
  .face:nth-child(4) {
    border: 5px solid #f1f1f1;
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
  }
  .face:nth-child(5) {
    border: 5px solid #a393eb;
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
  }
  .face:nth-child(6) {
    border: 5px solid #f1f1f1;
    transform: translateZ(125px);
  }
  
  @keyframes cube {
    0% {
      transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
      transform: rotateX(360deg) rotateY(360deg);
    }
  }

.skills{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px 100px;
    margin-bottom: 10%;
}

.skills h3{
    color: #a393eb;
    font-size: 1.30rem;
}

.board{
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.card{
    width: 40%;
    height: 250px;
    background-color: #141c2b;
    margin: 20px;
    border-radius: 20px;
    transition: 0.3s all;
}

.card:hover{
    background-color: #1f2a3b;
    box-shadow: 5px 5px 15px black
}

.card h3{
    color: #f1f1f1;
    font-size: 1.1rem;
    margin: 20px 0 0 30px;
}

.card ul{
    margin: 5px;
    padding-left: 60px;
}

.card li{
    color: #c6c3c6;
    font-size: 1.1rem;
}

.footer{
    background-color: #a393eb;
    height: 50px;
    display: flex;
    justify-content: center ;
}

.footer p{
    color: #0d141d;
    font-size: 10px;
    margin: 15px;
}

.contactme{
    display: flex;
    flex-direction: column ;
    align-items: center;
    justify-content: center;
    margin: 0px 100px;
    margin-bottom: 10%;
}

.contactme  h3{
    color: #a393eb;
    font-size: 1.30rem;
}

.contactboard{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.contact{
    display: flex;
    flex-direction: column;
    color: #c6c3c6;
    margin: 20px;
    background-color: #141c2b;
    min-width: 400px;
    max-width: 500px;
    height: 200px;
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s all;
}

.contact:hover{
    background-color: #1f2a3b;
    box-shadow: 5px 5px 15px black
}


.contactme .img1{
    width: 54px;
    fill: #a393eb;
    stroke: #a393eb;
}

.contactme .img2{
    width: 20px;
    transition: 0.3s all;
}

.contactme .img2:hover {
    transform: translateX(5px);
}


@media (max-width: 440px) {

    html, body {
        overflow-x: hidden;
    }
    .cube {
        display: none;
    }

    .about p{
        font-size: 16px;
    }

    .about h1{
        font-size: 35px;
    }

    .title {
        margin: 50% 10% 50% 10%;
    }

    .about{
        max-width: none;
    }

    .skills{
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
        margin: 0px;
    }

    .board{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .card{
        min-width: 300px;
        max-width: 400px;
        /* width: 320px; */
        height: 220px;
        margin: 0px;
        margin-bottom: 30px;
    }

    .card h3{
        font-size: 0.9rem;
        margin: 20px 0 0 25px;
    }

    .card ul{
        padding-left: 45px;
    }

    .card li{
        font-size: 0.9rem;
    }

    .skills{
        margin-bottom: 20%;
    }

    .contactboard{
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    .contact{
        width: 90%;
    }

    .top-right {
        display: none;
    }
}