:root {
  --laravel-red: #00A1DE;
  --laravel-orange: #3b82f6;
  --dark: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-100: #f8f9fa;
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

.display-5 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--laravel-red), var(--laravel-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  color: #666 !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--laravel-red) !important;
}

/* Buttons */
.btn-primary {
  background: #1a1a1a;
  border: none;
  color: white;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
}

.btn-outline-secondary, .btn-outline-primary {
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  background: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover, .btn-outline-primary:hover {
  border-color: #000000;
  color: white;
  background: #1a1a1a;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Cards */
.border {
  border: 2px solid #e9ecef !important;
  transition: all 0.3s ease;
}

.border:hover {
  border-color: var(--laravel-red) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.rounded-3 {
  border-radius: 16px !important;
}

/* Service Cards Enhancement */
#services .border, .service-card {
  position: relative;
  background: white;
  overflow: hidden;
  padding: 2rem !important;
  border: 1px solid #e9ecef !important;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--laravel-red), var(--laravel-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card:hover .service-icon {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, var(--laravel-red), var(--laravel-orange));
}

.service-card:hover .service-icon i {
  -webkit-text-fill-color: white;
}

/* Footer */
footer {
  background: var(--gray-100);
}

footer a {
  color: #666;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--laravel-red);
}

/* Section Spacing */
section {
  position: relative;
}

.py-5 {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

.py-lg-6 {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

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

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

/* Responsive */
@media (max-width: 991px) {
  .py-5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

/* Mobile Optimizations - Improved Font Sizes and Spacing */
@media (max-width: 767px) {
  /* Base font size increase for better readability */
  body {
    font-size: 17px;
    line-height: 1.7;
  }

  /* Heading sizes optimized for mobile */
  h1, .h1 {
    font-size: 2rem !important;
    line-height: 1.3;
    margin-bottom: 1.25rem !important;
  }

  h2, .h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-bottom: 1.15rem !important;
  }

  h3, .h3 {
    font-size: 1.5rem !important;
    line-height: 1.35;
    margin-bottom: 1rem !important;
  }

  h4, .h4 {
    font-size: 1.3rem !important;
    line-height: 1.4;
    margin-bottom: 0.9rem !important;
  }

  h5, .h5 {
    font-size: 1.15rem !important;
    line-height: 1.4;
    margin-bottom: 0.85rem !important;
  }

  h6, .h6 {
    font-size: 1.05rem !important;
    line-height: 1.4;
    margin-bottom: 0.75rem !important;
  }

  /* Display headings for hero sections */
  .display-1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  .display-2 {
    font-size: 2.25rem !important;
    line-height: 1.2;
  }

  .display-3 {
    font-size: 2rem !important;
    line-height: 1.25;
  }

  .display-4 {
    font-size: 1.85rem !important;
    line-height: 1.3;
  }

  .display-5 {
    font-size: 1.65rem !important;
    line-height: 1.3;
  }

  /* Lead text */
  .lead {
    font-size: 1.15rem !important;
    line-height: 1.7;
    margin-bottom: 1.5rem !important;
  }

  /* Paragraph spacing */
  p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
  }

  /* Section padding for mobile */
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-lg-6 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* Container padding */
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
    padding: 1.5rem !important;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  /* Button sizes */
  .btn {
    font-size: 1.05rem !important;
    padding: 0.85rem 1.5rem !important;
    min-height: 48px;
  }

  .btn-lg {
    font-size: 1.1rem !important;
    padding: 1rem 2rem !important;
    min-height: 52px;
  }

  .btn-sm {
    font-size: 0.95rem !important;
    padding: 0.65rem 1.25rem !important;
    min-height: 40px;
  }

  /* List spacing */
  ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
  }

  li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
  }

  /* Form elements */
  .form-label {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .form-control, .form-select {
    font-size: 1.05rem !important;
    padding: 0.85rem 1rem !important;
    min-height: 48px;
    line-height: 1.6;
  }

  textarea.form-control {
    min-height: 120px;
    line-height: 1.7;
  }

  /* Navigation improvements */
  .navbar-brand {
    font-size: 1.35rem !important;
  }

  .nav-link {
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
    line-height: 1.6;
  }

  /* Badge and small text */
  .badge {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.85rem !important;
  }

  small, .small {
    font-size: 0.95rem !important;
  }

  /* Table improvements */
  .table {
    font-size: 1rem;
  }

  .table th, .table td {
    padding: 1rem !important;
  }

  /* Modal improvements */
  .modal-title {
    font-size: 1.5rem !important;
  }

  .modal-body {
    font-size: 1.05rem;
    padding: 1.5rem !important;
  }

  /* Alert spacing */
  .alert {
    font-size: 1.05rem;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1.5rem;
  }

  /* Gap utilities override */
  .gap-2 {
    gap: 0.75rem !important;
  }

  .gap-3 {
    gap: 1.25rem !important;
  }

  .gap-4 {
    gap: 1.75rem !important;
  }

  .gap-5 {
    gap: 2.25rem !important;
  }

  /* Margin utilities */
  .mb-3 {
    margin-bottom: 1.25rem !important;
  }

  .mb-4 {
    margin-bottom: 1.75rem !important;
  }

  .mb-5 {
    margin-bottom: 2.25rem !important;
  }

  .mt-3 {
    margin-top: 1.25rem !important;
  }

  .mt-4 {
    margin-top: 1.75rem !important;
  }

  .mt-5 {
    margin-top: 2.25rem !important;
  }

  /* Service cards on mobile */
  .service-card {
    padding: 1.75rem !important;
    margin-bottom: 1.5rem;
  }

  .service-icon {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 1.5rem !important;
  }

  .service-icon i {
    font-size: 2rem !important;
  }

  /* Blog content improvements */
  .blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }

  .blog-content h2 {
    font-size: 1.75rem !important;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
  }

  .blog-content h3 {
    font-size: 1.5rem !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .blog-content ul li, 
  .blog-content ol li {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    line-height: 1.75;
  }

  /* Footer spacing */
  footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }

  footer p, footer a {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  /* Pagination */
  .pagination {
    font-size: 1.05rem;
  }

  .page-link {
    padding: 0.75rem 1rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* List group */
  .list-group-item {
    font-size: 1.05rem;
    padding: 1rem 1.25rem !important;
    line-height: 1.6;
  }

  /* Improved touch targets */
  a, button, .btn, .nav-link, .page-link, .list-group-item-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Hero section specific */
  #hero {
    padding: 4rem 0 3.5rem !important;
  }

  #hero h1 {
    font-size: 2.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  #hero p {
    font-size: 1.15rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Extra small devices */
@media (max-width: 575px) {
  body {
    font-size: 16px;
  }

  h1, .h1 {
    font-size: 1.85rem !important;
  }

  h2, .h2 {
    font-size: 1.65rem !important;
  }

  .display-4 {
    font-size: 1.75rem !important;
  }

  .display-5 {
    font-size: 1.5rem !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--laravel-red), var(--laravel-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Badge */
.badge-custom {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--laravel-red);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Value Proposition Cards */
#about .col-md-6 > div {
  cursor: pointer;
}

#about .col-md-6 > div:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

#about .col-md-6 > div i {
  transition: transform 0.3s ease;
}

#about .col-md-6 > div:hover i {
  transform: scale(1.1) rotate(5deg);
}

#about .position-absolute {
  transition: all 0.3s ease;
}

#about .col-md-6 > div:hover .position-absolute {
  width: 120px;
  height: 120px;
  opacity: 0.8;
}
