/* Professional Manufacturing Color Scheme */
:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --secondary: #64748b;
  --secondary-light: #94a3b8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 24px rgba(30, 58, 138, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 58, 138, 0.15);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: .3s ease;
  --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary) !important;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}
.section-header p { 
  color: var(--gray-600) !important; 
  max-width: 600px; 
  margin: 16px auto 0; 
}
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
/* Update button styles for professional look */
.btn-primary { 
  background: var(--gradient-accent); 
  color: var(--white); 
  border: none;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}
.btn-outline { 
  border: 2px solid var(--accent); 
  color: var(--accent); 
  background: transparent;
  backdrop-filter: blur(10px);
}
.btn-outline:hover { 
  background: var(--accent); 
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-dark { 
  border: 2px solid var(--primary); 
  color: var(--primary); 
  background: var(--white);
}
.btn-outline-dark:hover { 
  background: var(--primary); 
  color: var(--white); 
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== OPTIMIZED HEADER STYLES ===== */

/* Header Container */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Bar */
.top-bar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 0;
  font-size: 0.8rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar a,
.top-bar span {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar i {
  color: var(--accent);
  font-size: 0.75rem;
}

/* Main Navbar */
.navbar {
  padding: 0;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 20px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* UAE Flag - Optimized SVG */
.uae-flag-wrapper {
  position: relative;
  width: 60px;
  height: 40px;
  perspective: 200px;
}

.uae-flag {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: flagWave 3s ease-in-out infinite;
  transform-origin: left center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.uae-flag:hover {
  animation: flagWaveIntense 1.5s ease-in-out infinite;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.flag-shine {
  animation: flagShine 3s ease-in-out infinite;
}

/* Logo Link */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: translateY(-1px);
}

.logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) contrast(1.1) brightness(1.1);
}

.company-details {
  display: none;
}

.company-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.2;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.8);
  backdrop-filter: blur(10px);
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 4px;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* UAE Flag Animations - Optimized */
@keyframes flagWave {
  0%, 100% { 
    transform: perspective(200px) rotateY(0deg) rotateX(0deg);
  }
  25% { 
    transform: perspective(200px) rotateY(-4deg) rotateX(1deg);
  }
  50% { 
    transform: perspective(200px) rotateY(0deg) rotateX(-1deg);
  }
  75% { 
    transform: perspective(200px) rotateY(4deg) rotateX(1deg);
  }
}

@keyframes flagWaveIntense {
  0%, 100% { 
    transform: perspective(200px) rotateY(0deg) rotateX(0deg) scale(1.05);
  }
  25% { 
    transform: perspective(200px) rotateY(-6deg) rotateX(2deg) scale(1.05);
  }
  50% { 
    transform: perspective(200px) rotateY(0deg) rotateX(-2deg) scale(1.05);
  }
  75% { 
    transform: perspective(200px) rotateY(6deg) rotateX(2deg) scale(1.05);
  }
}

@keyframes flagShine {
  0%, 100% { 
    transform: translateX(-120%);
    opacity: 0;
  }
  50% { 
    transform: translateX(120%);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar-content {
    height: 70px;
  }
  
  .company-name {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    gap: 2px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .navbar-content {
    height: 65px;
    gap: 12px;
  }
  
  .logo-section {
    gap: 12px;
  }
  
  .uae-flag-wrapper {
    width: 45px;
    height: 30px;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .company-name {
    font-size: 1.1rem;
  }
  
  .company-tagline {
    font-size: 0.65rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .navbar-content {
    height: 60px;
    gap: 8px;
  }
  
  .logo-section {
    gap: 8px;
  }
  
  .uae-flag-wrapper {
    width: 40px;
    height: 26px;
  }
  
  .logo-img {
    height: 35px;
  }
  
  .company-name {
    font-size: 1rem;
  }
  
  .company-tagline {
    font-size: 0.6rem;
  }
  
  .top-bar-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .top-bar-left {
    flex-direction: column;
    gap: 8px;
  }
}

/* Performance Optimizations */
.uae-flag,
.logo-link,
.nav-link,
.mobile-toggle {
  will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .uae-flag {
    animation: none;
  }
  
  .flag-shine {
    animation: none;
  }
  
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ===== HERO SLIDESHOW ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active {
  opacity: 1 !important;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 3;
}
/* ===== PREMIUM HERO TEXT ANIMATIONS ===== */
.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  /* Start hidden and positioned */
  transform: translateY(30px);
  opacity: 0;
  visibility: hidden;
  animation: heroContentReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
  /* Ensure final state is maintained */
  animation-fill-mode: forwards;
}

/* Ensure content is visible after animation */
.hero-content.animated {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Hero Badge Premium Animation */
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: badgeSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s ease;
}

.hero-badge:hover::before {
  left: 100%;
}

/* Premium Heading with Gradient Text */
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateX(-50px);
  opacity: 0;
  animation: headingSlideIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b35);
  border-radius: 2px;
  animation: underlineExpand 1.2s cubic-bezier(0.23, 1, 0.32, 1) 1.5s forwards;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  animation: accentGlow 3s ease-in-out infinite alternate;
}

/* Premium Paragraph Animation */
.hero p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  max-width: 600px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  opacity: 0;
  animation: paragraphFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

/* Premium Button Animations */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  transform: scale(0.8);
  opacity: 0;
  animation: buttonsZoomIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.6s forwards;
}

.hero .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(0);
}

.hero .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 ease;
}

.hero .btn:hover::before {
  left: 100%;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 100%);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #ff6b35 0%, var(--accent) 100%);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.6);
}

