/*!
 * IT-ERA Modern Design System
 * Version: 4.0.0 - Complete Redesign
 * Author: IT-ERA Development Team
 *
 * Modern, clean, professional design system built with Tailwind CSS
 */

/* ============================================
   FONTS & BASE STYLES
   ============================================ */

/* Import Google Fonts - Inter for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Modern base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: #fafafa;
}

/* Custom utilities that extend Tailwind */
@layer utilities {
  /* Gradient backgrounds */
  .bg-gradient-it-primary {
    background: linear-gradient(135deg, #0056cc 0%, #1d4ed8 100%);
  }
  
  .bg-gradient-it-hero {
    background: linear-gradient(135deg, #1e40af 0%, #0056cc 50%, #1d4ed8 100%);
  }
  
  .bg-gradient-it-subtle {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  }

  /* Text gradients */
  .text-gradient-it {
    background: linear-gradient(135deg, #0056cc 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Custom shadows */
  .shadow-it-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 86, 204, 0.1), 0 2px 4px -1px rgba(0, 86, 204, 0.06);
  }
  
  .shadow-it-medium {
    box-shadow: 0 10px 15px -3px rgba(0, 86, 204, 0.1), 0 4px 6px -2px rgba(0, 86, 204, 0.05);
  }
  
  .shadow-it-large {
    box-shadow: 0 20px 25px -5px rgba(0, 86, 204, 0.1), 0 10px 10px -5px rgba(0, 86, 204, 0.04);
  }

  /* Hover effects */
  .hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  
  .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 86, 204, 0.15), 0 10px 10px -5px rgba(0, 86, 204, 0.08);
  }

  /* Focus states for accessibility */
  .focus-it {
    @apply focus:outline-none focus:ring-4 focus:ring-blue-200 focus:ring-opacity-50;
  }

  /* Custom animations */
  .animate-fade-in {
    animation: fadeIn 0.6s ease-out;
  }
  
  .animate-slide-up {
    animation: slideUp 0.6s ease-out;
  }
  
  .animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
  }
  
  .animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
  }

  /* Responsive text utilities */
  .text-responsive-xl {
    @apply text-2xl md:text-3xl lg:text-4xl xl:text-5xl;
  }
  
  .text-responsive-lg {
    @apply text-xl md:text-2xl lg:text-3xl;
  }
  
  .text-responsive-md {
    @apply text-lg md:text-xl lg:text-2xl;
  }

  /* Container utilities */
  .container-it {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
  }
  
  .container-it-narrow {
    @apply max-w-4xl mx-auto px-4 sm:px-6 lg:px-8;
  }
  
  .container-it-wide {
    @apply max-w-screen-2xl mx-auto px-4 sm:px-6 lg:px-8;
  }

  /* Section spacing */
  .section-padding {
    @apply py-16 md:py-20 lg:py-24;
  }
  
  .section-padding-sm {
    @apply py-8 md:py-12 lg:py-16;
  }
  
  .section-padding-lg {
    @apply py-20 md:py-24 lg:py-32;
  }
}

/* ============================================
   KEYFRAMES FOR ANIMATIONS
   ============================================ */

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

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

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

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

/* ============================================
   MODERN COMPONENT SYSTEM
   ============================================ */

/* Modern Button System */
.btn {
  @apply inline-flex items-center justify-center font-medium transition-all duration-200 focus:outline-none focus:ring-4 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed;
}

.btn-primary {
  @apply btn px-8 py-4 text-white bg-brand-600 hover:bg-brand-700 focus:ring-brand-200 rounded-2xl shadow-lg hover:shadow-xl transform hover:-translate-y-0.5;
}

.btn-secondary {
  @apply btn px-8 py-4 text-brand-600 bg-white border-2 border-brand-600 hover:bg-brand-600 hover:text-white focus:ring-brand-200 rounded-2xl shadow-md hover:shadow-lg;
}

.btn-outline {
  @apply btn px-8 py-4 text-white border-2 border-white hover:bg-white hover:text-brand-600 focus:ring-white focus:ring-opacity-50 rounded-2xl backdrop-blur-sm;
}

.btn-ghost {
  @apply btn px-6 py-3 text-neutral-700 hover:bg-neutral-100 focus:ring-neutral-200 rounded-xl;
}

.btn-sm {
  @apply px-4 py-2 text-sm rounded-xl;
}

.btn-lg {
  @apply px-10 py-5 text-lg rounded-2xl;
}

/* Modern Card System */
.card {
  @apply bg-white rounded-3xl shadow-sm border border-neutral-100 transition-all duration-300;
}

.card-hover {
  @apply hover:shadow-xl hover:-translate-y-1 hover:border-brand-200;
}

.card-service {
  @apply card card-hover p-8 group cursor-pointer;
}

.card-featured {
  @apply card card-hover p-10 relative overflow-hidden border-brand-200 bg-gradient-to-br from-white to-brand-50;
}

.card-featured::before {
  content: '';
  @apply absolute top-0 left-0 w-full h-2 bg-gradient-to-r from-brand-500 to-brand-600;
}

.card-testimonial {
  @apply card p-8 border-neutral-200 bg-neutral-50;
}

/* Form Components */
.input-it {
  @apply w-full px-4 py-3 text-gray-900 border border-gray-300 rounded-lg bg-white focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors duration-200 placeholder-gray-500;
}

.textarea-it {
  @apply w-full px-4 py-3 text-gray-900 border border-gray-300 rounded-lg bg-white focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors duration-200 placeholder-gray-500 resize-vertical;
}

.label-it {
  @apply block text-sm font-semibold text-gray-700 mb-2;
}

/* Navigation Components */
.nav-link-it {
  @apply text-gray-700 hover:text-blue-600 font-medium transition-colors duration-200 px-3 py-2 rounded-md hover:bg-gray-50;
}

.nav-link-it-active {
  @apply text-blue-600 font-semibold bg-blue-50 px-3 py-2 rounded-md;
}

/* Hero Components */
.hero-it {
  @apply relative bg-gradient-it-hero text-white section-padding-lg overflow-hidden;
}

.hero-it::before {
  content: '';
  @apply absolute inset-0 bg-black bg-opacity-10;
}

/* Section Components */
.section-it {
  @apply section-padding;
}

.section-it-gray {
  @apply section-padding bg-gray-50;
}

.section-it-blue {
  @apply section-padding bg-blue-50;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Mobile-first responsive design */
@media (max-width: 640px) {
  .container-it {
    @apply px-4;
  }
  
  .section-padding {
    @apply py-12;
  }
  
  .text-responsive-xl {
    @apply text-2xl;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .container-it {
    @apply px-6;
  }
}

@media (min-width: 769px) {
  .container-it {
    @apply px-8;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Screen reader only content */
.sr-only {
  @apply absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0;
}

.sr-only.focus\:not-sr-only:focus {
  @apply static w-auto h-auto p-1 m-0 overflow-visible whitespace-normal;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-it-primary {
    @apply border-2 border-blue-800;
  }
  
  .card-it {
    @apply border-2 border-gray-300;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  body {
    @apply text-black bg-white;
  }
  
  .btn-it-primary,
  .btn-it-secondary {
    @apply border border-black text-black bg-white;
  }
}
