* {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding: 10rem;
}

/* NAVBAR SECTION */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  height: 4rem;
  padding: 0 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  width: 40%;
  color: black;
  font-size: 25px;
}

.info {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 60%;
  padding-right: 30px;
}

.info ul a {
  display: flex;
  justify-content: space-evenly;
  text-decoration: none;
  color: black;
  transition: 0.5s;
}

.info ul a i {
  padding-top: 3px;
}

.info ul a:hover {
  color: rgb(75, 75, 181);
}

.menu {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  background: none;
  border: none;
  color: black;
}

.mob-menu {
  position: fixed;
  top: 65px;
  right: 0;
  height: 100vh;
  width: 100%;
  backdrop-filter: blur(10px);
  background-color: #f5f5f5e0;
  padding-top: 2rem;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

.mob-menu.active {
  transform: translateX(0);
}

.mob-menu ul {
  padding-bottom: 3.5em;
  padding-left: 2em;
  color: rgb(30, 77, 216);
  font-size: 1.1em;
}

.mob-menu ul a:hover {
  color: rgb(128, 0, 247);
  transition: 0.3s;
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.about {
  font-size: 2.5rem;
  padding-top: 50px;
  color: rgb(75, 75, 181);
}

.buttons {
  margin: 20px;
}

.buttons button {
  height: 30px;
  width: 100px;
  border-radius: 20px;
  border: none;
  background-color: white;
  color: rgb(75, 75, 181);
  transition: 0.3s;
  cursor: pointer;
  margin: 5px;
  font-weight: 300;
  margin-top: 30px;
}

.buttons button:hover {
  color: whitesmoke;
  background-color: rgb(75, 75, 181);
}

.cv {
  width: 300px;
  height: 40px;
  background-color: white;
  border: none;
  border-radius: 3em;
  color: rgb(75, 75, 181);
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s;
  animation: pulse 1.5s infinite;
  margin-top: 30px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.cv:hover {
  background-color: rgb(75, 75, 181);
  color: white;
}

/* SECTION BASE */
section {
  scroll-margin-top: -100px;
  width: 100%;
}

/* ABOUT SECTION */
.about-section {
  background-color: white;
  min-height: 100vh;
}

.about-section h2 {
  color: rgb(75, 75, 181);
  font-size: 2.5em;
  text-align: center;
  margin-top: 1.5em;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

.div1,
.div2 {
  width: 50%;
  padding: 2em;
}

.div1 {
  color: rgb(35, 58, 58);
  font-size: 1.2em;
  text-align: justify;
}

.div2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card1 {
  border: none;
  padding: 0.9em;
  width: 300px;
  background-color: rgba(222, 184, 135, 0.231);
  border-radius: 1em;
  height: 210px;
  margin-bottom: 15px;
}

.card1 h1 {
  font-size: 1.8em;
  color: rgb(248, 48, 3);
}

.p {
  margin: 0;
  font-size: 1em;
}

.p2 {
  padding-top: 8px;
  font-size: 13px;
  color: rgb(98, 96, 94);
}

/* PROJECTS SECTION */
.projects {
  background-color: white;
  min-height: 100vh;
  scroll-margin-top: -100px;
  padding: 3em 1em;
}

.projects h1 {
  font-size: 2.5em;
  text-align: center;
  color: rgb(75, 75, 181);
  font-family: 'Lucida Sans', sans-serif;
  font-weight: bold;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10%;
  padding-top: 2em;
}

.project-card {
  border: none;
  height: 300px;
  width: 250px;
  border-radius: 10%;
  background-color: rgba(111, 0, 255, 0.101);
  padding: 15px;
  box-shadow: 2px 2px 2px 2px rgb(202, 208, 207);
}

.img {
  width: 100%;
  height: 60%;
  border-radius: 10px;
  overflow: hidden;
}

.img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.project-card p {
  margin-top: 5px;
  color: rgb(10, 126, 70);
  font-style: oblique;
}

.project-card a {
  font-size: 15px;
}

.project-card a i {
  font-size: 1.5em;
}

/* SKILLS SECTION */
.skills {
  width: 100%;
  min-height: 60vh;
  scroll-margin-top: -100px;
  padding: 3em 1em;
}

.sk {
  color: rgb(75, 75, 181);
  font-size: 2.6em;
  text-align: center;
}

.skills-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  padding-top: 2em;
}

.skill-card {
  border: none;
  width: 300px;
  padding: 1em;
  background-color: aliceblue;
  border-radius: 10px;
}

.tech {
  font-size: 1.2em;
  color: rgba(153, 51, 11, 0.905);
}

.skill-card li {
  color: black;
  font-size: 1em;
}

/* CONTACT SECTION */
.contact {
  min-height: 40vh;
  padding: 2em;
}

.contact h1 {
  text-align: center;
  color: rgb(75, 75, 181);
  font-size: 2.8em;
  margin-bottom: 30px;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.contact a {
  color: rgb(11, 5, 136);
}

/* FOOTER */
footer {
  height: auto;
  text-align: center;
  padding: 1em;
  background-color: black;
  color: white;
}

/* RESPONSIVE MEDIA QUERIES */
@media only screen and (max-width: 767px) {
  .info {
    display: none;
  }

  .menu {
    display: block;
    text-align: right;
  }

  .mob-menu {
    width: 60%;
  }

  .summary,
  .skills-box {
    display: block;
  }

  .div1,
  .div2,
  .skill-card {
    width: 100%;
    margin-bottom: 20px;
  }
  .cards{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .div2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media only screen and (max-width: 460px),
only screen and (max-width: 600px) {
  .info {
    display: none;
  }

  .menu {
    display: block;
  }

  .mob-menu {
    width: 100%;
  }

  .summary,
  .skills-box {
    display: block;
  }
  .cards{
    display: flex;
  }
  .project-card{
    margin-top: 20px;
  }

  .div1,
  .div2,
  .skill-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .logo {
    font-size: 1em;
    color: rgba(22, 56, 7, 0.986);
    font-weight: bold;
  }

  .skills,
  .contact {
    margin-top: 5em;
  }

  .contact {
    padding: 1em;
  }

  .contact p {
    padding-left: 1em;
  }
}
