/* style.css */

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f7fa;
  color: #333;
}

.main-nav {
  background-color: #101820;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hero {
  background: linear-gradient(to right, #1f4037, #99f2c8);
  padding: 3rem 1rem;
  text-align: center;
  color: white;
  position: relative;
}

.hero img.logo {
  width: 80px;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3rem;
  margin: 1rem 0 0.5rem;
}

.hero p {
  font-size: 1.2rem;
}

main {
  padding: 2rem;
}

section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

h2 {
  color: #101820;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input, select, button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background-color: #101820;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #333;
}

.hidden {
  display: none;
}

#result, #emiResult {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0f8ff;
  border-radius: 8px;
}

footer {
  text-align: center;
  background: #101820;
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
