/* ===== GLOBAL STYLES ===== */
:root {
  --primary: #1a3e72;   /* Navy blue */
  --secondary: #d4af37; /* Gold accent */
  --dark: #222222;
  --light: #e8f0f8;    
  --gray: #eaeaea;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f8f6f2;
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
}

.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Gallery Item Links for Featured Products */
.gallery-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(212, 175, 55, 0.1) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
  z-index: 1;
}

.gallery-item-link:hover::before {
  left: 100%;
}

.gallery-item-link:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 
    0 20px 40px rgba(212, 175, 55, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(212, 175, 55, 0.3);
  border-color: rgba(212, 175, 55, 0.5);
}

.gallery-item-link:hover .gallery-item {
  transform: scale(1.05);
}

.gallery-item-link:hover .gallery-caption {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(212, 175, 55, 0.6);
}

.gallery-item-link:hover .gallery-caption h4 {
  color: #1a3e72;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(26, 62, 114, 0.2);
}

.gallery-item-link:hover .gallery-caption p {
  color: #4a5568;
  transform: translateY(-1px);
}

.gallery-item-link .gallery-caption {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-link .gallery-caption h4,
.gallery-item-link .gallery-caption p {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-link .gallery-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add a subtle pulse animation on hover */
@keyframes gentlePulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.02); 
  }
}

.gallery-item-link:hover .gallery-img {
  animation: gentlePulse 2s ease-in-out infinite;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background: linear-gradient(135deg, 
      rgba(15, 23, 42, 0.95) 0%, 
      rgba(30, 41, 59, 0.95) 50%, 
      rgba(51, 65, 85, 0.95) 100%);
  padding: 8px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(59, 130, 246, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(59, 130, 246, 0.5) 50%, 
      transparent 100%);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px; /* Adjust spacing as needed */
}

.logo-img-wrapper {
  display: flex;
  align-items: center;
}

.logo-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 1px;
}

.logo-tagline .tagline-break {
  display: inline-block;
  margin-top: 0.35em;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  padding: 6px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.1) 0%, 
      rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 
      0 15px 40px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(59, 130, 246, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
}

.logo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
      #3b82f6, #1d4ed8, #00ff88, #00d4ff, #8b5cf6);
  border-radius: 27px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
  animation: premiumGlow 6s ease-in-out infinite alternate;
}

@keyframes premiumGlow {
  0% { 
      opacity: 0.3; 
      transform: scale(1);
  }
  50% { 
      opacity: 0.6; 
      transform: scale(1.02);
  }
  100% { 
      opacity: 0.3; 
      transform: scale(1);
  }
}

.logo-img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 255, 136, 0.3));
  position: relative;
  z-index: 2;
}

.logo-img:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 8px 20px rgba(0, 255, 136, 0.6));
}

