header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; 
}

/*Navbar Section */
.navbar {
    display: flex;
    align-items: center;
    box-shadow: 5px 5px 5px 5px gray;   
}

.navbar-title {
  padding-top: 5px;
  margin-left: 10px;
  margin-right: 32px;
}

.navbar-title a {
    color: blue;
    text-decoration: none;
    padding: 15px 0;
}

.navbar-links {
    display: flex;
    gap: 16px;
    padding: 15px 0;
    margin-left: auto;
    margin-right: 16px;
}

.navbar-links a {
    color: rgb(2, 2, 118);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.navbar-button button,
.navbar-button a {
    border-radius: 10px;
    text-decoration: none;
    color: #FFF; 
    border-style: none;
    padding: 10px;
}

.navbar-links a:last-child {
  border-radius: 10px;
  text-decoration: none;
  color: #FFF;
  background-color: blue;
  border: none;
  padding: 10px;
}

.navbar-links a:hover,
.navbar-links a:hover {
    background-color: rgb(1, 1, 101);
    transition: background 0.2s, color 0.2s;
    color: white;
}

.sidebar{
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  padding-top: 10px;
  top: 60px;
  background-color: white;
  font-size: 24px;
  width: 100%;
  box-shadow: 5px 5px 5px gray;
  margin-bottom: 10px;
}

.sidebar a{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 10px 0;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}

.sidebar a:hover{
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(1, 1, 101);
  color: white;
  width: 100%;

}
.hamburger{
  display: none;
  cursor: pointer;
  color: blue;
  margin-right: 20px;
}

.hamburger:hover{
  background-color: rgb(1, 1, 101);
  color: white;
}

.close{
  display: none;
  cursor: pointer;
  color: blue;
  margin-right: 20px;
}

.close:hover{
  background-color: rgb(1, 1, 101);
  color: white;
}

.sidebar.active {
  display: flex !important;
}

.hamburger.hide {
  display: none !important;
}

.close.active {
  display: block !important;
}

/* Home Section */
#home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110vh;

    /* Animation */
    animation: slideDown 0.75s ease-in;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Optional: center horizontally */
    gap: 250px;               /* Space between text and image */
    color: rgb(2, 2, 118);
    overflow: hidden;
}

.home-content h1 {
    font-size: 60px;
    color: rgb(2, 2, 118);
    margin-bottom: 10px;
    text-align: center;
}
.home-text {
    margin-left: 150px; /* Add spacing between image and text */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-content h3{
    display: block;
    font-size: 20px;
    color: blue;
    text-align: center;
}

.home-content img{
    width: 400px;
    height: 400px;
    border-radius: 50%;
    display: block;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between multiple icons */
}

.links i {
    color: blue;
    font-size: 24px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 100px;
    padding: 11px;
    border: 2px solid;
    border-color: blue;
}

.links i:hover {
    background-color: blue;
    color: white;
    transition: background-color 1.0s ease;
}

.links .fa-facebook-f {
    padding: 11px 15px;;
}

hr {
    position: relative;
    bottom: 0;
}
/* About Section */
#about {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    scroll-margin-top: 50px;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-left: 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgb(2, 2, 118);
    overflow: hidden;
}

.about-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  width: 80%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 1s, transform 1s;
}

.about-content img {
    width: 400px;
    height: 500px;
    display: block;
}

.about-text { 
    width: 60%;
    font-size: 20px;
}

.about-text p{
    color: blue;
}

/* Skills Section */
#skills {
  min-height: 100vh;
  height: auto;
  scroll-margin-top: 120px;
  margin-bottom: 100px;
}

