@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: url("pics/logobaru4.png") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

/* ===== Awareness Container ===== */
.awareness-container {
  text-align: center;
  margin-top: 100px;
  padding: 0 20px;
  color: #ffffff;
  animation: cyberFade 0.8s ease forwards;
}

/* ===== 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: 1000;
}

/* Logo + Title */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.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;
  border: none;
  transition: all 0.3s ease;
}

.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;
  cursor: pointer;
}

/* ===== Title Card ===== */
.title-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 30px;
  margin: 0 auto 25px;
  max-width: 750px;
  text-align: center;
  animation: cyberFade 1.2s ease forwards;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
}

.title-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("pics/logobaru4.png") no-repeat center center fixed;
  background-size: cover;
  filter: blur(35px);
  z-index: -1;
}

.title-card h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
  margin-bottom: 10px;
}

.title-card p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.7;
}

/* ===== Cards Grid ===== */
.grid-container {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  animation: cyberFade 1s ease forwards;
}

/* Individual Card */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 30px;
  margin: 25px auto 0;
  max-width: 750px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  animation: fadeIn 1.2s ease;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(35px);
  border: 2px solid #ffffff;
}

.card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.card p {
  color: #ffffff;
  line-height: 1.6;
}

/* Closing Card */
.closing-card {
  position: relative;
  overflow: hidden;
  max-width: 750px;
  margin: 25px auto 0;
  color: #ffffff;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 30px;
  animation: cyberFade 1.2s ease forwards;
}

.closing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("pics/logobaru4.png") no-repeat center center fixed;
  background-size: cover;
  filter: blur(30px);
  z-index: -1;
}

/* Scan Button */
.scan-btn {
  display: inline-block;
  background: linear-gradient(135deg, #306a93, #01419c);
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  margin-top: 15px;
}

.scan-btn:hover {
  background: linear-gradient(135deg, #01419c, #306a93);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(48,106,147,0.8);
  border: 1px solid #ffffff;
}

/* Hover Effects */
.card:hover,
.title-card:hover,
.closing-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);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

  .awareness-container {
    width: 95%;        /* shrink proportionally for smaller screens */
    height: auto;      /* let it grow based on content */
    margin-top: 80px;  
  }
    
  .grid-container {
    grid-template-columns: 1fr;  /* single column for mobile */
    gap: 20px;
  }

  /* Navbar */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 15px 20px;
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(12px);
    border-radius: 12px;
  }

  .nav-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  .nav-logo .logo {
    width: 50px;
    height: 50px;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .nav-menu-btn {
    display: block;
    font-size: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .nav-menu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s ease;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav.active .nav-menu {
    max-height: 400px;
    opacity: 1;
    margin-top: 10px;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    display: flex !important;
    gap: 12px;
    align-items: center;
  }

  .nav-menu ul li .link {
    font-size: 1rem;
    padding: 8px 0;
    text-align: center;
  }

  .nav-button {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    gap: 12px;
  }

  .btn-signin,
  .btn-signup,
  .btn-profile {
    width: 90%;
    font-size: 0.95rem;
    padding: 8px 0;
  }

  /* Title card & cards */
  .title-card,
  .card,
  .closing-card {
    max-width: 100%;
    padding: 20px;
    margin: 15px auto;
  }

  .title-card h2 {
    font-size: 1.5rem;
  }

  .title-card p,
  .card p {
    font-size: 0.9rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .scan-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* ===== Animations ===== */
@keyframes cyberFade {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); filter: brightness(0.7); }
  60% { opacity: 0.8; filter: brightness(1); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
