@import url(https://fonts.googleapis.com/css?family=Raleway:400,200,300,800);
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

:root{
  --bg-color: #ffffff;
  --text-color: #000000;
}

h1 {
  font-size: 4vw;
  font-family: "Times New Roman", Times, serif;
  font-weight: bolder;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2vw;
}

.mobileImage,
.menuOpen,
.menuClose {
  display: none;
}

header .menuOpen {
  display: none;
}

/* Home Section */
#home {
  background-color: black;
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 95vh;

  /* Home Section Image */
  .desktopImage {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 48vw;
  }
  /* Images Section End */
}
/* Header or Navigation Start */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8vh;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);

  button{
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .lightMode:hover,
  .darkMode:hover {
    color: #0515fc;
  }
  .lightMode{
    display: none;
  }

  nav {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    font-weight: bold;
    font-size: 1.2rem;

    .nav{
      /* width: 35%; */
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }
    
  }

  .socialLinks {
    font-size: 1.5rem;
    border-radius: 100px;
  }

  ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;

    a {
      padding: 0.5vw 0.5vw;
      border-radius: 15px;
      text-decoration: none;
      color: #1a1a1a;
      font-weight: 700;

      &:hover {
        color: white;
        background: rgba(0, 0, 0, 0.8);
      }
    }
  }
  .underLine {
    position: absolute;
    bottom: 10px;
    left: 0;
    height: 3px;
    width: 0;
    background: black;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
}
/* Header or Navigation End */

/* Home Section Text Start*/
/* Home Section Background Items */

/* Home Section Background Items End */

.introText {
  position: absolute;
  color: white;
  width: 39%;
  top: 20%;
  left: 7%;
  display: flex;
  flex-direction: column;
  gap: 2vw;

  .greeting {
    position: relative;
    line-height: 1.1;
    min-height: 2.2em;
    width: 88%;
    max-height: 3vw;
    font-size: 4vw;
    font-family: "Times New Roman", Times, serif;
    font-weight: bolder;

    .cursor {
      display: inline-block;
      width: 3px;
      height: 1em;
      background-color: #ffffff;
      margin-left: 4px;
      animation: blink 2s infinite;
    }
  }

  .typingContainer {
    display: flex;
    min-height: 1.2em;
    align-items: center;
    color: #0515fc;
    font-weight: bold;
  }

  .introText p {
    margin: 0;
    line-height: 2;
  }

  .github {
    font-size: 1.5vw;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    background-color: #0515fc;
    width: 7vw;
    text-align: center;
    height: 2vw;
    padding-top: 0.5vw;
    border-radius: 10px;
  }

  .github:hover {
    background-color: #000000;
    color: #ffffff;
    border: #0515fc 2px solid;
  }
}

/* About Section Start*/
#about {
  position: relative;
  display: flex;
  height: 100vh;
  margin-top: 20%;
  flex-direction: row;
  align-items: center;

  .desktopImage {
    position: absolute;
    width: 35vw;
    height: 40vw;
    left: 2%;
    border-radius: 50px;
  }

  .text {
    position: absolute;
    width: 50vw;
    right: 7%;
    display: flex;
    flex-direction: column;
    gap: 2vw;
    color: var(--text-color);

    h1 {
      margin: 0;
    }

    p {
      font-size: 1.5vw;
      line-height: 2;
      margin: 0;
    }
  }
  .resume {
    position: relative;
    left: 43%;
    top: 30%;
    font-size: 1.5vw;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    background-color: #0515fc;
    width: 14vw;
    text-align: center;
    height: 2vw;
    padding-top: 0.5vw;
    border-radius: 10px;
  }
  .resume:hover {
    background-color: transparent;
    color: #000000;
    border: #0515fc 2px solid;
  }
}

/* About Section End */

