/* Critical CSS - all styles from inline moved here */

/* Variables */
:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --secondary: #06b6d4;
  --secondary-light: #22d3ee;
  --secondary-dark: #0891b2;
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --accent-dark: #e11d48;
  --dark: #1e293b;
  --dark-light: #334155;
  --light: #f8fafc;
  --light-dark: #e2e8f0;
  --shadow-sm: 0 1px 2px 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);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  max-width: 100%;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Buttons */
.btn {
  transition: all var(--transition-normal);
  font-weight: 600;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  z-index: -1;
}

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

.btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: transparent;
}

/* Navbar */
.navbar {
  transition: all var(--transition-normal);
  background-color: transparent;
  padding: 1.5rem 0;
  z-index: 1000;
}

.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
  position: relative;
  padding: 0.5rem 1rem;
}

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

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

.navbar.scrolled .nav-link,
.navbar.show .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-nav .nav-link:hover {
  color: var(--secondary);
}

.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.navbar.scrolled.navbar-dark {
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-brand img {
  transition: all var(--transition-normal);
  width: 100px;
}

.navbar.scrolled .navbar-brand img {
  width: 60px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 41, 59, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .btn-primary {
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
}

.navbar.scrolled .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: all var(--transition-normal);
}

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

/* Hero Section - stabilized for zero CLS */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport height for mobile */
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  contain: layout style paint; /* performance optimization */
}

/* Hero text stabilization - prevents CLS from font loading */
.hero-section h1 {
  min-height: 120px; /* reserve space for headline */
}

.hero-section .lead {
  min-height: 30px; /* reserve space for subtitle */
}

.hero-section .mt-5 {
  min-height: 60px; /* reserve space for buttons */
}

.navbar-nav .btn {
  margin-left: 4px;
  margin-right: 4px;
}

/* Stars container */
.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Enhanced Service Cards */
#services {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.service-category h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.service-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.1);
}

.service-card .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
  transition: all 0.4s ease;
  position: relative;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(6, 182, 212, 0.15));
}

.service-card .icon i {
  font-size: 2rem;
  transition: transform 0.4s ease;
}

.service-card:hover .icon i {
  transform: scale(1.1);
}

.service-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover h4 {
  color: var(--primary);
}

.service-card p {
  color: var(--dark-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Enhanced What We Do Section */
#what-we-do {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

#what-we-do h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

#what-we-do > .container > p {
  font-size: 1.15rem;
  color: var(--dark-light);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

#what-we-do .card {
  border-radius: 20px;
  border: none;
  background: white;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

#what-we-do .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#what-we-do .card:hover::before {
  transform: scaleX(1);
}

#what-we-do .card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);
}

#what-we-do .card-img-top {
  transition: all 0.5s ease;
  filter: grayscale(0);
  padding: 2.5rem 2rem 1rem;
}

#what-we-do .card:hover .card-img-top {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 20px rgba(79, 70, 229, 0.3));
}

#what-we-do .card-body {
  padding: 1.5rem 2rem 2.5rem;
}

#what-we-do .card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

#what-we-do .card:hover .card-title {
  color: var(--primary);
}

#what-we-do .card-text {
  color: var(--dark-light);
  line-height: 1.7;
  font-size: 1rem;
}

/* Enhanced Who We Serve Section */
#who-we-serve {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  position: relative;
  overflow: hidden;
}

#who-we-serve::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

#who-we-serve .container {
  position: relative;
  z-index: 1;
}

#who-we-serve h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#who-we-serve .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.client-type {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.client-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.client-type:hover::before {
  opacity: 1;
}

.client-type:hover {
  transform: translateY(-12px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.client-type i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.client-type:hover i {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.client-type h5 {
  font-weight: 600;
  margin: 0;
  color: white;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced Our Vision Section */
#our-vision {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  padding: 5rem 0;
}

#our-vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

#our-vision .container {
  position: relative;
  z-index: 1;
}

#our-vision h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 20px;
}

#our-vision h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

#our-vision h3 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

#our-vision p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dark-light);
  margin-bottom: 1.5rem;
}

#our-vision p strong {
  color: var(--primary);
  font-weight: 700;
}

