@tailwind base;
@tailwind components;
@tailwind utilities;

/* Modern Premium Design System */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Enhanced heading hierarchy */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #1f2937;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: clamp(2.25rem, 8vw, 4rem);
  }
  
  h2 {
    font-size: clamp(1.875rem, 6vw, 3rem);
  }
  
  h3 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
  }
  
  h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
  }

  footer h3 {
    color: inherit;
  }
  
  /* Enhanced links with modern effects */
  a {
    text-decoration: none;
    color: #10b981;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
  }
  
  a:hover {
    color: #059669;
    transform: translateY(-2px);
  }
  
  a:active {
    transform: translateY(0);
  }
  
  /* Enhanced button base styles */
  button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  button:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
  }
  
  /* Input base styles */
  input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@layer components {
  /* Modern Premium Button System */
  .btn-primary {
    background-color: #059669;
    color: #ffffff;
    font-weight: 600;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5rem;
    
    &:hover {
      background-color: #047857;
      box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
      transform: translateY(-3px) scale(1.02);
    }
    
    &:active {
      transform: translateY(-1px) scale(0.98);
      box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25);
    }
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }
  
  .btn-primary:hover {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
  }
  
  .btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25);
  }
  
  .btn-secondary {
    background-color: #ffffff;
    color: #059669;
    font-weight: 600;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-width: 2px;
    border-color: #059669;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5rem;
    
    &:hover {
      background-color: #f9fafb;
      border-color: #047857;
      color:#047857 !important;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
      transform: translateY(-3px) scale(1.02);
    }
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .btn-secondary:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px) scale(1.02);
  }
  
  .btn-outline {
    background-color: transparent;
    color: #10b981;
    font-weight: 600;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-width: 2px;
    border-color: rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
  }
  
  .btn-outline:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .btn-outline:hover:before {
    opacity: 1;
  }
  
  .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    background-color: #10b981;
  }
  
  /* Modern Card System */
  .card {
    background-color: #ffffff;
    border-radius: 1rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
    overflow: hidden;
    border-width: 1px;
    border-color: rgba(156, 163, 175, 0.1);
    
    backdrop-filter: blur(20px);
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    
    &:hover {
      transform: translateY(-8px) scale(1.01);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
      border-color: rgba(16, 185, 129, 0.1);
    }
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(5, 150, 105, 0.02) 100%);
      opacity: 0;
      transition: opacity 0.5s ease;
      pointer-events: none;
    }
    
    &:hover::before {
      opacity: 1;
    }
    backdrop-filter: blur(20px);
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
  }
  
  .card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(16, 185, 129, 0.1);
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(5, 150, 105, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  
  .card:hover::before {
    opacity: 1;
  }
  
  .card-dark {
    border-radius: 1rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
    overflow: hidden;
    color: #ffffff;
    
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    &:hover {
      transform: translateY(-8px) scale(1.01);
      box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
    }
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }
  
  .card-dark:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  }
  
  /* Enhanced hero gradient with modern styling */
  .hero-gradient {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.82) 0%, rgba(5, 150, 105, 0.82) 100%);
  }
  
  /* Improved spacing system */
  .section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
    
    @media (min-width: 1024px) {
      padding-top: 8rem;
      padding-bottom: 8rem;
    }
  }
  
  .container-custom {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    
    @media (min-width: 640px) {
      padding-left: 2rem;
      padding-right: 2rem;
    }
    
    @media (min-width: 1024px) {
      padding-left: 3rem;
      padding-right: 3rem;
    }
  }
  
  /* Modern text gradient system */
  .text-gradient {
    background: linear-gradient(135deg, #10b981, #059669, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite;
  }
  
  @keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  
  /* Enhanced animation system */
  .floating-animation {
    animation: floating 6s ease-in-out infinite, glow-pulse 4s ease-in-out infinite alternate;
  }
  
  @keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }
  
  @keyframes glow-pulse {
    0% { filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6)); }
  }
  
  /* Enhanced fade-in animations */
  .fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
  }
  
  .animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 1;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(50px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  .slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px) rotateY(-10deg);
    }
    to {
      opacity: 1;
      transform: translateX(0) rotateY(0deg);
    }
  }
  
  .slide-in-right {
    animation: slideInRight 1s ease-out forwards;
    opacity: 0;
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(50px) rotateY(10deg);
    }
    to {
      opacity: 1;
      transform: translateX(0) rotateY(0deg);
    }
  }
  
  /* 3D tilt effect for interactive elements */
  .tilt-effect {
    perspective: 1000px;
  }
  
  .tilt-element {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .tilt-element:hover {
    transform: rotateX(5deg) rotateY(-5deg) scale3d(1.02, 1.02, 1.02);
  }
  
  /* Enhanced form styling */
  .form-input {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-width: 1px;
    border-color: #e5e7eb;
    border-radius: 0.75rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    font-size: 1rem;
    line-height: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .form-input:focus {
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    transform: translateY(-2px);
  }
  
  .form-input::placeholder {
    color: #9ca3af;
    opacity: 1;
  }
  
  /* Modern badge system */
  .badge {
    display: inline-flex;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
  }
  
  .badge-primary {
    background-color: #d1fae5;
    color: #065f46;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.15));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  }
  
  .badge-secondary {
    background-color: #f3f4f6;
    color: #1f2937;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(75, 85, 99, 0.1));
  }
}

/* Missing classes from index.html */
@layer utilities {
  /* Background gradient classes */
  .bg-gradient-to-r.from-emerald-600.to-emerald-700 {
    background-image: linear-gradient(to right, #10b981, #059669);
  }
  
  /* Individual gradient classes */
  .bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
  }
  
  .from-emerald-600 {
    --tw-gradient-from: #10b981;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, #10b981);
  }
  
  .to-emerald-700 {
    --tw-gradient-to: #059669;
  }
  
  /* Individual text color classes */
  .text-emerald-600 {
    color: #10b981 !important;
  }
  .hover\:text-emerald-600:hover {
    color: #10b981 !important;
  }
  
  .text-emerald-700 {
    color: #059669;
  }
  
  .text-emerald-800 {
    color: #065f46;
  }
  
  .text-emerald-900 {
    color: #064e3b;
  }
  
  /* Opacity utilities */
  .opacity-90 {
    opacity: 0.9;
  }
  
  .opacity-100 {
    opacity: 1;
  }
  
  /* Hover scale utilities for cards */
  .hover-scale-105 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hover-scale-105:hover {
    transform: scale(1.05);
  }
  
  /* Transition utilities */
  .transition-transform {
    transition: transform 0.3s ease-out;
  }
  
  .duration-300 {
    transition-duration: 300ms;
  }
  
  /* Border opacity utilities */
  .border-emerald-200 {
    border-color: rgba(16, 185, 129, 0.2);
  }
  
  /* Background opacity utilities */
  .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .bg-gray-100\/10 {
    background-color: rgba(243, 244, 246, 0.1);
  }
  
  /* Text opacity utilities */
  .text-white\/10 {
    color: rgba(255, 255, 255, 0.1);
  }
  
  /* Animate bounce for scroll indicator */
  .animate-bounce {
    animation: bounce 1s infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
  }
  
  /* Floating animation for icons */
  .floating-animation {
    animation: floating 3s ease-in-out infinite;
  }
  
  @keyframes floating {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-6px);
    }
  }
  
  /* Space utilities */
  .space-y-8 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(2rem * var(--tw-space-y-reverse));
    margin-bottom: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .space-y-2 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * var(--tw-space-y-reverse));
    margin-bottom: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .space-y-3 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * var(--tw-space-y-reverse));
    margin-bottom: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .space-y-4 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * var(--tw-space-y-reverse));
    margin-bottom: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .space-y-6 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * var(--tw-space-y-reverse));
    margin-bottom: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .space-y-12 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(3rem * var(--tw-space-y-reverse));
    margin-bottom: calc(3rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  /* Additional color utilities */
  .text-emerald-400 {
    color: #10b981;
  }
  
  .text-emerald-800 {
    color: #065f46;
  }
  
  .text-gray-800 {
    color: #1f2937;
  }
  
  .text-gray-900 {
    color: #111827;
  }
  
  .hover\:text-emerald-400:hover {
    color: #10b981;
  }
  
  .hover\:text-emerald-700:hover {
    color: #059669;
  }
  
  .hover\:text-emerald-800:hover {
    color: #065f46;
  }
  
  .hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
  }
  
  .hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
  }
  
  /* Border utilities */
  .border-white {
    border-color: #ffffff;
  }
  
  .border-gray-300 {
    border-color: #d1d5db;
  }
  
  /* Width and height utilities */
  .w-96 {
    width: 24rem;
  }
  
  .h-64 {
    height: 16rem;
  }
  
  .w-full.h-64 {
    width: 100%;
    height: 16rem;
  }
  
  .max-w-md {
    max-width: 28rem;
  }
  
  /* Position utilities */
  .-top-4 {
    top: -1rem;
  }
  
  .left-1\/2 {
    left: 50%;
  }
  
  .transform.-translate-x-1\/2 {
    transform: translateX(-50%);
  }
  
  .px-4.py-2 {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .flex-shrink-0 {
    flex-shrink: 0;
  }
  
  .mt-1 {
    margin-top: 0.25rem;
  }
  
  .mr-3 {
    margin-right: 0.75rem;
  }
  
  .mr-4 {
    margin-right: 1rem;
  }
  
  .mt-2 {
    margin-top: 0.5rem;
  }
  
  .mb-6 {
    margin-bottom: 1.5rem;
  }
  
  .mb-8 {
    margin-bottom: 2rem;
  }
  
  .mx-auto {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Additional responsive classes */
  .md\:py-4 {
    @media (min-width: 768px) {
      padding-top: 1rem;
      padding-bottom: 1rem;
    }
  }
  
  .md\:px-4 {
    @media (min-width: 768px) {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }
  
  .md\:mt-2 {
    @media (min-width: 768px) {
      margin-top: 0.5rem;
    }
  }
  
  .lg\:px-8 {
    @media (min-width: 1024px) {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }
  
  .lg\:py-24 {
    @media (min-width: 1024px) {
      padding-top: 6rem;
      padding-bottom: 6rem;
    }
  }
  
  .lg\:space-y-0 {
    @media (min-width: 1024px) {
      --tw-space-y-reverse: 0;
      margin-top: calc(0px * var(--tw-space-y-reverse));
      margin-bottom: calc(0px * calc(1 - var(--tw-space-y-reverse)));
    }
  }
  
  .sm\:flex-row {
    @media (min-width: 640px) {
      flex-direction: row;
    }
  }
  
  .sm\:items-center {
    @media (min-width: 640px) {
      align-items: center;
    }
  }
  
  .sm\:justify-center {
    @media (min-width: 640px) {
      justify-content: center;
    }
  }
  
  .sm\:space-x-4 {
    @media (min-width: 640px) {
      --tw-space-x-reverse: 0;
      margin-left: calc(1rem * var(--tw-space-x-reverse));
      margin-right: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
    }
  }
  
  .md\:space-x-8 {
    @media (min-width: 768px) {
      --tw-space-x-reverse: 0;
      margin-left: calc(2rem * var(--tw-space-x-reverse));
      margin-right: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
    }
  }
  
  .lg\:space-x-3 {
    @media (min-width: 1024px) {
      --tw-space-x-reverse: 0;
      margin-left: calc(0.75rem * var(--tw-space-x-reverse));
      margin-right: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
    }
  }
  
  .lg\:space-x-6 {
    @media (min-width: 1024px) {
      --tw-space-x-reverse: 0;
      margin-left: calc(1.5rem * var(--tw-space-x-reverse));
      margin-right: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
    }
  }
  
  .md\:text-lg {
    @media (min-width: 768px) {
      font-size: 1.125rem;
      line-height: 1.75rem;
    }
  }
  
  .lg\:text-xl {
    @media (min-width: 1024px) {
      font-size: 1.25rem;
      line-height: 1.75rem;
    }
  }
  
  .md\:text-xl {
    @media (min-width: 768px) {
      font-size: 1.25rem;
      line-height: 1.75rem;
    }
  }
  
  .lg\:text-2xl {
    @media (min-width: 1024px) {
      font-size: 1.5rem;
      line-height: 2rem;
    }
  }
  
  .md\:text-2xl {
    @media (min-width: 768px) {
      font-size: 1.5rem;
      line-height: 2rem;
    }
  }
  
  .lg\:font-bold {
    @media (min-width: 1024px) {
      font-weight: 700;
    }
  }
  
  .md\:font-medium {
    @media (min-width: 768px) {
      font-weight: 500;
    }
  }
  
  .lg\:font-semibold {
    @media (min-width: 1024px) {
      font-weight: 600;
    }
  }
  
  .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .font-medium {
    font-weight: 500;
  }
  
  .font-semibold {
    font-weight: 600;
  }
  
  .font-bold {
    font-weight: 700;
  }
  
  /* Additional display and flex utilities */
  .inline-block {
    display: inline-block;
  }
  
  .flex {
    display: flex;
  }
  
  .inline-flex {
    display: inline-flex;
  }
  
  .hidden {
    display: none;
  }
  
  .md\:hidden {
    @media (min-width: 768px) {
      display: none;
    }
  }
  
  .md\:flex {
    @media (min-width: 768px) {
      display: flex;
    }
  }
  
  .lg\:flex {
    @media (min-width: 1024px) {
      display: flex;
    }
  }
  
  .block {
    display: block;
  }
  
  .grid {
    display: grid;
  }
  
  .lg\:grid {
    @media (min-width: 1024px) {
      display: grid;
    }
  }
  
  .md\:grid {
    @media (min-width: 768px) {
      display: grid;
    }
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-between {
    justify-content: space-between;
  }
  
  .justify-center {
    justify-content: center;
  }
  
  .text-center {
    text-align: center;
  }
  
  .text-left {
    text-align: left;
  }
  
  .relative {
    position: relative;
  }
  
  .absolute {
    position: absolute;
  }
  
  .inset-0 {
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
  }
  
  .z-10 {
    z-index: 10;
  }
  
  .z-40 {
    z-index: 40;
  }
  
  .z-50 {
    z-index: 50;
  }
  
  .overflow-hidden {
    overflow: hidden;
  }
  
  .overflow-auto {
    overflow: auto;
  }
  
  .min-h-screen {
    min-height: 100vh;
  }
  
  .rounded-xl {
    border-radius: 0.75rem;
  }
  
  .rounded-full {
    border-radius: 9999px;
  }
  
  .rounded-lg {
    border-radius: 0.5rem;
  }
  
  .rounded-md {
    border-radius: 0.375rem;
  }
  
  .rounded {
    border-radius: 0.25rem;
  }
  
  .shadow {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  
  .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  
  .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
  
  .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  
  .shadow-none {
    box-shadow: 0 0 #0000;
  }
  
  .p-4 {
    padding: 1rem;
  }
  
  .p-6 {
    padding: 1.5rem;
  }
  
  .p-8 {
    padding: 2rem;
  }
  
  .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-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  .px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }
  
  .mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .mt-4 {
    margin-top: 1rem;
  }
  
  .mb-2 {
    margin-bottom: 0.5rem;
  }
  
  .mb-4 {
    margin-bottom: 1rem;
  }
  
  .mb-12 {
    margin-bottom: 3rem;
  }
  
  .ml-4 {
    margin-left: 1rem;
  }
  
  .mr-2 {
    margin-right: 0.5rem;
  }
  
  .mr-6 {
    margin-right: 1.5rem;
  }
  
  .space-x-8 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-x-reverse: 0;
    margin-left: calc(2rem * var(--tw-space-x-reverse));
    margin-right: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
  }
  
  .space-x-3 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-x-reverse: 0;
    margin-left: calc(0.75rem * var(--tw-space-x-reverse));
    margin-right: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
  }
  
  .space-x-6 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-x-reverse: 0;
    margin-left: calc(1.5rem * var(--tw-space-x-reverse));
    margin-right: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
  }
  
  .space-x-4 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-x-reverse: 0;
    margin-left: calc(1rem * var(--tw-space-x-reverse));
    margin-right: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
  }
  
  .gap-8 {
    gap: 2rem;
  }
  
  .gap-12 {
    gap: 3rem;
  }
  
  .gap-4 {
    gap: 1rem;
  }
  
  .gap-2 {
    gap: 0.5rem;
  }
  
  .col-span-1 {
    grid-column: span 1 / span 1;
  }
  
  .col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .col-span-3 {
    grid-column: span 3 / span 3;
  }
  
  .row-span-1 {
    grid-row: span 1 / span 1;
  }
  
  .w-16 {
    width: 4rem;
  }
  
  .w-20 {
    width: 5rem;
  }
  
  .h-16 {
    height: 4rem;
  }
  
  .h-20 {
    height: 5rem;
  }
  
  .h-12 {
    height: 3rem;
  }
  
  .w-12 {
    width: 3rem;
  }
  
  .flex-col {
    flex-direction: column;
  }
  
  .whitespace-nowrap {
    white-space: nowrap;
  }
  
  .whitespace-pre {
    white-space: pre;
  }
  
  .break-words {
    overflow-wrap: break-word;
  }
  
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .leading-6 {
    line-height: 1.5rem;
  }
  
  .leading-7 {
    line-height: 1.75rem;
  }
  
  .leading-8 {
    line-height: 2rem;
  }
  
  .leading-tight {
    line-height: 1.25;
  }
  
  .leading-snug {
    line-height: 1.375;
  }
  
  .leading-normal {
    line-height: 1.5;
  }
  
  .leading-relaxed {
    line-height: 1.625;
  }
  
  .leading-loose {
    line-height: 2;
  }
  
  /* Icon and text utilities */
  .text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  
  .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  .italic {
    font-style: italic;
  }
  
  .underline {
    text-decoration: underline;
  }
  
  .line-through {
    text-decoration: line-through;
  }
  
  .no-underline {
    text-decoration: none;
  }
  
  .uppercase {
    text-transform: uppercase;
  }
  
  .lowercase {
    text-transform: lowercase;
  }
  
  .capitalize {
    text-transform: capitalize;
  }
  
  .normal-case {
    text-transform: none;
  }
  
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .subpixel-antialiased {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
  }
  
  /* Additional background utilities */
  .bg-gray-50 {
    background-color: #f9fafb;
  }
  
  .bg-gray-100 {
    background-color: #f3f4f6;
  }
  
  .bg-gray-200 {
    background-color: #e5e7eb;
  }
  
  .bg-gray-300 {
    background-color: #d1d5db;
  }
  
  .bg-gray-400 {
    background-color: #9ca3af;
  }
  
  .bg-gray-500 {
    background-color: #6b7280;
  }
  
  .bg-gray-600 {
    background-color: #4b5563;
  }
  
  .bg-gray-700 {
    background-color: #374151;
  }
  
  .bg-gray-800 {
    background-color: #1f2937;
  }
  
  .bg-gray-900 {
    background-color: #111827;
  }
  
  .bg-white {
    background-color: #ffffff;
  }
  
  .bg-black {
    background-color: #000000;
  }
  
  .bg-transparent {
    background-color: transparent;
  }
  
  .bg-emerald-50 {
    background-color: #ecfdf5;
  }
  
  .bg-emerald-100 {
    background-color: #d1fae5;
  }
  
  .bg-emerald-200 {
    background-color: #a7f3d0;
  }
  
  .bg-emerald-300 {
    background-color: #6ee7b7;
  }
  
  .bg-emerald-400 {
    background-color: #34d399;
  }
  
  .bg-emerald-500 {
    background-color: #10b981;
  }
  
  .bg-emerald-600 {
    background-color: #059669;
  }
  
  .bg-emerald-700 {
    background-color: #047857;
  }
  
  .bg-emerald-800 {
    background-color: #065f46;
  }
  
  .bg-emerald-900 {
    background-color: #064e3b;
  }
  
  /* Hover background colors */
  .hover\:bg-emerald-600:hover {
    background-color: #059669;
  }
  
  .hover\:bg-emerald-700:hover {
    background-color: #047857;
  }
  
  .hover\:bg-gray-50:hover {
    background-color: #f9fafb;
  }
  
  .hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
  }
  
  .hover\:bg-white:hover {
    background-color: #f9fafb;
  }
  
  .hover\:bg-transparent:hover {
    background-color: transparent;
  }
  
  .hover\:bg-emerald-50:hover {
    background-color: #d1fae5;
  }
  
  /* Border utilities */
  .border {
    border-width: 1px;
  }
  
  .border-0 {
    border-width: 0px;
  }
  
  .border-2 {
    border-width: 2px;
  }
  
  .border-4 {
    border-width: 4px;
  }
  
  .border-8 {
    border-width: 8px;
  }
  
  .border-t {
    border-top-width: 1px;
  }
  
  .border-r {
    border-right-width: 1px;
  }
  
  .border-b {
    border-bottom-width: 1px;
  }
  
  .border-l {
    border-left-width: 1px;
  }
  
  .border-t-0 {
    border-top-width: 0px;
  }
  
  .border-r-0 {
    border-right-width: 0px;
  }
  
  .border-b-0 {
    border-bottom-width: 0px;
  }
  
  .border-l-0 {
    border-left-width: 0px;
  }
  
  .border-t-2 {
    border-top-width: 2px;
  }
  
  .border-r-2 {
    border-right-width: 2px;
  }
  
  .border-b-2 {
    border-bottom-width: 2px;
  }
  
  .border-l-2 {
    border-left-width: 2px;
  }
  
  /* Additional border colors */
  .border-gray-200 {
    border-color: #e5e7eb;
  }
  
  .border-gray-400 {
    border-color: #9ca3af;
  }
  
  .border-emerald-600 {
    border-color: #059669;
  }
  
  .border-emerald-700 {
    border-color: #047857;
  }
  
  .border-emerald-800 {
    border-color: #065f46;
  }
  
  /* Hover border colors */
  .hover\:border-emerald-600:hover {
    border-color: #059669;
  }
  
  .hover\:border-emerald-700:hover {
    border-color: #047857;
  }
  
  .hover\:border-gray-300:hover {
    border-color: #d1d5db;
  }
  
  .hover\:border-gray-200:hover {
    border-color: #e5e7eb;
  }
  
  .hover\:border-white:hover {
    border-color: #ffffff;
  }
  
  /* Outline utilities */
  .outline {
    outline-width: 1px;
    outline-style: solid;
  }
  
  .outline-0 {
    outline-width: 0px;
  }
  
  .outline-2 {
    outline-width: 2px;
  }
  
  .outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
  
  /* Focus utilities */
  .focus\:ring-4:focus {
    --tw-ring-offset-shadow: var(--tw-ring-offset, 0 0 #0000);
    --tw-ring-shadow: var(--tw-ring, 0 0 #0000);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 0 4px rgba(16, 185, 129, 0.5);
  }
  
  .focus\:ring-emerald-500:focus {
    --tw-ring-offset-shadow: var(--tw-ring-offset, 0 0 #0000);
    --tw-ring-shadow: var(--tw-ring, 0 0 #0000);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 0 3px rgba(16, 185, 129, 0.5);
  }
  
  .focus\:border-emerald-500:focus {
    --tw-border-opacity: 1;
    border-color: rgb(16 185 129 / var(--tw-border-opacity));
  }
  
  /* Additional utilities for specific classes found */
  .transition-colors {
    transition-property: color, background-color, border-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }
  
  .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }
  
  .transition {
    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }
  
  .ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .ease-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .delay-75 {
    transition-delay: 75ms;
  }
  
  .delay-100 {
    transition-delay: 100ms;
  }
  
  .delay-150 {
    transition-delay: 150ms;
  }
  
  .delay-200 {
    transition-delay: 200ms;
  }
  
  .delay-300 {
    transition-delay: 300ms;
  }
  
  .delay-500 {
    transition-delay: 500ms;
  }
  
  .delay-700 {
    transition-delay: 700ms;
  }
  
  .delay-1000 {
    transition-delay: 1000ms;
  }
}

@layer utilities {
  /* Modern shadow system */
  .shadow-elegant {
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .shadow-soft {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  }
  
  .shadow-pulse {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: pulse 2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
  }
  
  /* Modern background patterns */
  .bg-pattern-dots {
    background-image: radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.1) 1px, transparent 1px), 
                      radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  
  .bg-pattern-grid {
    background-image: linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
  }
  
  /* Enhanced glass effects */
  .glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  .glass-effect-dark {
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(56, 70, 86, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  /* Modern border effects */
  .border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #10b981, #34d399, #10b981) 1;
    position: relative;
    overflow: hidden;
  }
  
  .border-gradient::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #10b981, #34d399, #10b981);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }
  
  .border-gradient:hover::before {
    opacity: 0.3;
  }
  
  /* Enhanced text effects */
  .text-shadow {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* Modern 3D transform utilities */
  .perspective-1000 {
    perspective: 1000px;
  }
  
  .transform-style-3d {
    transform-style: preserve-3d;
  }
  
  .backface-hidden {
    backface-visibility: hidden;
  }
  
  /* Enhanced hover scale effects */
  .hover-scale-105 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hover-scale-105:hover {
    transform: scale(1.05);
  }
  
  .hover-scale-110 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hover-scale-110:hover {
    transform: scale(1.1);
  }
  
  /* Micro-interaction utilities */
  .micro-hover {
    transition: all 0.2s ease-out;
  }
  
  .micro-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* Loading and shimmer effects */
  .shimmer {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 25%, rgba(16, 185, 129, 0.3) 50%, rgba(16, 185, 129, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
  }
  
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  
  /* Enhanced focus states for accessibility */
  .focus-visible:focus {
    outline: 3px solid #10b981;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
  }
  
  /* Scrollbar styling */
  .custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(156, 163, 175, 0.1);
    border-radius: 10px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    transition: background 0.3s ease;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669, #047857);
  }
  
  /* Responsive text sizing */
  .text-display-sm {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
  }
  
  .text-display-md {
    font-size: clamp(2.25rem, 6vw, 3rem);
  }
  
  .text-display-lg {
    font-size: clamp(3rem, 8vw, 4rem);
  }
  
  /* Modern aspect ratios */
  .aspect-w-21 {
    position: relative;
    padding-bottom: 57.14%;
  }
  
  .aspect-h-9 {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
  }
  
  /* Enhanced spacing for modern design */
  .space-y-14 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(3.5rem * var(--tw-space-y-reverse));
    margin-bottom: calc(3.5rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .space-y-24 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(6rem * var(--tw-space-y-reverse));
    margin-bottom: calc(6rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .space-x-14 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-x-reverse: 0;
    margin-left: calc(3.5rem * var(--tw-space-x-reverse));
    margin-right: calc(3.5rem * calc(1 - var(--tw-space-x-reverse)));
  }
  
  .space-x-24 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-x-reverse: 0;
    margin-left: calc(6rem * var(--tw-space-x-reverse));
    margin-right: calc(6rem * calc(1 - var(--tw-space-x-reverse)));
  }
  
  /* Modern blur effects */
  .blur-soft {
    backdrop-filter: blur(15px);
  }
  
  .blur-hard {
    backdrop-filter: blur(30px);
  }
  
  /* Enhanced opacity transitions */
  .transition-opacity-soft {
    transition: opacity 0.4s ease-in-out;
  }
  
  .transition-transform-soft {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Responsive Design Enhancements */
@layer utilities {
  /* Enhanced mobile-first responsive classes */
  .md:space-y-14 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(3.5rem * var(--tw-space-y-reverse));
    margin-bottom: calc(3.5rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  .lg:space-y-24 > :not([hidden="true"]):not(template) ~ :not([hidden="true"]):not(template) {
    --tw-space-y-reverse: 0;
    margin-top: calc(6rem * var(--tw-space-y-reverse));
    margin-bottom: calc(6rem * calc(1 - var(--tw-space-y-reverse)));
  }
  
  /* Enhanced grid gap utilities */
  .gap-14 {
    gap: 3.5rem;
  }
  
  .gap-24 {
    gap: 6rem;
  }
  
  /* Modern container spacing */
  .container-soft {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    
    @media (min-width: 640px) {
      padding-left: 2rem;
      padding-right: 2rem;
    }
    
    @media (min-width: 1024px) {
      padding-left: 4rem;
      padding-right: 4rem;
    }
    
    @media (min-width: 1280px) {
      padding-left: 5rem;
      padding-right: 5rem;
    }
  }
  
  .container-wide {
    max-width: 88rem;
  }
  
  .container-ultra {
    max-width: 96rem;
  }
}

/* Accessibility Enhancements */
@layer utilities {
  /* High contrast mode support */
  .contrast-text {
    color: #1f2937;
  }
  
  .contrast-bg {
    background-color: #ffffff;
  }
  
  /* Screen reader utilities */
  .sr-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    background: #fbbf24;
    color: #1f2937;
    padding: 0.5rem;
    margin: 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
  }
  
  /* Motion preference support */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* Print utilities */
  .no-print {
    @media print {
      display: none !important;
    }
  }
  
  .print-only {
    @media not print {
      display: none !important;
    }
  }
}

/* Performance Optimizations */
@layer utilities {
  /* Will-change optimizations */
  .will-change-transform {
    will-change: transform;
  }
  
  .will-change-opacity {
    will-change: opacity;
  }
  
  .will-change-auto {
    will-change: auto;
  }
  
  /* GPU acceleration */
  .gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }
  
  /* Lazy loading support */
  .lazy-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.5s ease-out;
  }
  
  .lazy-bg.loaded {
    filter: blur(0);
  }
  
  .lazy-bg.loading {
    filter: blur(5px);
  }
}

/* Modern CSS Grid Layouts */
@layer utilities {
  /* Masonry layout support */
  .grid-masonry {
    column-count: 3;
    column-gap: 2rem;
  }
  
  .grid-masonry > * {
    break-inside: avoid;
    margin-bottom: 2rem;
  }
  
  @media (max-width: 768px) {
    .grid-masonry {
      column-count: 1;
    }
  }
  
  /* Modern CSS Grid templates */
  .grid-layout-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
    gap: 2rem;
  }
  
  .grid-layout-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-template-rows: auto;
    gap: 2rem;
  }
  
  .grid-layout-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-template-rows: auto;
    gap: 2rem;
  }
  
  @media (max-width: 768px) {
    .grid-layout-testimonials {
      grid-template-columns: 1fr;
    }
  }
}

/* Enhanced Typography */
@layer utilities {
  /* Modern font utilities */
  .font-display {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }
  
  .font-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
  }
  
  .font-mono {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  /* Text utilities */
  .text-balance {
    text-wrap: balance;
  }
  
  .text-pretty {
    text-wrap: pretty;
  }
  
  .leading-tight {
    line-height: 1.1;
  }
  
  .leading-relaxed {
    line-height: 1.6;
  }
  
  /* Modern font sizing */
  .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  
  .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  
  .text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  .text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  
  .text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  
  .text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
  
  .text-8xl {
    font-size: 6rem;
    line-height: 1;
  }
  
  .text-9xl {
    font-size: 8rem;
    line-height: 1;
  }
  
  /* Responsive text scaling */
  .text-responsive {
    font-size: clamp(1rem, 4vw, 2.5rem);
  }
  
  .text-responsive-lg {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
  }
  
  .text-responsive-xl {
    font-size: clamp(2rem, 8vw, 4.5rem);
  }
}

/* Final cleanup and optimization */
@layer utilities {
  /* Reset any potential conflicts */
  .no-underline:hover {
    text-decoration: none;
  }
  
  /* Modern overflow utilities */
  .overflow-clip {
    overflow: clip;
  }
  
  .overflow-visible {
    overflow: visible;
  }
  
  .overflow-hidden {
    overflow: hidden;
  }
  
  .overflow-auto {
    overflow: auto;
  }
  
  .overflow-scroll {
    overflow: scroll;
  }
  
  /* Modern object position utilities */
  .object-center {
    object-position: center;
  }
  
  .object-cover {
    object-fit: cover;
  }
  
  .object-contain {
    object-fit: contain;
  }
  
  .object-scale-down {
    object-fit: scale-down;
  }
  
  /* Modern inset utilities */
  .inset-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .inset-full {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  
  /* Modern z-index scale */
  .z-1 {
    z-index: 1;
  }
  
  .z-10 {
    z-index: 10;
  }
  
  .z-20 {
    z-index: 20;
  }
  
  .z-30 {
    z-index: 30;
  }
  
  .z-40 {
    z-index: 40;
  }
  
  .z-50 {
    z-index: 50;
  }
  
  .z-foreground {
    z-index: 999;
  }
  
  .z-overlay {
    z-index: 9999;
  }
  
  .z-modal {
    z-index: 99999;
  }
}

/* Custom scrollbar for webkit browsers */
@layer base {
  * {
    scrollbar-width: thin;
    scrollbar-color: #10b981 #f3f4f6;
  }
  
  *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  *::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
  }
  
  *::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 4px;
    transition: background 0.3s ease;
  }
  
  *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669, #047857);
  }
}

