* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

header {
  height: 100px;
}
html {
  scroll-padding-top: 147px;
}

.nav {
  width: 100%;
  background-color: #fcfbf1;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#nav-check {
  display: none;
}

.nav-header {
  display: flex;
  align-items: center;
  padding: 0px 20px;
  height: 50px;
}

.logo img {
  width: 190px;
  height: auto;
  margin-top: 100px;
}

.nav-btn {
  position: absolute;
  right: 20px;
  top: 40px;
  display: none;
}

.nav-btn label {
  display: inline-block;
  cursor: pointer;
}

.nav-btn label span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px auto;
  background-color: #333;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 50px;
  gap: 30px;
  font-family: "Quicksand", sans-serif;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 18px;
}

.nav-links a:hover {
  color: #006466;
}

section {
  padding: 20px;
}

.typewriter {
  font-size: 1.5rem;
  width: fit-content;
  border-right: 3px solid rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(40, end), blink 0.6s step-end infinite;
  margin: 2rem auto;
  text-align: center;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 30%;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

#about_me {
  background-color: #dec9e9;
  padding: 60px 20px;
}
#about_me img {
  border-radius: 90px;
  border: 5px solid #4d194d;
  display: block;
  margin: 20px auto;
  width: 200px;
  max-width: 80%;
}

h2 {
  text-align: center;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: #4d194d;
  margin-bottom: 30px;
  font-size: 25px;
}
#about_me p {
  line-height: 1.5;
  padding: 20px 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
}
.cv-button {
  display: block;
  background-color: #6818a5;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease;
  margin: 25px auto;
  width: fit-content;
}
.cv-button:hover {
  background-color: #a067b1;
  transform: scale(0.95);
}
#skills {
  padding: 60px 20px;
  background: linear-gradient(135deg, #fcfbf1, #ffffff);
  color: #270b41;
  text-align: center;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
.skill-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(6, 4, 7, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(168, 131, 216, 0.603);
}
.skill-item i {
  font-size: 50px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px rgb(189, 190, 190));
}
.skill-item h4 {
  font-size: 18px;
  margin: 5px 0;
  font-weight: 600;
}
.skill-item p {
  font-size: 14px;
  color: #747272;
}
#projects {
  padding: 60px 20px;
  background: linear-gradient(135deg, #fcfbf1, #ffffff);
  color: #070707;
  text-align: center;
}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(7, 7, 7, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  filter: brightness(80%);
  border-radius: 10px;
}

.project-card h3 {
  margin: 10px 0;
  font-size: 20px;
  color: #070707;
}
.project-card p {
  color: #8a8a8a;
  font-size: 15px;
  margin-bottom: 15px;
}
.project-card a {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  color: rgb(46, 23, 68);
  background-color: transparent;
  border: 1px solid #4a2782;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.project-card a:hover {
  background-color: #390953;
  color: #ffffff;
}
#contacts {
  text-align: center;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  justify-content: center;
  padding: 20px;
}
.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.socials .social-icon {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

.socials .social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.socials .social-icon:hover img {
  transform: scale(1.15);
  filter: contrast(1.5);
}

.contact-form {
  max-width: 450px;
  margin: 0 auto;
}

form label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 15px 0 5px;
  text-align: left;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: #fff;
}

form textarea {
  height: 150px;
  resize: vertical;
}

form button {
  background-color: #4d194d;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background-color: #4a2782;
  transform: scale(1.05);
}

footer {
  background-color: #4a2782;
  color: white;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-logo p {
  font-size: 16px;
  font-weight: lighter;
  margin-top: 5px;
  color: #fdfdfd;
  text-align: center;
}

footer a {
  color: #fdfdfd;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #e0e0e0;
}

@media screen and (max-width: 1024px) {
  .nav-links {
    padding: 50px 30px;
    gap: 20px;
  }
  
  .contacts-grid {
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  .nav-header {
    justify-content: space-between;
    padding: 50px 15px;
  }
  .logo img {
    width: 150px;
    margin-top: -10px;
  }

  .nav-btn {
    display: block;
    top: 35px;
  }

  .nav-links {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: #fcfbf1;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    gap: 0;
  }

  #nav-check:checked ~ .nav-links {
    max-height: 500px;
    padding: 20px 0;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
  }
  
  .typewriter {
    animation: none;
    white-space: normal;
    border-right: none;
    overflow: visible;
    width: 90%;
    margin: 2rem auto;
    font-size: 1.3rem;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .socials {
    gap: 25px;
  }

  .socials .social-icon {
    width: 50px;
    height: 50px;
  }

  .contact-form {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .logo img {
    width: 150px;
  }
  
  .nav-btn {
    top: 30px;
    right: 15px;
  }

  .nav-btn label span {
    width: 25px;
    height: 2.5px;
  }

  h2 {
    font-size: 22px;
  }
  
  #about_me p {
    font-size: 16px;
    padding: 15px 0;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .container {
    grid-template-columns: 1fr;
  }
  
  .project-card img {
    height: 150px;
  }
  
  .socials {
    gap: 20px;
  }

  .socials .social-icon {
    width: 45px;
    height: 45px;
  }
  
  form button {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .footer-logo p {
    font-size: 14px;
  }
}

@media screen and (max-width: 350px) {
  .logo img {
    width: 130px;
  }
  
  .nav-btn {
    top: 28px;
  }
  
  .typewriter {
    font-size: 1.1rem;
  }
  
  .cv-button {
    padding: 10px 20px;
    font-size: 15px;
  }
}