:root {
  --primary-color: #4f46e5;
  --secondary-color: #6366f1;
  --accent-color: #0ea5e9;
  --success-color: #22c55e;
  --warning-color: #facc15;
  --danger-color: #ef4444;
  --dark-color: #1e293b;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #64748b;
  --gray-700: #334155;
  --white: #ffffff;
  
  /* Updated Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;
  
  /* Responsive Variables */
  --container-padding: 1rem;
  --section-padding: 4rem 0;
  --card-padding: 2rem;
  --border-radius: 16px;
  --border-radius-lg: 24px;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Enhanced Background with Organic Shapes */
.organic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.organic-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  animation: morph 15s ease-in-out infinite;
  will-change: transform, border-radius;
}

.organic-shape:nth-child(1) {
  width: min(500px, 80vw);
  height: min(400px, 60vh);
  top: -200px;
  right: -250px;
  animation-delay: 0s;
}

.organic-shape:nth-child(2) {
  width: min(350px, 60vw);
  height: min(300px, 45vh);
  bottom: -150px;
  left: -175px;
  animation-delay: 5s;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(14, 165, 233, 0.06));
}

.organic-shape:nth-child(3) {
  width: min(250px, 40vw);
  height: min(200px, 30vh);
  top: 40%;
  right: -125px;
  animation-delay: 10s;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.06), rgba(239, 68, 68, 0.06));
}

@keyframes morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(30px, -30px) rotate(90deg);
  }
  50% {
    border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%;
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    border-radius: 70% 30% 40% 60% / 40% 70% 60% 30%;
    transform: translate(20px, -20px) rotate(270deg);
  }
}

/* Floating Particles - Responsive */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: float-particle 8s linear infinite;
  will-change: transform, opacity;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Container Responsive System */
.container {
  width: 100%;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
  margin-right: auto;
  margin-left: auto;
}

/* Navbar with Enhanced Responsiveness */
.navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  padding: 1rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1050;
}

.navbar-brand {
  font-weight: 800;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
}

.navbar-brand img {
  height: clamp(40px, 5vw, 60px);
  width: auto;
  transition: all 0.3s ease;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 1.5rem;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 24px;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  content: '';
  display: block;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  transform: translateY(-6px);
}

.navbar-toggler-icon::after {
  transform: translateY(4px);
}