.logo p {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 1.1px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.navbar {
  margin-left: auto;
  position: relative;
}

.navbar::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, 
      rgba(59, 130, 246, 0.1) 0%, 
      rgba(139, 92, 246, 0.1) 100%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar:hover::before {
  opacity: 1;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Clean Underline Slide-In Effect for Navbar Links */
.navbar a {
  position: relative;
  overflow: visible;
  color: #1a3e72;
  transition: color 0.25s;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #d4af37, #1a3e72);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.68,-0.55,0.27,1.55), left 0.35s cubic-bezier(0.68,-0.55,0.27,1.55);
  z-index: 2;
}

.navbar a:hover, .navbar a.active {
  color: #d4af37;
}

.navbar a:hover::after, .navbar a.active::after {
  width: 90%;
  left: 5%;
}

/* Remove previous ::before and old hover underline styles */
.navbar a::before { display: none !important; }

/* Remove old neon line effect */

.navbar a:hover {
  background: linear-gradient(135deg, 
      rgba(59, 130, 246, 0.18) 0%, 
      rgba(139, 92, 246, 0.18) 100%);
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 
      0 6px 18px rgba(59, 130, 246, 0.22),
      0 0 0 1px rgba(59, 130, 246, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.13);
  border-color: rgba(59, 130, 246, 0.32);
}

.navbar a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
      rgba(0, 255, 136, 0.1) 0%, 
      rgba(0, 212, 255, 0.1) 100%);
  border-radius: 35px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar a:hover::after {
  opacity: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #00ff88);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 35px;
  transition: all 0.4s ease;
  border: none;
  box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.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 ease;
}

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

.btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #00ff88, #3b82f6);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
      0 15px 35px rgba(59, 130, 246, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* ===== HERO SECTION ===== */
.hero-video-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.hero-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  filter: brightness(0.85) saturate(1.1);
  transition: filter 1s cubic-bezier(0.4,0,0.2,1);
}
.hero-ripple-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 60%, rgba(212,175,55,0.12) 0%, rgba(26,62,114,0.10) 60%, transparent 100%);
  animation: ripplePulse 3s infinite alternate;
  mix-blend-mode: lighten;
}
@keyframes ripplePulse {
  0% { transform: scale(1); opacity: 0.7; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1.08); opacity: 0.7; }
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--primary);
  text-align: left;
  overflow: hidden;
  width: 100%;
  padding-top: 100px;
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-content {
  position: relative;
  z-index: 3;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 25px;
  line-height: 1.6;
  color: var(--primary);
  opacity: 0.95;
}

/* Slideshow Navigation */
.slideshow-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slide-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Ken Burns Effect - Made more subtle */
@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-slide.with-ken-burns {
  animation: kenBurns 20s infinite alternate;
}

/* Enhance button visibility */
.hero .btn {
  font-size: 1.2rem;
  padding: 15px 35px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(26, 62, 114, 0.2);
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 62, 114, 0.3);
}

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

/* ===== SERVICES SECTION ===== */
.services {
  padding: 100px 0;
  background: var(--light);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(232, 240, 248, 0.95);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: rgba(26, 62, 114, 0.1); /* Blue tint */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s;
}

.service-card:hover .icon-circle {
  background: var(--primary); /* Changed to blue */
  transform: rotate(360deg);
}

.icon-circle i {
  font-size: 30px;
  color: var(--primary); /* Changed to blue */
}

.service-card:hover .icon-circle i {
  color: white;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.wave-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #0f2a5a); /* Blue gradient */
  animation: wave 2s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover .wave-animation {
  opacity: 1;
}

@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 100px;
  }
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.product-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.gallery-item {
  background: white;
  padding: 10px;
  transition: box-shadow 0.3s;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gallery-item:hover {
  box-shadow: 0 8px 24px rgba(26,62,114,0.12);
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border: 1px solid #ddd;
}

.gallery-caption {
  padding: 15px 0 0 0;
  text-align: center;
}

.gallery-caption h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.gallery-caption p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background-color: var(--light);
  margin: auto;
  max-width: 800px;
  width: 90%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.4s;
}

@keyframes modalIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px;
  background: var(--primary);
  color: white;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
}

.modal-image {
  flex: 1;
  text-align: center;
}

.modal-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.modal-details {
  flex: 1;
  padding: 0 0 0 20px;
}

.modal-details h4 {
  color: var(--primary);
  margin: 0 0 15px 0;
  font-size: 1.3rem;
}

.modal-details p {
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.modal-details ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.modal-details li {
  margin-bottom: 8px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.2);
}

.modal-footer {
  padding: 15px 20px;
  background: rgba(232, 240, 248, 0.95);
  text-align: right;
}

.modal-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s;
  border: 2px solid var(--primary);
}

.modal-btn:hover {
  background: transparent;
  color: var(--primary);
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 80px 0;
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-item h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: white;
  padding: 20px 0;
  position: relative;
  z-index: 1000;
  text-align: center;
}