/* Modern focus management */
@layer utilities {
  .focus-trap {
    position: relative;
  }
  
  .focus-trap:focus-within::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px solid #10b981;
    border-radius: 0.5rem;
    z-index: 10;
    pointer-events: none;
  }
  
  /* Skip link for accessibility */
  .skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 99999;
    padding: 8px 16px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.3s ease;
  }
  
  .skip-link:focus {
    top: 1rem;
    left: 1rem;
  }
}

/* Enhanced performance with CSS containment */
@layer utilities {
  .contain-layout {
    contain: layout;
  }
  
  .contain-style {
    contain: style;
  }
  
  .contain-paint {
    contain: paint;
  }
  
  .contain-strict {
    contain: strict;
  }
  
  .contain-content {
    contain: content;
  }
}

/* Modern CSS container queries support */
@layer utilities {
  .container-sm {
    container-type: inline-size;
  }
  
  .container-lg {
    container-type: size;
  }
  
  @container (min-width: 768px) {
    .container-responsive {
      font-size: 1.125rem;
    }
  }
  
  @container (min-width: 1024px) {
    .container-responsive {
      font-size: 1.25rem;
    }
  }
}

/* Final CSS Variables for theming */
:root {
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  --primary-300: #6ee7b7;
  --primary-400: #34d399;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065f46;
  --primary-900: #064e3b;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-2xl: 1rem;
  --border-radius-3xl: 1.5rem;
  --border-radius-full: 9999px;
  
  --transition-fast: 150ms ease-out;
  --transition-normal: 300ms ease-out;
  --transition-slow: 500ms ease-out;
  --transition-slowest: 700ms ease-out;
  
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;
  --spacing-40: 10rem;
  --spacing-48: 12rem;
  --spacing-64: 16rem;
}