/* Premium Stats Animation */
.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 60px;
  padding-top: 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: statsSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 2s forwards;
}

.hero-stat {
  text-align: center;
  position: relative;
  transform: translateY(10px);
  opacity: 0;
}

.hero-stat:nth-child(1) { animation: statFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 2.2s forwards; }
.hero-stat:nth-child(2) { animation: statFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 2.4s forwards; }
.hero-stat:nth-child(3) { animation: statFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 2.6s forwards; }
.hero-stat:nth-child(4) { animation: statFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 2.8s forwards; }

.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
}

.hero-stat p {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Premium Keyframe Animations */
@keyframes heroContentReveal {
  0% {
    transform: translateY(30px);
    opacity: 0;
    visibility: hidden;
  }
  1% {
    visibility: visible;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@keyframes badgeSlideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes headingSlideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes underlineExpand {
  to {
    width: 120px;
  }
}

@keyframes accentGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(249, 115, 22, 0.3));
  }
  100% {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(249, 115, 22, 0.5));
  }
}

@keyframes paragraphFadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes buttonsZoomIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes statsSlideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes statFadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Floating Animation for Hero Content */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-content.loaded {
  animation: float 6s ease-in-out infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding: 35px 25px;
    max-width: 95%;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-stat h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    gap: 20px;
  }
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 540px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-stat h3 { 
  font-size: 2.2rem; 
  color: var(--accent);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-stat p { 
  font-size: .85rem; 
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== ABOUT INTRO (Home) ===== */
.about-intro {
  background: var(--white) !important;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 0 20px;
  box-shadow: var(--shadow-glass);
}
.about-intro .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-intro-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-intro-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}
.experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
}
.experience-badge span { display: block; font-size: 2rem; line-height: 1; }
.about-intro-text h2 { font-size: 2rem; color: var(--primary); margin-bottom: 16px; font-weight: 700; }
.about-intro-text p { color: var(--gray-600); margin-bottom: 16px; }
.about-intro-text .highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.about-intro-text .highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--gray-700);
}
.about-intro-text .highlights li i { color: var(--accent); font-size: 1rem; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(30, 58, 138, 0.15);
  border-color: var(--accent);
}
.service-card .icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--white);
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}
.service-card:hover .icon { 
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.5);
}
.service-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 10px; font-weight: 600; }
.service-card p { font-size: .9rem; color: var(--gray-600); }

