
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

.nav2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background-color: #ffffffcc;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.justifyleft,
.justifyright {
  display: flex;
  align-items: center;
}

.navbuttonname a,
.navbutton a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 10px 16px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.navbutton a:hover,
.navbutton a.active {
  background-color: #04AA6D;
  color: #fff;
}

.navbutton {
    display: block;
    margin-left: 20px;
}


.hamburger-menu {
  display: none; 
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}


.bdy {
    position: relative;
}
.background {
    width: 100%;
    height: auto;
    position: absolute;
    z-index: -1;
}
.homename {
  font-weight: 200;
  text-align: left;
  margin-top: 20px;
  padding-left: 150px;
  padding-top: 220px;
}
.welcome {
  font-weight: 800;
  text-align: left;
  margin-top: 20px;
  font-size: 70px;
  padding-left: 150px;
}
.showcase {
  font-weight: 400;
  text-align: left;
  margin-top: 20px;
  padding-left: 150px;
  width: 60%;
  line-height: 1.6;
}

.experienceheader {
    font-weight: 600;
    margin-top: 20px;
    font-size: 25px;
    padding-left: 150px;
    padding-top: 220px;
    text-align: left;
}
.experience-container,
.education-container,
.portfolio-container,
.courses-container,
.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 100px;
  gap: 30px;
}

.experience-card,
.education-card,
.project-card,
.course-card,
.skill-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 20px;
  text-align: left;
}

.experience-card:hover,
.education-card:hover,
.project-card:hover,
.course-card:hover,
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.experience-card { width: 45%; }
.education-card { width: 30%; }
.project-card { width: 28%; }
.course-card, .skill-card { min-width: 200px; max-width: 240px; text-align: center; }

.project-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}
.project-title, .experience-title, .education-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}
.project-description, .experience-description, .education-details {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}


.contact-form-wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.styled-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  width: 100%;
  font-family: "Montserrat", sans-serif;
}

.styled-form .field {
  margin-bottom: 20px;
}

.styled-form .label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #333;
}

.styled-form .input,
.styled-form .textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.2s;
}

.styled-form .input:focus,
.styled-form .textarea:focus {
  border-color: #04AA6D;
  outline: none;
}

.styled-form .textarea {
  min-height: 120px;
  resize: vertical;
}

.styled-form .formbutton {
  background-color: #04AA6D;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.styled-form .formbutton:hover {
  background-color: #028a5e;
}

.icon-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #04AA6D;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background-color 0.2s;
}
.icon img { width: 24px; height: 24px; }
.icon:hover { transform: scale(1.1); background-color: #028a5e; }

.formbutton:hover {
  transform: scale(1.05);
  background-color: #028a5e;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animated-heading, .card-animate {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}
.card-delay-1 { animation-delay: 0.2s; }
.card-delay-2 { animation-delay: 0.4s; }
.card-delay-3 { animation-delay: 0.6s; }



@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  .justifyright {
    display: none; 
    position: absolute;
    top: 65px; 
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
  }

  .justifyright.active {
    display: flex;
  }
  
  .navbutton {
    margin-left: 0;
    width: 100%;
  }

  .navbutton a {
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  .navbutton:last-child a {
    border-bottom: none;
  }

  .homename, .welcome, .showcase, .experienceheader {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
  }
  .welcome { font-size: 40px; }
  .showcase { width: auto; }
  .experienceheader { padding-top: 80px; }

  .experience-container,
  .education-container,
  .portfolio-container,
  .courses-container,
  .skills-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .experience-card,
  .education-card,
  .project-card,
  .course-card,
  .skill-card {
    width: 100%;
  }
  
  .icon-bar {
    flex-direction: row;
  }
}