
/* STEAM IRONS OVERFLOW FIX */
.steam-irons-grid-container {
  overflow: hidden !important;
  max-width: 100vw !important;
  position: relative !important;
}

/* Constrain all steam iron cards to container */
.steam-iron-card {
  max-width: 100% !important;
}

/* Prevent positioned cards from extending beyond viewport */
.steam-iron-card.position-right,
.steam-iron-card.position-hidden-right,
.steam-iron-card.position-left,
.steam-iron-card.position-hidden-left {
  max-width: calc(100vw - 48px) !important;
}

/* Ensure image containers don't overflow */
.steam-iron-card .image-container {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Keep global overflow prevention */
html, body {
  overflow-x: hidden !important;
}

/* Modal fix */
.modal-open {
  overflow: hidden !important;
  padding-right: 15px !important;
}

/* CSS Variables - UPDATED FOR DARK MODAL BACKGROUNDS */
:root {
  --blue-primary: #2981F9;
  --blue-secondary: #3150CF;
  --blue-accent: #3858D6;
  --blue-light: #66C9FF;
  --white-primary: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #666666;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(41, 129, 249, 0.1);
  --shadow-light: 0 4px 16px rgba(41, 129, 249, 0.08);
  --shadow-medium: 0 8px 32px rgba(41, 129, 249, 0.12);
  --shadow-heavy: 0 16px 64px rgba(41, 129, 249, 0.16);
  --gradient-primary: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  --gradient-secondary: linear-gradient(135deg, var(--blue-secondary), var(--blue-accent));
  /* MODAL SPECIFIC VARIABLES - DARK BACKGROUNDS */
  --modal-backdrop: rgba(26, 28, 32, 0.95);
  --modal-content-bg: #ffffff;
  --modal-header-bg: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Global Styles - FIXED FOR FOOTER SPACING */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--white-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* FIXED: Remove any phantom elements after footer */
body::after,
html::after {
  display: none !important;
  content: none !important;
}

/* Top Contact Bar */
.top-contact-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: var(--white-primary);
  font-size: 0.9rem;
  color: var(--blue-secondary);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.contact-center {
  font-weight: 600;
}

/* Navigation Bar */
.navbar {
  background: var(--white-primary);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo Container - Ready for Image */
.logo-container {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo-text {
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue-primary);
  letter-spacing: 1px;
  cursor: pointer;
}

/* For when logo image is used */
.logo-image {
  margin-top:20px;
  height: 130px;
  width: auto;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

/* Navigation Links - Consistent Underline Effect for All */
.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--blue-primary);
}

/* Keep active state consistent */
.nav-link.active {
  color: var(--text-primary);
}

/* Consistent underline effect for ALL nav links (Home, About Us) */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

/* Show underline on hover for all nav links */
.nav-link:hover::after {
  width: 100%;
}

/* Keep Products dropdown without underline since it's a dropdown */
.nav-dropdown > .nav-link.dropdown-toggle::after {
  content: none !important;
}

.nav-dropdown > .nav-link.dropdown-toggle:hover {
  color: var(--blue-primary) !important;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: var(--white-primary);
  box-shadow: var(--shadow-medium);
  border-radius: 12px;
  padding: 16px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown items - only color change on hover */
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  cursor: pointer;
}

.dropdown-menu a:hover {
  color: var(--blue-primary) !important;
  background: transparent !important;
}

/* Contact Button */
.contact-btn {
  background: var(--gradient-primary);
  color: var(--white-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.contact-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.5s;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Hero Section with Animation */
.hero-section {
  background: var(--white-primary);
  padding: 60px 24px 80px 24px;
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  animation: contentSlideIn 1.2s ease-out 0.3s both;
}

@keyframes contentSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-description {
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-weight: 500;
}

.animated-text {
  color: var(--blue-primary);
  font-weight: 600;
  position: relative;
  font-family: 'Poppins', sans-serif;
}



/* Hero CTA Button - Fixed Black Outline Issue */
.hero-cta-btn {
  background: var(--gradient-primary);
  color: var(--white-primary);
  border: none !important;
  outline: none !important;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.hero-cta-btn:focus {
  outline: none !important;
  border: none !important;
  box-shadow: 0 0 8px var(--blue-primary);
}

.hero-cta-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.5s;
}

.hero-cta-btn:hover::before {
  left: 100%;
}

.hero-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Hero Image - Enhanced Floating Images Design */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  position: relative;
  animation: cardsSlideIn 1.5s ease-out 0.6s both;
}

@keyframes cardsSlideIn {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.floating-images-container {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-image {
  position: absolute;
  width: 550px;
  height: 550px;
  opacity: 0;
  transform: translateX(100px) translateY(0) scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
  filter: drop-shadow(0 20px 15px rgba(0, 0, 0, 0.15));
}

.floating-image.enter {
  opacity: 1;
  animation: slideInFromRight 1s ease forwards, floatUpDown 5s ease-in-out infinite 1s;
  transform: translateX(0) translateY(0) scale(1);
}

.floating-image.exit {
  opacity: 0;
  animation: slideOutToRight 1s ease forwards;
  transform: translateX(100px) translateY(0) scale(0.85);
}

.floating-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px) translateY(0) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateX(0) translateY(0) scale(1);
  }
  50% {
    transform: translateX(0) translateY(-20px) scale(1.03);
  }
}

@keyframes slideOutToRight {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(100px) translateY(0) scale(0.85);
  }
}

/* Filter Section */
.filter-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  padding: 50px 24px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 10;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.filter-header {
  margin-bottom: 40px;
}

.filter-title {
  font-size: 2rem;
  color: var(--blue-primary);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.filter-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  background: var(--white-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
  min-width: 350px;
}

.search-box:focus-within {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-medium);
}

.search-box input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  color: var(--text-primary);
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

/* Search Button with Press Effect */
.search-btn {
  background: var(--gradient-primary);
  color: var(--white-primary);
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--gradient-secondary);
}

