
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kaisei HarunoUmi', serif;
}

.navbar { 
  position: fixed;
  top: 20px;
  left: 20px; 
  z-index: 1000; 
}

.dropbtn {
  background-color: #7d81e7;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.dropdown {
  position: relative;
  z-index: 1000;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #5059bc;
}


#vanta-bg {
  position: relative;
  min-height: 100vh;
  width: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}


.certification {
  padding: 80px 20px;
  width: 100%;
  max-width: 1400px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 10; /* above Vanta */
}

.certification h2 {
  font-size: 60px;
  margin-bottom: 60px;
  color: #fdfdfd;
  text-shadow: 0px 4px 4px rgba(0,0,0,0.3);
}


.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: start;
  margin: 0 auto;
}


.cert-card {
  width: 100%;
  max-width: 300px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  padding: 20px;
}

.cert-card:hover {
  transform: translateY(-10px);
}

.cert-card img {
  width: 180px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}
.page {
  transform-origin: center;
  overflow: visible;
}


@media (max-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .cert-card {
    height: auto;
    padding: 15px;
  }

  .certification h2 {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
  
  .cert-card {
    max-width: 90%;
  }

  .certification h2 {
    font-size: 36px;
    margin-bottom: 40px;
  }
}