.skills-content{
    opacity: 0;
    transform: translateY(-50px); /* or translateX if you want horizontal */
    transition: all 0.6s ease-out;
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.skills-card:only-child,
.skills-card:last-child:nth-child(odd) {
  grid-column: span 2;
}

.skills-card {
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 12px;
  width: auto;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.skills-card:hover {
  transform: translateY(-5px);
}

.skills-card h2 {
  text-align: center;
  margin-bottom: 15px;
  color: rgb(2, 2, 118);
}


.skill-item {
    display: flex;
    flex-direction: row;      /* Side by side: img | skill-item-progress */
    align-items: center;      /* Vertically center both */
    gap: 16px;                /* Space between img and progress */
}

.skill-item img{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item-progress {
    display: flex;
    flex-direction: column;
    align-items: center;       /* Center skill name and level */
    text-align: center;
}

.skill-level {
  font-weight: bold;
  color: #c40000;
  width: 89px;
  text-align: left;
}

.skill-item .skill-level {
    font-size: 0.95em;
    color: blue;         /* Or your preferred color */
    margin-top: 2px;        /* Optional: space above level */
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 columns, adjust as needed */
    gap: 12px; /* space between items */    
    justify-items: center; /* Center items inside each grid cell */
}

.skill-name{
    width: 89px;
    text-align: left;
    color: rgb(2, 2, 118);
}
/*  
    display: flex;
    align-items: center;
    justify-content: center;
*/

.lnf-skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 columns, adjust as needed */
    gap: 12px; /* space between items */    
    justify-items: center; /* Center items inside each grid cell */
}

/*Projects Section */
#projects {
  min-height: 100vh;
  height: auto;
  scroll-margin-top: 120px;
  margin-bottom: 100px;
}


.projects-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.projects-content{
    opacity: 0;
    transform: translateY(-50px); /* or translateX if you want horizontal */
    transition: all 0.6s ease-out;
}

/* .projects-card:only-child,
.projects-card:last-child:nth-child(odd) {
  grid-column: span 2;
} */

.projects-card {
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 12px;
  width: auto;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.projects-card:hover {
  transform: translateY(-5px);
}

.projects-card h2 {
  text-align: center;
  margin-bottom: 15px;
  color: rgb(2, 2, 118);
}


.projects-item {
    display: flex;
    flex-direction: row;      /* Side by side: img | skill-item-progress */
    align-items: center;      /* Vertically center both */
    gap: 16px;                /* Space between img and progress */
}

.projects-item-overview {
    display: flex;
    flex-direction: column;
}

.projects-item:last-child {
  border-bottom: none;
}

.projects-item-progress {
    display: flex;
    flex-direction: column;
}

.projects-form {
  color: #c40000;
  width: 100%;
  text-align: left;
}

.projects-item .projects-form {
    font-size: 0.95em;
    color: blue;         /* Or your preferred color */
    margin-top: 2px;        /* Optional: space above level */
}


.projects-name{
    font-weight: bold;
    width: 100%;
    text-align: left;
    color: rgb(2, 2, 118);
}
/*  
    display: flex;
    align-items: center;
    justify-content: center;
*/

.lnf-projects-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 columns, adjust as needed */
    gap: 12px; /* space between items */    
    justify-items: center; /* Center items inside each grid cell */
}

.projects-list{
    position: relative
}

.projects-description{
    text-align: left;
    color: rgb(2, 2, 118);
}

/* Container handles spacing between buttons */
.projects-button {
  display: flex;
  gap: 50px;  
  justify-content: center;
}
/* Each button handles spacing between icon and text */
.projects-button > button {
  display: flex;
  align-items: center; /* vertically center icon & text */
  justify-content: center;
  gap: 8px;            /* small space between icon and text */
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid black;
  border-style: none;
}



.projects-button .figma-style {
  background-color: #1E1E1E !important;
  color: rgb(30, 30, 30); /* optional, for text */
}

.projects-button .figma-style:hover {
  background-color: rgb(61, 61, 61) !important;
  color: white; 
}

.projects-button > button:first-of-type:hover {
  background-color: rgb(2, 2, 172);
  color: white;
  transition: all 0.2s ease;
}

/* Second button style (Live Demo) */
.projects-button > button:last-of-type {
  background-color: white;
  color: gray;
  border: solid 1px gray;
  width: 80%;
}

.projects-button > button:last-of-type:hover {
  background-color: rgb(220, 219, 219);
  color: rgb(255, 255, 255);
  border-style: none;
  transition: all 0.2s ease;    
}

.projects-slideshow-prev,
.projects-slideshow-next {
  display: none; /* hidden by default */
  cursor: pointer;
  position: absolute;
  top: 40%; /* center vertically */
  transform: translateY(-50%);
  padding: 16px;
  color: black;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 3px;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

/* Show arrows when hovering over the slideshow */
.projects-slideshow:hover .projects-slideshow-prev,
.projects-slideshow:hover .projects-slideshow-next {
  display: block;
}

/* Position left and right */
.projects-slideshow-prev {
  left: 0;
}

.projects-slideshow-next {
  right: 0;
}

.projects-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.projects-dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 10px 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.projects-dot.active {
  background-color: #717171; /* highlight active */
}

.projects-slideshow-images {
  display: none; /* hide all slides by default */
}

.projects-slideshow-images:first-child {
  display: block; /* show first one on load */
}

.projects-slideshow {
  position: relative;
  margin: auto;
  overflow: hidden;
}

.projects-slideshow-wrapper {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.projects-slideshow-images {
  flex: 0 0 100%; /* each slide takes 100% of container */
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-slideshow-images img {
  width: 100%;
  height: auto; /* keeps aspect ratio */
  object-fit: cover; /* makes all slides look uniform */
}

#contact {
  /* display: none; */
  min-height: 100vh;
  height: auto;
  scroll-margin-top: 120px;
}

.contact-content{
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 1s, transform 1s;
}

.contact-details{
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgb(255, 255, 255);
}

.contact-info h2{
  margin-top: 20px;
  text-align: center;
  color: rgb(2, 2, 118);
}


.contact-locations ul{
  height: 100% ;
  margin-top: 100px;
  list-style-type: none;
}

.contact-locations strong{
  font-size: 20px;
  color: rgb(2, 2, 118);
}

.contact-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 10px;
}

.contact-details:hover,
.contact-form:hover {
  transform: translateY(-5px);
  transition: transform 0.2s;
}

.contact-locations i {
  color: blue;
  font-size: 30px;
  margin-right: 10px;
}

.contact-locations li{
  margin: 30px 0;
}

.contact-links {
  margin: 10px 0;
  gap: 5px; /* Space between multiple icons */
}

.contact-links i {
  color: blue;
  font-size: 24px;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 100px;
  padding: 11px;
}

.contact-links i:hover {
  background-color: blue;
  color: white;
  transition: background-color 1.0s ease;
}

.contact-links .fa-facebook-f {
  padding: 11px 15px;;
}

.contact-form{
  background: rgb(255, 255, 255);
  border-radius: 10px;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  margin: 20px;
  color: rgb(2, 2, 118);
}

.contact-form p{
  margin-left: 20px;
}

.contact-form label{
  margin-left:20px;
  font-size: large;
  color: rgb(2, 2, 118);
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  margin: 10px 20px;
  width: 90%;
  height: 40px;
  padding: 10px;
  border: 1px solid #4a4a4a;
  border-radius: 10px;
  color: rgb(2, 2, 118);
}

/* .contact-form input:focus,
.contact-form textarea:focus {
  color: rgb(2, 2, 118);
} */

.contact-form textarea {
  color: rgb(2, 2, 118);
  padding: 10px;
  margin: 10px 20px;
  width: 90%;
  height: 200px;
  border-radius: 10px;
  resize: none;
}

.contact-form input[type="button"] {
  margin: 20px 20px;
  padding: 10px 20px; /* Add better padding */
  background-color: blue;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  width: 90%;
}

.contact-form input[type="button"]:hover{
  background-color: rgb(2, 2, 118);;
  color: white;
  transition: background 0.2s, color 0.2s;
}

.contact-form p{
    color: blue;
}

.text-primary{
  color: rgb(2, 2, 118) !important;
}

/* For small laptops, notebooks tablets(landscape) */
@media (min-width: 992px) and (max-width: 1200px){
  html{
    width: 100%;
  }

  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; 
}

  /*Navbar Section */
  .navbar {
      display: flex;
      align-items: center;
      box-shadow: 5px 5px 5px 5px gray;   
  }

  .navbar-title {
    padding-top: 5px;
    margin-left: 10px;
    margin-right: 32px;
  }   

  .navbar-title a {
      color: blue;
      text-decoration: none;
  }

  .navbar-links {
      display: flex;
      gap: 16px;
      padding: 15px 0;
      margin-left: auto;
      margin-right: 16px;
  }

  .navbar-links a {
      color: rgb(2, 2, 118);
      text-decoration: none;
      padding: 10px 14px;
      border-radius: 10px;
      transition: background 0.2s, color 0.2s;
  }

  .navbar-button button,
  .navbar-button a {
      border-radius: 10px;
      text-decoration: none;
      color: #FFF; 
      border-style: none;
      padding: 10px;
  }


  .navbar-links a:last-child {
    border-radius: 10px;
    text-decoration: none;
    color: #FFF;
    background-color: blue;
    border: none;
    padding: 10px;
  }

  .navbar-links a:hover,
  .navbar-links a:hover {
      background-color: rgb(1, 1, 101);
      transition: background 0.2s, color 0.2s;
      color: white;
  }

  .sidebar{
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    padding-top: 10px;
    top: 60px;
    background-color: white;
    font-size: 24px;
    width: 100%;
    box-shadow: 5px 5px 5px gray;
    margin-bottom: 10px;
  }

  .sidebar a{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    width: 100%;
    transition: background 0.2s, color 0.2s;
  }

  .sidebar a:hover{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(1, 1, 101);
    color: white;
    width: 100%;

  }
  .hamburger{
    display: none;
    cursor: pointer;
    color: blue;
    margin-right: 20px;

  }

  .hamburger:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .close{
    display: none;
    cursor: pointer;
    color: blue;
    margin-right: 20px;
  }

  .close:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .home-content {
      display: flex;
      align-items: center;
      justify-content: center; /* Optional: center horizontally */
      gap: 120px;               /* Space between text and image */
      color: rgb(2, 2, 118);
      overflow: hidden;
  }

  .home-content h1 {
      font-size: 30px;
      color: rgb(2, 2, 118);
      margin-bottom: 10px;
      text-align: center;
  }
  .home-text {
      margin-left: 150px; /* Add spacing between image and text */
      display: flex;
      flex-direction: column;
      justify-content: center;
  }

  .home-content h3{
      display: block;
      font-size: 20px;
      color: blue;
      text-align: center;
  }

  .home-content img{
      width: 350px;
      height: 350px;
      border-radius: 50%;
      margin-right: 10px
  }

  .about-text {
    width: 80%;
    font-size: 15px;
  }

  #skills {
  min-height: 0;
  height: auto;
  scroll-margin-top: 120px;
  margin-bottom: 100px;
  }

  #projects{
    min-height: 0;
  }

  #contact {
  /* display: none; */
  min-height: 0;
  height: auto;
  scroll-margin-top: 120px;
  }

}

