/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  min-height: 100%;
  font-family: 'Montserrat', sans-serif;
  background: #f7faff;
  color: #333;
  overflow-x: hidden; /* Allow vertical scroll, block horizontal */
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* So it doesn't block clicks */
}

/* Main Layout */
.content {
  position: relative;
  z-index: 2;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMain 1s ease forwards 0.3s;
}

/* Mascot */
.mascot {
  font-size: 3rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.mascot.clicked {
  transform: rotate(15deg) scale(1.2);
}

/* Title */
.title {
  font-size: 2.8rem;
  color: #0277bd;
  margin-bottom: 0.5rem;
}

/* Subtitle */
.content p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Button */
.btn {
  padding: 14px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  background: linear-gradient(45deg, #4fc3f7, #0288d1);
  color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(2, 136, 209, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(2, 136, 209, 0.4);
}

/* Counter */
#counter {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #666;
}

/* Result Card */
#result {
  margin-top: 30px;
  max-width: 500px;
  width: 90%;
  animation: fadeIn 0.8s ease forwards;
}

.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  color: #0277bd;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.card p {
  color: #444;
  margin-bottom: 1.2rem;
}

.card a {
  text-decoration: none;
  color: #0288d1;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 30px;
  border: 2px solid #0288d1;
  transition: all 0.3s ease;
}

.card a:hover {
  background: #0288d1;
  color: white;
}

/* Hidden */
.hidden {
  display: none;
}

/* Animations */
@keyframes fadeInMain {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }
  .btn {
    font-size: 1rem;
    padding: 12px 30px;
  }
  .mascot {
    font-size: 2.2rem;
  }
}

#particles-js canvas:hover {
  cursor: grab;
}

/* HEADER STYLES */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #0288d1;
  color: white;
  z-index: 10;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* FOOTER STYLES */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2rem 1.5rem;
  border-top: 3px solid #0288d1;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

footer p {
  font-size: 0.85rem;
  color: #888;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
