* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  background: #080808;
  color: white;
  padding: 0px 10%;
}
#header {
  padding-top: 50px;
  width: 100%;
  height: 100vh;
  background-image: url(images/background-img.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 0 0 40px 40px;
  flex-wrap: wrap;
  display: flex;
}
#header-text h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 5px;
  margin-top: 15%;
}

.dev-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.dev-list li {
  font-size: clamp(10px, 4vw, 26px);
  margin-bottom: 16px;
  color: #11c6c0;
}

nav {
  position: -webkit-sticky;
  display: flex;

  top: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: baseline;
  flex-wrap: wrap;
}
.logo {
  width: 15%;
  height: 70%;
  color: #901818;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}

nav ul li a {
  color: #d2d3d4;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: '';
  width: 0;
  height: 3px;
  background: #484646;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
  border-radius: 2px;
}
nav ul li a:hover::after,
nav ul li a.hovered::after {
  width: 100%;
}
#header-text {
  margin: 3%;
  /* margin-top: 70px; */
  padding: 0px 0%;
  color: #f0f3f9;
  font-size: 20px;
  align-items: center;
}
#header-text p {
  font-size: 26px;
  margin: 5% 0;
  padding: flex;
  color: #d2d3d4;
}

.silver-text {
  background: linear-gradient(10deg, #11c6c0 0%, #ece3e3 90%, #075b58 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ----------------about ---------------  */

#about {
  padding: 80px 0px;
  color: #d2d3d4;
}
.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.row-column-1 {
  flex-basis: 35%;
}
.row-column-1 img {
  border-radius: 10px;
  width: 100%;
}
.row-column-2 {
  flex-basis: 60%;
}
.row-column-2 h1 {
  flex-basis: 20px;
}
.sub-title {
  color: rgb(209, 207, 207);
  margin-bottom: 30px;
  /* margin-left: 10px; */
  font-weight: 600;
}
/*.sub-title::after {
  content: '';
  width: 0;
  height: 3px;
  background: #484646;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
  border-radius: 2px;
}
.sub-title:hover::after {
  width: 100%;
} */

#tab-titles {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tab-section {
  margin-top: 50px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
}
#background-img {
  background-image: url(images/background-img.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  margin-top: 80px;
  border-radius: 40px;
}
#background-img .container {
  max-width: 1200px;
  margin: 0 13% 7%;
  padding: 0 40px;
}
/* ----------- tab experance ------ */
.tab-links {
  display: inline-block;
  margin-top: 10%;
  color: #c5c3c3;
  font-size: 24px;
  font-weight: 900;
  position: relative;
}

.tab-links::after {
  content: '';
  width: 0;
  height: 3px;
  background: #10a5a0;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
  border-radius: 2px;
}

.tab-links.active-link::after {
  width: 100%;
}
.tab-contains ul li {
  list-style: none;
  margin: 20px 0;
  font-size: 18px;
  color: #424141;
  min-width: 0;
  width: fit-content;
  cursor: pointer;
}
.tab-contains ul li span {
  color: #bbb8b8;
  font-size: 19px;
}
.tab-contains {
  display: none;
}
.tab-contains.active-tab {
  display: block;
}

.tab-contains ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-company,
.degree,
.skill-group {
  font-size: 16px;
  color: #bbb8b8;
  display: block;
  margin-bottom: 2px;
}