.search-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.search-btn i {
  font-size: 1.1rem;
}

.filter-select {
  padding: 16px 20px;
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  background: var(--white-primary);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 200px;
  text-transform: uppercase;
}

.filter-select:focus {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-light);
}

/* FIXED: Main Content - Proper flex layout for footer positioning */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 !important;
  position: relative;
  z-index: 10;
  background: var(--white-primary);
  flex: 1; /* This ensures main content takes available space */
}

/* Product Section */
.product-section {
  padding: 30px 0 20px 0 !important;
  margin-top: 15px !important;
  position: relative;
}

.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(41, 129, 249, 0.1), rgba(102, 201, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(41, 129, 249, 0.1);
  animation: float 6s ease-in-out infinite;
}

.glass-orb-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.glass-orb-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.glass-orb-3 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 70%;
  animation-delay: 4s;
}

.glass-orb-4 {
  width: 180px;
  height: 180px;
  bottom: 20%;
  left: 15%;
  animation-delay: 1s;
}

.glass-orb-5 {
  width: 100px;
  height: 100px;
  top: 80%;
  right: 30%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-15px);
  }
}

/* Section Header Styles */
.section-header {
  text-align: left !important;
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
  position: relative;
  z-index: 5;
  width: 100%;
}

.section-title {
  font-size: 1.8rem !important;
  font-weight: 600 !important;
  color: #1F2F70 !important;
  text-transform: none !important;
  letter-spacing: 1px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0.30 !important;
  text-align: left !important;
  display: block !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.section-subtitle {
  display: none !important;
}

/* Electric Steam Generators */
.product-category {
  margin-top: 15px !important;
  margin-bottom: 50px !important;
  position: relative;
  z-index: 5;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.category-title-new {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: none;
  border: none;
  padding: 0 !important;
  margin-left: 0 !important;
  display: block;
  text-align: left !important;
  line-height: 1.3;
  color: var(--blue-primary);
}

.title-period {
  color: #FFD700;
  font-weight: 700;
}

/* Portrait Cards */
.card__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 4rem !important; /* Add space after cards */
  justify-items: center;
  position: relative;
  z-index: 10;
}

.card__article {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  width: 100%;
  max-width: 360px;
  height: 480px !important;
  min-height: 480px !important;
  max-height: 480px !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 15;
}

/* STEAM TABLES SLIDER - FIXED STYLES */
.steam-table-card .image-carousel {
  position: relative !important;
  width: 100% !important;
  height: 480px !important;
  overflow: hidden !important;
  border-radius: 1.5rem !important;
}

.steam-table-card .carousel-track {
  position: relative !important;
  width: 100% !important;
  height: 480px !important;
}

.steam-table-card .carousel-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 480px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.8s ease, visibility 0.8s ease !important;
  z-index: 1 !important;
  display: block !important;
}