/* ===== CERTIFICATIONS BAR ===== */
.cert-bar {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 0 20px;
  color: var(--gray-800);
  padding: 48px 0;
  box-shadow: var(--shadow-glass);
}
.cert-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
}
.cert-item {
  text-align: center;
  transition: var(--transition);
}
.cert-item:hover { transform: scale(1.05); }
.cert-item i { 
  font-size: 2.8rem; 
  color: var(--accent);
  margin-bottom: 8px; 
  display: block; 
}
.cert-item h4 { font-size: 1rem; margin-bottom: 2px; color: var(--primary); font-weight: 600; }
.cert-item p { font-size: .78rem; color: var(--gray-600); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin: 0 20px;
  color: var(--gray-800);
  text-align: center;
  padding: 72px 0;
  box-shadow: var(--shadow-glass);
}
.cta-section h2 { font-size: 2.2rem; margin-bottom: 16px; color: var(--primary); font-weight: 700; }
.cta-section p { max-width: 560px; margin: 0 auto 28px; color: var(--gray-600); }

/* ===== ABOUT PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(51, 65, 85, 0.8)),
    url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 0 60px;
}
.page-hero h1 { font-size: 2.6rem; margin-bottom: 12px; }
.page-hero .breadcrumb { font-size: .9rem; color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a { color: var(--accent); }

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.mv-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-glass);
  border-left: 4px solid var(--accent);
}
.mv-card h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.mv-card h3 i { color: var(--accent); }
.mv-card p { color: var(--gray-600); }

.org-strength {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.org-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}
.org-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15); }
.org-card i { font-size: 2.2rem; color: var(--accent); margin-bottom: 12px; }
.org-card h4 { color: var(--primary); margin-bottom: 6px; font-weight: 600; }
.org-card p { font-size: .85rem; color: var(--gray-600); }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(30, 58, 138, 0.15); }
.product-card-img {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent);
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; font-weight: 600; }
.product-card-body p { font-size: .88rem; color: var(--gray-600); }

/* ===== PROJECTS PORTFOLIO ===== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 22px;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  font-family: inherit;
  color: var(--gray-600);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15); }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(30, 58, 138, 0.9) 0%, rgba(51, 65, 85, 0.4) 100%); }
.project-overlay h3 { color: var(--white); font-size: 1.1rem; }
.project-overlay span { color: var(--accent); font-size: .82rem; font-weight: 500; }

/* ===== CERTIFICATIONS PAGE ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-glass);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15); }
.cert-card i { font-size: 2.8rem; color: var(--accent); margin-bottom: 16px; }
.cert-card h3 { color: var(--primary); margin-bottom: 8px; font-weight: 600; }
.cert-card p { font-size: .9rem; color: var(--gray-600); }

/* ===== FACTORY PAGE ===== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.capability-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}
.capability-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15); }
.capability-card i { font-size: 2rem; color: var(--accent); margin-bottom: 14px; display: block; }
.capability-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; font-weight: 600; }
.capability-card p { font-size: .88rem; color: var(--gray-600); }
.capability-card ul { margin-top: 10px; }
.capability-card ul li {
  font-size: .85rem;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.capability-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-cards {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glass);
}
/* Update contact info card icon background */
.contact-info-card i {
  width: 44px;
  height: 44px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-card h4 { color: var(--primary); font-size: .95rem; margin-bottom: 2px; font-weight: 600; }
.contact-info-card p { font-size: .88rem; color: var(--gray-600); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-glass);
}
.contact-form h3 { color: var(--primary); margin-bottom: 24px; font-size: 1.3rem; font-weight: 600; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; color: var(--gray-800); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .92rem;
  transition: var(--transition);
  outline: none;
  background: var(--white);
  color: var(--gray-800);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--gray-400);
}
/* Update form focus colors */
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.3) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--white) !important;
  padding: 64px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}
.footer .container {
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer h4 { color: var(--primary); margin-bottom: 20px; font-size: 1.05rem; font-weight: 600; }
.footer-about p { font-size: .88rem; line-height: 1.8; color: var(--gray-600); }
.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: .88rem;
  transition: var(--transition);
  color: var(--gray-600);
}
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  margin-bottom: 10px;
  color: var(--gray-600);
}
.footer-contact i { color: var(--accent); width: 16px; }
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  font-size: .82rem;
  color: var(--gray-500);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(249, 115, 22, 0.6); }

