@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
:root {
  --main-background: #232939;
  --main-fonts-color: #fff;
  --main-decor-color: #659ac3;
  --main-header-background: #21252e;
  --main-font-family: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

main {
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--main-background);
}

/*──── hr ─────*/
hr {
  background: var(--main-decor-color);
  margin: 2px;
  height: 3px;
  width: 150px;
  border-radius: 5px;
  border: hidden;
  margin-inline-start: auto;
  margin-inline-end: auto;
}

/*────────────────── 
       header
──────────────────*/
header {
  margin: 0 auto;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: transparent;
  position: fixed;
  top: 0;
  transition: 0.3s;
  z-index: 5;
}

.nav-show {
  opacity: 0;
}

header:hover {
  opacity: 1;
  background: var(--main-header-background);
}

.logo img {
  padding-top: 5px;
  height: 50px;
  cursor: pointer;
}

.nav-bar {
  list-style: none;
  position: relative;
  display: inline-flex;
}

a.nav-link {
  margin: 2px;
  padding: 5px 10px;
  text-decoration: none;
  color: var(--main-fonts-color);
  font-family: var(--main-font-family);
  cursor: pointer;
  text-transform: uppercase;
}

.nav-link li {
  border-bottom: 5px solid #e1f1ff;
}

.active {
  background: var(--main-decor-color);
}

.nav-link:hover {
  color: #000000;
  background: var(--main-decor-color);
}

/*────────────────── 
     hamburger
──────────────────*/
.hamburger {
  display: none;
}

.hamburger div {
  width: 30px;
  height: 3px;
  background: #dbdbdb;
  margin: 5px;
  transition: all 0.3s ease;
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translatex(50px);
  }

  to {
    opacity: 1;
    transform: translatex(0px);
  }
}

/*──────────────────
       home
──────────────────*/
#home {
  margin: auto;
  height: 100vh;
  color: var(--main-fonts-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background-color: #181a20;
}

#home .filter {
  background: url('https://i.pinimg.com/736x/6e/0c/ad/6e0cad1144b2d9417d9a2cc38aacc989.jpg') no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0px;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: .20;
}

.intro {
  text-align: center;
  color: var(--main-fonts-color);
  z-index: 1;
  margin: auto;
  padding: 20px;
}

.intro p {
  margin: 5px;
  font-size: 1.2rem;
  font-family: var(--main-font-family);
  text-align: center;
}

h3 {
  padding-bottom: 15px;
  letter-spacing: normal;
  font-family: var(--main-font-family);
  font-style: normal;
  font-size: 60px;
  color: var(--main-fonts-color);
  text-shadow: 0px 0px 40px var(--main-decor-color);
}

h4 {
  font-style: italic;
  font-weight: 300;
}

/*──────────────────
      about
──────────────────*/
/* About Section */
#about {
  margin: 1.2em;
  padding: 80px 0;
  padding-bottom: 20px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--main-fonts-color);
}

#about h3 {
  margin-bottom: 30px;
  text-align: center;
}

.Puse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: auto;
  max-height: 100%;
  width: 100%;
  overflow: auto;
}

.Puse img {
  width: 400px;
  height: 500px;
  border-radius: 10px;
}

.Puse p {
  line-height: 1.6;
  max-width: 600px;
  margin: 1em;
  margin-left: 2em;
  text-align: left;
  font-family: var(--main-font-family);
}

/*──────────────────
      projects
──────────────────*/
#projects {
  margin-top: 1.2em;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--main-fonts-color);
  background-color: #181a20;
}

#projects h3 {
  padding-top: 70px;
}

#projects p {
  font-family: var(--main-font-family);
  font-size: 1.2rem;
  padding: 10px;
}

.work {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  margin: 20px;
  width: 200px;
  height: 250px;
  border-radius: 12px;
  background: var(--main-decor-color);
}

.card img {
  width: 100%;
  height: 70%;
  border-radius: 10px 10px 0px 0px;
}

.card .work-video {
  height: 112px;
  border-radius: 10px 10px 0px 0px;
  overflow: hidden;
}