.steam-table-card .carousel-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
}

.steam-table-card .carousel-image {
  width: 100% !important;
  height: 480px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.steam-table-card .carousel-indicators {
  position: absolute !important;
  bottom: 15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 8px !important;
  z-index: 20 !important;
}

.steam-table-card .indicator {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.5) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

.steam-table-card .indicator.active {
  background: var(--blue-primary, #2981f9) !important;
  transform: scale(1.2) !important;
}

.steam-table-card .indicator:hover {
  background: rgba(255, 255, 255, 0.8) !important;
}

.steam-table-card .single-image-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 480px !important;
  overflow: hidden !important;
  border-radius: 1.5rem !important;
}

.steam-table-card .single-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  cursor: pointer !important;
}

/* Carousel Styles for Steam Vacuum Table */
.card-image-carousel {
  position: relative;
  width: 100%;
  height: 480px !important;
  overflow: hidden;
  border-radius: 1.5rem;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 480px !important;
  min-height: 480px !important;
  max-height: 480px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 1.5rem;
  transition: opacity 0.5s ease;
  opacity: 0;
  aspect-ratio: 3/4 !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--blue-primary);
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Regular card image */
.card__img {
  width: 100% !important;
  height: 480px !important;
  min-height: 480px !important;
  max-height: 480px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 1.5rem;
  transition: transform 0.3s ease;
  aspect-ratio: 3/4 !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.card__article:hover .card__img {
  transform: scale(1.05);
}

.card__article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.card__data {
  width: 92%;
  background: var(--white-primary);
  padding: 1.8rem 2.2rem;
  box-shadow: 0 12px 32px rgba(41, 129, 249, 0.18);
  border-radius: 1.2rem;
  position: absolute;
  bottom: -14rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: all 0.8s ease;
  border: 2px solid var(--glass-border);
  z-index: 25;
}

.card__description {
  display: block;
  font-size: 0.95rem;
  color: #EA6A47;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.card__details {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card__actions {
  display: flex;
  justify-content: center;
}

.card__button {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white-primary);
  background: var(--gradient-primary);
  padding: 12px 24px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 140px;
  border: none;
  cursor: pointer;
}

.card__button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  color: var(--white-primary);
}

/* Card hover animations */
.card__article:hover .card__data {
  animation: show-data-portrait 0.8s forwards;
  opacity: 1;
}

.card__article:hover {
  animation: remove-overflow 1.5s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 1.5s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data-portrait 0.8s forwards;
}

