* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
    background-color: rgb(2 67 64);
    color: white;
    font-family: "Roboto Mono", monospace;
}
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background-color: rgb(47 95 92);
    position: sticky;
    top: 0px;
    z-index: 1000;
}
.rightNav a {
    text-decoration: none;
    margin: 20px;
    color: white;
    padding: 5px; 
    border: 2px solid transparent;
}
.rightNav a:hover {
    color: white;
    border: 2px solid white;
    background-color: black;
    border-radius: 10px;
    padding: 5px;
}
.leftNav {
    font-size: 1.5rem;
}

.firstSection {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* margin: 40px 0px; */
    height: 90vh;
    /* flex-wrap: wrap; */
  }
  .leftFirst {
    /* background-color: black; */
    width: 40%;
    max-width: 400px;
    height: 300px;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
  }
  .leftFirst div:first-child {
      font-size: 2.1em;
      font-weight: bold;
      color: white;
  }
  .leftFirst div:last-child {
      font-size: 1.6em;
      font-style: italic;
      color: #64cfff;
  }
  .rightFirst {
    /* background-color: black; */
    /* width: 40%; */
    max-width: 400px;
    /* height: auto; */
    border-radius: 48%;
    /* position: relative; */
  } 
  .rightFirst img {
    margin: auto;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 48%;
}
.rightFirst:hover img {
    border: 1px solid white;
}
.leftFirst {
    animation: fadeIn 3s ease-in-out;
  }
  .rightFirst {
  animation: fadeIn 3s ease-in-out;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

hr {
    max-width: 1100px;
    width: auto;
    margin: 0px 89px;
}

.aboutSection {
  /* background-color: black; */
  max-width: 900px;
  margin: auto;
  height: 95vh;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}
.aboutSection h2 {
  width: 200px;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #64cfff;
  border: 2px solid white;
  border-radius: 20px;
  padding: 5px;
}
.aboutSection h2:hover {
  background-color: #000;
  border: 2px solid white;
}
.aboutSection p {
  margin: 50px 0px;
  font-size: 1.2rem;
  line-height: 1.8;
}

.skillsSection {
  padding: 60px 20px;
  text-align: center;
  /* height: 80vh; */
}
.skillsSection h2 {
  font-size: 32px;
  margin-bottom: 25px;
  color: white;
}
.skillsGrid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.skill {
  background: #2f5f5c;
  padding: 20px 25px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  width: 150px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  animation: fadeInUp 1s ease forwards;
}
.skill img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  transition: transform 0.4s;
}
.skill p {
  font-size: 16px;
  color: #fff;
}
.skill:hover {
  background: #64cfff;
  color: #000;
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.skill:hover img {
  transform: rotate(10deg) scale(1.1);
}

/* Simple animation when skills load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.projectsSection {
  padding: 60px 20px;
  text-align: center;
}
.projectsSection h2 {
  font-size: 32px;
  margin-bottom: 30px;
}
.projectGrid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
.projectCard {
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  animation: fadeUp 1s ease forwards;
}
.projectCard img {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.projectCard h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #64cfff;
  transition: color 0.3s;
}
.projectCard p {
  font-size: 15px;
  line-height: 1.6;
  color: #ddd;
  transition: color 0.3s;
}
.projectCard:hover {
  background: #64cfff;
  color: #000;
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}
.projectCard:hover h3 {
  color: #222;
}
.projectCard:hover p {
  color: #111;
}
.projectCard:hover img {
  transform: scale(1.1);
}

/* Card fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.contactSection {
  padding: 60px 20px;
  text-align: center;
  /* background: #e6e6fa; */
  min-height: 80vh;
}

.contactLinks {
  margin: 20px 0 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
}
.contactLinks img {
  width: 60px;
  height: 60px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 50%;
  padding: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.contactLinks img:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Contact Form */
.contactForm {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.contactForm table {
  border-spacing: 15px;
}
.contactForm label {
  font-weight: bold;
  /* color: #333; */
}
.contactForm input,
.contactForm textarea {
  width: 250px;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contactForm input:focus,
.contactForm textarea:focus {
  border-color: #64cfff;
  box-shadow: 0 0 8px rgba(100,207,255,0.6);
}
.contactForm button {
  background: #64cfff;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.contactForm button:hover {
  background: #2f5f5c;
  transform: scale(1.05);
}


footer {
  background: #2f5f5c;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}



@media (max-width: 1024px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .rightNav {
    margin-top: 10px;
  }

  .firstSection {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 40px 20px;
  }

  .leftFirst, .rightFirst {
    width: 90%;
    max-width: 500px;
  }

  hr {
    margin: 20px auto;
  }

  .aboutSection {
    height: auto;
  }

  .skillsGrid, .projectGrid {
    justify-content: center;
  }

  .skill, .projectCard {
    width: 220px;
  }
}


@media (max-width: 480px) {
  .leftNav {
    font-size: 1.2rem;
  }

  .leftFirst div:first-child {
    font-size: 1.4em;
  }
  .leftFirst div:last-child {
    font-size: 1em;
  }

  .skillsSection h2,
  .projectsSection h2,
  .aboutSection h2,
  .contactSection h2 {
    font-size: 24px;
  }

  .projectCard h3 {
    font-size: 18px;
  }
  .projectCard p {
    font-size: 14px;
  }

  footer {
    font-size: 14px;
  }
}
