* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* NAVBAR STYLING */
nav {
  width: 100%;
  height: 65px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  align-items: center;
  position: fixed;
  z-index: 100;
  top: 0;
}
nav > h1 {
  margin-left: 30px;
  font-size: 2rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
/* Desktop view (Navbar shown horizontally) */
nav > ul {
  margin-right: 35px;
  display: flex;
  font-weight: 700;
}
nav > ul > a {
  text-decoration: none;
  color: rgb(119, 119, 119);
  font-size: 1rem;
  padding: 0px 9px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  font-weight: 560;
  transition: color 0.5s ease, transform 0.5s ease, border-bottom 0.3s ease;
  position: relative;
  display: inline-block;
}
/* Underline effect */
nav > ul > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0a58ca;
  transition: width 0.3s ease;
}
nav > ul > a:hover::after {
  width: 100%; 
}
a.hover-effect:hover {
  color: #000;
  font-weight: 600;
  text-shadow: 0 0 80px #000, 0 0 80px #000;
}

/* HAMBURGER MENU STYLING */
.hamburgersection {
  display: none;
}
.menu-toggle {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}
.bar {
  width: 30px;
  height: 4px;
  background-color: #0a58ca;
  border-radius: 20px;
  transition: all 0.4s ease-in-out;
}
/* When the hamburger menu is clicked (active) */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.menu-toggle:hover .bar {
  background-color: #0a58ca;
}


/* PROJECT SECTION  */
#projects {
  padding: 40px 20px;
  max-width: 900px;
  margin: 80px auto;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}
.line {
  height: 4px;
  border-radius: 12px;
  width: 2px; /* starting point */
  margin: auto;
  background-color: #0a58ca;
  animation: pulseLine 2s ease-in-out infinite alternate;
}
  
@keyframes pulseLine {
  0% {
    width: 100px;
  }
  100% {
    width: 200px;
  }
}


.slider-container {
  margin-top: 75px; /* 65px navbar height + 10px gap */
  border: 2px solid #0a58ca;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 88, 202, 1);
  background: #fff;
  padding: 0 20px;
  box-sizing: border-box;
}