@keyframes show-data-portrait {
  50% {
    transform: translateY(-16rem);
  }
  100% {
    transform: translateY(-12rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data-portrait {
  0% {
    transform: translateY(-12rem);
  }
  50% {
    transform: translateY(-16rem);
  }
  100% {
    transform: translateY(0.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }
  50% {
    overflow: hidden;
  }
}

/* =============== MOBILE CARD TOGGLE FUNCTIONALITY - SAME ANIMATION =============== */

@media (max-width: 768px) {
    /* Default state - cards don't show data on mobile unless clicked */
    .card__article .card__data {
        opacity: 0 !important;
        transform: translateY(0.5rem) !important;
        animation: none !important;
        pointer-events: none !important;
        transition: all 0.8s ease !important;
    }
    
    /* Active state - show data when clicked (opening animation) */
    .card__article.mobile-active .card__data {
        opacity: 1 !important;
        transform: translateY(-12rem) !important;
        animation: show-data-portrait 0.8s forwards !important;
        pointer-events: auto !important;
    }
    
    /* Closing animation - same as opening but reversed */
    .card__article.mobile-closing .card__data {
        opacity: 0 !important;
        transform: translateY(0.5rem) !important;
        animation: hide-data-portrait 0.8s forwards !important;
        pointer-events: none !important;
    }
    
    /* Active card styling */
    .card__article.mobile-active {
        transform: translateY(-8px) !important;
        box-shadow: var(--shadow-heavy) !important;
        overflow: initial !important;
        z-index: 100 !important;
    }
    
    /* Closing card styling */
    .card__article.mobile-closing {
        transform: translateY(0) !important;
        box-shadow: var(--shadow-light) !important;
        overflow: hidden !important;
        z-index: 15 !important;
    }
    
    /* Smooth transitions for mobile interactions */
    .card__article {
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }
    
    /* Visual feedback for clickable cards */
    .card__article:active {
        transform: scale(0.98) !important;
    }
    
    /* Ensure cards are clearly clickable */
    .card__article::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(41, 129, 249, 0.05);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        border-radius: 1.5rem;
    }
    
    .card__article:hover::after {
        opacity: 1;
    }
}

/* New closing animation - reverse of opening */
@keyframes hide-data-portrait {
    0% {
        transform: translateY(-12rem);
        opacity: 1;
    }
    50% {
        transform: translateY(-16rem);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0.5rem);
        opacity: 0;
    }
}

/* Oil & Gas Fired Steam Generator Showcase - COMPLETELY FIXED BACKGROUND ISSUE */
.oil-gas-category {
  position: relative;
  margin-top: 50px !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  z-index: 3;
}

/* Main showcase layout - 50% / 50% split */
.oil-gas-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 1.5rem !important;
  position: relative;
  z-index: 4;
  min-height: 500px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Left Side - COMPLETELY CLEAN Image with NO Background Container */
.showcase-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.showcase-image::before,
.showcase-image::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

.main-product-img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 15px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.18));
  animation: productFloat 6s ease-in-out infinite;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.main-product-img::before,
.main-product-img::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

@keyframes productFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
  }
  50% { 
    transform: translateY(-12px) scale(1.02); 
  }
}

.main-product-img:hover {
  transform: translateY(-10px) scale(1.04);
  filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.22));
}

/* Right Side - Content Area */
.showcase-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  height: 100%;
  z-index: 5;
}

/* Top Section - Product Information */
.product-info-section {
  flex: 1;
  margin-bottom: 2rem;
}

.capacity-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 2rem;
  color: var(--blue-primary);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.product-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Bottom Section - Components */
.components-section {
  margin-top: auto;
}

.components-title {
  color: var(--blue-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  justify-content: start;
}

.component-item {
  position: relative;
  transition: all 0.3s ease;
  aspect-ratio: 1;
  min-height: 120px;
  z-index: 6;
}

.component-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 20px rgba(41, 129, 249, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.component-image {
  width: 97%;
  height: 97%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
  background: transparent;
  padding: 0;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}

.component-item:hover .component-image {
  transform: scale(1.1);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.16));
}

