/* Reset & Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kaisei HarunoUmi', serif;
}

/* Navbar / Dropdown */
.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 background */
#vanta-bg {
  position: relative;
  min-height: 100vh;
  width: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Education Section */
.education {
  padding: 80px 20px;
  width: 100%;
  max-width: 1400px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 10; /* above Vanta */
}

.education .title {
  font-size: 60px;
  margin-bottom: 60px;
  text-shadow: 0 4px 4px rgba(0,0,0,0.3);
}

/* Grid for Cards */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  justify-items: center;
  align-items: start;
  margin: 0 auto;
}

/* Individual Cards */
.edu-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 450px;
}

.edu-card:hover {
  transform: translateY(-10px);
}

.edu-card img {
  width: 180px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 20px;
}

.edu-card h2 {
  margin-bottom: 10px;
}

.edu-card p {
  font-size: 16px;
  line-height: 1.5;
}
.page {
  transform-origin: center;
  overflow: visible;
}
/* Responsive */
@media (max-width: 1024px) {
  .edu-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .education .title {
    font-size: 48px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .edu-card {
    max-width: 90%;
  }

  .education .title {
    font-size: 36px;
    margin-bottom: 30px;
  }
}
