/* Imports the Poppins font from Google fonts */

@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&display=swap');

:root {
      --main-color: #00eeff;
      --text-color: #ffffff;
      --bg-color-01: #1f242d;
      --bg-color-02: #323946;
      --color-00: #0000001a;

      /* Extra  */
      --color-01: #999999;
      --color-02: #009539;
      --color-03: #7950f2;
      --color-04: #c00000;
      --color-05: #232323;
}

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      text-decoration: none;
      border: none;
      outline: none;
      scroll-behavior: smooth;
}

html {
      font-family: 'Poppins', sans-serif;
}

body {
      background-color: var(--bg-color-01);
      color: var(--text-color);
}

header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      padding: 1.1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 100;
      background-color: var(--bg-color-01);

}

.logo {
      font-size: 1.7rem;
      color: var(--text-color);
      font-weight: 600;
      cursor: default;
}

.nav a {
      font-size: 1.2rem;
      color: var(--text-color);
      padding: .05rem 1rem;
      transition: .4s;

}

.nav a:hover {
      color: var(--main-color)
}

section {
      padding: 6rem 6rem 2rem;
      min-height: 100vh;
}

span {
      color: var(--main-color);
}

.home, .about {
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;
}

.about {
      background-color: var(--bg-color-02);      
}

.home-img img, .about-img img {
      border-radius: 50%;
      margin: 0 1.4rem;
}

.home-content h3, .about-content h3 {
      font-weight: 700;
      font-size: 1.6rem;
}

.home-content h1, .about-content h1 {
      font-weight: 700;
      line-height: 1.3rem;
}

.home-content p, .about-content p {
      margin-top: 1.2rem;
      text-align: justify;
}

.services h2,
.portfolio h2,
.contact h2 {
      font-size: 2.2rem;
      margin-bottom: 1rem;
      text-align: center;
}

#service {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
}

.services-container {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
}

.services-box {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 25rem;
      margin-bottom: 1rem;
}

.services-container .services-box {
      padding: 2rem 1rem;
      border-radius: 1.2rem;
      text-align: center;
      border: .15rem solid var(--bg-color-01);
      background-color: var(--bg-color-02);
      transition: .5s ease;
}

.services-container .services-box:hover {
      border-color: var(--main-color);
      transform: scale(1.01);
}

.services-box i {
      font-size: 4.3rem;
      color: var(--main-color);
}

.services-box h3 {
      font-size: 2.5rem;
}

.services-box p {
      margin: .5rem;
      letter-spacing: .1rem;
      /* N lines */
      /* display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis; */
}

.portfolio {
      background-color: var(--bg-color-02);
}

.portfolio-container {
      display: grid;
      gap: 1.2rem;
}

.portfolio-box {
      position: relative;
      border-radius: .6rem;
      box-shadow: 0 0 0.6rem var(--bg-color-01);
      overflow: hidden;
      display: flex; 

}

.portfolio-box img {
      width: 100%;
      transition: .5s ease;
}

.portfolio-box img:hover {
      transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(transparent, var(--main-color));
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      text-align: center;
      padding: 0 4rem;
      transform: translateY(30rem);
      transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
      transform: translateY(0);
}

.portfolio-layer h4 {
      font-size: 1.8rem;
}

.portfolio-layer p {
      margin: .2rem 0 .5rem;
}

.portfolio-layer a {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 3rem;
      height: 3rem;
      background: var(--text-color);
      border-radius: 50%;
}

.portfolio-layer a i {
      font-size: 1.2rem;
      color: var(--bg-color-02);
}

form {
      max-width: 45rem;
      margin: .6rem auto;
      text-align: center;
      margin-bottom: 2rem;
}

form .input-box {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
}

form .input-box input,
form textarea {
      width: 100%;
      padding: 1rem;
      font-size: 1rem;
      color: var(--text-color);
      background-color: var(--bg-color-02);
      border-radius: .5rem;
      margin: .4rem 0;
}

form textarea {
      resize: none;
}

footer {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      padding: 1.2rem;
      background-color: var(--bg-color-01);
}

.social-media img {
      width: 3.5rem;
}

.social-media a {
      display: inline-flex;
      background: transparent;
      border: solid  .15rem var(--main-color);
      justify-content: center;
      align-items: center;
      height: 2.5rem;
      width: 2.5rem;
      border-radius: 50%;
      font-size: 2rem;
      margin: 1.8rem .5rem 1.8rem 0;
      color: var(--main-color);
      transition: .5s ease;
}

.social-media a:hover {
      background-color: var(--main-color);
      color: var(--bg-color-02);
      box-shadow: 0 0 0.3rem var(--main-color);
}

/* ==== button ==== */
.btn {
      display: inline-block;
      padding: .7rem 1.8rem;
      background-color: var(--main-color);
      border-radius: 2rem;
      color: var(--bg-color-02);
      font-weight: 600;
      letter-spacing: .1rem;
      transition: .3s ease;
      margin-top: 1.2rem;
}