/* Overlay for component names */
.component-overlay {
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: linear-gradient(135deg, rgba(41,129,249,0.95), rgba(102,201,255,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transform: scale(0.98);
}

.overlay-text {
  color: var(--white-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  padding: 0 8px;
  line-height: 1.2;
}

.component-item:hover .component-overlay {
  opacity: 1;
  transform: scale(1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* All other sections use standard consistent spacing */
#steam-press .product-section,
#laundry .product-section,
#switchgear .product-section,
#automation .product-section {
  padding: 30px 0 20px 0 !important;
  margin-top: 15px !important;
}

/* Coming Soon Cards */
.enhanced-coming-soon-card {
  background: var(--white-primary);
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.enhanced-coming-soon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(41,129,249,0.05), transparent);
  transition: left 0.6s;
}

.enhanced-coming-soon-card:hover::before {
  left: 100%;
}

.enhanced-coming-soon-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--blue-primary);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.enhanced-coming-soon-card:hover .card-icon {
  filter: grayscale(0);
}

.enhanced-coming-soon-card h4 {
  color: var(--blue-primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.enhanced-coming-soon-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
}

.card-progress {
  width: 100%;
  height: 4px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 60%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 60%; }
  100% { width: 0%; }
}

/* Modal Base Styles - DARK GRAY/BLACK BACKGROUNDS */
.zoom-modal-backdrop,
.steam-modal-backdrop,
.switchgear-modal-backdrop,
.automation-modal-backdrop {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-backdrop);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.zoom-modal-backdrop.active,
.steam-modal-backdrop.active,
.switchgear-modal-backdrop.active,
.automation-modal-backdrop.active {
    display: flex !important;
    opacity: 1;
}

/* STEAM TABLES IMAGE MODAL - SIMPLE IMAGE ZOOM ONLY */
.steam-modal-backdrop {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.steam-modal-backdrop.active {
    display: flex !important;
    opacity: 1;
}

/* Simple image container - no headers, no buttons */
.steam-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Steam modal image - handles different dimensions well */
.steam-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.steam-modal-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

/* Simple close button - only X in corner */
.steam-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: #fcfcf7;
    color: #1a202c;
    border: 2px solid rgba(248, 248, 243, 0.8);
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    transition: all 0.3s ease;
}

.steam-modal-close:hover {
    background: #f8f8f3;
    transform: scale(1.1);
}

/* Remove all other steam modal elements */
.steam-modal-header,
.steam-modal-caption,
.steam-modal-actions,
.steam-modal-controls {
    display: none !important;
}

/* Modal Content Containers */
.switchgear-modal-content,
.automation-modal-content,
.zoom-modal-content {
    background: var(--modal-content-bg);
    padding: 0;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.85) translateY(-30px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* SWITCHGEAR & AUTOMATION MODAL HEADERS - BLUE THEME */
.switchgear-modal-header,
.automation-modal-header {
    background: var(--gradient-primary) !important;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light)) !important;
    color: white !important;
    padding: 25px 35px;
    border-radius: 20px 20px 0 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(41, 129, 249, 0.3) !important;
}

.switchgear-modal-header h3,
.automation-modal-header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white !important;
}

/* Update close buttons for switchgear/automation to match theme */
.switchgear-modal-close,
.automation-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.switchgear-modal-close:hover,
.automation-modal-close:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.8);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Image Containers - Simple */
.zoom-modal-image-container {
    text-align: center;
    overflow: hidden;
    max-height: 75vh;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    margin: 10px;
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: inset 0 2px 10px rgba(59, 130, 246, 0.05);
}

.zoom-modal-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: default;
}

