@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: #fff;
}

/* -----------------Header----------------------- */

#header {
  width: 100%;
  height: 100vh;
  background-image: url("/images/backgroung-paralax.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 80px;
}

.container {
  padding: 10px 10%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* flex-wrap: wrap; */
  position: fixed;
  top: 0;
  width: 80%;
  z-index: 10; /* This is to make sure the navbar stays on top of other elements when scrolling */
}

nav h1 {
  font-size: 40px;
  color: #ff004f;
  cursor: pointer;
}

nav h1 span {
  font-size: 45px;
}

.logo {
  width: 60px;
  flex-basis: 20%;
  height: 50px;
  text-decoration: none;
  color: #ff004f;
}

/* #sidemenu {
  width: 60%;
} */

nav ul li {
  display: inline-block;
  margin: 10px 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after {
  width: 100%;
  background: #097809;
}

.header-text {
  margin-top: 20%;
  font-size: 30px;
}

.header-text h1 {
  font-size: 60px;
  margin-top: 20px;
}

.header-text h1 span {
  color: #ff004f;
}

/*-------------------About------------------- */

#about {
  padding: 80px 0;
  color: #ababab;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.about-col-1 {
  flex-basis: 35%;
  margin-top: 50px;
}

.about-col-1 img {
  max-width: 100%;
  border-radius: 15px;
}

.about-col-2 {
  flex-basis: 60%;
}

.sub-title {
  font-size: 50px;
  font-weight: 600;
  color: cadetblue;
}

.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}

.tab-links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background-color: #ff004f;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents ul li {
  list-style: none;
  margin: 12px 0;
}

.tab-contents ul li span {
  color: #b54769;
  font-size: 17px;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

/* -----------------Skills---------------- */

#skills {
  background-color: #080808;
  color: #fff;
  padding: 20px;
  margin: auto;
  border-radius: 5px;
}

#skills h2 {
  text-align: center;
  margin-bottom: 20px;
}

#skills ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

#skills ul li {
  margin: 10px;
  padding: 20px;
  border-radius: 5px;
  flex-basis: calc(20% - 20px);
  text-align: center;
}

#skills ul li img {
  width: 100%;
  max-width: 100px;
  height: auto;
}

@media screen and (max-width: 900px) {
  #skills ul li {
    flex-basis: calc(33% - 20px);
  }
}

@media screen and (max-width: 600px) {
  #skills ul li {
    flex-basis: calc(50% - 20px);
  }
}

@media screen and (max-width: 400px) {
  #skills ul li {
    flex-basis: 35%;
  }
}

/* --------------Projects---------------- */

#projects {
  padding: 50px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.007), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a {
  margin-top: 20px;
  color: #ff004f;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: 0.5s;
}

.btn:hover {
  background: #ff004f;
}

nav .fa-solid {
  display: none;
}

@media screen and (max-width: 600px) {
  #header {
    background-image: url(/images/main-background.png);
    background-size: 80%;
    background-position: 100%;
    height: 80vh;
    margin: auto;
  }
  .header-text {
    margin-top: 78%;
    font-size: 16px;
  }
  .header-text p {
    font-size: 14px;
  }
  .header-text h1 {
    font-size: 25px;
  }

  nav .fa-solid {
    display: block;
    font-size: 24px;
  }

  nav h1 {
    font-size: 30px;
  }

  nav h1 span {
    font-size: 38px;
  }

  nav ul {
    background: #ff004f;
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul li {
    display: block;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

  .sub-title {
    font-size: 38px;
  }

  #about {
    padding: 0;
  }

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }

  .about-col-1 {
    margin-bottom: 30px;
  }

  .about-col-2 {
    font-size: 14px;
  }

  .tab-links {
    font-size: 18px;
    margin-right: 17px;
  }

  .about-text {
    font-size: 14px;
  }

  .work img {
    width: 90%;
    margin: auto;
  }

  .layer {
    width: 90%;
    left: 15px;
  }

  .work:hover img {
    transform: scale(1);
  }
}

@media screen and (max-width: 300px) {
  .about-col-2 {
    width: 95%;
  }

  #header {
    padding: 0;
    margin: 0;
  }

  .about-col-2 h1 {
    font-size: 35px;
  }

  .tab-links:last-child {
    margin-right: 0;
  }

  .sub-title {
    font-size: 35px;
  }
}

/* Contact--------------------------------- */

#contact {
  background-color: #080808;
  color: #fff;
  padding: 20px;
}

/* .container {
  max-width: 960px;
  margin: auto;
} */

.row {
  display: flex;
  flex-wrap: wrap;
}

.contact-left,
.contact-right {
  flex: 1;
  padding: 20px;
}

.social-icons a {
  color: #fff;
  margin-right: 10px;
}

.contact-right form {
  display: flex;
  flex-direction: column;
}

.contact-right input,
.contact-right textarea {
  margin-bottom: 10px;
  padding: 10px;
  box-sizing: border-box;
}

.contact-right button {
  background-color: #555;
  color: #fff;
  cursor: pointer;
  border: none;
  padding: 10px;
}

.contact-right button:hover {
  background-color: #777;
}

/* Responsive styles */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    flex: auto;
  }
}

@media (max-width: 300px) {
  .contact-left,
  .contact-right {
    padding: 10px;
  }
}

footer {
  background-color: #080808;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

footer ul li {
  flex: 0 0 auto;
  margin-right: 20px;
}

footer ul li:last-child {
  margin-right: 0;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px; /* Adjust this value to suit your design */
  font-weight: lighter;
}

footer .copyright {
  text-align: center;
  font-size: 12px; /* Adjust this value to suit your design */
}
