/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  background-attachment: fixed;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
}

.logo span {
  color: #29b6f6;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #29b6f6;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  width: 100%;
}

.navbar ul li a.active {
  color: #29b6f6;
}

/* ===== HERO SECTION ===== */
.hero {
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('assets/bg.jpg') no-repeat center/cover;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-text h1 span {
  color: #29b6f6;
  text-shadow: 0 0 10px #29b6f6;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  background: #29b6f6;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 0 10px #29b6f6;
}

.cta-btn:hover {
  background: #03a9f4;
  transform: scale(1.05);
}

/* ===== GLASS CONTAINERS ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  padding: 2rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 700px;
  text-align: center;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===== FORMS ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

textarea, input {
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
  resize: none;
}

textarea::placeholder,
input::placeholder {
  color: rgba(255,255,255,0.6);
}

button {
  background: linear-gradient(90deg, #29b6f6, #00e5ff);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  border-radius: 30px;
  padding: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: linear-gradient(90deg, #00b0ff, #18ffff);
  transform: scale(1.03);
}

/* ===== ANALYZER RESULT ===== */
.result-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

#riskIndicator {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  line-height: 120px;
  margin: 1.5rem auto;
  font-weight: bold;
  font-size: 1.4rem;
  text-shadow: 0 0 5px #000;
}

/* ===== DASHBOARD ===== */
.dashboard {
  max-width: 900px;
  text-align: center;
}

.dashboard h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #29b6f6;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2rem;
  width: 250px;
  transition: transform 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(41,182,246,0.3);
}

.card h3 {
  color: #81d4fa;
  margin-bottom: 0.5rem;
}

.logout-btn {
  margin-top: 2rem;
  background: #e53935;
  box-shadow: 0 0 8px #ff5252;
}

/* ===== BLOGS ===== */
.blog-section {
  max-width: 1000px;
  text-align: center;
}

.blog-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.blog-card {
  background: rgba(255,255,255,0.12);
  border-radius: 15px;
  width: 280px;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(41,182,246,0.3);
}

.blog-card h3 {
  color: #29b6f6;
  margin-bottom: 0.5rem;
}

.blog-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #00e5ff;
  text-decoration: none;
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-section form input, 
.contact-section form textarea {
  background: rgba(255,255,255,0.1);
}

.contact-section h2 {
  color: #29b6f6;
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .cards {
    flex-direction: column;
  }

  .blog-cards {
    flex-direction: column;
    align-items: center;
  }
}