/* For tablets (portrait) */
@media (min-width: 768px) and (max-width: 992px){
    header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; 
  }

  /*Navbar Section */
  .navbar {
      display: flex;
      align-items: center;
      box-shadow: 5px 5px 5px 5px gray;   
  }

  .navbar-title {
    padding-top: 5px;
    margin-left: 10px;
    margin-right: 32px;
  }

  .navbar-title a {
      color: blue;
      text-decoration: none;
  }

  .navbar-links {
      display: none;
      gap: 16px;
      padding: 15px 0;
      margin-left: auto;
      margin-right: 16px;
  }

  .navbar-links a {
      color: rgb(2, 2, 118);
      text-decoration: none;
      padding: 10px 14px;
      border-radius: 10px;
      transition: background 0.2s, color 0.2s;
  }

  .navbar-button button,
  .navbar-button a {
      border-radius: 10px;
      text-decoration: none;
      color: #FFF; 
      border-style: none;
      padding: 10px;
  }


  .navbar-links a:last-child {
    border-radius: 10px;
    text-decoration: none;
    color: #FFF;
    background-color: blue;
    border: none;
    padding: 10px;
  }

  .navbar-links a:hover,
  .navbar-links a:hover {
      background-color: rgb(1, 1, 101);
      transition: background 0.2s, color 0.2s;
      color: white;
  }

  .sidebar{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    padding-top: 10px;
    top: 50px;
    background-color: white;
    font-size: 24px;
    width: 100%;
    box-shadow: 5px 5px 5px gray;
    margin-bottom: 10px;
  }

  .sidebar a{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    width: 100%;
    transition: background 0.2s, color 0.2s;
  }

  .sidebar a:hover{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(1, 1, 101);
    color: white;
    width: 100%;

  }
  .hamburger{
    display: block;
    cursor: pointer;
    color: blue;
    margin-right: 20px;
  }

  .hamburger:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .close{
    display: none;
    cursor: pointer;
    color: blue;
    margin-right: 20px;
  }

  .close:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .home-content {
      margin-top: 100px;
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center; 
      gap: 12px;               
      color: rgb(2, 2, 118);
      overflow: hidden;
  }

  .home-text {
    margin-left: 0;
    display: flex;
  }

  .home-content img{
      width: 350px;
      height: 350px;
      border-radius: 50%;
      margin-right: 10px
  }

  .about-content-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 50px;
  }

  .about-content img {
    width: 300px;
    height: 400px;
    display: block;
  }
  .about-text { 
    width: 80%;
    font-size: 20px;
    text-align: center;
  }

  .about-content img {
    width: 450px;
    height: 400px;
    display: block;
  }

  #skills {
    min-height: 100vh;
    height: auto;
    scroll-margin-top: 120px;
  }

  .skills-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .skills-card {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    width: auto;
    padding: 20px;
  }
