/* Header Styles */
.social-icons a,
.download a,
nav ul li a,
.send {
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00ffb3;
}

/* Keyframes for horizontal movement */
@keyframes moveHorizontally {
  0% {
    transform: translate(0%, -50%);
  }
  50% {
    transform: translate(25%, -50%);
  }
  100% {
    transform: translate(0%, -50%);
  }
}

.social-icons a:hover {
  color: #00ffb3;
}

.download a:hover {
  color: #0d0d0d;
}

.download a:hover {
  background-color: #fff;
}

/* Skills Styles */
#skills-container {
  padding: 25px 35px;
  color: #fff;
}

.tab-titles {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
  gap: 100px;
  padding-left: 35px;
}

.tab-links {
  padding: 10px 20px;
  cursor: pointer;
  color: #00ffb3;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-links.active-link {
  background-color: #00ffb3;
  color: #0d0d0d;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
  padding: 20px 50px;
}

.tab-contents li {
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 100;
}

.tab-contents li span {
  font-size: 1rem;
  color: #00ffb3;
  font-weight: 500;
}

.tab-contents li i {
  font-size: 1rem;
  color: #ccc;
}

/* Specific styles for nested ul and li elements */
.tab-contents ul ul {
  list-style-type: disc;
  padding-left: 20px;
}

.tab-contents ul ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #fff;
}

/* Portfolio Styles */
#portfolio {
  padding: 0 70px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  /* margin-top: 50px; */
}

.work {
  border-radius: 10px;
}

.work img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s ease-in-out;
}

.layer {
  width: 100%;
  height: 0;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  font-size: 1rem;
  transition: height 0.5s ease-in-out;
  color: #00ffb3;
}

.layer h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a {
  color: #00ffb3;
  font-size: 1.25rem;
  line-height: 60px;
  /* background: #0d0d0d; */
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.layer h1 {
  padding-bottom: 20px;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
  color: #00ffb3;
}

.send {
  background: none;
  color: #fff;
  font-size: 1rem;
  display: block;
  margin: 10px;
  width: fit-content;
  border: 1px solid #00ffb3;
  padding: 10px;
  border-radius: 10px;
}

.send:hover {
  color: #0d0d0d;
  background-color: #fff;
}

/* Contact Styles */
#contact {
  padding: 50px 20px 0;
}

.sub-title {
  font-size: 2rem;
  color: #00ffb3;
  margin-bottom: 25px;
}

#contactForm {
  max-width: 500px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#contactForm input,
#contactForm textarea {
  font-family: "Pacifico", cursive;
  width: calc(100% - 20px);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

#contactForm textarea {
  resize: vertical;
}

#contactForm input[type="submit"] {
  background-color: transparent;
  border: 1px solid #00ffb3;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  color: #00ffb3;
}

#contactForm input[type="submit"]:hover {
  background-color: #00ffb3;
  color: #fff;
}

#msg {
  display: block;
  font-size: 1rem;
  color: #333;
}

/* Footer Styles */
#footer {
  color: #00ffb3;
  font-weight: 900;
  margin-top: auto;
}

/* Form Notification Styles */
.notification {
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  color: #000;
  border-radius: 8px;
  padding: 10px 20px;
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  max-width: 90vw;
  box-sizing: border-box;
}

.notification-show {
  opacity: 1;
}

.notification-success {
  background: linear-gradient(to right, #00b09b, #96c93d);
}

.notification-error {
  background: linear-gradient(to right, #ff5f6d, #ffc371);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
  /* Keyframes for horizontal movement */
  @keyframes moveHorizontally {
    0% {
      transform: translateX(-10%);
    }
    50% {
      transform: translateX(10%);
    }
    100% {
      transform: translateX(-10%);
    }
  }

  .social-icons,
  .download {
    justify-content: center;
    align-items: center;
  }

  .social-icons a {
    padding: 10px 20px;
    margin: 0;
  }

  .download {
    justify-content: center;
  }

  /* Skills Styles */
  #skills-container {
    padding: 0;
  }

  .tab-titles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 0 25px;
  }

  .tab-links {
    padding: 10px;
    width: 75%;
    box-sizing: border-box;
  }

  .tab-contents.active-tab {
    padding: 0 35px 20px;
  }

  .tab-contents li {
    margin-bottom: 10px;
    line-height: 1.4;
  }

  /* Portfolio Styles */
  #portfolio {
    padding: 0 30px;
  }

  .layer {
    padding: 0 15px;
    font-size: 0.75;
  }

  .layer h1 {
    font-size: 1.5rem;
  }

  .layer a {
    margin-top: 10px;
    font-size: 1.5rem;
  }

  /* Contact Styles */
  #contact {
    padding: 40px 20px;
  }

  .sub-title {
    font-size: 1.75rem;
  }

  #contactForm input,
  #contactForm textarea {
    font-size: 1rem;
  }

  /* Form Notification Styles */
  .notification {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    padding: 5px 10px;
    font-size: 0.9rem;
    max-width: 95vw;
    box-sizing: border-box;
  }
}
