/* Common styles used across all pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

/* Color Variables */
:root {
  --primary-color: #06b6d4;
  --secondary-color: #f97316;
  --accent-color: #eab308;
  --success-color: #22c55e;
  --dark-color: #1f2937;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
}

/* Navigation Styles */
nav {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: none;
  margin-left: 2.5rem;
  align-items: baseline;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-700);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: block;
  color: var(--gray-700);
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  /* Enhanced mobile touch target */
  padding: 0.75rem;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--gray-100);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--gray-200);
  /* Enhanced mobile menu with smooth animations */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.show {
  display: block;
  max-height: 300px;
  opacity: 1;
}

.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--gray-700);
  text-decoration: none;
  /* Enhanced mobile menu links with better touch targets */
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary-color);
  background-color: var(--gray-50);
}

.mobile-menu a:active {
  background-color: var(--gray-100);
}

/* Responsive Navigation */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Enhanced mobile navigation for smaller screens */
@media (max-width: 480px) {
  .nav-content {
    height: 3.5rem;
    padding: 0 0.5rem;
  }

  .logo h1 {
    font-size: 1.25rem;
  }

  .mobile-menu a {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  /* Enhanced mobile touch targets for buttons */
  min-height: 48px;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-primary:hover {
  background-color: #d97706;
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background: white;
  color: var(--dark-color);
}

.btn-secondary:active {
  transform: scale(0.98);
}

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

.btn-white:hover {
  background: var(--gray-100);
}

.btn-white:active {
  transform: scale(0.98);
}

/* Mobile-optimized button styles */
@media (max-width: 768px) {
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Container Styles */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Enhanced mobile container padding */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

.section {
  padding: 4rem 0;
}

/* Mobile-optimized section padding */
@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2rem 0;
  }
}

/* Grid Styles */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .md-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* Spacing */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.pt-20 {
  padding-top: 5rem;
}

.pb-16 {
  padding-bottom: 4rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile-optimized card interactions */
@media (max-width: 768px) {
  .card:hover {
    transform: none; /* Disable hover effects on mobile */
  }

  .card:active {
    transform: scale(0.98);
  }
}

/* Text Styles */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.text-success {
  color: var(--success-color);
}

.text-dark {
  color: var(--dark-color);
}

.text-gray-200 {
  color: var(--gray-200);
}

.text-gray-300 {
  color: var(--gray-300);
}

.text-gray-400 {
  color: var(--gray-400);
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

/* Background Styles */
.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.bg-dark {
  background-color: var(--dark-color);
}

/* Enhanced mobile typography */
@media (max-width: 768px) {
  .md-text-2xl {
    font-size: 1.375rem;
  }

  .md-text-6xl {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  h3 {
    font-size: 1.375rem !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0;
}

footer h3,
footer h4 {
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--gray-400);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}
