* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Lexend Deca;
  scroll-behavior: smooth;
  transition: all 0.3s ease;
}

:root {
  --lightblue: #bdccd8;
  --orange: #fd6f00;
  --greyblack: #121212;
  --darkgrey: #575757;
  --lightgrey: #b1aeae;
  --lightwhite: #f2f4f6;
}

html {
  scroll-padding-top: 100px; /* Adjust based on nav height */
}

p {
  line-height: 1.4em;
  margin-bottom: 1.5em;
  font-weight: 300;
  font-size: 16px;
}

h2 {
  font-size: 40px;
  letter-spacing: -1px;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
}

h3 {
  font-size: 1.5em;
  font-weight: 100;
  margin-bottom: 24px;
}

.lightblue {
  color: var(--lightblue);
}

.lightblue-bg {
  background-color: var(--lightblue);
}

.lightwhite {
  color: var(--lightwhite);
}
.lightwhite-bg {
  background-color: var(--lightwhite);
}

.darkgrey {
  color: var(--darkgrey);
}

.darkgrey-bg {
  background-color: var(--darkgrey);
}

.greyblack {
  color: var(--greyblack);
}
.greyblack-bg {
  background-color: var(--greyblack);
}

.lightgrey {
  color: var(--lightgrey);
}

.lightgrey-bg {
  background-color: var(--lightgrey);
}
.orange {
  color: var(--orange);
}

.bold300 {
  font-weight: 300;
}
/* Navigation */

