* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}
#half_body {
  height: 1000px;
  width: 100%;
  background-image: url("backImg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding-bottom: 4.5rem;
}
#full_body {
  background-color: #0d1b2a;
}

/* navBar */

nav {
  height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#navBar {
  height: 60px;
  width: 95%;
  position: fixed;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 2rem;
  border: 2px solid #0d1b2a;
  background-color: none;
  color: #ffffff;
  position: fixed;
}
#navBar span {
  margin-left: 20px;
  font-family: "Lucida Handwriting", cursive;
}
#navBar #options {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-right: 10px;
}
#options a {
  text-decoration: none;
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
}
#options a:hover {
  background-color: #0d1b2a;
  color: #ffffff;
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section {
  height: 420px;
  width: 70%;
  margin-top: 3rem;
  align-items: center;
  justify-items: center;
  background-color: #1b263b;
  color: #ffffff;
  border-radius: 2rem;
}
#front {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
#frontImg {
  height: 200px;
  width: 200px;
  border-radius: 2rem;
  background-image: url("front.jpg");
  background-size: cover;
}
/* About Me */

.heading {
  height: 40px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  background-color: #e0e1dd;
  color: #0d1b2a;
  margin-top: 3rem;
}
#about_container {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

#abtImg {
  background-image: url("about.jpg");
  background-size: cover;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  margin-left: 2rem;
}
#aboutText {
  height: auto;
  width: 200px;
  text-align: left;
}

/* Skills */

#skills_container {
  height: auto;
  margin-top: 3rem;
  padding-bottom: 3rem;
  background-color: #a99985;
}
#skills_container .heading {
  background-color: #0d1b2a;
  color: #a99985;
}
#skillsList {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 2rem;
  margin-top: 2rem;
}
.skill {
  width: 90%;
  box-sizing: border-box;
  color: #0d1321;
  font-family:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 2px solid #0d1321;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}
.input-range-container {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  column-gap: 1rem;
}
.skill input {
  appearance: none;
  width: 70%;
  height: 6px;
  border-radius: 5px;
  background: hsl(204, 98%, 24%);
  accent-color: #ffffff;
  pointer-events: none;
}
.skill .text {
  font-size: 1rem;
  font-weight: bold;
}

/* Projects */

#proj_container {
  height: auto;
  width: 70%;
  padding-bottom: 3rem;
  margin-top: -1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  background-color: #a99985;
}
#proj_container .heading {
  background-color: #0d1b2a;
  color: #a99985;
}
#projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.project {
  width: 25%;
  box-sizing: border-box;
  padding: 20px;
  background-color: #0d1b2a;
  color: #a99985;
  border-radius: 2rem;
  text-decoration: none;
}
.project h3:hover {
  cursor: pointer;
}
.project p {
  color: #a99985;
  font-size: 1rem;
  margin-top: 2rem;
  text-align: left;
  word-spacing: 1px;
}

/* Contact */

#contact {
  margin-top: 2rem;
}
.contact {
  height: auto;
  width: 100%;
  background-color: #dad2bc;
  color: #0d1321;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0; 
}
.contact h2 {
  margin-top: 1rem;
  padding: 1rem;
}
.contact p {
  margin: 0.5rem;
}
#feedback{
  margin: 30px 0;
  height: auto;
  width: 70%;
  padding: 30px 50px;
  background-color: #1b263b;
  color: #ffffff;
  border-radius: 0.8rem;
}
#form{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 10px;
}
#form div{
  width: 80%;
}
.input-field{
  width: 100%;
  height: 40px;
  padding-left: 10px;
  border-radius: 0.5rem;
  border: none;
}
.input-field:focus{
  border: none;
  outline: none;
}
#form #message{
  padding-top: 10px;
  height: 60px;
}
#button{
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 0.4rem;
  background-color: #dad2bc;
  color: #0d1321;
}

/* Footer */

footer p {
  padding-top: 2rem;
  height: 40px;
  width: 100%;
  text-align: center;
  color: #0d1321;
  background-color: #f5f1ed;
}

/* For Modals */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  width: 90%;
  height: 80%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}

/* Skill bar fill */
@keyframes fillBar {
  from {
    width: 0;
  }
}

.skill input {
  animation: fillBar 1.2s ease-out forwards;
}

/* Project card hover lift */
.project {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

/* MAKING RESPONSIVE */

@media (max-width: 1024px) {
  .section {
    width: 75%;
  }
  #proj_container {
    width: 75%;
  }
}
@media (max-width: 912px) {
  #name {
    font-size: 1rem;
  }
  .heading {
    font-size: 1.2rem;
  }
  .section {
    width: 80%;
  }
  #frontText {
    font-size: 1rem;
  }
  #frontImg {
    height: 170px;
    width: 170px;
  }
  #abtImg {
    height: 170px;
    width: 170px;
  }
  #aboutText {
    font-size: 1rem;
  }
  #proj_container {
    width: 80%;
  }
  .project h3 {
    font-size: 1.2rem;
  }
  .project p {
    font-size: 1rem;
  }
}
@media (max-width: 820px) {
  .heading {
    height: 37px;
    width: 120px;
    font-size: 1rem;
  }
  #frontText {
    margin-left: 2rem;
  }
  #frontImg {
    height: 150px;
    width: 150px;
    margin-right: 2rem;
  }
  #abtImg {
    height: 150px;
    width: 150px;
  }
}
@media (max-width: 540px) {
  #name {
    font-size: 0.8rem;
  }
  #frontText {
    font-size: 0.9rem;
  }
  #frontImg {
    height: 120px;
    width: 120px;
  }
  .project {
    width: 40%;
  }
  .project p {
    font-size: 0.9rem;
  }
  #about_container {
    margin-top: 5rem;
  }
  #abtImg {
    height: 120px;
    width: 120px;
  }
  #aboutText {
    font-size: 0.9rem;
    margin-right: 1.5rem;
  }
  .contact h2 {
    font-size: 1rem;
  }
  .contact p {
    font-size: 0.9rem;
  }
  footer p {
    font-size: 0.9rem;
  }
}
@media (max-width: 430px), (max-width: 360px) {
  #name {
    font-size: 0.7rem;
  }
  #options a {
    font-size: 0.6rem;
    padding: 0.5rem 0.7rem;
  }
  #front {
    flex-direction: column-reverse;
  }
  #frontText {
    margin-right: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }
  #frontImg {
    margin: 0;
  }
  #about .section {
    height: 450px;
  }
  #about_container {
    flex-direction: column;
    margin-top: 2rem;
  }
  #abtImg {
    margin: 0;
  }
  #aboutText {
    text-align: center;
    margin: 0;
  }
  .project {
    width: 75%;
  }
  footer p {
    font-size: 0.7rem;
  }
  .modal-content {
    width: 95%;
    height: 85%;
  }
}
