@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

html {
  scroll-behavior: smooth;
}

*{ 
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
}

/* scroll btn */


.scroll-up-btn {
  position: fixed;
  height: 50px;
  width: 45px;
  background: none;
  right: 40px;
  bottom: 20px;
  text-align: center;
  line-height: 35px;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6 ease;
}

.scroll-up-btn i {
  color: #000000;
  font-size: 2rem;
}

.scroll-up-btn.show {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}

/* Navbar */

.navbar {
  position: fixed;
  width: 100%;
  padding: 30px 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.navbar.sticky {
  padding: 15px;
  background: #ffffff;
}

.navbar .menu li a {
  color: #000000;
  font-size: 1.2rem;
}

.max-width {
  max-width: 1100px;
  padding: 0 80px;
  margin: auto;
}

.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .menu li {
  list-style: none;
  display: inline-block;
}

.menu li a {
  display: block;
  margin-left: 1.5rem;
  text-transform: uppercase;
}

.menu li a:hover {
  color: #474747;
  transition: color 0.5s ease;
  border-bottom: 1px solid #000000;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  
}

.logo a {
  color: #000000;
  font-weight: 500;
}

.menu-btn {
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* SHOWCASE */

.home {
  display: flex;
  background: url('./images/hero.jpg') no-repeat center center/cover ;
  height: 100vh;
  color: #000000;
  min-height: 500px;
  width: 100%;
}

.grid-showcase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 900px;
}


.hero-img {

  width: 40%;
}

.hero-img img {
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  margin-left: auto;
}


.home .home-content .text-1 {
  font-size: 2.2rem;
  margin: 5px 0;
}

.home .home-content .text-2 {
  font-size: 2rem;
  font-weight: 600;
  margin-left: -3px;
}

.text-2 span {
  color: #686868;
  font-weight: 400;
}


.home .home-content a:hover {
  color: #020202;
  /* background-color: rgba(0, 0, 0, 0.658); */
  background: none;
}

/* About */

/* section {
  padding: 50px 0;
} */

.title {
  position: relative;
  text-align: center;
  font-size: 3rem; 
  font-weight: 600;
  margin-bottom: 3rem;
  margin-top: 5rem;
  padding-bottom: 1.1rem;
}

.title::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #000000;
  transform: translateX(-50%);
}

.teams .title::before {
  content: '';
  color: #ffffff;
  background: #000000;
}

.teams .title::after {
  content: none;
  color: #000000;
}

.about .about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.about .about-content .left {
  width: 45%;
}

.about .about-content .left img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.about .about-content .right {
  width: 45%;
}

.about .about-content .right .text {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 25px;
}

.about .about-content .right p {
  text-align: left;
  margin-bottom: 20px;
  line-height: 16pt ;
}


/* portfolifo */



.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  align-items: center;
  grid-gap: 2rem;
  justify-content: center;
  justify-items: center;
}

.grid-item {
  width: 80%;
  border-radius: 20px;
  border: 1px solid #686868;
  margin-bottom: 1rem;
  transition: all 0.6s ease; 
}

.grid-item:hover {
  background: #68686870;
  color: #ffffff;
}

.cover-img {
  margin-bottom: .5rem;
}

.cover-img img {
  width: 100%;
  height: 200px;
  object-fit: fill;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  
}

.item-info {
  text-align: center;
  padding: 0.5rem;
}

.item-info  h1 , .item-info  h1 a {
  margin-bottom: .5rem;
}

/* .fab , .fas {
  padding: 1rem;
  margin: 0 auto;
  color: #ffffff;
} */

.fas {
  color: #474747;
}

/* Contact */

#portfolio {
  margin-bottom: 5rem;
}

.contact .title::after {
  content: '';
}

.form {
  margin-top: 3rem;
  
}

input[type=text],
input[type=email],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=submit] {
  display: inline-block;
  background: #07070788;
  color: #ffffff;
  font-size: 1.1rem;
  padding: 12px 36px;
  text-transform: uppercase;
  margin-top: 15px;
  border-radius: 4px;
  border: 2px solid #c2c2c2;
  transition: all 0.5s ease;
  
}

input[type=submit]:hover {
  background-color: #fdfdfd65;
  color: #474747;
}

.btn-primary {
  display: inline-block;
  background: #07070788;
  color: #ffffff;
  font-size: 1.1rem;
  padding: 12px 36px;
  text-transform: uppercase;
  margin-top: 15px;
  border-radius: 4px;
  border: 2px solid #c2c2c2;
  transition: all 0.5s ease;
}

.btn-primary:hover {
  color: #020202;
  /* background-color: rgba(0, 0, 0, 0.658); */
  background: none;
}




/* footer */

footer {
  background: #686868;
  padding: 20px 23px;
  color: #ffffff;
  font-weight: 600;
  margin-top: 1rem;
} 

.flex-footer-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;

}

.flex-footer-container li {
  margin: 0.5rem;
}