.job-dates,
.school {
  font-size: 15px;
  color: #bbb8b8;
  display: block;
}
/* ----------- mobile version -------- */
@media (max-width: 768px) {
  body {
    padding: 0 5%;
  }
  nav {
    flex-direction: column;
    height: auto;
    justify-content: center;
    background-color: #080808;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #101212e6;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0008;
    width: 92vw;
    margin: 12px auto 0 auto;
    padding: 16px 0;
  }
  nav ul li {
    margin: 5px 0;
  }
  nav ul li a {
    font-size: 1.08rem;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    display: inline-block;
    border-radius: 7px;
  }
  .logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
  }

  #header {
    padding-top: 20px;
    height: auto;
    background-size: cover;
    background-position: center;
    text-align: center;
  }

  #header-text {
    margin: 10% 0;
    padding: 0;
    text-align: center;
  }

  #header-text h1 {
    font-size: clamp(24px, 5vw, 36px);
    margin-top: 30px;
  }

  #header-text p {
    font-size: 18px;
    margin: 20px 0;
  }
  .sub-title {
    font-size: 18px;
    font-weight: 400;
  }
  .dev-list li {
    font-size: 16px;
    text-align: center;
  }
}
@media (max-width: 800px) {
  #contact .row {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  #contact .container {
    max-width: 98vw;
    padding: 8px 2vw;
  }
  .contact-left,
  .contact-right {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
  }
}
@media (hover: none) and (pointer: coarse) {
  .clickable {
    animation: pulse 2.3s infinite;
    box-shadow: 0 0 0 0 rgba(17, 198, 192, 0.6);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(17, 198, 192, 0.5);
  }
  70% {
    box-shadow: 0 0 0 3px rgba(17, 198, 192, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(17, 198, 192, 0);
  }
}

/* ------------services------------ */
#services {
  padding: 30px 0;
  margin-bottom: 80px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 30px;
}
.services-list p {
  color: #bbb8b8;
  text-align: left;
}
.services-list h2 {
  text-align: left;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 15px;
}
.services-list div {
  background: #262626;
  padding: 40px;
  font-size: 13px;
  font-weight: 300;
  border-radius: 10px;
  transition: transform 0.5s;
}
.services-list div i {
  font-size: 50px;
  margin-bottom: 30px;
}
.services-list div a {
  text-decoration: none;
  color: #f9f4f4;
  font-size: 12px;
  display: inline-block;
  margin-top: 20px;
}

.services-list div:hover,
.services-list div:hover {
  background: #043938;
  transform: translateY(-10px);
  cursor: pointer;
}

/* --------------my work------------- */
#portfolio {
  padding: 30px 0;
  margin-top: 10%;
  margin-bottom: 80px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #232323;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.work img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  background: #181818;
  transition: transform 0.5s;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 40px;
  margin-top: 30px;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), #10a5a0);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px;
  text-align: center;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 16px;
}

.layer p {
  font-weight: 300;
  font-size: 13px;
  margin-bottom: 12px;
}

.layer a {
  margin-top: 14px;
  color: #043938;
  text-decoration: none;
  font-size: 18px;
  line-height: 40px;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  display: inline-block;
}

.work:hover img,
.work.hovered img {
  transform: scale(0.5);
}
.work:hover .layer,
.work.hovered .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto;
  text-decoration: none;
  width: fit-content;
  border: 1px solid #075b58;
  padding: 14px 50px;
  border-radius: 6px;
  color: #e0edec;
  transition: transform 0.5s;
}

.btn:hover,
.btn.hovered {
  background: #075b58;
}
/* -------------contact--------------- */

.contact-left {
  flex-basis: 35%;
}
.contact-right {
  flex-basis: 60%;
}

.contact-left p {
  margin-top: 30px;
}
.contact-left p i {
  color: #075b58;
  margin-right: 15px;
  font-size: 20px;
}
.social-icons {
  margin-top: 30px;
}
.social-icons a {
  text-decoration: none;
  font-size: 30px;
  color: #075b58;
  margin-right: 15px;
  display: inline-block;
  transition: transform 0.5s;
}
.social-icons a:hover,
.social-icons a.hovered {
  color: #11c6c0;
  transform: translateY(-5px);
}
.btn.btn2 {
  display: inline-block;
  background: #043938;
  transition: transform 0.5s;
}
.btn.btn2:hover {
  background: #075b58;
  transform: scale(1.1);
}
.contact-right form {
  width: 100%;
}
form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  padding: 10px;
  color: #000;
  background: #262626;
  margin: 8px 0;
  font-size: 15px;
  border-radius: 6px;
}
.error-message {
  color: #711414;
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
}
input:invalid {
  border-color: #711414;
}

form btn2 {
  font-size: 18px;
  padding: 14px 0px;
  cursor: pointer;
}
.copyright {
  width: 100%;
  background: #262626;
  text-align: center;
  font-size: 12px;
  padding: 15px 0;
  font-weight: 300;
  margin-bottom: 50px;
}
.copyright i {
  color: #10a5a0;
  font-size: 18px;
}
#scrollToTop {
  position: fixed;
  bottom: 50px;
  right: 24px;
  display: none;
  background: #24e7f2;
  color: #111;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  border: none;
  font-size: 1.7em;
  z-index: 99;
  box-shadow: 0 2px 8px #0004;
}