#our-vision img {
  transition: all 0.5s ease;
  filter: drop-shadow(0 10px 30px rgba(79, 70, 229, 0.15));
  animation: float-gentle 6s ease-in-out infinite;
}

#our-vision img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 40px rgba(79, 70, 229, 0.25));
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Enhanced How We Do It Section */
#how-we-do-it {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  padding: 5rem 0;
}

#how-we-do-it h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
}

/* Timeline Enhancements */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
  border-radius: 2px;
}

.timeline-item {
  width: 50%;
  padding: 2rem 3rem;
  position: relative;
  background-color: transparent;
}

.timeline-item:nth-child(odd) {
  text-align: right;
  left: 0;
}

.timeline-item:nth-child(even) {
  text-align: left;
  left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  right: -12px;
  background: white;
  border: 4px solid var(--primary);
  top: 2rem;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
}

.timeline-item:nth-child(even)::before {
  left: -12px;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.timeline-item:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.15);
}

.timeline-item:nth-child(even):hover::before {
  box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.15);
}

.timeline-content {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.1);
}

.timeline-content h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.timeline-content:hover h4 {
  color: var(--primary);
}

.timeline-content p {
  color: var(--dark-light);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

/* Responsive Timeline */
@media (max-width: 991.98px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    left: 0 !important;
    text-align: left !important;
  }

  .timeline-item::before {
    left: 19px !important;
    right: auto !important;
  }
}

/* Enhanced What Sets Us Apart Section */
#what-sets-us-apart {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  padding: 5rem 0;
}

#what-sets-us-apart::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(270deg, rgba(6, 182, 212, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

#what-sets-us-apart .container {
  position: relative;
  z-index: 1;
}

#what-sets-us-apart h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.feature-item:hover::before {
  transform: scaleY(1);
}

.feature-item:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.1);
}

.feature-item .icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
  transition: all 0.4s ease;
  position: relative;
}

.feature-item:hover .icon {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(6, 182, 212, 0.15));
  transform: scale(1.1) rotate(-5deg);
}

.feature-item .icon i {
  transition: all 0.4s ease;
}

.feature-item:hover .icon i {
  transform: scale(1.1);
}

.feature-item h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.feature-item:hover h5 {
  color: var(--primary);
}

.feature-item p {
  color: var(--dark-light);
  line-height: 1.7;
  font-size: 1rem;
}

/* Enhanced Footer */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 2rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer ul li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.footer ul li:hover {
  color: white;
  transform: translateX(5px);
}

.footer ul li i {
  color: var(--secondary);
  margin-right: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer a:hover {
  color: var(--secondary);
}

.footer .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.footer .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 3rem 0 2rem;
}

.footer .fab, .footer .fas {
  transition: all 0.3s ease;
}

.footer a:hover .fab,
.footer a:hover .fas {
  transform: scale(1.2);
  color: var(--secondary);
}

.footer img {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234f46e5' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero-section p {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-section .btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

/* Custom CV Button */
.custom-cv-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.custom-cv-button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

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

/* Responsive Styles */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem;
    color: var(--dark) !important;
  }

  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-top: 1rem;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  /* Hide stars on mobile for better performance */
  .stars-container {
    display: none !important;
  }

  .hero-section {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: auto;
    background: #0f172a !important; /* Solid color instead of gradient */
  }

  .hero-section h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    min-height: 100px; /* stabilize for mobile */
  }

  /* Remove expensive gradient text on mobile - use solid white */
  .hero-section h1 span {
    display: block;
    margin-bottom: 0.5rem;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: #ffffff !important;
  }

  .hero-section .lead {
    font-size: 0.95rem;
    margin-top: 1rem !important;
    min-height: 24px; /* stabilize for mobile */
  }

  .hero-section .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .hero-section .mt-5 {
    min-height: 120px; /* reserve space for stacked buttons on mobile */
  }

  /* Disable ALL animations on mobile for better performance */
  #our-vision img {
    animation: none !important;
  }

  /* Disable transitions that cause jank */
  .service-card,
  .feature-item,
  .industry-card,
  .nav-link-modern,
  .btn,
  .btn-action {
    transition: none !important;
  }

  /* Disable expensive transform/shadow hover effects */
  .service-card:hover,
  .feature-item:hover,
  .industry-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 575.98px) {
  h2 {
    font-size: 2rem;
  }
}
