/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
}

:root {
  --bg-color: #070818;
  --text-color: #fff;
  --main-color: #2ecc71;
  --second-color: gray;
  --other-color: #12141c;
  --heading-font: 5.2rem;
  --second-heading: 3.5rem;
  --paragraph-font: 1.1rem;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

header {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16%;
  border-bottom: 1px solid transparent;
  transition: all 0.5s ease-in-out;
}

.hidden {
  display: none;
}

.port img.active {
  display: none;
}

.about .p {
  position: relative;
}

.see-more,
.see-less {
  font-size: 0.7rem;
  position: absolute;
  right: 400px;
  padding: 2px 4px;
  background: var(--main-color);
  font-size: var(--paragraph-font);
  font-weight: 500;
  color: var(--text-color);
  border-radius: 0.5rem;
  border: 2px solid var(--main-color);
  transition: all 0.5s ease;
  z-index: 0;
}

.logo img {
  width: 270px;
}

.navbar {
  display: flex;
}

.navbar a {
  color: var(--second-color);
  font-size: var(--paragraph-font);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 0.5rem;
  transition: all 0.5s ease-in-out;
}

.navbar .active {
  color: #f4f4f4;
}

.navbar a:hover {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3rem;
  color: var(--text-color);
  z-index: 10001;
  cursor: pointer;
  display: none;
}

section {
  padding: 150px;
}

.home {
  height: 100vh;
  width: 100%;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5)),
    url("img/BackG.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-text h1 {
  margin: 10px 0;
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 2px;
}

.home-text h1 span {
  color: var(--main-color);
}

.home-text h4 {
  margin: 20px 0;
  color: var(--main-color);
  font-size: 16px;
  font-weight: 600;
}
.home-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.front {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
}

.home-text h3 {
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--main-color);
  font-size: var(--paragraph-font);
  font-weight: 500;
  color: var(--text-color);
  border-radius: 0.5rem;
  border: 2px solid var(--main-color);
  transition: all 0.5s ease;
}

.btn:hover {
  transform: scale(1.01) translateY(-6px);
  background: transparent;
  border: 2px solid var(--main-color);
}

header.sticky {
  padding: 20px 3%;
  background: var(--bg-color);
  border-bottom: 1px solid #0e1630;
}

header.sticky.navbar .active {
  color: #f4f4f4;
}

.about {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
}

.about-img {
  text-align: center;
  display: block;
}

.about-img img {
  height: auto;
  max-width: 460px;
  border-radius: 20px;
  width: 100%;
  border: #2ecc71 2px solid;
}

.about-content h4 {
  margin: 10px 0;
  color: var(--main-color);
  line-height: 30px;
  font-size: 1.4rem;
  font-weight: 600;
}

.about-content h2 {
  font-size: var(--second-heading);
}

.about-content p {
  color: var(--second-color);
  font-size: var(--paragraph-font);
  line-height: 20px;
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 2rem;
}

.heading {
  text-align: center;
}

.heading h2 {
  font-size: var(--second-heading);
  margin-bottom: 10px;
}

.heading h4 {
  color: var(--main-color);
  font-size: 24px;
  font-weight: 600;
}

.services-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-top: 5rem;
}

.box {
  padding: 30px;
  background: #12141c;
  border-top: 5px solid transparent;
  border-radius: 0.5rem;
  transform: all 0.5s ease;
  cursor: pointer;
}

.box h3 {
  font-size: 20px;
  font-weight: 600px;
  transform: all 0.5s ease;
  margin: 15px 0;
}

.box p {
  line-height: 20px;
  color: var(--second-color);
  font-size: var(--paragraph-font);
  line-height: 1.5rem;
}
.box img {
  width: 230px;
  height: 170px;
}

.box:hover {
  transform: scale(1.01) translateY(-6px);
  border-bottom: 5px solid var(--main-color);
}

.box:hover h3 {
  color: var(--main-color);
}

.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  align-items: center;
  gap: 2rem;
  margin-top: 5rem;
}

/* Style for play/pause button */
.play-pause-button {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--main-color);
  border: none;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  font-size: 40px;
  width: 40px;
  height: 40px;
  color: #fff;
  /* z-index: 2; */
  outline: none;
  animation: bounce 2s ease-in-out infinite;
}

.port:hover .play-pause-button {
  display: grid;
}

