* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background-color: #1d1616;
}
.width-margin {
  padding: 0 1.25rem;
  max-width: 71.5rem;
  margin: 0 auto;
}

.nav-bar {
  height: 4.375rem;
  color: #fff;
}
.mobile-menu {
  display: none;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.btn {
  border: none;
  outline: none;
  color: #fff;
}
.left-section h3 {
  font-weight: 500;
  font-size: 1.5rem;
}

.right-section ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.563rem;
  margin-left: 5rem;
  list-style: none;

  a {
    text-decoration: none;
    color: #fff;
    opacity: 0.5;

    &:hover {
      opacity: 0.85;
    }
  }
}

.logo-font {
  color: #8e1616;
}

.hamburger-menu {
  display: none;
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
}
.activeNavLink {
  display: block;
}

.navbar {
  position: relative; /* For absolute positioning of mobile menu */
}

/* hero section */
.hero-section {
  color: #fff;
  margin-top: 4.3rem;
}

.content-section {
  margin-top: 7.5rem;
  h6 {
    font-size: 1rem;
    margin-bottom: 0.625rem;
    font-weight: 500;
  }
  h1 {
    font-size: 2.3rem;
    font-weight: 400;
    margin-bottom: 0.938rem;
  }
  h3 {
    font-size: 1.4rem;
    margin-bottom: 0.625rem;
    font-weight: 400;
  }
  p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 300;
  }
  .downloadBtn {
    color: #ffff;
    background-color: #2c3e50;
    outline: none;
    border: 0.063rem solid #2c3e50;
    padding: 0.625rem 1.438rem;
    border-radius: 0.938rem;
    font-size: 1rem;
    cursor: pointer;

    &:hover {
      background-color: transparent;
      border-radius: 0.938rem;
    }
    &::after {
      background-color: #2c3e50;
    }
  }
}

.bar-line {
  height: 0.3rem;
  width: 6.25rem;
  background: #8e1616;
  margin-bottom: 0.938rem;
}

/* social media */
.socio-section {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.625rem;
  .unique {
    border: 0.125rem solid #fff;
  }
  .unique2 {
    border: 0.063rem solid #fff;
  }
  .socio-icon {
    height: 2.188rem;
    width: 2.188rem;
    background: #fff;
    border-radius: 100%;
    img {
      height: 100%;
      width: 100%;
    }
  }
}

/* About section */
.about-section {
  margin-top: 12rem;
  color: #fff;

  .about-summary {
    opacity: 0.5;
    font-weight: 300;
  }

  .about-text {
    .about {
      margin-top: 1.25rem;
      text-align: justify;
      font-size: 1rem;
    }
    .about-heading {
      position: relative;
      h1 {
        margin-left: 1.25rem;
        font-weight: 500;
        font-size: 1.5rem;
      }
      .horizontal-line {
        position: absolute;
        top: 0.313rem;
        left: 0;
        height: 1.5rem;
        width: 0.25rem;
        background: #8e1616;
      }
    }
  }
}

/* Skills section */
.skills-section {
  margin-top: 8rem;
  color: #fff;

  .skills-part {
    position: relative;
    h1 {
      margin-left: 1.25rem;
      font-weight: 500;
      font-size: 1.5rem;
    }
    .horizontal-line {
      position: absolute;
      top: 0.313rem;
      left: 0;
      height: 1.5rem;
      width: 0.25rem;
      background: #8e1616;
    }

    .tech-stack {
      button {
        margin-right: 0.125rem;
        margin-top: 1.25rem;
        /* margin-bottom: 20px; */
        background: transparent;
        outline: none;
        color: #fff;
        border: 0.063rem solid #3a3939;
        border-radius: 0.625rem;
        padding: 0.375rem 1rem;
        cursor: pointer;

        &:hover {
          border: 0.063rem solid #696464;
        }
      }
    }
  }
}

