/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8faff;
  overflow-x: hidden;
  padding-top: 80px; /* Prevent content from being hidden behind fixed navbar */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #333;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  border-bottom: 1px solid rgba(76, 99, 210, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Remove position: relative to avoid interfering with sticky header */
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand .logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0;
  font-family: "Noto Sans Khmer", Arial, sans-serif;
  color: #4c63d2;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #4c63d2;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin-right: 1.5rem;
}

.navigation a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  display: block;
}

.navigation a:hover {
  color: #4c63d2;
  background-color: rgba(76, 99, 210, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid rgba(76, 99, 210, 0.3);
  border-radius: 25px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 35px;
  margin-left: 1rem;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: #4c63d2;
  transform: scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  font-size: 1rem;
  transition: opacity 0.3s ease;
  color: #4c63d2;
}

.theme-toggle .sun-icon {
  opacity: 0;
}

.theme-toggle .moon-icon {
  opacity: 1;
}

/* Hero Section */
body:not(.dark-theme) .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("https://images.unsplash.com/photo-1666214280352-db292c05fd80?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  opacity: 0.8;
}

.hero {
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.cta-button {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
  color: white;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 50%, #7c3aed 100%);
  animation: none;
}

/* Section Styles */
section {
  padding: 4rem 0;
  scroll-margin-top: 80px;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #4c63d2;
  scroll-margin-top: 90px;
}

/* About Section */
.about {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.about-text h3 {
  color: #4c63d2;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.stat-box {
  background: linear-gradient(135deg, #4c63d2 0%, #3b4ab8 100%);
  color: white;
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(76, 99, 210, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
  border: 2px solid transparent;
}

.stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.stat-box:hover {
  border: 2px solid #4c63d2;
  box-shadow: 0 4px 15px rgba(76, 99, 210, 0.3), 0 0 15px rgba(76, 99, 210, 0.5),
    inset 0 0 15px rgba(76, 99, 210, 0.1);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-description {
  font-size: 0.7rem;
  opacity: 0.9;
  line-height: 1.2;
}

/* Products Section */
.products {
  background: #f8faff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), 0 0 20px rgba(76, 99, 210, 0.5),
    inset 0 0 20px rgba(76, 99, 210, 0.1);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.5rem;
  margin: 1.5rem 2rem 1rem 2rem;
  color: #4c63d2;
}

.product-card p {
  line-height: 1.6;
  color: #666;
  padding: 0 2rem 2rem 2rem;
}

/* Services Section */
.services {
  background: white;
}

/* Services Section */
.services {
  background: white;
  padding: 4rem 0;
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.services-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-item {
  padding: 2.5rem;
  background: #f8faff;
  border-radius: 12px;
  border-left: 4px solid #4c63d2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 20px rgba(76, 99, 210, 0.5),
    inset 0 0 20px rgba(76, 99, 210, 0.1);
}

.service-item h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #4c63d2;
  font-weight: 700;
}

.service-item p {
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4c63d2;
  font-weight: bold;
}

/* Contact Section */
.contact {
  background: #f8faff;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #4c63d2;
  font-weight: 700;
}

.contact-item p {
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Adjust Business Hours to move it up more */
.contact-row:last-child .contact-item:last-child {
  margin-top: -1.5rem;
}

.contact-map h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #4c63d2;
  font-weight: 700;
}

.gstin {
  color: #666;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-right {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #4c63d2;
  font-weight: 700;
  text-align: center;
}

/* Contact links styling */
.contact-item a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #4c63d2;
  text-decoration: underline;
}

.contact-item a p {
  transition: color 0.3s ease;
}

.contact-item a:hover p {
  color: #4c63d2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form textarea {
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4c63d2;
}

.contact-form button {
  background: #4c63d2;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #3b4ab8;
}

/* Form Validation Styles */
.contact-form .field-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-form .error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.contact-form .field-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5;
}

.contact-form .field-error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: white;
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4c63d2, #87ceeb, #4c63d2);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2rem;
}

.footer-section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4c63d2;
  font-weight: bold;
  font-family: "Noto Sans Khmer", Arial, sans-serif;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #87ceeb;
  font-weight: 600;
  position: relative;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #4c63d2;
}

.footer-section p {
  color: #b0c4de;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #d3d3d3;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-section a:hover {
  color: #87ceeb;
}

.footer-section a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: #87ceeb;
  transition: width 0.3s ease;
}

.footer-section a:hover::before {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

.footer-bottom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.footer-bottom p {
  color: #b0c4de;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: #d3d3d3;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.footer-links a:hover {
  color: #87ceeb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(76, 99, 210, 0.2);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    opacity: 0;
    visibility: hidden;
  }

  .navigation.active {
    right: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin: 0 0 2rem 0;
    align-items: center;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .navigation a {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-align: center;
    color: #333;
  }

  .navigation a:hover {
    color: #4c63d2;
    background-color: rgba(76, 99, 210, 0.1);
  }

  .theme-toggle {
    margin-left: 0;
    align-self: center;
  }

  .nav-brand .logo {
    height: 45px;
  }

  .brand-text h1 {
    font-size: 1.8rem;
  }

  html {
    scroll-padding-top: 80px;
  }

  body {
    padding-top: 60px;
  }

  section {
    scroll-margin-top: 70px;
  }

  section h2 {
    scroll-margin-top: 80px;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text {
    text-align: center;
  }

  .about-stats {
    flex-direction: row;
    gap: 1rem;
    height: auto;
  }

  .stat-box {
    padding: 1.2rem 0.8rem;
    min-height: 100px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .stat-description {
    font-size: 0.75rem;
  }

  .services-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .service-item {
    padding: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .contact-right {
    margin: 2rem 1rem 0 1rem;
    max-width: calc(100vw - 2rem);
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .contact-map h4 {
    margin-left: 15px;
  }

  .contact-map {
    order: -1; /* Move map above contact info on mobile */
  }

  .contact-map iframe {
    height: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-section:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
  }

  section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .navigation {
    width: 100%;
    right: -100%;
  }

  .nav-brand .logo {
    height: 40px;
  }

  .brand-text h1 {
    font-size: 1.6rem;
  }

  .hero {
    min-height: 100vh;
    padding: 0 1rem;
  }

  /* Mobile responsive hero background */
  body:not(.dark-theme) .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
      url("https://www.cwsarch.com/wp-content/uploads/2019/12/SMMC_040a_CR-Copy-web.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  .hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }

  .about-text {
    text-align: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
  }

  .stat-box {
    padding: 1rem;
    min-height: 80px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-description {
    font-size: 0.7rem;
  }

  .product-grid,
  .services-list {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 250px;
  }

  .contact-info {
    padding: 1rem;
  }

  .contact-info h3 {
    font-size: 1.3rem;
  }

  .contact-right {
    padding: 1.5rem;
    margin: 0 1rem;
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .map-container {
    margin: 0 1rem;
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
  }

  .map-container iframe {
    width: 100%;
    height: 200px;
  }
}

/* Dark Theme Styles */
.dark-theme {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

.dark-theme .header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(76, 99, 210, 0.2);
  color: #e0e0e0;
}

.dark-theme .brand-text h1 {
  color: #6b7edb;
}

.dark-theme .hamburger-line {
  background-color: #6b7edb;
}

.dark-theme .navigation a {
  color: #c0c0c0;
}

.dark-theme .navigation a:hover {
  color: #6b7edb;
  background-color: rgba(107, 126, 219, 0.1);
}

/* Dark theme mobile navigation */
@media (max-width: 768px) {
  .dark-theme .navigation {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(107, 126, 219, 0.3);
  }

  .dark-theme .navigation a {
    color: #c0c0c0;
  }

  .dark-theme .navigation a:hover {
    color: #6b7edb;
    background-color: rgba(107, 126, 219, 0.1);
  }
}

.dark-theme .theme-toggle {
  border-color: rgba(107, 126, 219, 0.3);
}

.dark-theme .theme-toggle:hover {
  border-color: #6b7edb;
}

.dark-theme .theme-toggle .sun-icon,
.dark-theme .theme-toggle .moon-icon {
  color: #6b7edb;
}

.dark-theme .hero {
  background: linear-gradient(rgba(42, 42, 42, 0.8), rgba(31, 31, 31, 0.9)),
    url("https://images.unsplash.com/photo-1666214280352-db292c05fd80?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Dark theme mobile hero background override */
@media (max-width: 480px) {
  .dark-theme .hero {
    background: linear-gradient(rgba(42, 42, 42, 0.92), rgba(31, 31, 31, 0.94)),
      url("https://www.cwsarch.com/wp-content/uploads/2019/12/SMMC_040a_CR-Copy-web.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
  }
}

.dark-theme .about {
  background: #1a1a1a;
}

.dark-theme .services {
  background: #161616;
}

.dark-theme .products {
  background: #1f1f1f;
}

.dark-theme .contact {
  background: #141414;
}

.dark-theme section h2 {
  color: #4c63d2;
}

.dark-theme .product-card {
  background: #2a2a2a;
}

.dark-theme .product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 25px rgba(76, 99, 210, 0.6),
    inset 0 0 25px rgba(76, 99, 210, 0.1);
}

.dark-theme .product-card h3,
.dark-theme .service-item h4,
.dark-theme .contact-item h4,
.dark-theme .contact-map h4{
  color: #6b7edb;
}

.dark-theme .product-card p,
.dark-theme .service-item p,
.dark-theme .contact-item p,
.dark-theme .about-text p,
.dark-theme .services-intro p {
  color: #c0c0c0;
}

.dark-theme .gstin {
  color: #c0c0c0;
}

.dark-theme .service-item {
  background: #2a2a2a;
}

.dark-theme .service-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 25px rgba(76, 99, 210, 0.6),
    inset 0 0 25px rgba(76, 99, 210, 0.1);
}

.dark-theme .service-features li {
  color: #c0c0c0;
}

.dark-theme .service-features li::before {
  color: #6b7edb;
}

/* Dark theme contact links */
.dark-theme .contact-item a {
  color: inherit;
}

.dark-theme .contact-item a:hover {
  color: #6b7edb;
}

.dark-theme .contact-item a:hover p {
  color: #6b7edb;
}

.dark-theme .stat-box {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.dark-theme .stat-box:hover {
  border: 2px solid #4c63d2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(76, 99, 210, 0.6),
    inset 0 0 20px rgba(76, 99, 210, 0.1);
}

.dark-theme .stat-number {
  color: #6b7edb;
}

.dark-theme .stat-label {
  color: #e0e0e0;
}

.dark-theme .stat-description {
  color: #c0c0c0;
}

.dark-theme .service-item {
  background: #2a2a2a;
}

.dark-theme .contact-info h3 {
  color: #4c63d2;
}

.dark-theme .contact {
  background: #1a1a1a;
}

.dark-theme .contact-form {
  background: #2a2a2a;
}

.dark-theme .contact-right {
  background: #2a2a2a;
}

.dark-theme .contact-form input,
.dark-theme .contact-form textarea {
  background: #333;
  color: #e0e0e0;
  border-color: #555;
}

.dark-theme .contact-form input:focus,
.dark-theme .contact-form textarea:focus {
  border-color: #4c63d2;
  background: #3a3a3a;
}

.dark-theme .contact-form input::placeholder,
.dark-theme .contact-form textarea::placeholder {
  color: #aaa;
}

/* Dark theme validation styles */
.dark-theme .contact-form .error-message {
  color: #f5c6cb;
  background-color: #2d1b1d;
  border-color: #842029;
}

.dark-theme .contact-form .field-error {
  border-color: #dc3545 !important;
  background-color: #2d1b1d;
}

.dark-theme .contact-form .field-error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.dark-theme .contact-form button {
  background: #4c63d2;
  color: #ffffff;
}

.dark-theme .contact-form button:hover {
  background: #3b4ab8;
}

.dark-theme .contact-form h4 {
  color: #e0e0e0;
}

.dark-theme .footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.dark-theme .footer-section:first-child {
  border-right-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .footer-section h3 {
  color: #6b7edb;
}

.dark-theme .footer-section h4 {
  color: #87ceeb;
}

.dark-theme .footer-section h4::after {
  background: #6b7edb;
}

.dark-theme .footer-section p {
  color: #a0a0a0;
}

.dark-theme .footer-section a {
  color: #b8b8b8;
}

.dark-theme .footer-section a:hover {
  color: #87ceeb;
}

.dark-theme .footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  border-top-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .footer-bottom p {
  color: #a0a0a0;
}

.dark-theme .footer-links a {
  color: #b8b8b8;
}

.dark-theme .footer-links a:hover {
  color: #87ceeb;
}