/* Projects Section Start */
#projects {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 5vw 0;
  gap: 10vw;
  justify-content: center;
  color: var(--text-color);

  .heading {
    top: 5vw;
    position: absolute;
  }

  .projectsContainer {
    display: flex;
    gap: 5vw;
  }

  figure {
    font-family: "Raleway", Arial, sans-serif;
    color: #fff;
    margin-top: 10vw;
    position: relative;
    min-width: 90px;
    max-width: 500px;
    min-height: 100px;
    max-height: 400px;
    width: 100%;
    overflow: hidden;
    background: #000000;
    text-align: left;
    border-radius: 25px;

    * {
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
    }

    img {
      max-width: 100%;
      opacity: 1;
      width: 100%;
      height: 100%;
      -webkit-transition: opacity 0.35s;
      transition: opacity 0.35s;
    }

    figcaption {
      position: absolute;
      bottom: 0;
      left: 0;
      padding: 50px 3em;
      width: 100%;
      height: 100%;
      z-index: 0;

      &::before {
        position: absolute;
        top: 30px;
        right: 30px;
        bottom: 30px;
        left: 100%;
        border-left: 4px solid white;
        content: "";
        opacity: 0;
        background-color: rgba(255, 255, 255, 0.5);
        -webkit-transition: all 0.5s;
        transition: all 0.5s;
        -webkit-transition-delay: 0.6s;
        transition-delay: 0.6s;
        z-index: -1;
        pointer-events: none;
      }
    }

    h1,
    p,
    a {
      margin: 0 0 5px;
      opacity: 0;
      -webkit-transition: opacity 0.35s -webkit-transform 0.35s;
      transition: opacity 0.35s, -webkit-transform 0.35s, -moz-transform 0.35s,
        -o-transform 0.35s, transform 0.35s;
    }
    &:hover {
      img {
        opacity: 0.1;
      }
      .text {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 1vw;
      }

      figcaption {
        h1 {
          font-size: 1.5vw;
          font-weight: bold;
          opacity: 1;
          -webkit-transform: translate3d(0%, 0%, 0);
          transform: translate3d(0%, 0%, 0);
          -webkit-transition-delay: 0.4s;
          transition-delay: 0.4s;
        }

        p {
          opacity: 0.9;
          -webkit-transform: translate3d(0%, 0%, 0);
          transform: translate3d(0%, 0%, 0);
          -webkit-transition-delay: 0.6s;
          transition-delay: 0.6s;
          font-size: 1.2vw;
        }
       .tech span{
          border: 1px solid white;
          color: white;
          padding: 0.3vw 0.6vw;
          margin-right: 0.5vw;
          border-radius: 8px;
        }

        a {
          opacity: 1;
          -webkit-transform: translate3d(0%, 0%, 0);
          transform: translate3d(0%, 0%, 0);
          -webkit-transition-delay: 0.8s;
          transition-delay: 0.8s;
          font-size: 1.2vw;
          text-decoration: none;
          pointer-events: auto;
          color: #000000;
          background-color: #ffffff;
          padding: 0.5vw 1vw;
          border-radius: 10px;
        }

        a:hover {
          background-color: #000000;
          color: #ffffff;
          border: #0515fc 2px solid;
        }

        &::before {
          background-color: rgba(255, 255, 255, 0);
          left: 30px;
          opacity: 1;
          -webkit-transition-delay: 0s;
          transition-delay: 0s;
        }
      }
    }
  }
}
/* Projects Section End */

