@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: linear-gradient(to right, #d97706, #ca8a04);
  --secondary: #f5f5f5;
  --background: linear-gradient(to bottom right, #1f2937, #111827);
  --surface: #2d2d2d;
  --text: #f5f5f5;
  --text-light: #b0b0b0;
  --border: #404040;
  --success: #4caf50;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
  background: var(--background);
  font-family: "Inter", sans-serif;
}

nav {
  background-color: rgba(17, 24, 39, 0.9);
  display: flex;
  justify-content: space-between; /* ✅ Fix alignment */
  align-items: center;
  padding: 15px 250px;
  position: relative;
}

.mobile-toggle {
  display: none;
}

.logo-text a {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  background-image: linear-gradient(to right, #f59e0b, #ca8a04);
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  opacity: 0.9;
}

.menu a:hover {
  color: #f59e0b;
}

.hero {
  background: var(--background);
  color: white;
  padding: 8rem 2rem;
  text-align: center;
  transition: background 0.3s;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary {
  background-image: var(--primary);
  color: var(--secondary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #d97706;
  border: 2px solid #d97706;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.125rem;
}

.features {
  padding: 6rem;
  background-color: #111827;
  transition: background-color 0.3s;
}

.feature-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, 400px);
  gap: 2rem;
}

.feature-card {
  background-color: transparent;
  padding: 2rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.3s, background-color 0.3s;
  margin: 0 30px;
}

.feature-card img {
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0.5rem;
  color: var(--secondary);
}

.feature-card p {
  color: var(--text-light);
}

/* Footer */
.footer {
  background-color: #0d0d0d;
  color: white;
  text-align: center;
  padding: 2.5rem 0;
  transition: background-color 0.3s;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  margin-right: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem; /* ✅ Space between theme + mobile button */
}

.theme-btn,
.mobile-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 1300px) {
  nav {
    padding: 15px 50px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 10px 20px;
    gap: 0;
    justify-content: space-between;
  }

  .mobile-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    z-index: 100;
    top: 90%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--shadow);
    display: none;
    background: rgb(17, 24, 39, 0.9);
    align-items: flex-start;
  }

  .menu a {
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
  }

  .menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    width: 100%;
  }

  .menu.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .menu-header {
    flex-direction: column;
    gap: 1rem;
  }

  .data-table {
    overflow-x: auto;
  }
}

body.light-mode {
  --primary: linear-gradient(to right, #fbbf24, #f59e0b);
  --secondary: #111827;
  --background: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-light: #374151;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
}

body.light-mode nav {
  background-color: #4b352a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode .footer {
  background-color: #4b352a;
  color: white;
}

body.light-mode .mobile-toggle {
  color: white;
}

body.light-mode .mobile-toggle:hover {
  color: #d97706;
}

body.light-mode .menu a {
  color: white;
}

body.light-mode .menu a:hover {
  color: #d97706;
}

body.light-mode .btn-secondary {
  color: #111827;
  border-color: #f59e0b;
}

body.light-mode .btn-secondary:hover {
  background-color: #f59e0b;
  color: white;
}

body.light-mode .hero-content h1 {
  color: #101828;
}

body.light-mode .hero-content p {
  color: #4a5565;
}

body.light-mode .hero {
  background-color: #fffdf1;
}

body.light-mode .features {
  background-color: #ffffff;
}