.nav-wrapper {
  position: fixed;
  width: 100%;
  background-color: #121212;
  padding: 30px 30px 20px 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navigation {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 2em;
  display: flex;
}

li a {
  text-decoration: none;
  color: var(--lightblue);
  font-weight: 300;
  font-size: 1.1em;
}

li a:hover {
  color: #fd6f00;
}

.menu {
  display: flex;
  position: static;
  background: none;
  flex-direction: row;
  padding: 0;
}

.hamburger-container {
  display: none;
}
/* Header */

.header {
  display: flex;
  flex-direction: row;
  padding: 150px 80px 75px 80px;
  gap: 50px;
}
.col50 {
  width: 50vw;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}

.mobile {
  display: none;
}

.content-header {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: auto;
}

.img-container {
  width: 80%;
  height: 40vh;
  overflow: hidden;
}

.profile-img {
  object-fit: cover;
  width: 258px;
  height: auto;
}

.header h1 {
  font-size: 4.2em;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 0.9em;
  margin-bottom: 12px;
}

.header .socials {
  margin: 20px 0px;
  gap: 20px;
  display: flex;
  margin-bottom: 36px;
}

.header .social-icons {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #575757;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials a:hover {
  border-color: #fd6f00;
  background-color: #121212;
  transition: all 0.3s ease;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

.hero-strip {
  display: flex;
  gap: 10px;
  background-color: rgb(189, 204, 216, 0.05);
  padding: 24px 36px;
  width: fit-content;
  gap: 30px;
  border-radius: 8px;
}

.hero-skills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.webx-icon {
  width: 40px;
  height: 40px;
}

.subtext {
  font-size: 14px;
  color: #b1aeae;
  text-align: center;
  border: 1px white;
  margin: 0;
}

hr {
  border: solid 0.5px #575757;
}

/* About */

.about {
  padding: 0px 80px 0px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about p {
  text-align: left;
}

.about-container {
  max-width: 900px;
}

/* Services */

.services {
  padding: 50px 80px 100px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container-services {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.services-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  max-width: 300px;
  min-width: 200px;
  background-color: rgb(189, 204, 216, 0.05);
  padding: 50px 20px 25px 20px;
  border-radius: 8px;
  border: solid 0.5px #575757;
  align-items: center;
  text-align: center;
  box-shadow: 0px 0px 200px rgba(255, 132, 80, 0.1);
}

.services-card h3 {
  margin-bottom: 10px;
}

.services-icon {
  margin-bottom: 20px;
  width: 80%;
}

/* Portfolio */

.portfolio {
  padding: 50px 80px 50px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container-portfolio {
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.portfolio-card {
  box-shadow: 0px 5px 10px rgba(189, 204, 216, 0.8);
  border-radius: 10px;
  min-width: 250px;
  max-width: 500px;
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  background-color: white;
  border-bottom: solid 2px var(--orange);
}

.portfolio-card:hover {
  background-color: var(--orange);
}

.portimg-container {
  width: 100%;
  overflow: hidden;
}
.portfolio-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-card .text {
  padding: 10px 20px 40px 20px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.project-name {
  color: var(--orange);
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.project-tools {
  margin-bottom: 10px;
  color: #5e5e5eaa;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}
.portfolio-card:hover .project-name {
  color: var(--lightwhite);
}

.portfolio-card:hover .project-tools {
  color: var(--lightwhite);
}

.project-description {
  color: var(--greyblack);
  text-align: center;
  margin-bottom: 0;
}

.portfolio-card:hover .project-description {
  color: white;
}

/* Blog */

.blog {
  padding: 50px 80px 50px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
}

.container-blog {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-post {
  display: flex;
  text-decoration: none;
  background-color: rgba(189, 204, 216, 0.1);
  border-bottom: solid 1px var(--lightgrey);
  border-radius: 10px;
  gap: 20px;
  overflow: hidden;
  margin: 15px 20px;
  max-width: 800px;
}

.blog-post:hover {
  box-shadow: 0px 10px 10px rgba(142, 142, 142, 0.3);
}

.blog-post:hover .blog-name {
  color: var(--orange);
}
.blogimg-container {
  width: 100%;
  max-width: 300px;
  min-width: 200px;
}
.blog-post .text {
  display: flex;
  flex-direction: column;
  padding: 30px 50px 30px 20px;
}
.blog-image {
  width: 200px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-name {
  font-weight: 300;
  color: var(--darkgrey);
  margin-bottom: 10px;
}

.blog-description {
  margin: 0;
  line-height: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Adjust number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact */

.contact {
  padding: 50px 80px 0px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact p {
  padding: 10px;
  color: var(--lightblue);
}

.contact-form {
  border-left: solid 0.5px var(--orange);
  border-right: solid 0.5px var(--orange);
  box-shadow: 0px 0px 20px rgba(255, 132, 80, 0.15),
    0px 0px 40px rgba(255, 132, 80, 0.1);
  background-color: var(--greyblack);
  padding: 50px 80px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
}

label {
  color: var(--lightgrey);
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 300;
  text-align: left;
  margin-bottom: 15px;
  width: 100%;
}

.email-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--darkgrey);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  color: var(--lightwhite);
  font-size: 16px;
  font-weight: 300;
  transition: all 0.3s ease;
}

.email-input:focus {
  outline: none;
  border: 1px solid var(--orange);
  box-shadow: 0 0 8px 3px rgba(253, 111, 0, 0.2);
  color: white;
}

textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--darkgrey);
  border-radius: 8px;
  padding: 10px;
  height: 150px;
  margin-top: 10px;
  color: var(--lightwhite);
  font-size: 16px;
  font-weight: 300;
  transition: all 0.3s ease;
  max-width: 100%;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border: 1px solid var(--orange);
  box-shadow: 0 0 8px 3px rgba(253, 111, 0, 0.2);
  color: white;
}

.contact-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--darkgrey);
  border-radius: 8px;
  padding: 10px 75px;
  color: var(--lightblue);
  font-size: 16px;
  font-weight: 200;
  margin-top: 5px;
  align-self: center;
}

.contact-btn:hover {
  border-color: var(--orange);
  background-color: var(--greyblack);
  cursor: pointer;
  color: var(--orange);
  font-weight: 300;
  text-align: center;
}

/* Footer */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 60px;
}
.copyright {
  font-size: 14px;
}

.footer .socials {
  margin: 20px 0px;
  gap: 20px;
  display: flex;
}

.footer .social-icons {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #575757;
  width: 70px;
  height: 70px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icons {
  transform: scale(1.4);
}

/* Tablet 800px */
@media (max-width: 800px) {
  /* Header Tablet */

  .header {
    padding: 120px 40px 50px 40px;
    gap: 50px;
  }

  .img-container {
    width: 100%;
    overflow: hidden;
  }

  /* About Tablet */

  .about {
    padding-left: 40px;
    padding-right: 40px;
    gap: 50px;
  }

  /* Services Tablet */

  .services-card {
    padding: 30px 15px 10px 15px;
  }

  /* Portfolio Tablet */

  .portfolio {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* Blogs Tablet */

  .blog {
    padding-left: 40px;
    padding-right: 40px;
  }
  /* Contact Tablet */

  .contact {
    padding-left: 40px;
    padding-right: 40px;
  }
  .contact p {
    padding: 0px;
  }

  .contact-form {
    padding: 25px 50px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
  }

  .contact-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--darkgrey);
    border-radius: 8px;
    padding: 10px 75px;
    color: var(--lightblue);
    font-size: 16px;
    font-weight: 200;
    margin-top: 5px;
    width: 100%;
  }
}

/* Mobile 570px */
@media (max-width: 570px) {
  /* Header mobile */

  .col50 {
    width: 100%;
    display: flex;
    align-items: center;
  }
  .mobile {
    display: flex;
    padding-top: 20px;
  }

  .desktop {
    display: none;
  }

  .header {
    padding: 50px 25px 25px 25px;
    gap: 25px;
    flex-direction: column;
    align-items: center;
  }

  .img-container {
    width: 250px;
    overflow: hidden;
    height: 250px;
    border-radius: 300px;
    background-color: rgba(0, 0, 0, 0.2);
  }

  .profile-img {
    object-fit: cover;
    width: 258px;
    transform: translate(10px, 20px);
  }

  .content-header {
    text-align: center;
    align-items: center;
  }

  .content-header h3 {
    margin: 0;
  }

  /* About mobile */

  .about {
    padding: 25px 25px 0px 25px;
    gap: 50px;
  }

  /* Services mobile */

  .services {
    padding: 25px 25px 50px 25px;
  }
  .container-services {
    margin-top: 0px;
  }
  .services-card {
    padding: 30px 15px 10px 15px;
  }

  /* Portfolio mobile */

  .portfolio {
    padding: 25px 25px 50px 25px;
  }

  .container-portfolio {
    margin-top: 0px;
  }

  /* Blogs mobile */

  .blog {
    padding: 25px 25px 50px 25px;
  }

  .container-blog {
    margin-top: 0px;
    max-width: 100%;
  }

  .blog-post {
    flex-direction: column;
    margin: 0;
  }

  .blogimg-container {
    width: 100%;
    max-width: 100%;
  }

  .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .blog-post .text {
    display: flex;
    flex-direction: column;
    padding: 0px 25px 25px 25px;
  }

  /* Contact mobile */

  .contact {
    padding: 25px 25px 0px 25px;
  }

  .contact p {
    padding: 0px;
  }

  .contact-form {
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
  }

  .contact-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--darkgrey);
    border-radius: 8px;
    padding: 10px 75px;
    color: var(--lightblue);
    font-size: 16px;
    font-weight: 200;
    margin-top: 5px;
    width: 100%;
  }

  /* Hamburger menu */
  .nav-wrapper {
    padding: 30px 30px 20px 30px;
  }
  .hamburger-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
  }

  .hamburger {
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    display: flex;
    text-align: end;
    display: flex;
  }

  .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--lightwhite);
    transition: 0.3s;
    display: block;
  }

  .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: var(--greyblack);
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 999;
    /* Simple transition */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu.active {
    opacity: 1;
    visibility: visible;
  }

  .menu .navigation {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  header .menu li a {
    color: #ffffff;
  }

  .sticky {
    padding: 10px 50px;
  }
}
