* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

/* NAVBAR */
nav {
  width: 100%;
  background-color: #170550;
  padding: 0 15px;
  position: fixed;
  top: 0;
  display: flex;
  gap: 2rem;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.32);
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.navbar .logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.menu {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.menu span {
  width: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 50%;
}

.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.6px;
  transition: color 0.3s ease;
}

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

/* SECTIONS GENERAL STYLE */
section {
  min-height: 820px;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

/* HOME SECTION */
#home {
  background-color: #31065a;
}

#home .hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#home .hero-content p:nth-child(1) {
  color: #f86f03;
  font-size: 30px;
  font-weight: 600;
}

#home .hero-content h1 {
  font-size: 60px;
  color: #fff;
  font-weight: 700;
  margin: 1rem 0;
}

#home .hero-content p:nth-child(3) {
  color: #fff;
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 1rem;
}

#home .hero-content p:nth-child(3) span {
  color: #f86f03;
}

#home .hero-content p:nth-child(4) {
  color: #fff;
  font-size: 18px;
  margin-bottom: 36px;
  font-weight: 400;
}

.social_media {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social_media a img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  padding: 5px;
  transition: transform 0.3s ease;
}

.social_media a img:hover {
  transform: scale(1.1);
  border-color: #f86f03;
}

.file_download {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #f86f03;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ABOUT SECTION */
#about {
  width: 100%;
  background-color: #170550;
}

#about h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
  padding-bottom: 10px;
}

#about h1 span {
  color: #f86f03;
}

.about_content {
  margin-top: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about_content img {
  width: 600px;
  border-radius: 10px;
}

.about_text h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 30px;
}

.about_text p {
  font-size: 16px;
  letter-spacing: 0.4px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 400;
}

.about_text button {
  padding: 10px 20px;
  background-color: #fff;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  text-transform: capitalize;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.about_text button:hover {
  background-color: #f86f03;
  color: #fff;
}

/* Hobbies */

.hobbies-section {
  background-color: #f3f4fc;
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #170550;
}

.hobbies-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.hobby-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  padding: 20px;
  max-width: 260px;
  flex: 1 1 220px;
}



.hobby-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: cover;
}

.hobby-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.hobby-card p {
  font-size: 0.95rem;
  color: #555;
}

/* PROJECTS SECTION */
#projects {
  background-color: #31065a;
}

#projects h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
  padding-bottom: 10px;
}

.projects_content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 50px;
  gap: 30px;
}

.projects {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.project-img {
  width: 500px;
  height: 500px;
  border-radius: 10px;
  object-fit: cover;
}
.projects_content img {
  width: 350px;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  justify-self: center;
}

/* SKILLS SECTION */
#skills {
  background-color: #170550;
  color: #fff;
  text-align: center;
}

#skills h1 {
  font-size: 36px;
  margin-bottom: 40px;
  border-bottom: 2px solid #f86f03;
  display: inline-block;
  padding-bottom: 10px;
}

.skill_page {
  margin-top: 10%;
}

.skill {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.skill-name {
  flex: 1;
  font-size: 18px;
  white-space: nowrap;
}

.progress-bar {
  flex: 5;
  background-color: #3d3060;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.progress-fill {
  background-color: #f86f03;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease-in-out;
}

.skill-percent {
  flex: 1;
  text-align: right;
  font-size: 16px;
}

/* CONTACT SECTION */
#contact {
  background-color: #31065a;
}

.contact_page h1 {
  text-align: center;
  font-size: 30px;
  color: #fff;
}

.contact-form {
  max-width: 600px;
  margin: 100px auto;
  text-align: left;
}

.floating {
  position: relative;
  margin-bottom: 30px;
}

.floating input,
.floating textarea {
  width: 100%;
  padding: 16px 12px;
  border-radius: 10px;
  border: none;
  background-color: #1c1c30;
  color: white;
  font-size: 16px;
}

.floating input:focus,
.floating textarea:focus {
  outline: none;
  border: 1px solid #f86f03;
}

.floating label {
  position: absolute;
  left: 12px;
  top: 16px;
  color: #aaa;
  font-size: 16px;
  background-color: #1c1c30;
  padding: 0 4px;
  transition: 0.2s ease all;
  pointer-events: none;
}

.floating input:focus + label,
.floating input:not(:placeholder-shown) + label,
.floating textarea:focus + label,
.floating textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: #f86f03;
}

/* GLOBAL BUTTON */
button {
  background: linear-gradient(90deg, #f86f03, #ff9000);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

/* FOOTER */
footer {
  background-color: #1b0053;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

.social_media {
  display: flex;
  gap: 20px;
}

.social_media a img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social_media a:hover img {
  transform: scale(1.2);
  filter: brightness(1) saturate(2);
}
@media (max-width: 1024px) {
  .about_content {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }
  .menu {
    display: grid;
  }
  #home .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #home .hero img {
    width: 100%;
    height: auto;
  }
  .social_media {
    justify-content: center;
  }
  .about_content img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 480px) {
  #home .hero img {
    width: 100%;
    height: auto;
  }
  #home .hero-content h1 {
    font-size: 40px;
  }
  #home .hero-content p:nth-child(3) {
    font-size: 18px;
  }
  #home .hero-content p:nth-child(4) {
    font-size: 14px;
  }
  .projects_content img {
    width: 100%;
    height: auto;
  }
}