/* projects secrion */
.projects-section {
  margin-top: 8rem;
  color: #fff;

  .projects-part {
    position: relative;
    h1 {
      margin-left: 1.25rem;
      font-weight: 500;
      font-size: 1.5rem;
      margin-bottom: 2rem;
    }
    .horizontal-line {
      position: absolute;
      top: 0.313rem;
      left: 0;
      height: 1.5rem;
      width: 0.25rem;
      background: #8e1616;
    }
  }
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;

  .card {
    width: 250px;
    padding: 0.8rem;
    background: #1d1616;
    position: relative;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border-radius: 6px;
    color: #ffff;

    border: 1px solid #3a3939;

    &:hover {
      transform: scale(1.01);
      transition: 0.1s ease-in;
      border: 0.063rem solid #696464;
    }

    .card-img {
      background-color: #ffcaa6;
      height: 40%;
      width: 100%;
      border-radius: 0.5rem;
      transition: 0.3s ease;
      img {
        height: 100%;
        width: 100%;
        border-radius: 0.5rem;
      }
    }

    .card-info {
      padding-top: 10%;
    }

    svg {
      width: 15px;
      color: #fff;
      height: 15px;
      path {
        fill: #fff;
        height: 100%;
        width: 100%;
      }
    }

    .card-footer {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 10px;
      border-top: 1px solid #ddd;
    }
    .read {
      color: #b11f1f;
      font-size: 0.9rem;
      font-weight: 500;
      a {
        color: #b11f1f;
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }

    /*Text*/
    .text-title {
      font-weight: 500;
      font-size: 1em;
      line-height: 1.5;
      margin-bottom: 5px;
      color: #ffff;
    }

    .text-body {
      font-size: 0.8em;
      margin-top: 1rem;
      padding-bottom: 10px;
      color: #ffff;
      letter-spacing: 0.0001rem;
      opacity: 0.5;
      text-align: justify;
    }

    /*Button*/
    .card-button {
      border: 0.063rem solid #3a3939;
      display: flex;
      padding: 0.3em;
      cursor: pointer;
      border-radius: 50px;
      transition: 0.3s ease-in-out;
    }

    /*Hover*/
    .card-img:hover {
      transform: translateY(-25%);
      box-shadow: rgba(226, 196, 63, 0.25) 0px 13px 47px -5px,
        rgba(180, 71, 71, 0.3) 0px 8px 16px -8px;
    }

    .card-button:hover {
      border: 0.063rem solid #696464;
      /* background-color: #ffcaa6; */
    }
  }
}

/* contact section */
.contact-section {
  margin-top: 8rem;
  color: #fff;

  .contact-title {
    position: relative;
    h1 {
      margin-left: 1.25rem;
      font-weight: 500;
      font-size: 1.5rem;
      margin-bottom: 2rem;
    }
    .horizontal-line {
      position: absolute;
      top: 0.313rem;
      left: 0;
      height: 1.5rem;
      width: 0.25rem;
      background: #8e1616;
    }
  }

  .contact-container {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;

    .left-contact-section {
      border-radius: 5px;
      width: 100%;
      background-color: #363434;
      padding: 20px;

      .contact-details {
        width: 100%;
        position: relative;
        .horizontal-line {
          position: absolute;
          top: 0;
          left: 0;
          /* bottom: 5px; */
          height: 1.4rem;
          width: 0.2rem;
          background: #8e1616;
        }
        h4 {
          margin-left: 15px;
          font-weight: 500;
        }
        position: relative;

        .horizontal-line {
          position: absolute;
          top: 0;
          left: 0;
          /* bottom: 5px; */
          height: 1.4rem;
          width: 0.2rem;
          background: #8e1616;
        }
        h4 {
          margin-left: 15px;
          font-weight: 500;
        }
        p {
          opacity: 0.5;
          font-weight: 300;
          font-size: 0.9rem;
          margin-left: 15px;
          margin-top: 6px;
          margin-bottom: 20px;
        }
      }
    }
    .right-contact-section {
      width: 100%;
      margin-top: 20px;
      border-radius: 5px;
      background-color: #363434;
      padding: 20px;
      .contact-details {
        width: 100%;
        position: relative;
        .horizontal-line {
          position: absolute;
          top: 0;
          left: 0;
          /* bottom: 5px; */
          height: 1.4rem;
          width: 0.2rem;
          background: #8e1616;
        }
        h4 {
          margin-left: 15px;
          font-weight: 500;
        }

        form {
          margin-top: 20px;
          width: 100%;
          color: #fff;
          .input-field {
            width: 100%;
            .inp {
              display: flex;
              gap: 9px;
              margin-bottom: 10px;
            }

            .input {
              width: 50%;
              color: #fff;
              font-size: 0.9rem;
              background: transparent;
              outline: none;
              border: 1px solid #696464;
              border-radius: 5px;
              padding: 8px 18px;
            }
            .text {
              width: 100%;
              display: flex;
              flex-direction: column;
              gap: 10px;

              .textinput {
                color: #fff;
                font-size: 0.9rem;
                background: transparent;
                outline: none;
                border: 1px solid #696464;
                border-radius: 5px;
                padding: 8px 18px;
              }
            }
          }
          button {
            color: #000;
            background-color: #fff;
            outline: none;
            border: 2px solid #2c3e50;
            padding: 0.6rem 1.438rem;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
            margin-top: 10px;

            &:hover {
              background-color: transparent;
              color: #fff;
            }
          }
        }
      }
    }
  }
}

/* footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  margin-top: 50px;
  border-top: 1px solid #3a3939;

  .credit {
    color: #b11f1f;
    margin-top: 8px;
  }

  div {
    padding: 0 10px;
    text-align: center;
  }
}

@media (max-width: 48rem) {
  .right-section {
    display: none;
    position: absolute;
    top: 100%; /* Position below navbar */
    left: 0;
    width: 100%;
    background: #1d1616;
    z-index: 1000;
    padding: 0 1.25rem;
    /* border-bottom: 2px solid #8e1616; */
  }

  .right-section.activeNavLink {
    display: block;
  }

  .right-section ul {
    flex-direction: column;
    margin: 0;
    padding: 1.25rem 0;
  }

  .right-section li {
    padding: 0.625rem 0;
  }

  .hamburger-menu {
    display: block;
  }
}