/* Modern CSS custom properties integration */
@layer utilities {
  .modern-theme {
    --tw-prose-body: var(--gray-700);
    --tw-prose-headings: var(--gray-900);
    --tw-prose-lead: var(--gray-600);
    --tw-prose-links: var(--primary-600);
    --tw-prose-bold: var(--gray-900);
    --tw-prose-counters: var(--gray-500);
    --tw-prose-bullets: var(--gray-300);
    --tw-prose-hr: var(--gray-200);
    --tw-prose-quotes: var(--gray-700);
    --tw-prose-quote-borders: var(--gray-200);
    --tw-prose-captions: var(--gray-500);
    --tw-prose-code: var(--gray-900);
    --tw-prose-code-bg: var(--gray-100);
    --tw-prose-pre-bg: var(--gray-900);
    --tw-prose-th-borders: var(--gray-300);
    --tw-prose-td-borders: var(--gray-200);
  }
}

/* Performance optimized keyframe animations */
@keyframes fadeInStagger {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utility classes for staggered animations */
.stagger-fade:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade:nth-child(5) { animation-delay: 0.5s; }
.stagger-fade:nth-child(6) { animation-delay: 0.6s; }
.stagger-fade:nth-child(7) { animation-delay: 0.7s; }
.stagger-fade:nth-child(8) { animation-delay: 0.8s; }
.stagger-fade:nth-child(9) { animation-delay: 0.9s; }
.stagger-fade:nth-child(10) { animation-delay: 1.0s; }

/* Enhanced responsive breakpoints */
@layer utilities {
  .max-w-responsive {
    max-width: clamp(320px, 95vw, 1200px);
  }
  
  .min-h-screen-minus-header {
    min-height: calc(100vh - 80px);
  }
  
  .sticky-top-header {
    top: 0;
    z-index: 50;
  }
  
  /* Enhanced mobile navigation */
  .mobile-nav-open {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
  }
  
  .mobile-nav-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
  }
  
  .mobile-nav-menu.open {
    transform: translateX(0);
  }
}

