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

/* ========== CERTIFICATION SECTION ========== */
.certification-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title {
  margin-top: 50px;
  font-size: 2.5rem;
  color: #0a58ca;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.line {
  height: 4px;
  border-radius: 12px;
  width: 100px;
  margin: auto;
  background-color: #0a58ca;
  margin-bottom: 40px;
  animation: pulseLine 0.6s ease-in-out infinite alternate;
}

@keyframes pulseLine {
  0% {
    width: 100px;
  }
  100% {
    width: 200px;
  }
}

.certifications-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* ========== CERTIFICATE CARD ========== */
.card {
  width: 450px;
  height: 300px;
  background-color: wheat;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about1 {
  width: 100%;
  background-color: #000000;
  padding: 20px 30px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
  color: white;
  transition: all 0.5s ease-in-out;
}

.about2 {
  color: white;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.819);
  padding: 30px;
  position: absolute;
  top: 100%;
  left: 0;
  transition: all 0.5s ease-in-out;
}

.card:hover .about1 {
  bottom: -50%;
}

.card:hover .about2 {
  top: 0;
}

.card h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  margin-bottom: 20px;
}

.card a {
  padding: 10px 25px;
  border-radius: 5px;
  background-color: black;
  text-decoration: none;
  color: white;
  display: inline-block;
}
.view-more-btn{
    display: none;
}

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

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;
}

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

.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;
}

/* ========== FOOTER ========== */
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 QUERIES ========== */
@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;
  }

  .card {
    width: 90%;
    height: 280px;
  }

  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) {
  .certifications-container .card:nth-child(7),
  .certifications-container .card:nth-child(8) {
    display: none;
  }

  .view-more-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 16px;
    background-color: #0a58ca;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  /* When showing extra cards */
  .show-extra .certifications-container .card:nth-child(7),
  .show-extra .certifications-container .card:nth-child(8) {
    display: flex;
  }
}
@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;
  }

  .card {
    width: 100%;
    height: 260px;
  }

  .card h2 {
    font-size: 22px;
  }

  .card p {
    font-size: 14px;
  }

  .card a {
    font-size: 13px;
    padding: 8px 20px;
  }

  .section-title {
    font-size: 28px;
  }
}
@media (max-width: 426px) {
  nav > h1 {
    margin-left: 1px;
    font-size: 1.6rem;
  }

  .menu-toggle {
    width: 24px;
    height: 15px;
  }

  .bar {
    width: 20px;
    height: 3px;
  }
}
