@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..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
:root {
    --bg-color: #F5F7FA;
    --text-color: #1A1A1A;
    --primary-color: #007BFF;
    --nav: white;
}

.dark-mode {
  --bg-color: #121212;
  --text-color: #E0E0E0;
  --primary-color: #1E90FF;
  --nav: #121212;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: var(--bg-color);
    overflow-x: hidden;
}
header{
    position: sticky;
    top: 0;
}
header, nav{
    width: 100%;
    height: 10vh;
    background-color: var(--nav);
    color: var(--text-color);
    z-index: 18;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    font-family: "Ubuntu", sans-serif;
    border-bottom: 0.1vw solid var(--primary-color);
}
nav ul{
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: auto;
    gap: 1rem;
}
li{
    list-style: none;
    color: var(--text-color);
    font-family: "Ubuntu", sans-serif;
    cursor: pointer;
}
.loader, #loadnumber{
    display: none;
}
.wrapper{
    height: 100%;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
}
.links{
    height: 100vh;
    width: 70vw;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 108;
    position: fixed;
    top: 0;
    right: 0;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: "Ubuntu", sans-serif;
    gap: 2rem;
}
.show{
    display: flex;
    opacity: 1;
}
#cross{
    position: absolute;
    top: 2.5%;
    right: 3.5%;
    color: white;
}
.links li{
    color: white;
    margin-bottom: 1rem;
}
li:hover{
    text-decoration: underline;
}
h2{
    font-size: 3rem;
}
#hero{
    height: 90vh;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
    border-bottom: 0.1vw solid var(--primary-color);
}
#hero img{
    border-radius: 50%;
    width: 70vw;
}
#intro span{
    display: inline-block;
    min-height: 37px;
    min-width: 8px;
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
}
.texts{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}
.texts #span{
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    text-align: center;
}
#about{
    height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-direction: column;
    border-bottom: 0.1vw solid var(--primary-color);
}
#about h2{
    color: var(--primary-color);
    font-family: "Roboto", sans-serif;
    margin-bottom: 2rem;
}
#about img{
    width: 70vw;
    height: auto;
    border-radius: 50%;
}
#about img:hover{
    transform: scale(1.05);
}
#about p{
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    text-align: center;
    padding: 0 0.5rem;
}
#skills{
    height: 250vh;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: var(--bg-color);
    flex-direction: column;
}
.card{
    width: 85%;
    height: 40vh;
    border: 0.1vw solid var(--primary-color);
    border-radius: 1rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}
#skills h2{
    color: var(--primary-color);
    font-family: "Roboto", sans-serif;
}
.card svg{
    height: 50%;
    color: var(--primary-color);
}
.card h3{
    color: var(--text-color);
    font-family: "Ubuntu", sans-serif;
    font-size: xx-large;
    text-align: center;
}
#projects{
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--nav);
    border-top: 0.1vw solid var(--primary-color);
    overflow-x: hidden;
}
#projects h2{
    font-family: "Poppins", sans-serif;
    color: var(--primary-color);
    margin-top: 5rem;
}
#projects img{
    height: 45%;
    max-width: 95%;
    object-fit: cover;
    border-radius: 1rem;
}
#projects .card{
    height: 55vh;
    width: 94%;
}
#projects .card p{
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    text-align: center;
    padding: 0 0.5rem;
}
#projects .btns{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.cardContainer{
    height: 95%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}
#projects .cardContainer{
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 10vh;
    padding: 0 0 0 2rem;
}
#projects .cardContainer .card{
    white-space: normal;
    flex: 0 0 auto;
}
#projects .btns svg{
    color: var(--primary-color);
}
#contact {
    max-width: 600px;
    margin: 80px auto;
    padding: 20px;
  }
  .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-family: "Ubuntu";
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .input-wrapper {
    position: relative;
  }
  input,
  textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #777;
    color: #fff;
    font-size: 1rem;
    outline: none;
  }
  label {
    position: absolute;
    left: 0;
    top: 12px;
    color: #aaa;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s;
  }
  input:focus + label,
  input:valid + label,
  textarea:focus + label,
  textarea:valid + label {
    top: -14px;
    font-size: 0.8rem;
    color: #1e90ff;
  }
  .underline {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #1e90ff;
    transition: width 0.3s ease;
  }
  input:focus ~ .underline,
  textarea:focus ~ .underline {
    width: 100%;
  }
  .submit-btn {
    position: relative;
    background: none;
    border: 2px solid #1e90ff;
    color: #1e90ff;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s;
  }
  .submit-btn .btn-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #1e90ff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  .submit-btn:hover {
    color: #fff;
  }
  .submit-btn:hover .btn-bg {
    transform: scaleX(1);
  }
footer{
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    color: var(--primary-color);
}
@media only screen and (min-width: 800px) {
body{
    overflow-y: hidden;
}
.loader{
    position: fixed;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 900;
    background-color: black;
    padding: 0 2vw;
}
.circle{
    height: 5vw;
    width: 5vw;
    border-radius: 50%;
    background-color: white;
    display: none;
}
nav ul{
        display: flex;
    }
    .wrapper{
        display: none;
    }
    #hero{
        flex-direction: row-reverse;
        padding: 0 2rem;
    }
    #hero .texts{
        align-items: flex-start;
        margin-left: 2rem;
    }
    #hero .texts #span{
        text-align: start;
    }
    #hero img, #about img{
        width: auto;
        height: 50vh;
    }
    #about h2{
        margin-bottom: 60vh;
    }
    #about p{
        width: 50%;
        position: absolute;
        left: 8%;
    }
    #about img{
        position: absolute;
        right: 8%;
    }
    .cardContainer{
        flex-direction: row;
        flex-wrap: wrap;
    }
    .card, #projects .card{
        width: 45%;
    }
    #skills{
        height: 180vh;
    }
    .section-title {
        font-size: 2rem;
      }
}
