html{
  scroll-behavior: smooth;
}
body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #EBFCFF;
    font-family: "Roboto", sans-serif;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0F214D;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 1rem 1rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.nav-links .myResume button{
    background-color: transparent;
    color: #FFF;
    padding: 6px 12px;
    border: 2px solid #0B5FB0;
    cursor: pointer;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}
.nav-links .myResume button:hover {
    background-color: #0B5FB0;
}
.nav-links a:hover {
  color: #AAF1FF;
}
.hamburger {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    padding: 10px; /* Make it easier to click/tap */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s; /* Smooth transition for icon animation */
    border-radius: 2px;
}
.hero{
  padding-top: 70px;
  display: flex;
  justify-content: space-around;
  justify-content: center;
}
.hero img{
  display: block;
  width: 450px;
}
.hero-Content{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.CTA_Button button {
  background-color: transparent;
  border: 2px solid #0F214D;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-weight: 600;
  padding: 8px;
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.3s;
}
.CTA_Button button:hover{
   background-color: #0B5FB0;
   color: #FFF;
}
.aboutMe{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #AAF1FF;
  gap: 20px;
  padding: 20px;
}
.aboutMe img{
  display: inline-block;
  border: 5px solid #0F214D;
  height: 320px;
}
.inner-Aboutme{
  padding-right: 20px;
  font-size: 20px;
}
.mySkills{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;

}
/* Container for each skill */
.skill {
  display: inline-block;
  width: 40%;
  height: 150px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 20px;
  background-color: #AAF1FF;
  border-radius: 5px;
  box-shadow: 4px 4px  8px 5px #b8d5e2, -4px -4px  8px 5px #e3f6ff;
}

/* Skill name/title */
.skill h3 {
  margin: 5px 0;
  font-size: 16px;
  color: #000000;
  padding-top: 10px;
}

.skill-bar {
  height: 10px;
  background: #0B5FB0;
  height: 15px;
  border-radius: 5px;
  overflow: hidden;
}
.skill-level {
  height: 100%;
  background: #0F214D; 
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

.skill span {
  padding-top: 8px;
  float: right;
  font-size: 14px;
  font-weight: 700;
  color: #0F214D;
}
.myProject{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.myProject .project {
  background-color: #0B5FB0;
  width: 30%;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  text-align: center;
  box-shadow: 4px 4px  8px 5px #b8d5e2, -4px -4px  8px 5px #e3f6ff;
}
.myProject .project img{
  width: 100%;
}
.project > h3 {
  color: #FFF;
}
.project > p{
  color: #e3f6ff;
  padding: 10px;
}
.project > a{
  background-color: #AAF1FF;
  text-decoration: none;
  padding-bottom: 5px;
  padding-top: 5px;
  display:inline-block;
  width: 100%;
  margin-bottom: 10px;
}
.centerItem{
  display: flex;
  align-items: center;
  justify-content: center;
}
.contactUS {

  width: 70%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-around;
  background-color: #AAF1FF;
  border-radius: 8px;
  box-shadow: 4px 4px  8px 5px #b8d5e2, -4px -4px  8px 5px #e3f6ff;
  padding: 20px;
  
}
.contactUS .firstContact{
  display: flex;
  flex-direction: row;
  gap: 10px;
  list-style: none;
}
.contactUS .firstContact li{
  position: relative;
  left: 12px;
  text-align: center;
}
.contactUS .firstContact .left{
  position: relative;
  left: 0;
  font-weight: 600;
}
.contactUS .firstContact a{
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #0B5FB0;
}
.contactUS .firstContact .icon{
  font-size: 25px;
  padding-right: 10px;
  color: #000000;
  padding: 5px;
  background: linear-gradient(to right, red, #AAF1FF);
  border-radius: 50%;
}
footer {
  background-color: #0F214D; 
  color: #E0E7FF; 
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%; 
  box-sizing: border-box;
  margin-top: 20px;
}
.footer-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}


@media (max-width: 768px){
  .navbar {
        padding: 0.8rem 1rem; /* Slightly less padding on smaller screens */
    }

    .nav-links {
        display: none; /* Hide navigation links by default on mobile */
        flex-direction: column; /* Stack links vertically */
        position: absolute;
        top: 60px; /* Adjust based on your navbar height */
        left: 0;
        width: 100%;
        background-color: #0F214D; /* Same as navbar background */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 1rem 0;
        text-align: center;
    }
    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
      width: 100%;
        margin: 0.5rem 0; /* Spacing between stacked links */
    }

    .hamburger {
        display: block; /* Show hamburger icon on mobile */
    }

    /* Animation for hamburger icon when active (optional but nice) */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
  .hero{
    width: 100%;
    text-align: center;
    flex-direction: column-reverse;
  }
  .aboutMe{
    flex-direction: column;
    text-align: left;
    padding: 15px;
    font-size: 5px;
  }
  .mySkills{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
  }
  .skill{
    width: 80%;
    height: 170px;
  }
  .myProject{
    flex-direction: column;
  }
  .myProject .project{
    width: 90%;
  }
}