/* Switchgear & Automation Modal Body */
.switchgear-modal-body,
.automation-modal-body {
    padding: 35px;
    overflow-y: auto;
    max-height: 70vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Mobile Menu Overlay - FIXED WITH SLIDE ANIMATION */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  pointer-events: auto;
  /* Only remove tap highlight, keep functionality */
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-overlay.active {
  right: 0;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(41, 129, 249, 0.1);
  border: 2px solid rgba(41, 129, 249, 0.2);
  border-radius: 50%;
  color: #2981f9;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  /* Remove tap highlight */
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Mobile Navigation Links */
.mobile-nav-links {
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  color: #1a202c;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid rgba(41, 129, 249, 0.1);
  transition: color 0.3s ease, padding-left 0.3s ease;
  cursor: pointer;
  background: transparent;
  /* Only remove tap highlight, keep all other functionality */
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover {
  color: #2981f9;
  padding-left: 10px;
}

/* Products Dropdown - Keep functionality, remove highlight */
.products-dropdown {
  position: relative;
  background: transparent !important;
  transition: none !important;
  /* Only remove tap highlight */
  -webkit-tap-highlight-color: transparent;
}

.products-dropdown:hover,
.products-dropdown:active,
.products-dropdown:focus {
  background: transparent !important;
  color: #1a202c !important;
  padding-left: 0 !important;
  transform: none !important;
}

.products-dropdown.mobile-nav-link:hover {
  background: transparent !important;
  color: #1a202c !important;
  padding-left: 0 !important;
}

.products-dropdown::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 15px;
  font-size: 20px;
  transition: transform 0.3s ease;
  color: #2981f9;
}

.products-dropdown.expanded::after {
  transform: rotate(45deg);
}

.products-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  background: transparent !important;
  margin: 0;
  padding: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-dropdown.expanded .products-dropdown-menu {
  max-height: 400px;
}

/* Dropdown items - Keep functionality, remove highlight */
.dropdown-item {
  display: block !important;
  color: rgba(26, 32, 44, 0.7) !important;
  text-decoration: none !important;
  padding: 12px 0 12px 30px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  border-bottom: 1px solid rgba(41, 129, 249, 0.05) !important;
  background: transparent !important;
  position: relative !important;
  transition: color 0.2s ease, padding-left 0.2s ease !important;
  isolation: isolate !important;
  z-index: 1 !important;
  /* Only remove tap highlight, keep clickability */
  -webkit-tap-highlight-color: transparent;
}

.dropdown-item::before {
  content: '- ' !important;
  color: #2981f9 !important;
  font-weight: 500 !important;
  margin-right: 8px !important;
}

.dropdown-item:hover {
  color: #2981f9 !important;
  padding-left: 40px !important;
  background: transparent !important;
}

.dropdown-item:active {
  color: #2981f9 !important;
  background: rgba(41, 129, 249, 0.05) !important;
}

.dropdown-item:last-child {
  border-bottom: none !important;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  position: relative;
  /* Remove tap highlight */
  -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #2981f9;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
}

/* Responsive design */
@media (max-width: 1200px) {
  .main-product-img {
    max-height: 380px;
  }
  
  .components-grid {
    gap: 1.2rem;
  }
  
  .component-item {
    min-height: 100px;
  }
}

@media (max-width: 768px) {
  .top-contact-bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-section {
    padding: 40px 24px 60px 24px;
    min-height: auto;
  }
  
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .floating-images-container {
    height: 380px;
  }
  
  .floating-image {
    width: 350px;
    height: 350px;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .section-title {
    font-size: 1.6rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .glass-orb-1 {
    width: 180px;
    height: 180px;
  }
  
  .glass-orb-2 {
    width: 140px;
    height: 140px;
  }
  
    .glass-orb-3 {
    width: 100px;
    height: 100px;
  }
  
  .glass-orb-4 {
    width: 160px;
    height: 160px;
  }
  
  .glass-orb-5 {
    width: 90px;
    height: 90px;
  }
  
  .card__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .card__article {
    max-width: 100%;
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }
  
  .card__img,
  .carousel-image {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
  }
  
  .oil-gas-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .showcase-image {
    order: 1;
  }
  
  .showcase-content {
    order: 2;
    padding: 20px 0;
  }
  
  .main-product-img {
    max-height: 300px;
  }
  
  .components-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .component-item {
    min-height: 80px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-title-new {
    font-size: 1.8rem;
  }
  
  .product-title {
    font-size: 1.6rem;
  }
  
  .zoom-modal-content,
  .switchgear-modal-content,
  .automation-modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .switchgear-modal-header h3,
  .automation-modal-header h3 {
    font-size: 20px;
  }
  
  .switchgear-modal-body,
  .automation-modal-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
  }
  
  .floating-images-container {
    height: 300px;
  }
  
  .floating-image {
    width: 280px;
    height: 280px;
  }
  
  .card__article {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
  }
  
  .card__img,
  .carousel-image {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
  }
  
  .components-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .main-product-img {
    max-height: 250px;
  }
  
  .category-title-new {
    font-size: 1.5rem;
  }
  
  .product-title {
    font-size: 1.4rem;
  }
}



/* Contact Overlay Modal */
.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.contact-modal {
  background: var(--white-primary);
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-heavy);
  animation: modalSlideIn 0.4s ease-out;
}

.contact-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.contact-close:hover {
  color: var(--blue-primary);
}

.contact-modal h2 {
  color: var(--blue-primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(41, 129, 249, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(41, 129, 249, 0.1);
  transform: translateX(5px);
}

.contact-item i {
  color: var(--blue-primary);
  font-size: 1.2rem;
  width: 20px;
}

.contact-item span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Enhanced Washing Machine Loader for White Background - No Shadow */
.loader {
  width: 120px;
  height: 150px;
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  background-image: linear-gradient(#333 50%, #222 51%),
    linear-gradient(#333, #333), linear-gradient(#333, #333),
    radial-gradient(ellipse at center, #444 25%, #ddd 26%, #ddd 50%, #0000 55%),
    radial-gradient(ellipse at center, #444 25%, #ddd 26%, #ddd 50%, #0000 55%),
    radial-gradient(ellipse at center, #444 25%, #ddd 26%, #ddd 50%, #0000 55%);
  background-position: 0 20px, 45px 0, 8px 6px, 55px 3px, 75px 3px, 95px 3px;
  background-size: 100% 4px, 1px 23px, 30px 8px, 15px 15px, 15px 15px, 15px 15px;
  position: relative;
  border-radius: 6%;
  border: 2px solid #333;
  animation: shake 3s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.loader:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 100%;
  width: 7px;
  height: 5px;
  background: #333;
  border-radius: 0 0 4px 4px;
  box-shadow: 102px 0 #333;
}

.loader:after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 20px;
  background-color: #4a90e2;
  background-image: linear-gradient( to right, #0004 0%, #0004 49%, #0000 50%, #0000 100% ),
    linear-gradient(135deg, #5ba0f2 50%, #2c5282 51%);
  background-size: 30px 100%, 90px 80px;
  border-radius: 50%;
  background-repeat: repeat, no-repeat;
  background-position: 0 0;
  box-sizing: border-box;
  border: 10px solid #333;
  box-shadow: 0 0 0 4px #666 inset, 0 0 6px 6px #0004 inset;
  animation: spin 3s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg) }
  50% { transform: rotate(360deg) }
  75% { transform: rotate(750deg) }
  100% { transform: rotate(1800deg) }
}

@keyframes shake {
  65%, 80%, 88%, 96% { transform: rotate(0.5deg) }
  50%, 75%, 84%, 92% { transform: rotate(-0.5deg) }
  0%, 50%, 100% { transform: rotate(0) }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    color: #000000;
    font-size: 1.2rem;
    margin-top: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

/* Smooth scrolling for all anchor links */
html {
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--blue-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-secondary);
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .contact-btn,
  .hero-cta-btn,
  .footer {
    display: none !important;
  }
  
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .card__article {
    break-inside: avoid;
  }
}

/* COMPLETE FOCUS STATE FIX FOR IMAGE MODALS */
.steam-modal-backdrop *,
.steam-modal-content *,
.steam-modal-image,
.zoom-modal-backdrop *,
.zoom-modal-content *,
.zoom-modal-image,
#zoomModal *,
#steamModal * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Prevent focus on modal images specifically */
.steam-modal-image,
.zoom-modal-image {
    outline: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    pointer-events: auto !important;
}

/* Remove focus from any focused elements when modal opens */
.steam-modal-backdrop.active *:focus,
.zoom-modal-backdrop.active *:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Prevent text selection and focus rings globally on modals */
.steam-modal-backdrop,
.zoom-modal-backdrop {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* REMOVE FOCUS OUTLINE FROM NAVBAR ONLY */
.navbar *,
.nav-container *,
.nav-links *,
.nav-link,
.contact-btn,
.dropdown-toggle,
.mobile-nav-link,
.hamburger-menu,
.dropdown-menu a,
.dropdown-item {
  outline: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
}

/* Remove focus states for all navbar elements */
.nav-link:focus,
.nav-link:active,
.contact-btn:focus,
.contact-btn:active,
.dropdown-toggle:focus,
.dropdown-toggle:active,
.mobile-nav-link:focus,
.mobile-nav-link:active,
.hamburger-menu:focus,
.hamburger-menu:active,
.dropdown-menu a:focus,
.dropdown-menu a:active,
.dropdown-item:focus,
.dropdown-item:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Remove webkit autofill styling from navbar */
.navbar input:-webkit-autofill,
.navbar input:-webkit-autofill:hover,
.navbar input:-webkit-autofill:focus,
.navbar input:-webkit-autofill:active {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

/* Mobile menu specific fixes */
.mobile-menu-overlay *,
.mobile-menu-close,
.products-dropdown,
.products-dropdown * {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