/* ===== FACTORY CAROUSEL ===== */
.factory-showcase {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}
.factory-carousel {
  position: relative;
  width: 100%;
  height: 480px;
}
.factory-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.factory-carousel .slide.active { opacity: 1; }
.factory-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.factory-carousel .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 28px;
  background: linear-gradient(to top, rgba(10,31,63,.85), transparent);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 5;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-dots {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dots .dot.active { background: var(--accent); transform: scale(1.2); }

.factory-section .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.factory-text h2 { font-size: 2rem; color: var(--white); margin-bottom: 16px; font-weight: 700; }
.factory-text p { color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.factory-text .factory-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.factory-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.factory-highlight-item i {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}
.factory-highlight-item span { font-size: .9rem; font-weight: 500; color: var(--white); }

/* Factory gallery grid */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.factory-gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--glass-border);
}
.factory-gallery-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15); }
.factory-gallery-card .factory-carousel { height: 280px; }
.factory-gallery-card .card-label {
  padding: 16px 20px;
  background: var(--white);
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.factory-gallery-card .card-label i { color: var(--accent); }

/* ===== LIGHTBOX SLIDESHOW ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 92%;
  text-align: center;
}
.lightbox-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity .3s ease;
}
.lightbox-caption {
  color: var(--white);
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}
.lightbox-counter {
  color: var(--gray-400);
  font-size: .85rem;
  margin-top: 4px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0,0,0,0.8);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent); }
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -64px; top: 50%; transform: translateY(-50%); }

/* ===== FOOTER LOGO ===== */
.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logo { height: 95px; width: auto; }
.footer-uae-flag {
  height: 40px;
  width: 60px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
  animation: flagWave 4s ease-in-out infinite;
  transform-origin: left center;
}
.footer-uae-flag:hover {
  animation: flagWaveIntense 2s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: -52px; right: 0; }
  .footer-uae-flag {
    height: 32px;
    width: 48px;
  }
  
  .factory-section .grid { grid-template-columns: 1fr; }
  .factory-carousel { height: 320px; }
  .factory-gallery-card .factory-carousel { height: 240px; }
  .factory-text .factory-highlights { grid-template-columns: 1fr; }
  .factory-gallery { grid-template-columns: 1fr; }
  
  .hero { min-height: 80vh; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .about-intro .grid { grid-template-columns: 1fr; gap: 32px; }
  .about-intro, .cert-bar, .cta-section, .section:nth-child(even) { margin: 0 10px; }
  .mission-vision { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-stat h3 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ===== FACTORY SECTION TEXT FIXES ===== */
.factory-section {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%) !important;
  position: relative;
}
.factory-section .factory-text h2 { 
  font-size: 2rem; 
  color: var(--white) !important; 
  margin-bottom: 16px; 
  font-weight: 700; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.factory-section .factory-text p { 
  color: rgba(255,255,255,0.9) !important; 
  margin-bottom: 16px; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.factory-section .factory-highlight-item span { 
  font-size: .9rem; 
  font-weight: 500; 
  color: rgba(255,255,255,0.95) !important; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ===== PAGE HERO TEXT CONTRAST ===== */
.page-hero h1 { 
  font-size: 2.6rem; 
  margin-bottom: 12px; 
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.page-hero .breadcrumb { 
  font-size: .9rem; 
  color: rgba(255,255,255,.85) !important; 
}
.page-hero .breadcrumb a { 
  color: var(--accent) !important; 
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== FOOTER TEXT CONTRAST ===== */
.footer {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.3) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--white) !important;
  padding: 64px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}
.footer h4 { 
  color: var(--white) !important; 
  margin-bottom: 20px; 
  font-size: 1.05rem; 
  font-weight: 600; 
}
.footer-about p { 
  font-size: .88rem; 
  line-height: 1.8; 
  color: rgba(255,255,255,0.8) !important; 
}
.footer-links a {
  color: rgba(255,255,255,0.7) !important;
}
.footer-links a:hover { 
  color: var(--accent) !important; 
}
.footer-contact p {
  color: rgba(255,255,255,0.8) !important;
}
.footer-bottom {
  color: rgba(255,255,255,0.6) !important;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== SERVICES SECTION SPECIFIC FIXES ===== */
#services .section-header h2 {
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
#services .section-header p {
  color: rgba(255,255,255,0.9) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== SECTION BACKGROUND FIXES ===== */
#services {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%) !important;
  color: var(--white);
}
.service-card h3 { 
  color: var(--primary) !important; 
}
.service-card p { 
  color: var(--gray-600) !important; 
}
.product-card-body h3 { 
  color: var(--primary) !important; 
}
.product-card-body p { 
  color: var(--gray-700) !important; 
}
.cert-card h3 { 
  color: var(--primary) !important; 
}
.cert-card p { 
  color: var(--gray-700) !important; 
}
.contact-info-card h4 { 
  color: var(--primary) !important; 
}
.contact-info-card p { 
  color: var(--gray-700) !important; 
}
.contact-form h3 { 
  color: var(--primary) !important; 
}
.org-card h4 { 
  color: var(--primary) !important; 
}
.org-card p { 
  color: var(--gray-700) !important; 
}
.mv-card h3 { 
  color: var(--primary) !important; 
}
.mv-card p { 
  color: var(--gray-700) !important; 
}
.capability-card h3 { 
  color: var(--primary) !important; 
}
.capability-card p { 
  color: var(--gray-600) !important; 
}
.capability-card ul li {
  color: var(--gray-600) !important;
}
/* Add floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Remove excessive animations for professional look */
.service-card .icon {
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
}

/* Add shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  border-radius: inherit;
}

/* ===== SEAMLESS BLENDING EFFECTS ===== */
/* Remove all hard borders and add gradient blending */
.section {
  padding: 90px 0;
  position: relative;
  border: none !important;
  margin: 0 !important;
}

/* Alternating section backgrounds with gradient blending */
.section:nth-child(odd) {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
}
.section:nth-child(even) {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%) !important;
}

/* Page hero blending */
.page-hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(51, 65, 85, 0.9) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 0 60px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
  pointer-events: none;
}

/* Hero section blending */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Card blending effects */
.about-intro,
.cert-bar,
.cta-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Factory section blending */
.factory-section {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%) !important;
  position: relative;
}
.factory-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.factory-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Services section blending */
#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
#services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Footer blending with page content */
footer.footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Professional gradient text effects */
.hero h1 span {
  color: var(--accent);
}

.hero-stat h3 {
  color: var(--accent);
}
/* ===== SECTION-SPECIFIC BUTTON FIXES ===== */
/* Hero section buttons - dark on light background */
.hero .btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* CTA section buttons - accent color on light background */
.cta-section .btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.cta-section .btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* Filter buttons active state fix */
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}

/* ===== FOOTER GLASS EFFECT - WHITE GRADIENT ===== */
footer.footer {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
  backdrop-filter: blur(15px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
}
footer.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}
footer.footer .container {
  position: relative;
  z-index: 2;
  background: transparent !important;
}
footer.footer .footer-grid {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  padding: 40px 0 !important;
  margin-bottom: 20px !important;
}
footer.footer .footer-about,
footer.footer .footer-links,
footer.footer .footer-contact {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
}
footer.footer .footer-bottom {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  padding: 20px 0 !important;
  text-align: center !important;
  border-top: 1px solid rgba(30, 58, 138, 0.1) !important;
}
footer.footer h4 {
  color: var(--primary) !important;
}
footer.footer p {
  color: var(--gray-700) !important;
}
footer.footer a {
  color: var(--gray-600) !important;
}
footer.footer a:hover {
  color: var(--accent) !important;
}
footer.footer .footer-bottom {
  color: var(--gray-600) !important;
}