/* 
  #projects {
      max-height: 85vh;
      height: 85vh;
      position: relative;
      scroll-margin-top: 120px;
  } */

  .projects-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  #contact {
    /* display: none; */
    min-height: 100vh;
    height: auto;
    scroll-margin-top: 120px;
  }

  .contact-groups {
    display: block;
  }
}

@media (min-width: 576px) and (max-width: 768px){
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; 
  }

  /*Navbar Section */
  .navbar {
      display: flex;
      align-items: center;
      box-shadow: 5px 5px 5px 5px gray;   
  }

  .navbar-title {
    padding-top: 5px;
    margin-left: 10px;
    margin-right: 32px;
  }

  .navbar-title a {
      color: blue;
      text-decoration: none;
  }

  .navbar-links {
      display: none;
      gap: 16px;
      padding: 15px 0;
      margin-left: auto;
      margin-right: 16px;
  }

  .navbar-links a {
      color: rgb(2, 2, 118);
      text-decoration: none;
      padding: 10px 14px;
      border-radius: 10px;
      transition: background 0.2s, color 0.2s;
  }

  .navbar-button button,
  .navbar-button a {
      border-radius: 10px;
      text-decoration: none;
      color: #FFF; 
      border-style: none;
      padding: 10px;
  }


  .navbar-links a:last-child {
    border-radius: 10px;
    text-decoration: none;
    color: #FFF;
    background-color: blue;
    border: none;
    padding: 10px;
  }

  .navbar-links a:hover,
  .navbar-links a:hover {
      background-color: rgb(1, 1, 101);
      transition: background 0.2s, color 0.2s;
      color: white;
  }

  .sidebar{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    padding-top: 10px;
    top: 50px;
    background-color: white;
    font-size: 24px;
    width: 100%;
    box-shadow: 5px 5px 5px gray;
    margin-bottom: 10px;
  }

  .sidebar a{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    width: 100%;
    transition: background 0.2s, color 0.2s;
  }

  .sidebar a:hover{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(1, 1, 101);
    color: white;
    width: 100%;

  }
  .hamburger{
    display: block;
    cursor: pointer;
    color: blue;
    margin-right: 20px;
  }

  .hamburger:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .close{
    display: none;
    cursor: pointer;
    color: blue;
    margin-right: 20px;
  }

  .close:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .home-content {
      margin-top: 100px;
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center; 
      gap: 12px;               
      color: rgb(2, 2, 118);
      overflow: hidden;
  }

  .home-text {
    margin-left: 0;
    display: flex;
  }

  .home-content img{
      width: 350px;
      height: 350px;
      border-radius: 50%;
      margin-right: 10px
  }

  .about-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .about-text { 
    width: 80%;
    font-size: 15px;
    text-align: center;
  }

  .about-content img {
    width: 450px;
    height: 400px;
    display: block;
  }

  #skills {
    height: 125vh;
    position: relative;
    scroll-margin-top: 120px;
}

  .skills-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .skills-card {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    width: auto;
    padding: 20px;
  }

  /* #projects {
      max-height: 85vh;
      height: 85vh;
      position: relative;
      scroll-margin-top: 120px;
  } */

  .projects-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
  }

  .contact-groups {
    display: block;
  }
}


