:root {
  --main-white: #f0f0f0;
  --main-red: #be3144;
  --main-blue: #45567d;
  --main-gray: #303841;
}

/* Base reset */

* {
  margin: 0;
  padding: 0;
}

/* box-sizing and font sizing */

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media (max-width: 75em) {
  html {
    font-size: 60%;
  }
}

@media (max-width: 61.25em) {
  html {
    font-size: 58%;
  }
}

@media (max-width: 28.75em) {
  html {
    font-size: 55%;
  }
}

/* Base styles */

body {
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--main-white);
}

h1, h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: center;
}

h1 {
  font-size: 50px;
}

h2 {
  font-size: 40px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--main-white);
}

img {
  display: block;
  width: 100%;
}

/* nav-section */

.nav {
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #333;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.nav-list {
  display: flex;
  margin-right: 1.5rem;
}

@media (max-width: 28.75em) {
  .nav {
    justify-content: center;
  }
  .nav-list {
    margin: 0 1rem;
  }
}

.nav-list a {
  display: block;
  font-size: 22px;
  padding: 1.8rem;
}

.nav-list a:hover {
  background: var(--main-blue);
}

/* start section */

.start-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100vh;
  background-color: #000;
  background-image: url("https://fiverr-res.cloudinary.com/images/t_main1,q_auto,f_auto/gigs/84366486/original/c490739223326be0ddccbf3bd1d7381ce7926fa5/do-stunning-background-videos-for-your-website.png");
  background-repeat: no-repeat;
  background-size: auto;
  background-size: cover;
}

.start-section>p {
  font-size: 3rem;
  font-weight: 200;
}

/* project-section */

.projects-section {
  text-align: center;
  padding: 80px 20px;
  background: url("http://allisinfo.com/wp-content/uploads/2016/02/orig_4533.png");
  background-repeat: no-repeat;
  background-size: auto;
  background-size: cover;
  border-top: 4px solid white;
}

.projects-section-header {
  max-width: 640px;
  margin: 0 auto 60px auto;
}

@media (max-width: 28.75em) {
  .projects-section-header {
    font-size: 4rem;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 30px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: 60px;
}

@media (max-width: 30.625em) {
  .projects-section {
    padding: 60px 10px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project {
  background: #3d7373;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}

.code {
  color: var(--main-gray);
  transition: color 0.3s ease-out;
}

.project:hover .code {
  color: #ff7f50;
}

.project-image {
  height: calc(100% - 6.8rem);
  width: 100%;
  object-fit: cover;
}

.project-title {
  font-size: 2rem;
  padding: 2rem 0.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 2px;
}

.btn-show-all {
  font-size: 2rem;
  background: var(--main-gray);
  transition: background 0.3s ease-out;
}

.btn-show-all:hover {
  background: var(--main-red);
}

.btn-show-all:hover>i {
  transform: translateX(2px);
}

.btn-show-all>i {
  margin-left: 10px;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
}

/*  --contact section--*/

.contact-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 80px 20px;
  background-image: url("http://emeraldinfotech.com/images/slider/111.jpg");
  background-repeat: no-repeat;
  background-size: auto;
  background-size: cover;
  background-color: rgba(44, 62, 80, 0.5);
  justify-content: center;
  align-items: center;
  border-top: 4px solid #2d6980;
}

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

input[type=submit] {
  background-color: grey;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bolder;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.container {
  border-radius: 5px;
  padding: 20px;
  width: 60%;
  justify-content: center;
  align-items: center;
}

/* --footer-section-- */

footer {
  font-weight: 300;
  display: flex;
  justify-content: space-evenly;
  padding: 2rem;
  background: #333;
  border-top: 4px solid #2d6980;
}

.footer-link {
  display: flex;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px
}

.footer-details {
  font-size: 2.4rem;
  text-shadow: 2px 2px 1px #1f1f1f;
  transition: transform 0.3s ease-out;
}

.footer-details:hover {
  transform: translateY(8px);
}