.card .work-content {
  text-align: center;
  padding: 10px 5px;
  font-size: 1rem;
  color: var(--main-fonts-color);
  font-family: var(--main-font-family);
  cursor: pointer;
}

.card a {
  text-decoration: none;
}

.card .work-content:hover {
  color: #202020;
}

.card:hover {
  box-shadow: 0 0 1.5rem gray;
}

/*──────────────────
      Contact
──────────────────*/
#contact {
  margin-top: 100px;
  padding-bottom: 20px;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--main-fonts-color);
}

#contact p {
  padding: 10px;
  text-align: center;
  font-size: 1.2rem;
  font-family: var(--main-font-family);
}

/*──────────────────
    contact form
──────────────────*/
.contact-form {
  width: 400px;
  margin: auto;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 30px;
  border-radius: 12px;
}

.field {
  margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 94%;
  padding: 10px;
  border-radius: 4px;
}

button.send-msg {
  width: 100%;
  padding: 10px 10px;
  background-color: #659ac3;
  font-size: 20px;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.send-msg:hover {
  background-color: #507dab;
}

button.send-msg:focus {
  outline: none;
}

/*──────────────────
Responsive form styling
──────────────────*/
@media only screen and (max-width: 480px) {
  .contact-form {
    width: 90%;
    padding: 20px;
  }

  button.send-msg {
    font-size: 18px;
    padding: 12px;
  }
}

/*──────────────────
    social media
──────────────────*/
.social-media {
  padding: 10px;
  display: flex;
  position: center;
  align-items: space-around;
  justify-content: center;
}

.social-media a {
  margin: 10px;
  font-size: 2rem;
  text-align: center;
  display: inline-block;
  color: var(--main-fonts-color);
}

.social-media a i {
  cursor: pointer;
}

.social-media a:hover {
  color: var(--main-decor-color);
  text-shadow: 0 0 50px var(--main-decor-color);
}

/*────────────────── 
     Scrollbar
──────────────────*/
::-webkit-Scrollbar {
  width: 5px;
  background: rgba(5, 5, 5, 1);
}

::-webkit-Scrollbar-thumb {
  border-radius: 10px;
  background: var(--main-decor-color);
  box-shadow: inset 0 0 20px var(--main-decor-color);
}

::-webkit-Scrollbar-track {
  margin-top: 80px;
  border-radius: 10px;
}

/*────────────────── 
       footer
──────────────────*/

footer {
  width: 100%;
  height: 100%;
  background-color: var(--main-header-background);
}

.copyright {
  color: #fff;
  font-size: 1.2rem;
  line-height: 40px;
  text-align: center;
}

.copyright p {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1px;
  text-decoration: none;
  font-family: var(--main-font-family);
}

.copyright p:hover {
  color: var(--main-decor-color);
}

/*────────────────── 
    media queries
──────────────────*/

@media only screen and (max-width: 1484px) and (min-width: 1214px) {
  .work {
    padding: 20px 20%;
  }
}

@media only screen and (max-width: 1214px) and (min-width: 1000px) {
  .work {
    padding: 20px 12%;
  }
}

@media only screen and (max-width: 500px) {

  #home,
  #about,
  #projects,
  #contact {
    overflow-x: hidden;
  }

  header {
    background-color: var(--main-header-background);
  }

  .logo {
    position: absolute;
    top: 2px;
    left: 30px;
  }

  .nav-show {
    opacity: 1;
  }

  .nav-bar {
    position: fixed;
    right: 0;
    width: 60%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background: rgba(33, 37, 46, 0.8);
    transform: translatex(100%);
    transition: transform 0.5s ease-in;
    z-index: -1;
  }

  .nav-link:hover {
    color: #000000;
    background: var(--main-decor-color);
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .hamburger {
    position: absolute;
    top: 17px;
    right: 25%;
    display: block;
    cursor: pointer;
    z-index: 5;
  }

  .Puse img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

}

.nav-active {
  transform: translatex(0%);
}