/* animation */

/* Add these CSS Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Hero Section Animations */
.hero-section {
  animation: fadeInUp 0.8s ease-out;
}

.content-section h1 {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

#element {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.downloadBtn {
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
  transition: all 0.3s ease;
}

.downloadBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(142, 22, 22, 0.4);
}

.socio-section {
  animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

/* About Section Animation */
.about-text {
  animation: slideInLeft 0.8s ease-out;
}

/* Skills Section Animation */
.tech-stack button {
  animation: scaleUp 0.6s ease-out;
  transition: all 0.3s ease;
}

.tech-stack button:hover {
  transform: translateY(-3px);
  background: #8e1616 !important;
}

/* Project Cards Animation */
.card {
  animation: scaleUp 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(142, 22, 22, 0.2);
}

/* Contact Form Animations */
.input, .textinput {
  transition: all 0.3s ease;
}

.input:focus, .textinput:focus {
  border-color: #8e1616 !important;
  box-shadow: 0 0 8px rgba(142, 22, 22, 0.3);
}

/* Navigation Animation */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(29, 22, 22, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scroll Reveal Classes */
.hide {
  opacity: 0;
  transform: translateY(30px);
}

.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Contact Section Specific Animations */
.contact-details {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-details:nth-child(1) { transition-delay: 0.2s; }
.contact-details:nth-child(2) { transition-delay: 0.4s; }
.contact-details:nth-child(3) { transition-delay: 0.6s; }
.contact-details:nth-child(4) { transition-delay: 0.8s; }

.contact-details.show-contact {
  opacity: 1;
  transform: translateX(0);
}

.right-contact-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out 0.4s;
}

.right-contact-section.show-form {
  opacity: 1;
  transform: translateY(0);
}

.input, .textinput {
  transition: all 0.3s ease;
}

.input:focus, .textinput:focus {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(142, 22, 22, 0.2);
}

.downloadBtn.contact-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.downloadBtn.contact-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.downloadBtn.contact-btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Success Message Animation */
.success-message {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2ecc71;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Project Cards Stagger Animation */
@media (min-width: 768px) {
  .card:nth-child(1) { transition-delay: 0.1s; }
  .card:nth-child(2) { transition-delay: 0.2s; }
  .card:nth-child(3) { transition-delay: 0.3s; }
  .card:nth-child(4) { transition-delay: 0.4s; }
}