:root {
  --white: #fff;
  --red: #f00;
  --black: #000;
  --grey: #3c3c3c;
}
::selection {
  background-color: var(--black);
  color: var(--red);
}

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

html {
  font-size: 6px;
}

body {
  font-family: "Lato", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--white);
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }

  html {
    font-size: 7px;
  }
}

@media (min-width: 768px) {
  .conteiner {
    max-width: 720px;
  }

  html {
    font-size: 8px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  html {
    font-size: 9px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  html {
    font-size: 10px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

section {
  padding-top: 10rem;
  padding-bottom: 10rem;
  text-align: center;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.text-uppercase {
  text-transform: uppercase;
}

i {
  color: var(--white);
}

/*navbar*/

nav {
  width: 100%;
  color: var(--white);
  background-color: var(--black);
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
  position: fixed;
  z-index: 999999;
}

#logo-box {
  float: left;
  padding-top: 0.5rem;
}

#logo-box .logo {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 700;
}

#nav-links {
  float: right;
}

#nav-links .nav-item {
  display: inline-block;
  margin: 0.4rem;
}

#nav-links .nav-link {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  padding: 1.6rem;
  letter-spacing: 0.1rem;
  transition: color 0.3s;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -ms-transition: color 0.3s;
  -o-transition: color 0.3s;
}

#nav-links .nav-link:hover {
  color: var(--red);
}

#nav-links .nav-icon {
  display: none;
}

@media (max-width: 992px) {
  #logo-box {
    float: none;
    text-align: left;
  }

  #nav-links {
    float: none;
  }

  #nav-links .nav-link {
    font-size: 2rem;
    padding-left: 0;
  }

  #nav-links .nav-item {
    display: block;
    text-align: left;
  }

  #nav-links .nav-icon {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  #nav-links.responsive li:not(:first-child) {
    display: none;
  }
}

/*Header*/

header {
  background-color: var(--black);
  padding-top: calc(112px + 6rem);
  padding-bottom: 112px;
  text-align: center;
}

header h1 {
  color: var(--white);
  font-size: 7.6rem;
}

header h2 {
  color: var(--white);
  font-family: "Lato, sans serif";
  font-size: 2.8rem;
  font-weight: 300;
}

hr.star-dark {
  border-color: var(--black);
}

hr.star-light {
  border-color: var(--white);
}

.star-light,
.star-dark {
  border: none;
  border-top: 0.4rem solid;
  max-width: 25rem;
  margin: 3rem auto;
  padding: 5px;
  overflow: visible;
  height: 0;
}

.star-light::after {
  background-color: var(--black);
  color: var(--white);
}

.star-dark::after {
  background-color: var(--white);
  color: var(--black);
}

.star-light::after,
.star-dark::after {
  content: "\f005";
  font-family: "Font Awesome 5 Free";
  font-size: 3rem;
  font-weight: 900;
  position: relative;
  padding: 0 8px;
  top: -3rem;
}

/* Portfolio */

#portfolio h2 {
  font-size: 4.8rem;
  color: var(--black);
}

.col {
  float: left;
  width: 100%;
  padding: 1rem;
}

@media (min-width: 992px) {
  .col {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .col {
    width: 50%;
  }
}

.portfolio-item {
  position: relative;
}

.portfolio-item img {
  display: block;
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  opacity: 0;
  transition: opacity 0.5s ease;
  -webkit-transition: opacity 0.5s ease;
  -moz-transition: opacity 0.5s ease;
  -ms-transition: opacity 0.5s ease;
  -o-transition: opacity 0.5s ease;
}

.img-overlay .icon {
  color: var(--white);
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
}

.portfolio-item:hover .img-overlay {
  opacity: 0.9;
}

/* About */

#about {
  background-color: var(--black);
  color: var(--white);
}

#about h2 {
  font-size: 4.8rem;
}

#about-text {
  text-align: left;
}

#about-text .left {
  float: none;
  width: 100%;
  padding-right: 0.2rem;
  padding-left: 2rem;
}

#about-text .right {
  float: none;
  width: 100%;
  padding-left: 0.2rem;
  padding-right: 2rem;
}

@media (min-width: 1200px) {
  #about-text .left {
    float: left;
    width: 50%;
    padding-right: 2rem;
    padding-left: 23rem;
  }

  #about-text .right {
    float: right;
    width: 50%;
    padding-left: 2rem;
    padding-right: 23rem;
  }
}

#about-text .text {
  font-size: 2rem;
}

/* Footer */
footer {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--white);
  color: var(--black);
  text-align: center;
}

footer h4 {
  font-size: 2.4rem;
}

.btn {
  margin-top: 4rem;
  font-weight: 400;
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  -webkit-border-radius: 0.4rem;
  -moz-border-radius: 0.4rem;
  -ms-border-radius: 0.4rem;
  -o-border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
}

.btn-outline {
  border-color: var(--black);
  background-color: var(--black);
  color: var(--white);
}

.btn-social {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  font-size: 2rem;
  line-height: 2.5rem;
}

.btn-outline:hover {
  background-color: transparent;
  color: var(--black);
}

button a i:hover {
  color: var(--black);
}

footer li {
  display: inline-block;
  margin-right: 1rem;
}

.copyright {
  padding-top: 2.4rem;
  padding-bottom: 1rem;
  text-align: center;
}
