/* ========================================
   MODERN CI-MAO FRAMEWORK CSS
   Modern Industrial Design System
======================================== */

/* ========================================
   CSS VARIABLES (DESIGN TOKENS)
======================================== */
:root {
  /* Colors */
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary-color: #f59e0b;
  --secondary-light: #fbbf24;
  --secondary-dark: #d97706;
  
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  --white: #ffffff;
  --black: #000000;
  
  /* Typography */
  --font-primary: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ========================================
   BASE STYLES
======================================== */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: var(--neutral-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   PRELOADER STYLES
======================================== */
.modern-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner {
  text-align: center;
  color: var(--white);
}

.modern-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top: 3px solid var(--accent-color);
  animation-duration: 1.2s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top: 3px solid var(--white);
  animation-duration: 0.9s;
}

.preloader-text h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin: 0 0 0.5rem;
  letter-spacing: 3px;
}

.preloader-text p {
  font-size: var(--text-sm);
  margin: 0;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   HEADER STYLES
======================================== */
.modern-header {
  position: relative;
  z-index: var(--z-fixed);
}

.modern-header .navbar {
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) 0;
  transition: all var(--transition-normal);
}

.modern-header .navbar.scrolled {
  background: rgba(30, 58, 138, 0.98);
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-lg);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.brand-icon:hover {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
  line-height: 1;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: var(--text-sm);
  color: var(--neutral-300);
  line-height: 1;
}

.modern-toggler {
  border: none;
  background: transparent;
  padding: var(--space-2);
  position: relative;
  width: 30px;
  height: 30px;
}

.modern-toggler span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  margin: 6px 0;
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}

.modern-toggler.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler.active span:nth-child(2) {
  opacity: 0;
}

.modern-toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-nav .nav-link {
  color: var(--neutral-200) !important;
  font-weight: var(--font-medium);
  padding: var(--space-2) var(--space-4) !important;
  margin: 0 var(--space-1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(245, 158, 11, 0.1);
}

.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary.modern-btn {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline-light.modern-btn {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light.modern-btn:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ========================================
   HERO SECTION STYLES
======================================== */
.modern-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--neutral-900) 100%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: 
    /* Industrial grid pattern */
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    /* Subtle diagonal lines */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 50px,
      rgba(245, 158, 11, 0.01) 50px,
      rgba(245, 158, 11, 0.01) 52px
    ),
    /* Radial highlight */
    radial-gradient(
      ellipse at 30% 50%,
      rgba(245, 158, 11, 0.08) 0%,
      transparent 50%
    );
  background-size: 60px 60px, 60px 60px, 100px 100px, 100% 100%;
}

.geometric-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  opacity: 0.06;
  animation: float 8s ease-in-out infinite;
  border: 2px solid rgba(245, 158, 11, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.shape-1 {
  top: 15%;
  right: 8%;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  animation-delay: 0s;
  
  /* Industrial gear-like effect */
  background: 
    conic-gradient(from 0deg, 
      rgba(245, 158, 11, 0.1) 0deg, 
      transparent 30deg, 
      rgba(245, 158, 11, 0.1) 60deg, 
      transparent 90deg,
      rgba(245, 158, 11, 0.1) 120deg,
      transparent 150deg,
      rgba(245, 158, 11, 0.1) 180deg,
      transparent 210deg,
      rgba(245, 158, 11, 0.1) 240deg,
      transparent 270deg,
      rgba(245, 158, 11, 0.1) 300deg,
      transparent 330deg,
      rgba(245, 158, 11, 0.1) 360deg
    );
  animation: rotateGear 20s linear infinite;
}

.shape-2 {
  top: 65%;
  right: 65%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation-delay: 3s;
  
  /* Circuit board pattern */
  background: 
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 30%, transparent 30%),
    linear-gradient(45deg, transparent 40%, rgba(6, 182, 212, 0.05) 50%, transparent 60%);
}

.shape-3 {
  bottom: 25%;
  left: 12%;
  width: 100px;
  height: 20px;
  border-radius: var(--radius-full);
  transform: rotate(45deg);
  animation-delay: 6s;
  
  /* Industrial beam effect */
  background: linear-gradient(90deg, 
    rgba(245, 158, 11, 0.1) 0%, 
    rgba(245, 158, 11, 0.05) 50%, 
    rgba(245, 158, 11, 0.1) 100%
  );
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

/* Additional industrial elements */
.shape-4 {
  top: 45%;
  left: 5%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0.04;
  animation: float 10s ease-in-out infinite reverse;
  animation-delay: 2s;
  
  /* Hexagonal bolt pattern */
  background: 
    conic-gradient(from 0deg at 50% 50%,
      rgba(245, 158, 11, 0.1) 0deg 60deg,
      transparent 60deg 120deg,
      rgba(245, 158, 11, 0.1) 120deg 180deg,
      transparent 180deg 240deg,
      rgba(245, 158, 11, 0.1) 240deg 300deg,
      transparent 300deg 360deg
    );
}

.shape-5 {
  top: 20%;
  left: 70%;
  width: 150px;
  height: 3px;
  border-radius: var(--radius-full);
  transform: rotate(-20deg);
  opacity: 0.05;
  animation: float 12s ease-in-out infinite;
  animation-delay: 4s;
  
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(6, 182, 212, 0.2) 20%, 
    rgba(6, 182, 212, 0.1) 50%,
    rgba(6, 182, 212, 0.2) 80%,
    transparent 100%
  );
}

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

@keyframes rotateGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.hero-content {
  padding-right: var(--space-8);
}

