@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

body {
  background: url("/pics/logobaru4.png") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  padding-bottom: 100px; /* or more if you want extra scroll space */
  display: flex;
  flex-direction: column; /* allows vertical stacking & scrolling */
  justify-content: flex-start;
  align-items: center;
}

/* WRAPPER */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  flex-direction: column;
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background: linear-gradient(rgba(39, 39, 39, 1), transparent);
  z-index: 100;
}

/* Logo + Title */
.nav-logo .logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

/* Menu Links */
.nav-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-menu ul li .link {
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  padding-bottom: 5px;
  transition: border-color 0.3s ease;
}

.nav-menu ul li .link:hover,
.nav-menu ul li .link.active {
  border-bottom: 2px solid #fff;
}

/* Buttons */
.nav-button {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-signin,
.btn-signup,
.btn-profile {
  background: linear-gradient(135deg, #306a93, #01419c);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-signin:hover,
.btn-signup:hover,
.btn-profile:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(48,106,147,0.7);
}

/* Mobile menu icon */
.nav-menu-btn {
  display: none;
  font-size: 28px;
  color: #fff;
}


/* HERO SECTION */
.hero-section {
  min-height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===== UPGRADED CARD DESIGN ===== */
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(35px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 100%;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  color: #fff;
  animation: fadeIn 1.2s ease;
  border: 2px solid #ffffff; /* White outline */
}

/* Hover glow */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(48, 106, 147, 1), 0 0 40px rgba(1, 65, 156, 1);
  border: 2px solid rgba(48, 106, 147, 1); /* Blue neon outline on hover */
}

/* Card header */
.card-header {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 18px 20px;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(48,106,147,0.8);
}

/* Card body */
.card-body {
  padding: 20px;
}

.card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Gradient button */
.card-btn {
  display: inline-block;
  background: linear-gradient(135deg, #306a93, #01419c);
  color: #fff;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(1,65,156,0.5);
  width: 100%;
  margin-top: 20px;
}

.card-btn:hover {
  background: linear-gradient(135deg, #01419c, #306a93);
  color: #ffffff; /* ✅ make text white */
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(48,106,147,0.8);
  border: 1px solid #ffffff; /* optional: adds subtle white edge */
}


/* Input fields */
.card-input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.card-input:focus {
  border-color: #306a93;
  box-shadow: 0 0 10px rgba(48,106,147,0.6);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */


/* ✅ Navbar Profile Button */
.btn-profile {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.btn-profile:hover,
.btn-profile:focus {
  background-color: #004aad;
  color: #ffffff;
}
/* Fix: keep text white on hover for Sign In / Sign Up buttons */
.btn-signin:hover,
.btn-signup:hover {
  color: #ffffff !important;
}
/* Make My Profile button match Sign In / Sign Up buttons */
.btn-profile {
  background: linear-gradient(135deg, #306a93, #01419c) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
}

.btn-profile:hover,
.btn-profile:focus {
  background: linear-gradient(135deg, #01419c, #306a93) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(48,106,147,0.7);
}
/* Fix navbar alignment consistency */
.nav {
  height: 120px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 60px !important;
  background: linear-gradient(rgba(39, 39, 39, 1), transparent) !important;
}


/* ===========================
   MOBILE ONLY (max-width: 768px)
   =========================== */

@media (max-width: 768px) {

  /* NAVBAR */
  .nav {
    position: relative !important;
    height: auto !important;
    padding: 0 75px !important;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    margin-top: 15px;
    background: linear-gradient(rgba(39, 39, 39, 1), transparent);
  }

  .nav-logo {
    width: 100%;
    margin: 10px;
    display: flex;
    justify-content: center;
  }

  .nav-logo .logo {
    width: 50px;
    height: 50px;
  }

  .site-title {
    font-size: 1.3rem;
  }

  /* HAMBURGER BUTTON */
  .nav-menu-btn {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: #2f79e0;
    position: absolute;
    right: 25px;
    top: 20px;
  }

  /* MOBILE MENU (CLOSED) */
  .nav-menu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  /* MOBILE MENU (OPEN) */
  .nav.active .nav-menu {
    max-height: 400px;
    opacity: 1;
    margin-top: 15px;
  }

  .nav-menu ul {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .nav-menu ul li .link {
    font-size: 1rem;
    padding: 6px 0;
    text-align: center;
  }

  /* SIGN IN / SIGN UP / PROFILE BUTTONS */
  .nav-button {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    gap: 12px;
  }

  .btn-signin,
  .btn-signup,
  .btn-profile {
    width: 85%;
    text-align: center;
    padding: 10px 0;
    font-size: 1rem;
  }

  /* HERO / CARD */
  .card {
    max-width: 90% !important;
    padding: 20px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 0.95rem;
  }

  .card-btn {
    width: 100%;
    padding: 12px;
  }
}