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

/* NAVBAR STYLING */
nav {
  width: 100%;
  height: 65px;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100;
}
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;
}

.services {
  margin-top: 75px;
  padding: 60px 20px;
  background-color: #fff;
}
.sec-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.line {
  height: 4px;
  border-radius: 12px;
  width: 100px; /* starting point */
  margin: auto;
  background-color: #0a58ca;
  animation: pulseLine 2s ease-in-out infinite alternate;
}
  
@keyframes pulseLine {
  0% {
    width: 100px;
  }
  100% {
    width: 200px;
  }
}


.container {
  max-width: 1200px;
  margin: auto;
}
.services-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 16px;
  border: 2px solid #0a58ca;
  box-shadow: 0 5px 15px #0a58ca;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.service-icon {
  font-size: 40px;
  color: #0a58ca;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 20px;
  color: #222;
  margin-bottom: 10px;
}
.service-card p {
  color: #555;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
}
.view-more-wrapper{
  display: none;
}




/* 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);
}



@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;
  }
  .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;
  }
}
@media (max-width: 680px) {
  .hidden-card {
    display: none;
  }
  .view-more-wrapper {
    text-align: center;
    margin-top: 20px;
    display: block;
  }
  #viewMoreBtn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #0a58ca;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  #viewMoreBtn:hover {
    background-color: #084298;
  }
}
@media (max-width: 480px) {
  .sec-title {
    font-size: 2rem;
  }
  .service-card {
    padding: 25px 15px;
  }
  .service-card h3 {
    font-size: 1.1rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
  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;
  }
}
@media (max-width: 426px) {
  nav > h1 {
    margin-left: 1px;
    font-size: 1.6rem;
  }
  .menu-toggle {
    width: 24px;
    height: 15px;
  }
  .bar {
    width: 20px;
    height: 3px;
  }
}