.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--secondary-color);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.title-primary {
  background: linear-gradient(135deg, var(--white), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 3s ease-in-out infinite alternate;
}

.title-secondary {
  color: var(--neutral-200);
  font-size: 0.7em;
  margin-left: 0;
}

@keyframes glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}

.hero-subtitle {
  font-size: var(--text-2xl);
  font-weight: var(--font-light);
  color: var(--secondary-color);
  margin-bottom: var(--space-6);
  letter-spacing: 2px;
  margin-left: 0;
  text-align: left;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--neutral-300);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  animation: cardFloat 4s ease-in-out infinite;
  transition: transform var(--transition-normal);
}

.floating-card:hover {
  transform: scale(1.1);
}

.floating-card i {
  font-size: var(--text-4xl);
  color: var(--secondary-color);
  margin-bottom: var(--space-3);
  display: block;
}

.floating-card span {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--white);
  display: block;
}

.card-1 {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  right: 50%;
  animation-delay: 1.5s;
}

.card-3 {
  bottom: 20%;
  right: 5%;
  animation-delay: 3s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: all var(--transition-fast);
}

.scroll-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ========================================
   CONTACT INFO SECTION
======================================== */
.contact-info-section {
  padding: var(--space-20) 0;
  background: var(--neutral-50);
  position: relative;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  position: relative;
  overflow: hidden;
}

.contact-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.contact-icon i {
  font-size: var(--text-3xl);
  color: var(--white);
  z-index: 1;
  position: relative;
}

.contact-content h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--neutral-800);
  margin-bottom: var(--space-3);
}

.contact-text {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  margin-bottom: var(--space-2);
}

.contact-label {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-section {
  padding: var(--space-32) 0;
  background: var(--white);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 2;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-bold);
  color: var(--neutral-800);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-icon {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: var(--text-4xl);
  color: var(--primary-color);
  z-index: 2;
  position: relative;
  transition: all var(--transition-normal);
}

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

.icon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-xl);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-normal);
}

.service-card:hover .icon-bg {
  opacity: 1;
  transform: scale(1);
}

.service-content {
  flex-grow: 1;
}

.service-content h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--neutral-800);
  margin-bottom: var(--space-4);
}

.service-content p {
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
  color: var(--neutral-700);
  font-size: var(--text-sm);
}

.service-features li i {
  color: var(--success-color);
  margin-right: var(--space-3);
  font-size: var(--text-xs);
}

.service-number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--neutral-500);
  transition: all var(--transition-normal);
}

.service-card:hover .service-number {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  transform: scale(1.1);
}

/* ========================================
   EQUIPMENT SECTION
======================================== */
.equipment-section {
  padding: var(--space-32) 0;
  background: var(--neutral-50);
  position: relative;
}

.equipment-grid {
  row-gap: var(--space-12) !important;
}

.equipment-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  height: 100%;
}

.equipment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-color);
}

.equipment-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.equipment-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.95), transparent);
  color: var(--white);
  padding: var(--space-6);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.equipment-card:hover .equipment-overlay {
  transform: translateY(0);
}

.equipment-specs {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.spec-item i {
  color: var(--secondary-color);
}

.equipment-content {
  padding: var(--space-6);
}

.equipment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.equipment-header h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--neutral-800);
  margin-bottom: 0;
}

.equipment-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.equipment-content p {
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================================
   PRODUCTS SECTION
======================================== */
.products-section {
  padding: var(--space-32) 0;
  background: var(--white);
  position: relative;
}

.products-grid {
  row-gap: var(--space-12) !important;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 0.9));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  text-align: center;
  padding: var(--space-4);
}

.product-info h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.product-info p {
  color: var(--neutral-300);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-features span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: rgba(245, 158, 11, 0.2);
  color: var(--secondary-color);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* ========================================
   FOOTER STYLES
======================================== */
.modern-footer {
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 2;
}

.footer-cta {
  padding: var(--space-20) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-16);
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--white), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--neutral-300);
  margin-bottom: 0;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.footer-phone:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

.footer-phone i {
  font-size: var(--text-xl);
}

.footer-content {
  padding-bottom: var(--space-16);
}

.footer-section {
  margin-bottom: var(--space-8);
}

.footer-brand {
  margin-bottom: var(--space-6);
}

.footer-section h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-description {
  color: var(--neutral-300);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.company-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: var(--neutral-400);
  font-size: var(--text-sm);
}

.stat-value {
  color: var(--secondary-color);
  font-weight: var(--font-semibold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-links i {
  color: var(--secondary-color);
  width: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: var(--text-lg);
  margin-top: var(--space-1);
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-details strong {
  color: var(--white);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

.contact-details span,
.contact-details a {
  color: var(--neutral-300);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  background: var(--neutral-900);
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: var(--neutral-400);
  margin-bottom: 0;
  font-size: var(--text-sm);
}

.footer-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  color: var(--neutral-300);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

/* ========================================
   BACK TO TOP
======================================== */
#back-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-fixed);
}

#back-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

#back-top a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 991px) {
  .hero-content {
    padding-right: 0;
    margin-bottom: var(--space-16);
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .hero-stats {
    gap: var(--space-6);
  }
  
  .modern-btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-xs);
  }
  
  .contact-card {
    padding: var(--space-6);
  }
  
  .service-card {
    padding: var(--space-6);
  }
  
  .section-header {
    margin-bottom: var(--space-12);
  }
}

@media (max-width: 575px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .modern-btn {
    width: 100%;
    max-width: 250px;
  }
}