.btn:hover {
      box-shadow: 0 0 0.3rem var(--main-color);
      background-color: inherit;
      color: var(--main-color);
      cursor: pointer;
}

/* ==== /button ==== */

/* === menu hamburger  */
.menu-hamburguer {
      display: none;
      cursor: pointer;
}

.bar1, .bar2, .bar3 {
      width: 2rem;
      height: .3rem;
      background-color: var(--text-color);
      margin: .4rem 0;
      transition: .3s ease;
}

.change .bar1 {
      transform: translate(0, 0.65rem) rotate(-49deg);
}

.change .bar2 {
      opacity: 0;
}

.change .bar3 {
      transform: translate(0, -0.65rem) rotate(49deg);
}

/* === /menu hamburger  */


.skills {
      padding: 60px 0;
      background: var(--bg-color);
      text-align: center;
    }
    
    .skills .heading {
      font-size: 3rem;
      color: var(--text-color);
      margin-bottom: 40px;
    }
    
    .skills-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr); /* 3 colunas */
      gap: 2rem;
      justify-items: center;
      padding: 0 2rem;
    }
    
    
    .skill-box {
      background: var(--second-bg-color);
      border-radius: 10px;
      padding: 20px;
      transition: 0.3s;
    }
    
    .skill-box:hover {
      background: var(--main-color);
      color: #fff;
      transform: scale(1.05);
    }
    
    .skill-box i {
      font-size: 3rem;
      margin-bottom: 10px;
      color: var(--main-color);
    }
    
    .skill-box:hover i {
      color: #fff;
    }
    
    .skill-box h3 {
      font-size: 1.1rem;
    }


/*  === media queries  */
/* Extra Small (xs): Smartphone (portrait) */
@media (min-width: 0px) {
      .menu-hamburguer {
            display: block;
      }

      .nav {
            display: none;
      }

      header {
            justify-content: space-around;
            
      }

      .nav-responsive .active{
            display: grid;
            grid-template-columns: auto auto;
            width: 100%;
            font-size: 1.2rem;
            margin: .5rem 0;
      }

      .nav-responsive a {
            padding: .6rem 2rem;
            display: none;
            width: 90%;
            text-align: center;
            margin-top: 10px;
            background-color: var(--bg-color-02);
            border-radius: 5px;
            color: var(--main-color);
            transition: .5s ease;
      }

      section {
            padding: 8rem 2.5rem;
      }

      .home, .about {
            flex-direction: column;
            gap: 1.2rem;
      }

      .home-img img, .about-img img{
           width: 80%;
           max-width: 80%;
      }

      .home-content, .about-content {
            width: 100%;
      }

      .home-content div {
            text-align: center;
      }

      .home-content h1,
      .about-content h1 {
            font-size: 2.2rem;
            font-weight: 700;
            line-height: 1.3;
      }

      .services-container {
            flex-direction: column;
            align-items: center;
      }

      .services-box {
            width: 100%;
      }

      .portfolio-box p {
            display: none;
      }


}

@media (min-width: 0px) {
      .skills-container {
        grid-template-columns: 1fr; /* 1 por linha em telas pequenas */
      }

      .skill-box i {
            font-size: 6rem;
      }
    }

/* Small (sm) : Smartphone (landscape) */
@media (min-width: 576px) {

      .skills-container {
            grid-template-columns: repeat(2, 1fr); /* 2 por linha em telas médias */
          }

      .home-img, .about-img {
            width: 75%;
            max-width: 75%;
      }

      .services-box {
            width: 100%;
      }

}

/* Tablet (md): Tablet */
@media (min-width:768px) {

      .skills-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 3 colunas */
            gap: 2rem;
            justify-items: center;
            padding: 0 2rem;
          }

      .logo {
            display: block !important; 
      }

      .menu-hamburguer {
            display: none;
      }

      .nav {
            display: block;
      }

      .nav-responsive, .nav-responsive a {
            display: none;
      }

      .home, .about {
            flex-direction: row;
            justify-content: space-evenly;
      }

      .services-box {
            width: 60%;
            margin-bottom: 2rem;
      }

      .portfolio-container {
            grid-template-columns: auto auto;
      }

      .portfolio-box p {
            display: block;
            font-size: 10px;
      }

      form .input-box input {
            width: 49%;
      }

}

/* Large (lg): Notebook */
@media (min-width: 992px) {

      .services-container {
            flex-direction: row;
            gap: 1.2rem;
      }
}

@media (min-width: 1200px) {

      .home-img, .about-img {
            width: 55%;
            max-width: 55%;
      }

      .home-content h1 {
            font-size: 2.7rem;
      }

      .home-content h3 {
            font-size: 2rem;
      }

      .portfolio-container {
            grid-template-columns: auto auto auto;
      }
}

/*  === /media queries  */




    