.port img {
  height: 330px;
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.port video {
  height: 100%;
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.port {
  position: relative;
  padding: 25px;
  background: #12141c;
  border-radius: 0.5rem;
  transition: 0.5s ease all;
  width: auto;
}

.port:hover {
  box-shadow: 0px 0px 10px 0px rgb(173, 173, 173);
  transform: scale(1.02) translateY(-6px);
  /* cursor: pointer; */
}

.port h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.port h5 {
  color: var(--main-color);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.main-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.box-icon a > i {
  font-size: 20px;
  color: var(--main-color);
}

.box-text a i {
  color: #fff;
  margin-left: 20px;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 3rem;
}

.contact-text h4 {
  margin: 15px 0;
  color: var(--main-color);
  font-size: 20px;
  font-weight: 600;
}

.contact-text h2 {
  font-size: var(--second-heading);
}

.contact-text p {
  color: var(--second-color);
  font-size: var(--paragraph-font);
  line-height: 30px;
  margin-bottom: 2rem;
}

.contact-list {
  margin-bottom: 3rem;
}

.contact-list li {
  margin-bottom: 10px;
  display: block;
  color: var(--second-color);
  font-weight: 600;
  font-size: var(--paragraph-font);
}

.social-icons i {
  height: 40px;
  width: 40px;
  border-radius: 0.5rem;
  background: var(--other-color);
  color: var(--main-color);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  margin-right: 10px;
  transition: all 0.5s ease;
}

.social-icons i:hover {
  transform: scale(1.01) translateY(-6px);
  color: var(--text-color);
  background: var(--main-color);
}

.contact-form form {
  position: relative;
}

.contact-form form input,
form textarea {
  border: none;
  outline: none;
  width: 100%;
  padding: 18px;
  background: var(--other-color);
  color: #f4f4f4;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  transition: 0.5s;
}

.contact-form form input:focus,
form textarea:focus {
  color: #f4f4f4;
}

.contact-form textarea {
  resize: none;
  height: 200px;
}

.contact-form form .send {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--main-color);
  color: var(--text-color);
  cursor: pointer;
  width: 180px;
}

.contact-form form .send:hover {
  background: transparent;
  border: 2px solid var(--main-color);
}

.links-container {
  height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.copyright {
  justify-content: space-between;
  text-align: center;
  display: flex;
  padding: 10px 10px 10px 10px;
}

.hr {
  width: 100%;
  height: 2px;
  background: crimson;
}

.copyright .links {
  display: flex;
}

.copyright .links a {
  padding-left: 10px;
  padding-right: 10px;
  color: var(--text-color);
}

.copyright .links a span:hover {
  color: var(--main-color);
}

.top-link {
  font-size: 1.25rem;
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  background: #2ecc71;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  color: #f4f4f4;
  animation: bounce 2s ease-in-out infinite;
  visibility: hidden;
  z-index: -100;
}

.top-link:hover {
  background: transparent;
  border: 2px solid var(--main-color);
}

.show-link {
  visibility: visible;
  z-index: 100;
}

/* Responsive */

@media (max-width: 1325px) {
  header {
    padding: 16px 3%;
  }

  header .sticky {
    padding: 20px 3%;
  }
  section {
    padding: 130px;
  }
  .links-container {
    height: 0;
    overflow: hidden;
    transition: var(--transition);
  }
  .about-img {
    text-align: center;
    display: block;
  }
}

@media (max-width: 970px) {
  :root {
    --heading-font: 4.2rem;
    --second-heading: 2.7rem;
    --paragraph-font: 1rem;
  }

  section h2,
  .about img {
    margin-top: 50px;
  }

  .about {
    grid-template-columns: 1fr;
  }
  .about h2 {
    margin-top: 0px;
  }

  .about-img {
    text-align: center;
    display: block;
  }

  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 930px) {
  :root {
    --heading-font: 3.7rem;
    --second-heading: 2.4rem;
    --paragraph-font: 1rem;
  }
  #menu-icon {
    display: block;
  }

  section {
    padding: 70px 3% 60px;
  }

  .navbar {
    position: absolute;
    top: -600px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: var(--other-color);
    text-align: left;
    transition: all 0.5s ease;
  }

  .navbar a {
    display: block;
    padding: 1rem;
    margin: 1rem;
  }

  .navbar.active {
    top: 100%;
  }

  .about-img {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-text h1 {
    font-size: 3rem;
  }
  .front,
  .home-text h4 {
    font-size: 1rem;
  }
  .port img {
    height: 270px;
  }
}

@media (max-width: 425px) {
  .home-text h1 {
    font-size: 1.2rem;
  }
  .front,
  .home-text h3,
  .home-text h4 {
    font-size: 0.75rem;
  }
  .cv {
    margin-top: 20px;
    padding-left: 8px;
    padding-right: 6px;
    width: 155px;
  }
  .port img {
    height: 250px;
  }
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
