/* Modern CSS with Tailwind-like utilities and enhanced design */

/* CSS Variables for consistent theming */
:root {
  --primary: #1f2a61;
  --primary-light: #3b4a8a;
  --primary-dark: #0f1a3a;
  --accent: #ff6b35;
  --silver: #f3f6fb;
  --white: #ffffff;
  --text-primary: #1f2a61;
  --text-secondary: #4c5b7d;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Dark mode variables */
[data-theme="dark"] {
  --primary: #3b4a8a;
  --primary-light: #5a6bb8;
  --primary-dark: #0f1a3a;
  --accent: #ff8c5a;
  --silver: #1a1a1a;
  --white: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  background-color: var(--silver);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Utility classes */
.w-full { width: 100%; }
.w-52 { width: 13rem; }
.w-64 { width: 16rem; }
.h-52 { height: 13rem; }
.h-40 { height: 10rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.pt-8 { padding-top: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-6 { margin-left: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

.transition { transition: all 0.15s ease-in-out; }
.duration-300 { transition-duration: 300ms; }

.object-cover { object-fit: cover; }

.min-h-screen { min-height: 100vh; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }

.list-disc { list-style-type: disc; }

/* Color utilities */
.bg-white { background-color: var(--white); }
.bg-silver { background-color: var(--silver); }
.bg-primary { background-color: var(--primary); }
.bg-primary-dark { background-color: var(--primary-dark); }

.text-primary { color: var(--primary); }
.text-primary-dark { color: var(--text-primary); }
.text-primary-light { color: var(--primary-light); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-silver { color: var(--text-secondary); }

.border-silver { border-color: var(--silver); }
.border-accent { border-color: var(--accent); }

/* Gradient utilities */
.bg-gradient-to-tr {
  background-image: linear-gradient(to top right, var(--primary), var(--accent));
}

/* Hover states */
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-primary-light:hover { background-color: var(--primary-light); }
.hover\:bg-accent:hover { background-color: var(--accent); }

/* Focus states */
.focus\:outline-accent:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dark mode classes */
.dark\:bg-primary-dark { background-color: var(--primary-dark); }
.dark\:bg-primary { background-color: var(--primary); }
.dark\:text-white { color: var(--white); }
.dark\:text-silver { color: var(--text-secondary); }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--accent);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.1);
}

.service-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.service-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Enhanced button styles */
button, .btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
}

button:active, .btn:active {
  transform: translateY(0);
}

/* Enhanced form styles */
input, textarea {
  font-family: inherit;
  transition: all 0.2s ease;
  border: 1px solid var(--silver);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .md\:flex { display: flex; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:flex-row { flex-direction: row; }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .hidden.md\:flex {
    display: none;
  }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:flex-row { flex-direction: row; }
  
  .hidden.md\:flex {
    display: flex;
  }
  
  .md\:hidden {
    display: none;
  }
}

/* Animation enhancements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced header with backdrop blur */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] header {
  background-color: rgba(15, 26, 58, 0.9);
}

/* Enhanced card styles */
.card-enhanced {
  background: linear-gradient(135deg, var(--white) 0%, rgba(243, 246, 251, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .card-enhanced {
  background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(42, 42, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Improved accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for better accessibility */
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

