* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: #f9fafb;
  background-attachment: fixed;
  min-height: 100vh;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  color: #1f2937;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e5e7eb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header h1 {
  font-size: 42px;
  margin-bottom: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

header p {
  font-size: 18px;
  opacity: 0.8;
  color: #6b7280;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 28px;
  color: #333;
  margin: 40px 0 30px 0;
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
  border-color: #d1d5db;
}

.card span {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  font-weight: 400;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4f46e5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 2.5px;
  background: #1f2937;
  border-radius: 2px;
}

footer {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 1.5s ease-out 1.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

footer p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
  font-weight: 500;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.footer-bottom {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 20px;
}

.footer {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Legacy styles for compatibility */
.requirements-card {
    background: white;
    padding: 30px;
    margin-top: 20px;
    border-radius: 20px;
    border: 2px solid #5a67d8;
}

.req-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.req-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.req-item {
    background: #f7f7ff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.open-btn {
    display: inline-block;
    margin-top: 10px;
    background: #5a67d8;
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
}

.process-btn {
  background: #4f46e5;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.process-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.process-btn:active {
  transform: translateY(0);
}

.output {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

input[type="text"],
input[type="number"],
select {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
  background: white;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 22px;
  }

  .card {
    min-height: 120px;
    font-size: 16px;
    padding: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
  }

  .footer-links {
    gap: 15px;
  }

  .footer-links a {
    font-size: 13px;
  }
}