.flex-footer-container ul {
  list-style: none;
  margin: 0.2rem;
}

.flex-footer-container li a,
.flex-footer-container li span {
  color: #ffffff;
  margin: 1.3rem;
}

.flex-icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

img {
  width: 100%;
}

.personal-info i {
  color: #ffffff;
}


.container {
  max-width: 1100px;
  margin: auto;
  overflow: auto;
  max-width: 1100px;
  padding: 0 80px;
  margin: auto;
}

.card {
  /*  */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f1f1f1;
  /* grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
   */
  margin-bottom: 2rem;
}

.card h3 {
  margin-bottom: 2rem;
}

.card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.card > div {
  padding: 2rem;
}

/* 
modal
*/


.modal-wrap {
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  left: 0;
  opacity: 0;
  overflow: auto;
  position: fixed;
  top: 0;
  visibility: hidden;
  width: 100%;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.modal-wrap.visible {
  opacity: 1;
  visibility: visible;
}

.modal-wrap .modal-container {
  background: #fff;
  margin: 1em;
  max-width: 100%;
  width: 600px;
  z-index: 100;
}

.modal-wrap .modal-container .modal-header,  .modal-wrap .modal-container .modal-footer {
  background: #000;
  float: left;
  width: 100%;
}

.modal-wrap .modal-header .modal-title {
  color: #fff;
  float: left;
  font-size: 2em;
  margin: 0;
  padding: 15px 30px;
}

.modal-wrap .modal-header .close-modal {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  float: right;
  font-size: 40px;
  opacity: 0.4;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.modal-wrap .modal-header .close-modal:hover { opacity: 1; }

.modal-wrap .modal-content {
  float: left;
  margin: 0;
  padding: 15px 30px;
  width: 100%;
}

.modal-wrap .modal-content p:last-child { margin-bottom: 0; }

.modal-wrap .modal-footer { text-align: center; }

.modal-wrap .modal-footer p {
  color: #ccc;
  font-size: 12px;
  font-style: italic;
  margin: 10px;
}

.modal-wrap .modal-footer a { color: #fff; }


.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.8rem 1.8rem;
  margin-top: 2rem;
  cursor: pointer;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.btn i {
  color: #fff;
}

.btn:hover {
  opacity: 0.8;
}

@media(max-width:600px) {
  .card {
    display: block;
  }

  .hero-img img {
    display: none;
  }
}


/* Mobile screen */
@media (max-width: 1104px) {
  .home .max-width {
    margin-left: 0px;
    
  }

  .about .about-content .left img {
    height: 350px;
    width: 350px;
  }
  
}


@media (max-width: 991px) {
  .max-width {
    padding: 0 50px;
  }

  .about .about-content .column{
    width: 50%;
  }

  .title {
    font-size: 26px;
  }
}

@media (max-width: 947px) {
  .menu-btn {
    color: #000000;
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    z-index: 2;
  }

  .menu-btn i.active::before {
    content: '\f00d';
  }

  .navbar .menu  {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background-color: #ffffff;
    text-align: center;
    padding-top:  20%;
    transition: all 0.6s ease;
  }

  .navbar .menu.active {
    left: 0
  }

  .logo  a{
    color: #000000;

  }

  .navbar .menu li {
    display: block;

  }

  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }

  .home-content {
    text-align: left;
  }

  .home .home-content .text-1 {
    font-size: 1.8rem;
  }
  
  .home .home-content .text-2 {
    font-size: 1.5rem;

  }

  .max-width {
    max-width: 800px;
  }

  .about .about-content .column{
    width: 100%;
  }

  .about .about-content .left {
    display: flex;
    justify-content: center;
    margin: 0 auto 4rem;
  }

  .about .about-content .right  {
    flex: 100%;
  }

  .grid-container {
    grid-template-columns: repeat(1, 4fr);
  }

  .cover-img img {
    max-width: 100%;
    object-fit: contain;
    border: none;
    height: 100%;
    width: 100%;
  }

  .card-text {
    text-align: left;
  }

  .title {
    font-size: 23px;
  }

}

@media (max-width: 500px) {
  .cover-img img {
    height: 100%;
    width: 100%;
  }

  .home .home-content .text-1 {
    font-size: 1.2rem;
  }
  
  .home .home-content .text-2 {
    font-size: 1.1rem;

  }

  .flex-footer-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
  
  }
  
  .flex-footer-container li {
    margin: 0.5rem;
  }
  
  .flex-footer-container ul {
    list-style: none;
    margin: 0.2rem;
  }
  
  .flex-footer-container li a,
  .flex-footer-container li span {
    color: #ffffff;
    margin: 1.1rem;
    font-size: 13px;
  }
  
  .flex-icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .contact-content .btn-primary {
    width: 100%;
    font-size: 12px;
    
  }
}

@media (max-width: 616px) {
  .cover-img img {
    height: 100%;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .title {
    font-size: 21px;
  }
}