@media (max-width: 576px){
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; 
  }

  .navbar {
    display: flex;
    align-items: center;
    box-shadow: 5px 5px 5px 5px gray;   
  }

  .navbar-title {
    padding-top: 5px;
    margin-left: 10px;
    margin-right: 32px;
  }

  .navbar-links{
    display: none;
  }

  .sidebar{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    }

    .sidebar{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    padding-top: 10px;
    top: 50px;
    background-color: white;
    font-size: 24px;
    width: 100%;
    box-shadow: 5px 5px 5px gray;
    margin-bottom: 10px;
  }

  .sidebar a{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 0;
    width: 100%;
    transition: background 0.2s, color 0.2s;
  }

  .sidebar a:hover{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(1, 1, 101);
    color: white;
    width: 100%;

  }
  .hamburger{
    display: block;
    cursor: pointer;
    color: blue;
    margin-right: 20px;
  }

  .hamburger:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .close{
    display: none;
    cursor: pointer;
    color: blue;
    margin-right: 20px;
  }

  .close:hover{
    background-color: rgb(1, 1, 101);
    color: white;
  }

  .home-content {
      margin-top: 100px;
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center; 
      gap: 12px;               
      color: rgb(2, 2, 118);
      overflow: hidden;
  }

  .home-text {
    margin-left: 0;
  }

  .home-text h1{
   font-size: 50px;
  }

  .home-content img{
      width: 350px;
      height: 300px;
      border-radius: 50%;
  }

  .about-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .about-text { 
    width: 100%;
    font-size: 15px;
    text-align: center;
  }

  .about-content img {
    width: 350px;
    height: 300px;
    display: block;
  }

  #skills {
    min-height: 100vh;
    height: auto;
    scroll-margin-top: 120px;
    margin-bottom: 50px;
  }

  .skills-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .skills-card {
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 12px;
    width: auto;
    padding: 20px;
    padding-left: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
  }

  .skills-card h2 {
    text-align: center;
    margin-bottom: 15px;
    color: rgb(2, 2, 118);
  }
  
  .skill-item {
    display: flex;
    align-items: center;      /* Vertically center both */
    gap: 4px;                /* Space between img and progress */
    
  }

  .skill-item img{
      display: flex;
      align-items: center;
      width: 20px;
      height: 20px;
  }

  .skill-item:last-child {
    border-bottom: none;
  }

  .skill-item-progress {
      display: flex;
      flex-direction: column;
      align-items: center;       /* Center skill name and level */
      text-align: center;
  }

  .skill-name{
    width: 89px;
    text-align: left;
    color: rgb(2, 2, 118);
    font-size: 10pt;
  }

    .skill-level {
      font-weight: bold;
      color: #c40000;
      width: 89px;
      text-align: left;
    }

    .skill-item .skill-level {
        font-size: 0.75em;
        color: blue;         /* Or your preferred color */
        margin-top: 2px;        /* Optional: space above level */
    }

    .skills-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 2 columns, adjust as needed */
        gap: 2px; /* space between items */    
    }

    .lnf-skills-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 columns, adjust as needed */
    gap: 2px; /* space between items */    
    justify-items: center; /* Center items inside each grid cell */
  }

  /*Projects Section */
  #projects {
    min-height: 100vh;
    height: auto;
    scroll-margin-top: 120px;
    margin-bottom: 50px;
  }

  .projects-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }

  .contact-groups {
    display: block
  }

  .contact-details{
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgb(255, 255, 255);
  }

  .contact-details{
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgb(255, 255, 255);
  }

  .contact-info h2{
    margin-top: 20px;
    text-align: center;
    color: rgb(2, 2, 118);
  }


  .contact-locations ul{
    height: 100% ;
    margin-top: 50px;
    list-style-type: none;
  }

  .contact-locations strong{
    font-size: 20px;
    color: rgb(2, 2, 118);
  }
}
/* @media (max-width: 376px){
  #skills + hr {
    display: none;
  }
} */