/* Global Style */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #6366f1, #06b6d4, #22c55e);
  background-size: 300% 300%;
  animation: gradientBG 12s ease infinite;
  color: #f8fafc;
  line-height: 1.6;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar */
nav {
  background: rgba(0,0,0,0.5);
  padding: 15px;
  text-align: center;
  backdrop-filter: blur(12px);
}
nav a {
  color: #f8fafc;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, transform 0.2s;
}
nav a:hover {
  color: #ffd93d;
  transform: scale(1.1);
}

/* Main Section */
main {
  padding: 50px 20px;
  text-align: center;
}

/* Headings */
h1, h2 {
  text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

/* Inputs */
input, select {
  width: 90%;
  max-width: 320px;
  padding: 14px;
  margin: 10px auto;
  display: block;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}
input:focus, select:focus {
  outline: none;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* Buttons */
button, .btn {
  background: #ffd93d;
  color: #1e293b;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 15px;
  transition: transform 0.2s, box-shadow 0.3s;
}
button:hover, .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Results Box */
#result, .result-box {
  background: rgba(255,255,255,0.15);
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Footer */
footer {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 60px;
}
footer a {
  color: #ffd93d;
  margin: 0 10px;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}