/* ===========================
   PAGE TRANSITIONS - Chrome Optimized
   =========================== */
body {
  opacity: 1;
  transition: opacity 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-transitioning-out {
  opacity: 0;
}

body.page-loading {
  opacity: 0;
}

/* Prevent FOUC */
body:not(.page-ready) {
  opacity: 0;
}

/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --primary-color: #1a56db;
  --primary-dark: #0f3a8f;
  --primary-light: #3b82f6;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --dark: #1f2937;
  --dark-light: #374151;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --white: #ffffff;
  --off-white: #f9fafb;

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: var(--font-weight-semibold);
  z-index: 1100;
  box-shadow: var(--shadow-md);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform var(--transition-fast);
  object-fit: contain;
}

.logo-full {
  height: 60px !important;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-fast);
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-radius: 0.5rem;
}

.nav-link.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: var(--font-weight-bold);
}

.nav-link.btn-primary.active {
  color: var(--white) !important;
  background: var(--primary-dark);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 3px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("img/banner.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-background img {
  display: none; /* Hide the img tag, use CSS background instead */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 86, 219, 0.8) 0%,
    rgba(15, 58, 143, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: var(--spacing-md);
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-black);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* ===========================
   SECTION STYLES
   =========================== */
section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 0 auto var(--spacing-md);
  border-radius: 2px;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
  background: var(--off-white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  color: var(--dark-light);
}

.about-text .lead {
  font-size: 1.375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--dark);
  margin-bottom: var(--spacing-md);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
  font-weight: var(--font-weight-semibold);
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background: var(--off-white);
  padding: var(--spacing-md);
  border-radius: 1rem;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
  background: var(--white);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.service-icon img {
  width: 32px;
  height: 32px;
  /* Remove filter to allow SVG colors to show through */
}

.service-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.service-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery {
  background: var(--off-white);
}

.gallery-container {
  position: relative;
  margin-top: var(--spacing-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-sm);
  transition: all 0.5s ease;
}

.gallery-grid.collapsed {
  max-height: 600px;
  overflow: hidden;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
  transition: all 0.3s ease;
}

/* Firefox-specific fixes using modern CSS */
@supports (-moz-appearance: none) {
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: var(--spacing-sm) !important;
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
  }

  .gallery-item {
    aspect-ratio: unset !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
  }

  .gallery-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
  }

  .gallery-grid.collapsed {
    max-height: 600px !important;
    overflow: hidden !important;
    grid-template-rows: 1fr 1fr !important;
  }

  .gallery-item:hover {
    transform: scale(1.02) !important;
  }

  .gallery-item:hover img {
    transform: scale(1.05) !important;
  }
}

.gallery-grid.collapsed .gallery-item.gallery-hidden {
  display: none;
}

.gallery-grid.expanded .gallery-item.gallery-hidden {
  display: flex;
  animation: fadeInUp 0.5s ease forwards;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(transparent, var(--off-white));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--spacing-sm);
  transition: opacity 0.3s ease;
  z-index: 10;
}

.gallery-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.gallery-expand-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 14px;
}

.gallery-expand-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.gallery-expand-btn svg {
  transition: transform 0.3s ease;
}

.gallery-expand-btn.expanded svg {
  transform: rotate(180deg);
}

.gallery-expand-btn.expanded span {
  display: inline;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-gray), var(--gray));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  font-size: 1.125rem;
}

.gallery-note {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 1rem;
  color: var(--gray);
}

.gallery-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