/* Final cleanup - remove any remaining CSS issues */
@supports not (backdrop-filter: blur(10px)) {
  .glass-effect,
  .glass-effect-dark {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* CSS feature detection for modern browsers */
@supports (font-size: clamp(1rem, 4vw, 2rem)) {
  .responsive-text {
    font-size: clamp(1rem, 4vw, 2rem);
  }
}

@supports (color: color(display-p3 1 1 1)) {
  .wide-gamut {
    color: color(display-p3 1 0 0);
  }
}

@supports (overflow-wrap: break-word) {
  .text-wrap-balance {
    overflow-wrap: break-word;
  }
}

/* Final accessibility improvements */
@layer utilities {
  /* Skip navigation link */
  .skip-nav a {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
  }
  
  .skip-nav a:focus {
    top: 6px;
  }
  
  /* Focus visible polyfill */
  .js-focus-visible :focus:not(.focus-visible) {
    outline: none;
  }
  
  /* Reduced motion utilities */
  .motion-safe {
    animation: none;
  }
  
  @media (prefers-reduced-motion: no-preference) {
    .motion-safe {
      animation: inherit;
    }
  }
  
  /* Enhanced touch targets for mobile */
  .touch-target {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }
  
  .touch-target-sm {
    min-height: 32px;
    min-width: 32px;
    padding: 8px 12px;
  }
  
  .touch-target-lg {
    min-height: 56px;
    min-width: 56px;
    padding: 16px 20px;
  }
}