.navbar-nav {
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(99, 102, 241, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* Hero Section - Fully Responsive */
.hero-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 15vh, 10rem) 0 clamp(2rem, 5vh, 4rem);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  word-break: break-word;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

.hero-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  height: clamp(250px, 50vh, 400px);
  margin-top: 2rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image {
  transform: scale(1.05);
}

/* Enhanced Responsive Buttons */
.btn-primary-custom, .btn-outline-custom {
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s ease;
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-align: center;
  justify-content: center;
  min-width: 120px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
  color: white;
}

.btn-outline-custom {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline-custom:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

/* Enhanced Responsive Cards */
.card-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

/* Stats Section - Mobile Optimized */
.stats-section {
  background: var(--gray-100);
  padding: clamp(3rem, 8vh, 6rem) 0;
}

.stat-card {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-text {
  color: var(--text-muted);
  font-weight: 500;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Client Logos Section - Enhanced Grid */
.client-logos-section {
  background: rgba(248, 250, 252, 0.8);
  padding: clamp(3rem, 6vh, 4rem) 0;
}

.client-logo-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(80px, 15vw, 100px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.client-logo-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.client-logo-card img {
  max-height: clamp(35px, 8vw, 50px);
  max-width: 90%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo-placeholder {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-muted);
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  text-align: center;
}

/* Service Cards - Mobile First */
.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.service-icon i {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Product Cards - Enhanced Mobile Experience */
.product-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: all 0.5s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Modern Image Containers - Responsive */
.modern-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.modern-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-image:hover img {
  transform: scale(1.05);
}

/* Industry Showcase - Mobile Optimized */
.industry-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: clamp(200px, 40vh, 300px);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
}

.industry-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.5s ease;
}

.industry-showcase:hover img {
  transform: scale(1.1);
}

.industry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.6), rgba(139, 92, 246, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.industry-showcase:hover .industry-overlay {
  opacity: 1;
}

.industry-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.industry-content h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Section Titles - Responsive Typography */
.section-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: clamp(2rem, 6vw, 4rem);
  max-width: min(600px, 90%);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Page Headers - Mobile Enhanced */
.page-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  padding: clamp(8rem, 20vh, 10rem) 0 clamp(3rem, 8vh, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text Classes - Responsive */
.content-heading {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.content-text-primary {
  color: var(--text-primary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.7;
}

.content-text-secondary {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: clamp(0.95rem, 2vw, 1rem);
}

.service-title, .product-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.service-description, .product-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact Form - Mobile Enhanced */
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.25rem);
  transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.8);
  font-weight: 500;
  color: var(--text-primary);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.15);
  background: white;
  transform: translateY(-2px);
  color: var(--text-primary);
  outline: none;
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Footer - Enhanced Mobile */
.footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2d3748 100%);
  color: var(--gray-300);
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(1.5rem, 4vh, 2rem);
}

.footer-brand {
  color: var(--white);
  margin-bottom: 0;
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.25rem);
}

.footer-heading {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.footer-description {
  color: var(--gray-300);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Feature Grid - Responsive */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1rem, 4vw, 2rem);
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Icon Wrapper - Responsive */
.icon-wrapper {
  width: clamp(60px, 12vw, 70px);
  height: clamp(60px, 12vw, 70px);
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.icon-wrapper i {
  color: white;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

/* Badge Styles - Responsive */
.badge-modern {
  background: linear-gradient(135deg, var(--success-color), var(--accent-color));
  color: white;
  padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(1rem, 2.5vw, 1.25rem);
  border-radius: 25px;
  font-weight: 500;
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  display: inline-block;
}

/* Breadcrumb - Mobile Enhanced */
.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Social Links - Enhanced Mobile */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(45px, 8vw, 50px);
  height: clamp(45px, 8vw, 50px);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
}

.social-links a:hover i {
  color: white !important;
}

.social-links i {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Loading Animation - Responsive */
.spinner {
  width: clamp(18px, 4vw, 20px);
  height: clamp(18px, 4vw, 20px);
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page Content Management */
.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Contact Info Cards - Mobile Enhanced */
.contact-info .card-modern {
  margin-bottom: 1.5rem;
}

.contact-info-title {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.contact-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-value {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.cta-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.cta-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
}

/* =================== RESPONSIVE BREAKPOINTS =================== */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 2rem 0;
    --card-padding: 1rem;
    --border-radius: 12px;
    --border-radius-lg: 16px;
  }

  /* Container adjustments */
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Navbar mobile specific */
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand img {
    height: 35px;
  }

  .navbar-collapse {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    text-align: center;
  }

  /* Hero section mobile */
  .hero-section {
    padding: 5rem 0 2rem;
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image-container {
    height: 200px;
    margin-top: 1.5rem;
  }

  /* Button adjustments */
  .btn-primary-custom, .btn-outline-custom {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  /* Stats section mobile */
  .stats-section {
    padding: 2rem 0;
  }

  .stat-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-text {
    font-size: 0.9rem;
  }

  /* Client logos mobile */
  .client-logos-section {
    padding: 2rem 0;
  }

  .client-logo-card {
    height: 70px;
    padding: 0.75rem;
  }

  .client-logo-card img {
    max-height: 30px;
  }

  /* Service and product cards */
  .service-card, .product-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

  /* Modern images */
  .modern-image {
    margin-bottom: 1rem;
  }

  /* Industry showcase */
  .industry-showcase {
    height: 180px;
  }

  .industry-content {
    padding: 1rem;
  }

  .industry-content h4 {
    font-size: 1.1rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Page headers */
  .page-header {
    padding: 6rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }

  .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer .row > div {
    margin-bottom: 1.5rem;
  }

  /* Feature grid */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  /* Icon wrappers */
  .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .icon-wrapper i {
    font-size: 1.2rem;
  }

  /* Badge */
  .badge-modern {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Social links */
  .social-links a {
    width: 45px;
    height: 45px;
  }

  .social-links i {
    font-size: 1rem;
  }

  /* Organic shapes - reduce for mobile */
  .organic-shape:nth-child(1) {
    width: 300px;
    height: 250px;
  }

  .organic-shape:nth-child(2) {
    width: 250px;
    height: 200px;
  }

  .organic-shape:nth-child(3) {
    width: 200px;
    height: 150px;
  }

  /* Hide particles on mobile for performance */
  .particles {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --container-padding: 1.5rem;
  }

  .container {
    max-width: 540px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-image-container {
    height: 250px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .client-logo-card {
    height: 80px;
  }

  .client-logo-card img {
    max-height: 35px;
  }

  .industry-showcase {
    height: 220px;
  }

  .btn-primary-custom, .btn-outline-custom {
    width: auto;
    display: inline-flex;
  }

  .d-flex.gap-3 {
    flex-direction: row;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --container-padding: 2rem;
  }

  .container {
    max-width: 720px;
  }

  .hero-section {
    padding: 7rem 0 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-image-container {
    height: 300px;
  }

  .stats-section {
    padding: 4rem 0;
  }

  .stat-number {
    font-size: 3.2rem;
  }

  .client-logo-card {
    height: 90px;
  }

  .client-logo-card img {
    max-height: 40px;
  }

  .service-card, .product-card {
    padding: 2rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 1.8rem;
  }

  .industry-showcase {
    height: 250px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-image-container {
    height: 350px;
  }

  .stats-section {
    padding: 5rem 0;
  }

  .client-logos-section {
    padding: 3.5rem 0;
  }

  .service-card, .product-card {
    padding: 2.25rem;
  }

  .industry-showcase {
    height: 280px;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-image-container {
    height: 400px;
  }

  .stats-section {
    padding: 6rem 0;
  }

  .client-logos-section {
    padding: 4rem 0;
  }

  .service-card, .product-card {
    padding: 2.5rem;
  }

  .industry-showcase {
    height: 300px;
  }

  .section-title {
    font-size: 2.8rem;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-section {
    padding: 10rem 0 4rem;
  }

  .stats-section {
    padding: 7rem 0;
  }

  .client-logos-section {
    padding: 5rem 0;
  }

  .page-header {
    padding: 12rem 0 6rem;
  }

  .footer {
    padding: 6rem 0 3rem;
  }
}

/* =================== ACCESSIBILITY & PERFORMANCE =================== */

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

  .organic-shape {
    animation: none;
  }

  .particles {
    display: none;
  }

  .particle {
    animation: none;
  }

  .hero-image,
  .modern-image img,
  .industry-showcase img {
    transition: none;
  }

  .card-modern:hover,
  .service-card:hover,
  .product-card:hover,
  .stat-card:hover,
  .client-logo-card:hover,
  .feature-card:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --secondary-color: #000080;
    --accent-color: #008080;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
  }

  .card-modern,
  .service-card,
  .product-card,
  .contact-form {
    border: 2px solid #000000;
    background: #ffffff;
  }

  .btn-primary-custom {
    border: 2px solid #000080;
  }

  .btn-outline-custom {
    border: 2px solid #000080;
    color: #000080;
  }
}

/* Print styles */
@media print {
  .organic-bg,
  .particles,
  .navbar,
  .btn-primary-custom,
  .btn-outline-custom,
  .social-links {
    display: none !important;
  }

  .page-content {
    display: block !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  .section-title,
  .hero-title,
  .page-header h1 {
    color: black !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
  }

  .card-modern,
  .service-card,
  .product-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Focus styles for better accessibility */
.btn-primary-custom:focus,
.btn-outline-custom:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

/* Keyboard navigation enhancement */
.keyboard-navigation *:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure touch targets are at least 44px */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn-primary-custom,
  .btn-outline-custom,
  .social-links a {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* This can be implemented later if dark mode is desired */
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 4rem 0 2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .hero-image-container {
    height: 150px;
  }

  .page-header {
    padding: 5rem 0 2rem;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }

  .row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Improve performance on mobile by reducing backdrop filters */
@media (max-width: 767.98px) {
  .card-modern,
  .service-card,
  .product-card,
  .contact-form,
  .navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}