.gallery-note a:hover {
  text-decoration: underline;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--off-white);
  border-radius: 1rem;
  transition: all var(--transition-normal);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.contact-item h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.contact-item p {
  color: var(--gray);
  font-size: 1rem;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===========================
   CONTACT FORM
   =========================== */
.contact-form {
  background: var(--off-white);
  padding: var(--spacing-md);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 0.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Turnstile CAPTCHA Styling */
.cf-turnstile {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Disabled submit button styling */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* CAPTCHA error styling */
.captcha-error {
  color: var(--error-color, #ef4444);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

.form-status {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: 0.5rem;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  display: none;
}

.form-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.form-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--spacing-md) 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--dark-light);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: 360px;
}

.footer-brand p {
  margin: 0;
  color: var(--light-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-logo {
  width: 72px;
  height: auto;
  margin: 0;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.footer-links,
.footer-contact {
  min-width: 180px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links ul {
  columns: 2;
  column-gap: var(--spacing-md);
}

.footer-links li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.footer-links a,
.footer-contact a {
  color: var(--light-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-light);
}

.footer-contact ul li {
  margin-bottom: 0.35rem;
  color: var(--light-gray);
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  padding-top: var(--spacing-sm);
  color: var(--light-gray);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-back-to-top {
  color: var(--light-gray);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.footer-back-to-top:hover {
  color: var(--primary-light);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
  .nav-wrapper {
    padding: 0.5rem 0;
  }

  .logo img {
    height: 45px;
  }

  .logo-full {
    height: 45px !important;
  }

  .hero {
    margin-top: 55px;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 55px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 55px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--spacing-md);
    transition: left var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer {
    padding: var(--spacing-md) 0 var(--spacing-sm);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-logo {
    width: 64px;
  }

  .footer-links,
  .footer-contact {
    width: 100%;
  }

  .footer-links ul {
    columns: 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .gallery-grid.collapsed {
    max-height: 500px;
  }

  /* Firefox mobile fixes */
  @supports (-moz-appearance: none) {
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
      grid-auto-rows: 1fr !important;
    }

    .gallery-item {
      padding-bottom: 100% !important;
      height: 0 !important;
      aspect-ratio: unset !important;
    }

    .gallery-grid.collapsed {
      max-height: 500px !important;
      grid-template-rows: 1fr 1fr !important;
    }
  }

  .gallery-overlay {
    height: 120px;
  }
}

/* Desktop navbar reset - ensure nav menu is always visible above mobile breakpoint */
@media (min-width: 769px) {
  .nav-menu {
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    flex-direction: row !important;
    padding: 0 !important;
    transition: none !important;
    display: flex !important;
  }

  /* Reduce hero height by 20% on desktop/tablet viewports */
  .hero {
    min-height: 40vh;
  }
}

/* Tablet breakpoint - switch to centered banner */
@media (max-width: 768px) {
  .hero-background {
    background-image: url("img/banner_c.webp");
  }
}

@media (max-width: 480px) {
  /* Mobile-centered banner already set at 768px */

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-large {
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   LIGHTBOX STYLES
   =========================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* ===========================
   GALLERY UPDATES
   =========================== */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition: transform var(--transition-normal);
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===========================
   ABOUT SECTION ENHANCEMENTS
   =========================== */
.about-mission,
.about-vision {
  margin: var(--spacing-md) 0;
}

.about-mission h3,
.about-vision h3,
.about-differentiators h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.about-mission ul {
  list-style: none;
  padding-left: 0;
}

.about-mission li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

.about-mission li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-differentiators {
  margin: var(--spacing-md) 0;
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.differentiator-item {
  background: var(--off-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.differentiator-item h4 {
  color: var(--dark);
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
}

.differentiator-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

.about-footer {
  margin-top: var(--spacing-md);
  font-style: italic;
  color: var(--gray);
}

/* ===========================
   PROCESS SECTION
   =========================== */
.process {
  background: var(--off-white);
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

/* ===========================
   INTERACTIVE TIMELINE STYLES
   =========================== */
.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: var(--spacing-xl) auto;
}

.timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--light-gray);
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 0;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 2px;
  transition: height 0.3s ease;
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.timeline-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 100;
}

.marker-outer {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  z-index: 101;
  position: relative;
}

.timeline-item.animate-in .marker-outer {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(26, 86, 219, 0.3);
}

.marker-inner {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 102;
}

.marker-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.step-number {
  color: white;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  z-index: 103;
  position: relative;
}

.timeline-content {
  width: 45%;
  padding-right: var(--spacing-md);
}

.timeline-content.timeline-right {
  margin-left: 55%;
  padding-right: 0;
  padding-left: var(--spacing-md);
}

.timeline-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.timeline-item.animate-in .timeline-card {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid var(--light-gray);
  border-radius: 4px;
  transform: rotate(45deg);
  z-index: 1;
}

.timeline-content .timeline-card::before {
  right: -11px;
  border-left: none;
  border-bottom: none;
}

.timeline-content.timeline-right .timeline-card::before {
  left: -11px;
  border-right: none;
  border-top: none;
  border-left: 2px solid var(--light-gray);
  border-bottom: 2px solid var(--light-gray);
}

.timeline-item.animate-in .timeline-card::before {
  border-color: var(--primary-light);
}

.timeline-item.animate-in
  .timeline-content.timeline-right
  .timeline-card::before {
  border-left-color: var(--primary-light);
  border-bottom-color: var(--primary-light);
  border-right: none;
  border-top: none;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  display: block;
  line-height: 1;
}

.timeline-card h3 {
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
}

.timeline-card p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.timeline-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===========================
   PROCESS STATS
   =========================== */
.process-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-sm);
  transition: transform 0.4s ease;
}

.stat-item.animate-in {
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--gray);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* ===========================
   ENHANCED HIGHLIGHTS
   =========================== */
.process-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.highlight-item {
  padding: var(--spacing-md);
  text-align: center;
  transition: all 0.4s ease;
  border-radius: 12px;
  border: 2px solid transparent;
}

.highlight-item.animate-in {
  transform: translateY(-10px);
  border-color: var(--primary-light);
  background: linear-gradient(
    135deg,
    rgba(26, 86, 219, 0.05),
    rgba(59, 130, 246, 0.05)
  );
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1;
}

.highlight-item h4 {
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
}

.highlight-item p {
  color: var(--gray);
  line-height: 1.6;
}

/* ===========================
   ANIMATIONS
   =========================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-sm);
}

.highlight-item strong {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.highlight-item span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===========================
   SUPPLY OPTIONS SECTION
   =========================== */
.supply-options {
  padding: calc(var(--spacing-xl) + 40px) 0 var(--spacing-xl) 0;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.option-card {
  background: white;
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-normal);
  position: relative;
  overflow: visible;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.option-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-color);
}

.option-number {
  position: absolute;
  top: -20px;
  left: var(--spacing-md);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-color), #d97706);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  border: 3px solid white;
  z-index: 10;
}

.option-header {
  background: linear-gradient(135deg, var(--off-white), #f3f4f6);
  padding: calc(var(--spacing-md) + 15px) var(--spacing-md) var(--spacing-md);
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  margin-top: 10px;
}

.option-header h3 {
  color: var(--dark);
  margin: 0;
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  margin-top: 10px;
}

.option-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.option-card li {
  padding: var(--spacing-xs) 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.option-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: var(--spacing-xs);
  color: var(--accent-color);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
}

/* ===========================
   BRANDS & CLIENTS SECTION
   =========================== */
.brands-clients {
  background: var(--off-white);
  padding: var(--spacing-xl) 0;
}

.brands-partnership {
  background: white;
  padding: var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.brands-partnership h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

.partnership-note {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.brands-logos {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.brand-logo-item {
  background: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.brand-logo-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.brand-logo {
  height: 80px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter var(--transition-normal);
}

.brand-logo-item:hover .brand-logo {
  filter: grayscale(0%) brightness(1.1);
}

/* Keep old brand-item for backwards compatibility */
.brand-item {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: bold;
}

.clients-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.clients-category {
  background: white;
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.clients-section-title {
  color: var(--dark);
  font-size: 1.5rem;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  font-weight: var(--font-weight-bold);
}

.clients-category h4 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
}

/* ===========================
   PAGE LAYOUTS
   =========================== */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: 70px;
  text-align: center;
}

.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Process Page Styles */
.process-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  transition: all 0.4s ease;
}

.process-cta.animate-in {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(26, 86, 219, 0.3);
}

.process-cta h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-bold);
}

.process-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.process-cta .btn-primary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
  font-weight: var(--font-weight-bold);
}

.process-cta .btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-3px);
}

/* Services Page Styles */
.supply-features {
  margin-top: var(--spacing-xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.feature-item {
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.feature-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

.feature-item p {
  color: var(--dark-light);
  line-height: 1.6;
}

.supply-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary-color) 100%
  );
  color: var(--white);
  border-radius: 12px;
}

.supply-cta h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

.supply-cta p {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

/* Clients Page Styles */
.testimonials-section {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--light-gray);
}

.testimonials-section h3 {
  text-align: center;
  color: var(--dark);
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.testimonial-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-color);
}

.testimonial-content p {
  font-style: italic;
  color: var(--dark-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.testimonial-author strong {
  color: var(--dark);
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--gray);
  font-size: 0.9rem;
}

.why-choose-section {
  margin-top: var(--spacing-xl);
}

.why-choose-section h3 {
  text-align: center;
  color: var(--dark);
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.reason-item {
  text-align: center;
  padding: var(--spacing-md);
}

.reason-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.reason-item h4 {
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.reason-item p {
  color: var(--dark-light);
  line-height: 1.6;
}

.clients-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  color: var(--white);
  border-radius: 12px;
}

.clients-cta h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
}

.clients-cta p {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-hero {
    margin-top: 55px;
    padding: var(--spacing-lg) 0;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .feature-grid,
  .reasons-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.clients-list span {
  background: var(--off-white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--dark);
}

/* ===========================
   RESPONSIVE UPDATES
   =========================== */
@media (max-width: 768px) {
  .timeline-progress {
    left: 30px;
    transform: none;
  }

  .timeline-marker {
    left: 30px;
    transform: translateX(-50%);
  }

  .marker-outer {
    width: 60px;
    height: 60px;
  }

  .marker-inner {
    width: 45px;
    height: 45px;
  }

  .step-number {
    font-size: 1.2rem;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
    padding-left: var(--spacing-md);
    padding-right: 0;
  }

  .timeline-content.timeline-right {
    width: calc(100% - 80px);
    margin-left: 80px;
    padding-left: var(--spacing-md);
    padding-right: 0;
  }

  .timeline-card::before {
    left: -11px;
    border-right: none;
    border-top: none;
  }

  .timeline-content.timeline-right .timeline-card::before {
    left: -11px;
    border-right: none;
    border-top: none;
  }

  .process-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--spacing-md);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .process-cta h3 {
    font-size: 1.5rem;
  }

  .process-cta p {
    font-size: 1rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  .timeline-features {
    justify-content: center;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-image {
    max-width: 95%;
  }

  .differentiators-grid {
    grid-template-columns: 1fr;
  }

  .supply-options {
    padding: calc(var(--spacing-lg) + 40px) 0 var(--spacing-lg) 0;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .option-card {
    min-height: auto;
  }

  .clients-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .timeline-marker {
    left: 20px;
  }

  .marker-outer {
    width: 50px;
    height: 50px;
  }

  .marker-inner {
    width: 35px;
    height: 35px;
  }

  .step-number {
    font-size: 1rem;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
    padding-left: var(--spacing-sm);
  }

  .timeline-content.timeline-right {
    width: calc(100% - 60px);
    margin-left: 60px;
    padding-left: var(--spacing-sm);
  }

  .timeline-progress {
    left: 20px;
  }

  .card-icon {
    font-size: 1.8rem;
  }

  .timeline-card h3 {
    font-size: 1.2rem;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .process-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .stat-number {
    font-size: 2rem;
  }

  .highlight-icon {
    font-size: 2rem;
  }
}

/* Tablet optimization for Supply Options */
@media (max-width: 992px) and (min-width: 769px) {
  .supply-options {
    padding: calc(var(--spacing-xl) + 40px) 0 var(--spacing-xl) 0;
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    gap: var(--spacing-lg);
  }

  .option-card {
    min-height: 320px;
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .supply-options {
    padding: calc(var(--spacing-xl) + 40px) 0 var(--spacing-xl) 0;
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    gap: var(--spacing-lg);
  }

  .option-card {
    min-height: 340px;
  }
}

/* Small tablets - still keep 2 columns but adjust max-width */
@media (max-width: 900px) and (min-width: 769px) {
  .options-grid {
    max-width: 700px;
  }

  .brand-logo-item {
    min-width: 150px;
  }

  .brand-logo {
    height: 60px;
    max-width: 180px;
  }
}

/* Smooth scrolling enhancements */
@media (prefers-reduced-motion: no-preference) {
  .timeline-item {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .timeline-card {
    transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .marker-outer {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .progress-bar {
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .timeline-item,
  .timeline-card,
  .marker-outer,
  .progress-bar,
  .animate-on-scroll {
    transition: none !important;
    animation: none !important;
  }
}

/* Browser-specific optimizations for Chromium */
.chromium-browser .timeline-item {
  transform: translateY(50px) translateZ(0);
}

.chromium-browser .timeline-item.animate-in {
  transform: translateY(0) translateZ(0);
}

.chromium-browser .timeline-card {
  transform: translateZ(0);
}

/* Enhanced performance for Chromium browsers */
@supports (-webkit-appearance: none) {
  .timeline-item {
    transform: translateY(50px) translateZ(0);
  }

  .timeline-item.animate-in {
    transform: translateY(0) translateZ(0);
  }

  .timeline-card {
    transform: translateZ(0);
  }

  .marker-outer {
    transform: translateZ(0);
  }
}

/* Chromium-specific intersection observer optimizations */
.chromium-browser .timeline-item {
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cross-browser gallery layout fixes */
.gallery-grid {
  contain: layout;
}

.gallery-item {
  contain: layout style;
}

/* Additional Firefox gallery stability */
@supports (-moz-appearance: none) {
  .gallery-grid.collapsed .gallery-item:nth-child(n + 7) {
    display: none !important;
  }

  .gallery-grid.expanded .gallery-item {
    display: block !important;
    position: relative !important;
    height: 0 !important;
    padding-bottom: 100% !important;
  }

  .gallery-grid.expanded .gallery-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Force Firefox to respect grid layout */
  .gallery-container {
    width: 100% !important;
    overflow: visible !important;
  }

  .gallery-grid {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .gallery-item {
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .timeline-card {
    border: 2px solid var(--dark);
  }

  .marker-inner {
    border: 2px solid var(--white);
  }

  .feature-tag {
    border: 1px solid var(--white);
  }
}

/* ===========================
   LAZY LOADING STYLES
   =========================== */

/* Base styles for all images */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Lazy loading states */
img[loading="lazy"],
img[data-src] {
    background: var(--light-gray);
    background: linear-gradient(
        110deg,
        #f0f0f0 8%,
        #f8f8f8 18%,
        #f0f0f0 33%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* Shimmer animation for loading placeholder */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading state - blur effect */
img.lazy-loading {
    filter: blur(10px);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Loaded state - crisp image */
img.lazy-loaded {
    filter: blur(0);
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.6;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Prevent layout shift during lazy load */
img[width][height] {
    height: auto;
}

/* Aspect ratio boxes for images without dimensions */
.lazy-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
}

.lazy-image-wrapper::before {
    content: '';
    display: block;
    padding-top: 100%; /* 1:1 aspect ratio by default */
}

.lazy-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Service icons - prevent layout shift */
.service-icon {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery items - maintain aspect ratio */
.gallery-item {
    position: relative;
    background: var(--light-gray);
    min-height: 250px;
}

/* Logo loading states */
.logo img,
.footer-logo {
    background: transparent !important;
    animation: none !important;
}

/* Brand logos */
.brand-logo {
    min-height: 80px;
    background: transparent;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    img.lazy-loading,
    img.lazy-loaded {
        transition: none;
        animation: none;
    }
    
    @keyframes shimmer {
        0%, 100% {
            background-position: 0 0;
        }
    }
}

/* Print styles - ensure all images are visible */
@media print {
    img[loading="lazy"],
    img[data-src] {
        opacity: 1 !important;
        filter: none !important;
        animation: none !important;
    }
}
