@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* Custom CSS */
:root {
  --primary: #2563EB;
  --secondary: #14B8A6;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
}

/* Global font size improvements */
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
p, li, span, div:not(.text-lg):not(.text-xl):not(.text-2xl):not(.text-3xl):not(.text-4xl):not(.text-5xl) {
  font-size: 0.875rem !important;
}
button:not(.text-lg):not(.text-xl) {
  font-size: 0.875rem !important;
}
input, textarea, select {
  font-size: 0.875rem !important;
}
h1, h2, h3, h4, h5, h6 {
  font-size: 1.125rem !important;
}
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.75rem !important; }
.text-4xl { font-size: 2rem !important; }

* {
  scroll-behavior: smooth;
}

/* Dark mode styles */
.dark {
  background-color: var(--dark-bg);
  color: #f1f5f9;
}

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



/* Hero gradient animation */
.hero-gradient {
  background: linear-gradient(-45deg, #2563EB, #14B8A6, #8B5CF6, #F59E0B);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar active link */
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Card hover effects */
.service-card {
  transition: all 0.3s ease;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
}

.dark .modal-content {
  background: var(--dark-card);
  color: #f1f5f9;
}

/* Testimonial slider */
.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Form styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all;
}

.dark .form-input {
  @apply bg-slate-700 border-slate-600 text-white;
}

.btn-primary {
  @apply bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-semibold transition-all transform hover:scale-105;
}

.btn-secondary {
  @apply bg-teal-600 hover:bg-teal-700 text-white px-6 py-3 rounded-lg font-semibold transition-all transform hover:scale-105;
}