/* Contact Section Start */
#contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vw 0;
  gap: 2vw;
  font-family: "Poppins", sans-serif;

  contactForm {
    width: 50vw;
    height: 560px;
    padding: 50px 80px;
    background: #575656;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    transition: 0.5s all ease;
  }

  .formArea {
    h1 {
      color: var(--text-color);
      text-align: center;
      transition: 0.5s all ease;
    }
    P {
      max-width: 740px;
      font-weight: 300;
      color: var(--text-color);
      margin: 30px auto;
      text-align: center;
    }
  }
  .contact {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s all ease;

    .map {
      width: 400px;
      margin-right: 35px;
      animation-duration: 1.5s;
      iframe {
        width: 100%;
        height: 300px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
      }
    }
    .form {
      width: 525px;
      transition: 0.5s all ease;
      animation-duration: 1.5s;
      display: flex;
      flex-direction: column;
      gap: 20px;

      .label {
        color: var(--text-color);
        font-size: 20px;
        font-weight: 300;
        margin: 0 8px;
        padding: 0 5px;
        position: absolute;
        transition: 0.5s all cubic-bezier(0.5, 1.35, 0.5, 1.35);
      }

      .emailText {
        transform: translateY(-55px);
      }

      .subjectText {
        transform: translateY(-55px);
      }

      .messageText {
        transform: translateY(-135px);
      }

      input {
        height: 30px;
      }
      input,
      textarea {
        background: var(--bg-color);
        width: 100%;
        padding: 10px;
        border: 1px solid #dadce0;
        border-radius: 5px;
        outline: none;
        margin-bottom: 20px;
        transition: 0.3s;
        color: var(--text-color);

        &:focus {
          border: 1px solid #0515fc;
          box-shadow: inset 1px 1px 0 #0515fc, inset -1px -1px 0 #0515fc;
        }

        &:focus + .label,
        &:valid + .label {
          font-size: 13px;
          font-weight: 600;
          color: #0515fc;
          background: var(--bg-color);
        }
        &:focus + .emailText,
        &:valid + .emailText {
          transform: translateY(-77px);
        }
        &:focus + .subjectText,
        &:valid + .subjectText {
          transform: translateY(-77px);
        }

        &:focus + .messageText,
        &:valid + .messageText {
          transform: translateY(-150px);
        }
      }
      textarea {
        height: 100px;
        max-width: 100%;
        resize: none;
      }
    }

    .submit {
      position: relative;
      width: 100px;
      height: 40px;
      border-radius: 10px;
      font: bolder 1.2vw "Raleway", Arial, sans-serif;
      color: white;
      cursor: pointer;
      background-color: #0515fc;
      border: none;

      &:hover {
        background-color: transparent;
        color: hwb(236 2% 1%);
        border: #0515fc 2px solid;
      }
    }
  }
  .socials {
    display: flex;
    gap: 2vw;
    position: absolute;
    bottom: 0;
  }
  .socialLinks {
    font-size: 1.5rem;
    border-radius: 100px;
  }

  ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
  }
}
#contact a {
  padding: 0.5vw 0.5vw;
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;

  &:hover {
    color: gray;
    background: #0515fc;
  }
}

/* Contact Section End */

/* Footer Section Start */
footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 1;
  margin-top: 30%;
  background-color: black;
  color: white;
  text-align: center;
  padding: 1vw 5vw;
  font-size: 1.2vw;
}

footer .social {
  display: flex;
  gap: 0.5vw;
  font-size: 1.5rem;
}
footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #0515fc;
}

footer .username{
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0;
}

.username:hover{
  color: #0515fc;
}

/* UI Overrides: make buttons and key texts larger and more readable */
/* Use flat selectors so rules apply in plain CSS (override nested/SCSS-style blocks) */

/* GitHub button in hero */
.github, .resume {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem; /* ~16px */
  padding: 0.55rem 0.9rem;
  width: auto;
  height: auto;
  display: inline-block;
  border-radius: 10px;
}

/* Projects figcaption — increase heading, paragraph and link sizes */
figure figcaption .text h1,
figure.pic figcaption .text h1 {
  font-size: 1.25rem; /* ~20px */
  line-height: 1.2;
}
figure figcaption .text p,
figure.pic figcaption .text p {
  font-size: 1rem; /* ~16px */
  line-height: 1.6;
}
figure figcaption .text a,
figure.pic figcaption .text a {
  font-size: 0.98rem;
}

/* Increase all visible button text and inputs (submit, nav buttons, etc.) */
button, .resume,
input[type="button"],
input[type="submit"],
.submit,
header button,
.menuOpen,
.menuClose {
  font-size: 1rem;
  font-weight: 600;
}

/* Ensure contact form buttons and inputs are readable */
#contact .form .submit,
#contact .form button,
#contact .form input,
#contact .form textarea {
  font-size: 1rem;
}

/* Small tweak: keep buttons tappable on mobile */
button,
.submit {
  padding: 0.5rem 0.9rem;
}