.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 0;
}
.slider-wrapper > .project-card:last-child {
  margin-right: 0;
}
.project-card {
  flex: 0 0 100%;
  max-width: 100%;
  margin-right: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.project-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.project-card h3 {
  margin: 20px 0 10px;
  color: #222;
}
.project-card p {
  color: #555;
  font-size: 1rem;
}
.project-card a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0a58ca;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.project-card a:hover {
  background-color: #0056b3;
}
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0a58ca;
  border: none;
  color: white;
  font-size: 28px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  z-index: 10;
  transition: background-color 0.3s ease;
}
.prev:hover,
.next:hover {
  background-color: #144b9e;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* FOOTER STYLIING */
footer {
  width: 100%;
  height: 390px;
  background-color: #111;
  color: whitesmoke;
  display: flex;
  flex-direction: column;
}
footer > .first,
.second,
.third {
  margin: 6px 75px;
}
footer > div > h1 {
  color: #0a58ca;
  font-size: 1.6rem;
  margin: 0px 20px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}
footer > .first > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
}
footer > .second > a {
  display: inline-block;
  padding: 8px 16px;
  margin: 5px 0px;
  border: 1px solid #0a58ca;
  color: #0a58ca;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
footer > .second > a:hover {
  background-color: #0a58ca;
  color: black;
  box-shadow: 0 0 8px #0a58ca;
}
footer > .third > a {
  color: whitesmoke;
  font-size: 1.4rem;
  margin: 0 12px;
  transition: color 0.3s ease-in-out;
}
footer > .third > a:hover {
  color: #0a58ca;
  text-shadow: 0 0 24px #0a58ca;
}

footer > .fourth {
  position: relative;
}
footer > .fourth > p {
  margin-top: 30px;
  border-top: 1px solid #333;
  color: white;
  font-size: 1rem;
  padding-top: 12px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 1px;
}
footer > .fourth > .back-to-top {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #111, #333);
  color: white;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
  z-index: 1;
  cursor: pointer;
}
.back-to-top:hover {
  background: linear-gradient(135deg, #333, #555);
  transform: scale(1.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}



/* Responsive button positions */
@media (max-width:1024px){
  nav {
    display: flex;
    gap: 10px;
  }
  nav > ul > a {
    padding: 0px 6px;
  }
  footer > .fourth > .back-to-top {
    display: none;
  }
}
@media (max-width: 991px) {
  footer {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }
  footer > .first,
  footer > .second,
  footer > .third {
    margin: 10px 30px;
    text-align: center;
  }
  footer > div > h1 {
    font-size: 1.4rem;
  }
  footer > .first > p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  footer > .second > a {
    font-size: 0.8rem;
  }
  footer > .third {
    margin-top: 15px;
  }
  footer > .third > a {
    font-size: 1.2rem;
    margin: 0 8px;
  }
  footer > .fourth > p {
    font-size: 0.9rem;
    margin-top: 20px;
  }
}
@media (max-width: 768px) {
  nav {
    display: flex;
    justify-content: space-around;
  }
  /* nav > ul {
    display: none;
  } */
  .hamburgersection {
    display: block;
  }
  nav > ul {
    flex-direction: column;
    position: fixed;
    top: 65px;
    margin-right: 0px;
    right: -100%;
    width: 130px;
    height: 326px;
    background-color: #111;
    border-top-left-radius:8px;
    border-bottom-left-radius:8px;
    padding: 10px;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  nav > ul.active {
    right: 0;
  }
  nav > ul a {
    color: white;
    display: block;
    margin-bottom: 20px;
  }
  a.hover-effect:hover {
  color: #fff;
  }
  footer {
    padding: 15px 0;
  }
  footer > .first,
  footer > .second,
  footer > .third {
    margin: 8px 20px;
  }
  footer > div > h1 {
    font-size: 1.2rem;
  }
  footer > .first > p {
    font-size: 0.8rem;
  }
  footer > .second > a {
    font-size: 0.75rem;
  }
  footer > .third > a {
    font-size: 1rem;
    margin: 0 6px;
  }
  footer > .fourth > p {
    font-size: 0.8rem;
  }
  .slider-wrapper {
    gap: 0; /* gap hatao responsive mein bhi */
  }
  .project-card {
    flex: 0 0 100%; /* full width */
    max-width: 100%;
    margin-right: 20px; /* card ke beech space */
  }
  .slider-wrapper > .project-card:last-child {
    margin-right: 0;
  }

  .prev {
    left: 8px;
  }
  .next {
    right: 8px;
  }
  .project-card img {
    height: auto;
  }
  .project-card>p{
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  footer > div > h1 {
    font-size: 1rem;
  }
  footer > .first > p {
    font-size: 0.7rem;
  }
  footer > .second > a {
    font-size: 0.6rem;
  }
  footer > .third > a {
    font-size: 0.9rem;
  }
  footer > .fourth > p {
    font-size: 0.7rem;
  }
  .slider-wrapper {
    gap: 0;
  }
  .project-card {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 16px;
  }
  .slider-wrapper > .project-card:last-child {
    margin-right: 0;
  }

  .prev {
    left: 6px;
    font-size: 24px;
    padding: 10px 14px;
  }
  .next {
    right: 6px;
    font-size: 24px;
    padding: 10px 14px;
  }

  .project-card img {
    height: auto;
  }
}
@media (max-width: 426px) {
  nav > h1 {
    margin-left: 1px;
    font-size: 1.6rem;
  }
  .menu-toggle {
    width: 24px;
    height: 15px;
  }
  .bar {
    width: 20px;
    height: 3px;
  }
}