/* DDC Brand-Aligned Bootstrap 5 Enhanced Styles */
/* Professional International Software Development Company Theme */

/* Import Bootstrap 5 */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');

/* DDC Brand Color Palette - Red-focused with Dark Blue Buttons */
:root {
  /* Primary Brand Colors - Red Shades with Dark Blue Accents */
  --ddc-red: #dc2626;
  --ddc-red-light: #f87171;
  --ddc-red-lighter: #fca5a5;
  --ddc-red-dark: #b91c1c;
  --ddc-red-darker: #991b1b;
  --ddc-navy: #1e293b;
  --ddc-navy-light: #334155;
  --ddc-navy-dark: #0f172a;
  
  /* Bootstrap Integration with Red-focused Brand Colors */
  --bs-primary: #dc2626;
  --bs-primary-rgb: 220, 38, 38;
  --bs-secondary: #1e293b;
  --bs-secondary-rgb: 30, 41, 59;
  --bs-success: #16a34a;
  --bs-success-rgb: 22, 163, 74;
  --bs-danger: #dc2626;
  --bs-danger-rgb: 220, 38, 38;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;
  
  /* Professional Grays */
  --bs-light: #f8fafc;
  --bs-light-rgb: 248, 250, 252;
  --bs-dark: #1e293b;
  --bs-dark-rgb: 30, 41, 59;
  --bs-gray-50: #f9fafb;
  --bs-gray-100: #f3f4f6;
  --bs-gray-200: #e5e7eb;
  --bs-gray-300: #d1d5db;
  --bs-gray-400: #9ca3af;
  --bs-gray-500: #6b7280;
  --bs-gray-600: #4b5563;
  --bs-gray-700: #374151;
  --bs-gray-800: #1f2937;
  --bs-gray-900: #111827;
  
  /* Brand Gradients - Red-focused */
  --ddc-gradient-primary: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  --ddc-gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --ddc-gradient-hero: linear-gradient(135deg, #dc2626 0%, #f87171 50%, #1e293b 100%);
  --ddc-gradient-accent: linear-gradient(90deg, rgba(220, 38, 38, 0.05) 0%, rgba(30, 41, 59, 0.05) 100%);
  
  /* Typography - International Standard */
  --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ddc-font-display: 'Poppins', 'Inter', sans-serif;
  --bs-font-size-base: 1rem;
  --bs-line-height-base: 1.6;
  
  /* Enhanced Spacing */
  --ddc-section-padding: 5rem;
  --ddc-section-padding-sm: 3rem;
  --ddc-container-padding: 2rem;
  
  /* Professional Shadows - Red-focused */
  --ddc-shadow-sm: 0 2px 8px rgba(220, 38, 38, 0.08);
  --ddc-shadow-md: 0 8px 25px rgba(220, 38, 38, 0.12);
  --ddc-shadow-lg: 0 15px 35px rgba(220, 38, 38, 0.15);
  --ddc-shadow-xl: 0 25px 50px rgba(220, 38, 38, 0.2);
  --ddc-shadow-accent: 0 8px 25px rgba(30, 41, 59, 0.15);
  
  /* Border Radius */
  --bs-border-radius: 0.75rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.5rem;
  --bs-border-radius-2xl: 2rem;
  
  /* Transitions */
  --ddc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ddc-transition-fast: all 0.15s ease-out;
  --ddc-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
  font-family: var(--bs-font-sans-serif);
  color: var(--bs-gray-800);
  line-height: var(--bs-line-height-base);
  background-color: #ffffff;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ddc-font-display);
  font-weight: 700;
  color: var(--ddc-red);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

.display-1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; }
.display-2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }

.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--bs-gray-600);
}

/* Enhanced Buttons */
.btn {
  font-family: var(--bs-font-sans-serif);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: var(--bs-border-radius);
  border: 2px solid transparent;
  transition: var(--ddc-transition);
  text-transform: none;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--ddc-gradient-secondary);
  border-color: var(--ddc-navy);
  color: white;
  box-shadow: var(--ddc-shadow-accent);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--ddc-navy-dark);
  border-color: var(--ddc-navy-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--ddc-shadow-accent);
}

.btn-secondary {
  background: var(--ddc-gradient-primary);
  border-color: var(--ddc-red);
  color: white;
  box-shadow: var(--ddc-shadow-sm);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--ddc-red-dark);
  border-color: var(--ddc-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--ddc-shadow-md);
}

.btn-outline-primary {
  color: var(--ddc-navy);
  border-color: var(--ddc-navy);
  background: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--ddc-navy);
  border-color: var(--ddc-navy);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  color: var(--ddc-red);
  border-color: var(--ddc-red);
  background: transparent;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: var(--ddc-red);
  border-color: var(--ddc-red);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--bs-border-radius-lg);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--bs-border-radius-sm);
}

