@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

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

body {
  background-color: #f7f9ff;
  color: #0d3b66;
  overflow-x: hidden;
}

/* Header Section */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9ff;
  padding: 12px 40px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  opacity: 95%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.brand {
  font-size: 1.4rem;
  font-weight: 600;
  color: #003b7a;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.auth-links a {
  text-decoration: none;
  font-weight: 600;
  color: #004080;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #007bff;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-icons a {
  color: #004080;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-icons a:hover {
  color: #007bff;
}

.icon-wrapper {
  position: relative;
}

.icon-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #004080;
  color: white;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-wrapper:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #ffffff;
  color: #004080;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1100; /* stays above everything */
  opacity: 40%;
}

.nav-toggle:hover {
  transform: scale(1.1);
  background: #f0f4ff;
  opacity: 100%;
}

.nav-toggle i {
  font-size: 1.2rem;
}

.header.hide {
  transform: translateY(-100%);
  opacity: 0;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 10%;
  background: linear-gradient(135deg, #e3f2fd, #f9fbff);
  min-height: 100vh;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #0d4d8c;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlide 1.3s ease forwards;
}

.hero-text p {
  font-size: 1.2rem;
  color: #0e4376;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlide 1.3s ease forwards 0.3s;
}

.hero-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero-image img {
  width: 90%;
  max-width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/*  VISI & MISI SECTION  */
.visi-misi {
  text-align: center;
  padding: 100px 10%;
  background-color: #eaf2ff;
}

.visi-misi h2 {
  font-size: 2rem;
  color: #0e3a66;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.visi-misi p {
  font-size: 1.3rem;
  color: #144b84;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards 0.3s;
}

.misi-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.misi-box {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  width: 320px;
  padding: 30px 25px;
  text-align: left;
  color: #333;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards;
  transition: all 0.4s ease;
}

.misi-box:nth-child(2) {
  animation-delay: 0.3s;
}
.misi-box:nth-child(3) {
  animation-delay: 0.6s;
}

/* Hover Effect */
.misi-box:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 85, 255, 0.2);
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0,1);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0,3s ease;
}

.social-links a:hover {
color: var(--accent);
transform: translateY(-3px);
}

/*  ANIMATIONS  */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/*  RESPONSIVE  */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 5%;
  }

  .hero-image {
    margin-top: 40px;
  }

  .misi-container {
    flex-direction: column;
    align-items: center;
  }

  .misi-box {
    width: 90%;
  }

  .visi-misi h2 {
    font-size: 1.8rem;
  }

  .visi-misi p {
    font-size: 1.1rem;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-right {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #0d3b66;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.4s ease;
  }

  .nav-right.active {
    display: flex;
  }

  .auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav-icons {
    gap: 20px;
  }
}
