/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.125rem; /* ~18px for better readability */
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f7fa;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  color: #003087;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  color: #4a4a4a;
}

/* Header and Navigation */
header {
  background: linear-gradient(135deg, #003087 0%, #0059d6 100%);
  color: white;
  padding: 1rem 0;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #b3d4ff;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* When user clicks hamburger, show nav links in mobile */
#nav-links.active {
  display: flex;
  flex-direction: column;
  background-color: #003087;
  position: absolute;
  top: 60px;
  right: 2rem;
  width: 200px;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #e6f0ff;
}

/* Buttons */
button,
.cta-button,
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* Primary (orange) buttons */
.cta-button,
.btn-primary {
  background-color: #ff6f00;
  color: white;
}
.cta-button:hover,
.btn-primary:hover {
  opacity: 0.8;
}

/* Secondary (gray) buttons */
button.secondary,
.btn-secondary {
  background-color: #6b7280;
  color: white;
}
button.secondary:hover,
.btn-secondary:hover {
  opacity: 0.8;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 4rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.feature {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

/* Demo Links */
.demo-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.demo-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.demo-card:hover {
  transform: translateY(-3px);
}
.demo-card h3 {
  color: #003087;
  margin-bottom: 0.5rem;
}
.demo-card p {
  font-size: 1rem;
}

/* Footer */
footer {
  background: #003087;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #b3d4ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

/* Tables and Forms */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f9fafb;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

input, select, textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 100%;
}

input[type="file"] {
  padding: 0.5rem;
}

/* Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  border-radius: 8px;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
}

/* AI Assistant */
.ai-container {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ai-container form {
  display: flex;
  gap: 1rem;
  padding: 0;
  box-shadow: none;
  margin-bottom: 1rem;
}

.ai-container input {
  flex: 1;
}

/* Charts */
canvas {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    padding: 2rem 1rem;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .demo-links,
  .dashboard-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }
}