/* Professional Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--ddc-transition);
  padding: 1rem 0;
  box-shadow: var(--ddc-shadow-sm);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ddc-shadow-md);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-family: var(--ddc-font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--ddc-red) !important;
  text-decoration: none;
  transition: var(--ddc-transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--ddc-gradient-primary);
  border-radius: var(--bs-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--bs-gray-700);
  padding: 0.75rem 1.25rem;
  border-radius: var(--bs-border-radius);
  transition: var(--ddc-transition);
  position: relative;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link::after {
  display: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ddc-red);
  background: rgba(220, 38, 38, 0.05);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  display: none;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(220, 38, 38, 0.1);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--ddc-shadow-lg);
  padding: 1rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--bs-gray-700);
  padding: 0.75rem 1rem;
  border-radius: var(--bs-border-radius);
  transition: var(--ddc-transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--ddc-red);
  transform: translateX(4px);
}

.dropdown-item i {
  width: 20px;
  color: var(--ddc-red);
}

/* Enhanced Cards */
.card {
  background: white;
  border: 1px solid rgba(26, 40, 71, 0.08);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--ddc-shadow-sm);
  transition: var(--ddc-transition);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ddc-gradient-secondary);
  transform: scaleX(0);
  transition: var(--ddc-transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ddc-shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-body {
  padding: 2rem;
}

.card-header {
  background: var(--bs-gray-50);
  border-bottom: 1px solid rgba(26, 40, 71, 0.08);
  padding: 1.5rem 2rem;
  font-weight: 600;
  color: var(--ddc-navy);
}

.card-footer {
  background: var(--bs-gray-50);
  border-top: 1px solid rgba(26, 40, 71, 0.08);
  padding: 1.5rem 2rem;
}

/* Hero Section Enhancement */
.hero-section {
  background: var(--ddc-gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Service Cards Enhancement */
.service-card {
  background: white;
  border-radius: var(--bs-border-radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(26, 40, 71, 0.08);
  box-shadow: var(--ddc-shadow-sm);
  transition: var(--ddc-transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ddc-gradient-accent);
  opacity: 0;
  transition: var(--ddc-transition);
  z-index: 1;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--ddc-shadow-xl);
  border-color: var(--ddc-red);
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--ddc-gradient-primary);
  border-radius: var(--bs-border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 2rem;
  box-shadow: var(--ddc-shadow-md);
  transition: var(--ddc-transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--ddc-gradient-secondary);
  box-shadow: var(--ddc-shadow-accent);
}

.service-card h3 {
  color: var(--ddc-navy);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.service-card p {
  color: var(--bs-gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
  color: var(--bs-gray-700);
  font-weight: 500;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ddc-red);
  font-weight: 700;
  width: 20px;
  height: 20px;
  background: rgba(233, 30, 99, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Statistics Section */
.stats-section {
  background: var(--bs-gray-50);
  position: relative;
}

.stat-card {
  background: white;
  border-radius: var(--bs-border-radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(26, 40, 71, 0.08);
  box-shadow: var(--ddc-shadow-sm);
  transition: var(--ddc-transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ddc-gradient-secondary);
  transform: scaleX(0);
  transition: var(--ddc-transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ddc-shadow-lg);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--ddc-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--bs-gray-600);
  font-weight: 600;
}

/* Forms Enhancement */
.form-control {
  border: 2px solid var(--bs-gray-200);
  border-radius: var(--bs-border-radius);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: var(--ddc-transition);
  background: var(--bs-gray-50);
}

.form-control:focus {
  border-color: var(--ddc-navy);
  box-shadow: 0 0 0 0.25rem rgba(26, 40, 71, 0.15);
  background: white;
}

.form-label {
  font-weight: 600;
  color: var(--ddc-navy);
  margin-bottom: 0.75rem;
}

.form-select {
  border: 2px solid var(--bs-gray-200);
  border-radius: var(--bs-border-radius);
  padding: 1rem 1.25rem;
  background: var(--bs-gray-50);
}

/* Modals Enhancement */
.modal-content {
  border: none;
  border-radius: var(--bs-border-radius-xl);
  box-shadow: var(--ddc-shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--bs-gray-50);
  border-bottom: 1px solid rgba(26, 40, 71, 0.08);
  padding: 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  background: var(--bs-gray-50);
  border-top: 1px solid rgba(26, 40, 71, 0.08);
  padding: 2rem;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: var(--bs-border-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--ddc-shadow-md);
  border: 1px solid rgba(26, 40, 71, 0.08);
  position: relative;
  height: 100%;
  transition: var(--ddc-transition);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 4rem;
  color: rgba(233, 30, 99, 0.2);
  font-family: serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ddc-shadow-lg);
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ddc-red);
}

/* Footer Enhancement */
.footer {
  background: var(--ddc-gradient-primary);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
  transition: var(--ddc-transition);
  text-decoration: none;
  font-weight: 500;
}

.footer .nav-link:hover {
  color: white;
  transform: translateX(4px);
}

/* Utility Classes */
.text-gradient {
  background: var(--ddc-gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--ddc-gradient-primary) !important;
}

.bg-gradient-secondary {
  background: var(--ddc-gradient-secondary) !important;
}

.shadow-soft {
  box-shadow: var(--ddc-shadow-sm) !important;
}

.shadow-strong {
  box-shadow: var(--ddc-shadow-lg) !important;
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding: 4rem 0;
  }
  
  .service-card,
  .stat-card,
  .testimonial-card {
    margin-bottom: 2rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem;
    text-align: center;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-section .btn {
    width: auto;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .stat-card {
    padding: 2rem 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .modal,
  footer {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card,
  .btn,
  .form-control {
    border-width: 2px;
  }
}

/* Focus Visible for Better Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--ddc-red);
  outline-offset: 2px;
}