.footer p {
  color: var(--primary);
  font-size: 1rem;
}

/* ===== SIDEBAR & TOGGLE NAVIGATION (ENHANCED) ===== */
.toggle-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.toggle-nav:hover {
  background: #0f2a5a;
  transform: scale(1.05);
}

.side-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transition: right 0.3s cubic-bezier(.77,0,.18,1);
  box-shadow: -5px 0 20px rgba(26,62,114,0.10);
  border-left: 1px solid var(--gray);
  display: flex;
  flex-direction: column;
}

.side-nav.active {
  right: 0;
}

.side-nav-content {
  padding: 30px 20px 20px 20px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.close-nav {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.close-nav:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--secondary);
}

.side-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-section {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray);
}

.nav-section:last-child {
  border-bottom: none;
}

.nav-header {
  display: block;
  font-size: 1.08em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item-wrapper {
  padding: 0;
}

.nav-link {
  display: block;
  color: var(--dark);
  background: none;
  text-decoration: none;
  font-size: 1.08em;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,62,114,0.08);
}

/* Add a subtle left border for active link */
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 2px;
  background: var(--secondary);
}

@media (max-width: 768px) {
  .header {
    position: fixed;
  }

  .header .container {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  .logo {
    padding: 12px 20px;
  }

  .logo-img {
    height: 75px;
  }

  .navbar {
    width: 100%;
  }

  .navbar ul {
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .navbar a {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .hero-content {
    margin: 0 15px;
    padding: 25px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-item {
    padding: 20px;
  }

  .side-nav {
    width: 280px;
    right: -280px;
  }

  .nav-header {
    font-size: 1em;
  }

  .nav-item-wrapper {
    padding: 6px 12px;
  }

  .nav-link {
    font-size: 0.95em;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 10px;
  }

  .logo-img {
    height: 56px;
  }
  
  .hero-content {
    margin: 0 10px;
    padding: 20px;
  }

  .navbar ul {
    gap: 15px;
  }
}

/* Section Backgrounds */
#sports {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0f8 100%);
}

#granite-and-marble {
  background: linear-gradient(135deg, #e8f0f8 0%, #f8f9fa 100%);
}

#petrochemicals {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0f8 100%);
}

#handicrafts {
  background: linear-gradient(135deg, #e8f0f8 0%, #f8f9fa 100%);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
  }
  100% {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  }
}

.pulse {
  animation: pulse 3s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    width: 95%;
    padding: 0 20px;
  }
  
  .navbar ul {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .header .container {
    padding: 0 20px;
  }

  .navbar ul {
    gap: 20px;
  }

  .hero-content {
    margin: 0 20px;
    padding: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .side-nav {
    width: 90vw;
    right: -90vw;
    max-width: 100vw;
  }
  .side-nav.active {
    right: 0;
  }
  .side-nav-content {
    padding: 20px 10px 10px 10px;
    gap: 18px;
  }
  .nav-link {
    font-size: 1em;
    padding: 10px 10px;
  }
}

.main-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-tagline {
  color: #222;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 2px;
  white-space: nowrap;
}

.navbar .nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-list li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar .nav-list li a:hover {
  color: #0078d4;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  margin-left: 20px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .navbar .nav-list {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    min-width: 180px;
    z-index: 200;
  }
  .navbar .nav-list.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* --- Modern Header Styles --- */
.styled-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0;
  flex-wrap: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 18px;
}
.navbar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav-list li a {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0 4px;
  letter-spacing: 0.07em;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-icon {
  color: #222;
  font-size: 1.25rem;
  position: relative;
  transition: color 0.2s;
  text-decoration: none;
}
.header-icon:hover {
  color: #e11d48;
}
.icon-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  background: #e11d48;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .nav-list {
    gap: 18px;
  }
  .header-flex {
    min-height: 60px;
  }
  .logo-img {
    height: 45px !important;
  }
}
@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
    gap: 8px;
  }
  .navbar {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-list {
    gap: 10px;
    font-size: 0.95rem;
  }
  .header-icons {
    gap: 12px;
  }
}

