@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body, section, div, p, h1, h2, h3, h4, h5, h6, span{
    user-select: none;
}

input, textarea{
    user-select: text;
}

:root{
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

html{
    font-size: 70%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
  html { font-size: 62.5%; }
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3.0rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a{
    font-size: 2.3rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover, 
.navbar a.active {
    color: var(--main-color);
}

#menu-icon{
    font-size: 4.2rem;
    color: var(--text-color);
    display: none;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img{
    width: 35vw;
}

.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}

span{
    color: var(--main-color);
}

.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    font-size: 1.6rem;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
}

.social-media a:hover{
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover{
    box-shadow: none;
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading{
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about-img{
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img{
    width: 90%;
    border-radius: 50%;
    border: .3rem solid var(--main-color);
}

.about-img .circle-spin{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .3rem solid var(--second-bg-color);
    border-bottom: .3rem solid var(--second-bg-color);
    border-left: .3rem solid var(--main-color);
    border-right: .3rem solid var(--main-color);
}

.about-content{
    text-align: center;
}

.about-content h3{
    font-size: 2.6rem;
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.about-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.about-card{
    background: var(--second-bg-color);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 0 1rem var(--bg-color);
    border: .2rem solid transparent;
    transition: .3s ease;
    text-align: center;
}

.about-card:hover{
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 0 1.2rem var(--main-color);
}

.about-card i{
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.about-card h3{
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.about-card h4{
    font-size: 1.9rem;
    margin-bottom: .4rem;
}

.about-card p{
    font-size: 1.6rem;
    line-height: 1.6;
}

/* Experience rotator */
.exp-rotator{
    margin-top: 1.2rem;
    text-align: center;
}

.exp-header{
    margin-bottom: 1rem;
}

#expMeta{
    display: inline-block;
    font-size: 1.3rem;
    opacity: .8;
    margin-top: .2rem;
}

.exp-controls{
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.exp-btn{
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 1.2rem;
    border: .2rem solid var(--main-color);
    background: transparent;
    color: var(--main-color);
    cursor: pointer;
    transition: .2s ease;
    display: grid;
    place-items: center;
}

.exp-btn:hover{
    background: var(--main-color);
    color: var(--bg-color);
}

.exp-btn i{
    font-size: 2.2rem;
    margin: 0;
}

.exp-dots{
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex: 1;
}

.exp-dot{
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
    opacity: .5;
    cursor: pointer;
    transition: .2s ease;
}

.exp-dot.active{
    opacity: 1;
    background: var(--main-color);
}

.edu-item{
    margin-top: 1.2rem;
    text-align: center;
}

@media (max-width: 991px){
    .about-grid{
        grid-template-columns: 1fr;
    }
    .exp-rotator, .edu-item{
        text-align: center;
    }
}

.skills{
    background: var(--bg-color);
}

.skills h2{
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.skills-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.skills-box{
    background: var(--second-bg-color);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 0 1rem var(--bg-color);
    border: .2rem solid transparent;
    transition: .3s ease;
    text-align: center;
}

.skills-box:hover{
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 0 1.2rem var(--main-color);
}

.skills-box i{
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.skills-box h4{
    font-size: 2.4rem;
    margin-bottom: .6rem;
}

.skills-box p{
    font-size: 1.6rem;
    color: var(--text-color);
    line-height: 1.6;
}

.portfolio{
    background: var(--second-bg-color);
}

.portfolio h2{
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.portfolio-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card{
    background: var(--bg-color);
    border-radius: 2rem;
    border: .2rem solid transparent;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    transition: .3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover{
    border-color: var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 0 1.2rem var(--main-color);
}

.project-card{
    position: relative;
}

.project-fab{
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 50%;
    background: var(--main-color);
    color: var(--bg-color);
    display: grid;
    place-items: center;
    box-shadow: 0 .8rem 1.6rem rgba(0,0,0,.35);
    z-index: 2;
    transition: .25s ease;
}

.project-fab i{
    font-size: 2.2rem;
}

.project-fab:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 1.2rem 2.2rem rgba(0,0,0,.45);
}

.project-fab.alt{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: .15rem solid var(--main-color);
}

.project-img{
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #00000010;
}

.project-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-content{
    padding: 2.2rem 2.2rem 2.6rem;
    text-align: center;
}

.project-content h3{
    font-size: 2.4rem;
    margin-bottom: .8rem;
}

.project-content p{
    font-size: 1.6rem;
    line-height: 1.6;
    opacity: .92;
    margin-bottom: 1.6rem;
}

.chip-row{
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
}

.chip{
    padding: .7rem 1.2rem;
    border-radius: 999px;
    border: .15rem solid var(--main-color);
    font-size: 1.3rem;
    color: var(--text-color);
    background: transparent;
    transition: .2s ease;
}

.chip:hover{
    background: var(--main-color);
    color: var(--bg-color);
}

/* Responsive */
@media (max-width: 991px){
    .portfolio-container{
        grid-template-columns: 1fr;
    }
    .project-img{
        height: 220px;
    }
}

.contact{
    min-height: auto;
    padding-bottom: 7rem;
}

.contact form{
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact-subtitle{
    font-size: 1.6rem;
    max-width: 60rem;
    margin: .3rem auto 2.8rem;
    line-height: 1.5;
    opacity: .9;
    text-align: center;
}

.contact h2{
    margin-bottom: .2rem;
}

.contact-info{
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: center;
}

.contact-item{
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.8rem;
}

.contact-item i{
    font-size: 2.4rem;
    color: var(--main-color);
}

.contact-item a{
    color: var(--text-color);
    text-decoration: none;
    transition: .2s ease;
}

.contact-item a:hover{
    color: var(--main-color);
}


img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  section{
    padding: 10rem 6% 2rem;
  }

  .header{
    padding: 2rem 6%;
  }

  .home{
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  #menu-icon{
    display: block; 
  }

  .navbar{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 6%;
    background: var(--bg-color);
    border-top: .1rem solid rgba(255,255,255,.12);
    display: none;
    flex-direction: column;
    gap: 1.2rem;
  }

  .navbar.active{
    display: flex;
  }

  .navbar a{
    margin: 0;
    font-size: 2rem;
    padding: 1rem 0;
  }

  .home{
    flex-direction: column;
    text-align: center;
  }

  .home-img img{
    width: min(72vw, 320px);
  }

  .social-media a{
    width: 4.4rem;
    height: 4.4rem;
  }

  .skills-container{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .logo{
    font-size: 2.4rem;
  }

  .home-content h1{
    font-size: 4rem;
  }

  .home-content h3{
    font-size: 2.4rem;
  }

  .skills-container{
    grid-template-columns: 1fr;
  }

  .project-img{
    height: 200px;
  }
}