body {
  background: #f8f6f2;
  color: #222;
}

.styled-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Remove .logo-bar styles */
.logo-bar {
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo-img {
  height: 100px;
  width: auto;
}
.logo-tagline {
  font-size: 1.5rem !important;
  font-weight: 700;
  line-height: 1.1;
  display: block;
  margin-left: 10px;
  white-space: normal;
}

.logo-group > *:not(.logo-img) {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin-left: 2px !important;
  white-space: nowrap !important;
}

/* Update nav and icons for light theme */
.nav-list li a {
  color: #1e293b;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: #38b2ac;
}
.header-icon {
  color: #1e293b;
}
.header-icon:hover {
  color: #38b2ac;
}
.icon-badge {
  background: #38b2ac;
}

/* Section backgrounds for light theme */
.features, .features-grid, .section-title, .hero, .footer {
  background: transparent !important;
  color: #222 !important;
}
.footer {
  background: #f3f1eb !important;
  border-top: 1px solid #e5e7eb !important;
}

/* Remove/override any dark backgrounds or gradients */
.animated-bg {
  display: none !important;
}

.hero, .hero-content {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.hero-slide::before {
  background: none !important;
}

.hero-content {
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-content h2,
.hero-content p {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
    filter: blur(0);
  }
  80% {
    transform: translateY(5px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes blurScaleOut {
  to {
    opacity: 0;
    transform: scale(1.15) translateY(-40px);
    filter: blur(12px);
    visibility: hidden;
  }
}

.hero-content {
  animation: bounceInUp 1.2s cubic-bezier(0.23, 1.5, 0.32, 1) forwards;
}
.hero-content.fade-out {
  animation: blurScaleOut 1.2s forwards;
}
.hero-content h2 {
  color: var(--secondary) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 800;
  letter-spacing: 1px;
  background: none !important;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: bounceInUp 1.1s 0.2s cubic-bezier(0.23, 1.5, 0.32, 1) forwards;
}

@keyframes neonPulse {
  0% {
    text-shadow:
      0 0 8px #00fff7,
      0 0 16px #00fff7,
      0 0 32px #1d4ed8,
      0 2px 4px rgba(0,0,0,0.2);
  }
  100% {
    text-shadow:
      0 0 16px #00fff7,
      0 0 32px #00fff7,
      0 0 64px #1d4ed8,
      0 4px 8px rgba(0,0,0,0.3);
  }
}
.hero-content p {
  opacity: 0;
  animation: bounceInUp 1.1s 0.5s cubic-bezier(0.23, 1.5, 0.32, 1) forwards;
}
.hero-content.fade-out h2,
.hero-content.fade-out p {
  animation: blurScaleOut 1.2s forwards;
}

/* Blog Section - Light Theme */
.blog-section {
  background: #fff;
  padding: 70px 0 60px 0;
}
.blog-article {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08), 0 2px 16px rgba(26,62,114,0.10);
  padding: 38px 36px;
  color: #222;
  font-size: 1.13rem;
  line-height: 1.8;
  position: relative;
}
.blog-article h3 {
  color: var(--primary);
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: none;
}
.blog-article h4 {
  color: var(--secondary);
  margin-top: 32px;
}
.blog-article ul {
  color: #222;
}

/* Certifications Section - Light Theme */
.certifications-section {
  background: #f8f6f2;
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}
.certification-card {
  background: #fff;
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  border: 2px solid var(--secondary);
  box-shadow: 0 20px 40px rgba(212,175,55,0.08), 0 0 0 1px rgba(26,62,114,0.08);
  backdrop-filter: none;
  position: relative;
  transform-style: preserve-3d;
}
.certification-icon {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 12px 25px rgba(212,175,55,0.15);
}
.certification-card h3 {
  color: var(--primary);
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: none;
}
.certification-card p {
  color: #222;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Testimonials Section - Light Theme */
.testimonials-section {
  background: #fff;
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}
.testimonial-card {
  background: #fff;
  border-radius: 25px;
  padding: 40px 35px;
  text-align: center;
  border: 1px solid var(--secondary);
  box-shadow: 0 15px 35px rgba(212,175,55,0.10), 0 0 0 1px rgba(26,62,114,0.08);
  backdrop-filter: none;
  position: relative;
}
.quote-icon {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(212,175,55,0.12);
}
.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #222;
  margin-bottom: 25px;
  font-style: italic;
}
.testimonial-author h4 {
  color: var(--primary);
  margin: 0 0 5px 0;
  font-size: 1.3rem;
}
.testimonial-author p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

/* Section Titles */
.section-title {
  color: var(--primary) !important;
  text-shadow: none !important;
}

.blog-article, .blog-article p, .blog-article h4, .blog-article ul, .blog-article li {
  color: #222 !important;
}
.certification-card, .certification-card p, .certification-card h3, .certification-card ul, .certification-card li {
  color: #222 !important;
}
.testimonial-card, .testimonial-card p, .testimonial-card h4, .testimonial-card ul, .testimonial-card li {
  color: #222 !important;
}

/* Horizontal Logo with Divider (Preview for about.html) */
.logo-horizontal-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
}
.logo-tagline-alt {
  font-size: 1rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 1.1px;
  line-height: 1.1;
  margin: 0;
  padding: 0;
  text-align: center;
}
.logo-divider { display: none !important; }

.hero-animated-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5vw;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.15em;
  z-index: 10;
  display: flex;
  gap: 0.1em;
  pointer-events: none;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.hero-animated-text span {
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  display: inline-block;
  transition: opacity 0.5s, transform 0.5s;
}
.hero-animated-text span.visible {
  opacity: 1;
  transform: translateY(0) scale(1.1);
  transition: opacity 0.7s cubic-bezier(0.23,1,0.32,1), transform 0.7s cubic-bezier(0.23,1,0.32,1);
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
  /* Header and Navigation */
  .header {
    padding: 5px 0;
    position: fixed;
    z-index: 1000;
  }

  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
  }

  .logo-horizontal-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .logo-img {
    height: 44px;
    width: auto;
  }

  .logo-tagline-alt {
    font-size: 0.8rem;
    display: none;
  }

  .navbar {
    margin-left: 0;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li a {
    font-size: 1rem;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-list li a:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(5px);
  }

  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
  }

  /* Hero Section */
  .hero {
    min-height: 70vh;
    padding-top: 80px;
  }

  .hero-content {
    text-align: center;
    padding: 20px 15px;
    margin: 0 10px;
  }

  .hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .hero-animated-text {
    font-size: 2.5rem;
    top: 30%;
  }

  .hero-animated-text span {
    font-size: 2.5rem;
    margin: 0 2px;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }

  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
  }

  .gallery-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .gallery-caption {
    padding: 15px;
  }

  .gallery-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .gallery-caption p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Featured Products */
  .featured-products {
    padding: 40px 0;
  }

  .featured-category {
    margin-bottom: 30px;
  }

  .featured-category h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
  }

  /* Features Section */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .feature-item {
    padding: 25px 20px;
    text-align: center;
  }

  .feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Blog Section */
  .blog-article {
    padding: 25px 20px;
    margin: 0 10px;
  }

  .blog-article h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .blog-article h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .blog-article p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  /* Certifications Section */
  .certification-card {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .certification-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .certification-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Testimonials Section */
  .testimonial-card {
    padding: 25px 20px;
    margin: 0 10px;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .testimonial-author p {
    font-size: 0.9rem;
  }

  /* Modal Improvements */
  .modal-content {
    width: 95%;
    max-width: 400px;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 20px;
    flex-direction: column;
  }

  .modal-image {
    width: 100%;
    margin-bottom: 20px;
  }

  .modal-image img {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
  }

  .modal-details h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .modal-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .modal-details ul {
    margin-left: 20px;
  }

  .modal-details li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  /* Touch-friendly improvements */
  .gallery-item-link {
    min-height: 44px;
    touch-action: manipulation;
  }

  .btn {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 1rem;
    touch-action: manipulation;
  }

  .nav-list li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
  }

  /* Footer */
  .footer {
    padding: 30px 0;
    text-align: center;
  }

  .footer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .container {
    width: 100%;
    padding: 0 10px;
  }

  .header .container {
    padding: 0 10px;
  }

  .logo-img {
    height: 38px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-animated-text {
    font-size: 2rem;
  }

  .hero-animated-text span {
    font-size: 2rem;
    margin: 0 1px;
  }

  .gallery-grid {
    gap: 10px;
    padding: 0 5px;
  }

  .gallery-img {
    height: 180px;
  }

  .gallery-caption {
    padding: 12px;
  }

  .gallery-caption h4 {
    font-size: 1rem;
  }

  .gallery-caption p {
    font-size: 0.85rem;
  }

  .feature-item {
    padding: 20px 15px;
  }

  .feature-item i {
    font-size: 2rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }

  .blog-article {
    padding: 20px 15px;
    margin: 0 5px;
  }

  .blog-article h3 {
    font-size: 1.3rem;
  }

  .certification-card {
    padding: 25px 15px;
    margin: 0 5px;
  }

  .testimonial-card {
    padding: 20px 15px;
    margin: 0 5px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .modal-content {
    width: 98%;
    margin: 10px auto;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-body {
    padding: 15px;
  }

  .modal-image img {
    max-height: 350px;
    height: auto;
    width: 100%;
    object-fit: contain;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
    padding-top: 70px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-animated-text {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-img {
    height: 150px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .gallery-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .gallery-item-link:hover {
    transform: none;
  }

  .gallery-item-link:active {
    transform: scale(0.98);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.95);
  }

  .nav-list li a:hover {
    transform: none;
  }

  .nav-list li a:active {
    transform: scale(0.95);
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-animated-text span {
    animation: none;
  }

  .gallery-item-link:hover {
    transform: none;
  }

  .gallery-item-link:hover .gallery-img {
    animation: none;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
  /* Improve scrolling performance */
  html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Better touch targets */
  .gallery-item-link,
  .btn,
  .nav-list li a,
  .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve text readability */
  body {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure featured products section is fully visible on mobile */
  .featured-products {
    overflow: visible;
    padding: 40px 0;
    position: relative;
    z-index: 1;
  }

  .featured-products .container {
    overflow: visible;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
  }

  .featured-category .gallery-item-link {
    display: block;
    width: 100%;
    height: 100%;
  }

  .featured-category .gallery-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .featured-category .gallery-item .gallery-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f8f8;
    padding: 5px;
  }

  /* Better modal for mobile */
  .modal {
    padding: 10px;
  }

  .modal-content {
    border-radius: 12px;
    margin: 10px auto;
  }

  /* Improve carousel navigation */
  .certification-dots,
  .testimonial-dots {
    gap: 8px;
  }

  .cert-dot,
  .dot {
    width: 10px;
    height: 10px;
  }

  /* Better spacing for mobile */
  .section-title {
    margin-bottom: 20px;
    padding: 0 15px;
  }

  /* Optimize featured products for mobile */
  .featured-category {
    margin-bottom: 25px;
  }

  .featured-category .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 5px;
  }

  .featured-category .gallery-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    min-height: 150px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f8f8;
    padding: 5px;
  }

  .featured-category .gallery-item {
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .featured-category .gallery-item .gallery-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f8f8;
    padding: 5px;
  }

  .featured-category .gallery-caption {
    padding: 10px;
  }

  .featured-category .gallery-caption h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .featured-category .gallery-caption p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  /* Improve blog section for mobile */
  .blog-article {
    font-size: 0.95rem;
  }

  .blog-article h3 {
    font-size: 1.3rem;
  }

  .blog-article h4 {
    font-size: 1rem;
  }

  /* Better testimonials for mobile */
  .testimonial-text {
    font-size: 0.95rem;
  }

  .testimonial-author h4 {
    font-size: 1rem;
  }

  .testimonial-author p {
    font-size: 0.85rem;
  }

  /* Optimize certifications for mobile */
  .certification-card {
    margin-bottom: 20px;
  }

  .certification-card h3 {
    font-size: 1.2rem;
  }

  .certification-card p {
    font-size: 0.9rem;
  }

  /* Fix certification images for mobile */
  .certification-image {
    width: 150px !important;
    height: 120px !important;
  }

  .certification-image img {
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Improve hero section for mobile */
  .hero-video {
    object-fit: cover;
  }

  .hero-ripple-overlay {
    background: rgba(0, 0, 0, 0.3);
  }

  /* Better navigation for mobile */
  .nav-list li a {
    font-weight: 500;
    letter-spacing: 0.5px;
  }

  /* Improve mobile menu toggle */
  .mobile-menu-toggle {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
  }

  .mobile-menu-toggle:active {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(0.95);
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .featured-category .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 5px;
  }

  .featured-category .gallery-img {
    width: 100%;
    height: auto;
    max-height: 160px;
    min-height: 130px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f8f8;
    padding: 5px;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .blog-article h3 {
    font-size: 1.2rem;
  }

  .certification-card h3 {
    font-size: 1.1rem;
  }

  .certification-image {
    width: 120px !important;
    height: 100px !important;
  }

  .certification-image img {
    object-fit: contain !important;
    object-position: center !important;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 50vh;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.8rem;
  }

  .featured-category .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-category .gallery-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f8f8;
    padding: 5px;
  }
}

/* High DPI and retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .gallery-img,
  .certification-image img,
  .testimonial-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch device specific optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .gallery-item-link:hover,
  .btn:hover,
  .nav-list li a:hover {
    transform: none;
    box-shadow: none;
  }

  /* Add active states for touch feedback */
  .gallery-item-link:active,
  .btn:active,
  .nav-list li a:active {
    transform: scale(0.98);
    opacity: 0.8;
  }

  /* Improve scrolling */
  .gallery-grid,
  .features-grid,
  .blog-article,
  .certification-card,
  .testimonial-card {
    -webkit-overflow-scrolling: touch;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-animated-text span {
    animation: none !important;
  }

  .gallery-item-link:hover .gallery-img {
    animation: none !important;
  }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(0, 0, 0, 0.95);
  }

  .nav-list {
    background: rgba(0, 0, 0, 0.98);
  }
}

/* Print styles for mobile */
@media print {
  .header,
  .mobile-menu-toggle,
  .nav-list,
  .hero-video-bg,
  .animated-bg {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* Add a little random sway on touch devices (active state) */
@media (hover: none) and (pointer: coarse) {
  .gallery-item-link:hover {
    transform: none;
  }
  .gallery-item-link:active {
    /* Randomize between -4deg and 4deg for a playful tap effect */
    transform: scale(0.98) rotateZ(3deg);
  }
}

/* For accessibility: no sway if reduced motion is enabled */
@media (prefers-reduced-motion: reduce) {
  .gallery-item-link:hover {
    transform: none;
  }
  .gallery-item-link:active {
    transform: none;
  }
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide-video .hero-video,
.hero-slide-img .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide-img .hero-img {
  min-height: 340px;
}
.hero-ripple-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 768px) {
  .hero-slideshow, .hero-slide, .hero-slide-video .hero-video, .hero-slide-img .hero-img {
    min-height: 220px;
    height: 220px;
  }
}

/* ===== PRODUCT PAGES MOBILE RESPONSIVENESS ===== */
/* Product Hero Section - Mobile */
@media (max-width: 768px) {
  .product-hero {
    padding: 100px 0 40px !important;
  }
  
  .product-hero .container > div[style*="grid-template-columns"] {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  .product-hero h1 {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }
  
  .product-hero p {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }
  
  .product-hero img {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .product-hero .btn {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    display: block !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }
}

/* Product Details Section - Mobile */
@media (max-width: 768px) {
  .product-details {
    padding: 40px 0 !important;
  }
  
  .product-details .container > div[style*="grid-template-columns"] {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  .product-details img {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .product-details h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }
  
  .product-details p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  
  .product-details h3 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
  }
  
  .product-details ul li {
    font-size: 0.95rem !important;
    margin-bottom: 10px !important;
  }
  
  .product-details .btn {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    display: block !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    width: 100% !important;
  }
}

/* Product Details Grid Layout - Mobile */
@media (max-width: 768px) {
  section[style*="grid-template-columns: 2fr 1fr"],
  section[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  
  section[style*="grid-template-columns: 2fr 1fr"] > div,
  section[style*="grid-template-columns: 1fr 1fr"] > div,
  div[style*="grid-template-columns: 2fr 1fr"] > div,
  div[style*="grid-template-columns: 1fr 1fr"] > div {
    margin-bottom: 30px !important;
  }
}

/* Hero Section with Background - Mobile */
@media (max-width: 768px) {
  .hero[style*="min-height"] {
    min-height: 40vh !important;
    padding: 80px 0 40px !important;
  }
  
  .hero-content h1 {
    font-size: 2rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-content .btn {
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }
}

/* Specifications/Applications Grid - Mobile */
@media (max-width: 768px) {
  section[style*="grid-template-columns: repeat(auto-fit"] > div,
  div[style*="grid-template-columns: repeat(auto-fit"] > div {
    margin-bottom: 19px !important;
  }
  
  section h2[style*="font-size: 2.5rem"],
  .container h2[style*="font-size: 2.5rem"] {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }
}

/* CTA Section - Mobile */
@media (max-width: 768px) {
  .cta {
    padding: 50px 0 !important;
  }
  
  .cta h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }
  
  .cta p {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }
  
  .cta .btn {
    padding: 15px 30px !important;
    font-size: 1rem !important;
  }
}

/* Quick Enquiry Form - Mobile */
@media (max-width: 768px) {
  div[style*="background: #f8f6f2"][style*="padding: 40px"] {
    padding: 25px 20px !important;
  }
  
  form[style*="display: flex"] {
    gap: 15px !important;
  }
  
  form input,
  form textarea {
    padding: 12px !important;
    font-size: 0.95rem !important;
  }
  
  form button {
    padding: 12px !important;
    font-size: 0.95rem !important;
  }
}

/* Footer Grid - Mobile */
@media (max-width: 768px) {
  footer div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* Related Products Section - Mobile */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Very Small Screens */
@media (max-width: 480px) {
  .product-hero {
    padding: 80px 0 30px !important;
  }
  
  .product-hero h1 {
    font-size: 1.6rem !important;
  }
  
  .product-hero p {
    font-size: 0.9rem !important;
  }
  
  .product-details {
    padding: 30px 0 !important;
  }
  
  .product-details h2 {
    font-size: 1.5rem !important;
  }
  
  .product-details p {
    font-size: 0.9rem !important;
  }
  
  .hero-content h1 {
    font-size: 1.6rem !important;
  }
  
  .hero-content p {
    font-size: 0.9rem !important;
  }
  
  .cta h2 {
    font-size: 1.5rem !important;
  }
  
  .cta p {
    font-size: 0.9rem !important;
  }
}
