/* ======================
   NutriLeaf Naturals - Main Styles
   ====================== */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2d7b32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --secondary-color: #ff8f00;
  --secondary-light: #ffb74d;
  --accent-color: #00695c;
  --text-primary: #2c2c2c;
  --text-secondary: #b6b6b6;
  --text-light: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --header-height: 64px;
  /* used to calculate mobile overlay inset */

  /* Additional variables for section pages compatibility */
  --primary-green: #2d7b32;
  --secondary-green: #4caf50;
  --text-dark: #2c2c2c;
  --text-grey: #666666;
  --light-grey: #f8f9fa;
  --accent-orange: #ff8f00;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  padding-top: var(--header-height);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-light);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--text-light);
  box-shadow: var(--shadow-medium);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  background: linear-gradient(135deg, #e65100, var(--secondary-color));
}

/* Dark Mode Toggle */
.toggle-container {
  z-index: 1001;
  /* Ensure it doesn't break layout in header */
  display: flex;
  align-items: center;
}

.toggle-btn {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.toggle-btn:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--primary-color);
}

/* Icon Switching Logic */
.toggle-btn .sun-icon {
  display: none;
}

.toggle-btn .moon-icon {
  display: block;
}

/* When dark mode is active (handled by darkmode.css mostly, but ensuring visibility here) */
.dark-mode .toggle-btn .sun-icon {
  display: block;
}

.dark-mode .toggle-btn .moon-icon {
  display: none;
}

/* Search Functionality */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
}

.search-input-container {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.search-input-container[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  padding: 4px 8px;
}

#search-input::placeholder {
  color: var(--text-secondary);
}

.search-submit {
  background: var(--primary-color);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* Search Results */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-hover);
}

.search-result-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.search-result-info p {
  margin: 4px 0 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.search-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
}

/* Header/Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1005;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  flex-wrap: nowrap;
  /* Prevent wrapping */
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  /* Prevent wrapping */
  gap: 1rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.logo-image {
  height: 40px;
  width: auto;
  max-width: 40px;
  transition: var(--transition);
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-heading);
  transition: var(--transition);
}

.logo:hover .logo-text {
  color: var(--primary-light);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  /* Prevent wrapping */
}

.navbar nav a {
  padding: 1rem 2rem;
  text-align: center;
  color: var(--text-primary);
  /* Ensure text is dark on light background */
  position: relative;
}

.navbar nav a:hover {
  color: var(--primary-color);
}

.navbar nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.navbar nav a:hover::after {
  width: 100%;
}

.hamburger {
  --color: var(--primary-color);
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  outline: none;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: none;
  /* Initially hidden, shown in media query */
  z-index: 1002;
  overflow: hidden;
  /* Prevent SVG from overlapping */
}

.hamburger svg {
  width: 64px;
  height: 48px;
  top: -6px;
  left: -14px;
  stroke: var(--color);
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
  position: absolute;
}

.hamburger svg path {
  transition: stroke-dasharray var(--duration, 0.85s) var(--easing, ease) var(--delay, 0s),
    stroke-dashoffset var(--duration, 0.85s) var(--easing, ease) var(--delay, 0s);
  stroke-dasharray: var(--array-1, 26px) var(--array-2, 100px);
  stroke-dashoffset: var(--offset, 126px);
  transform: translateZ(0);
}

.hamburger svg path:nth-child(2) {
  --duration: 0.7s;
  --easing: ease-in;
  --offset: 100px;
  --array-2: 74px;
}

.hamburger svg path:nth-child(3) {
  --offset: 133px;
  --array-2: 107px;
}

/* Active State */
.nav-open .hamburger svg path {
  --offset: 57px;
}

.nav-open .hamburger svg path:nth-child(1),
.nav-open .hamburger svg path:nth-child(3) {
  --delay: 0.15s;
  --easing: cubic-bezier(.2, .4, .2, 1.1);
}

.nav-open .hamburger svg path:nth-child(2) {
  --duration: 0.4s;
  --offset: 2px;
  --array-1: 1px;
}

.nav-open .hamburger svg path:nth-child(3) {
  --offset: 58px;
}


/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* Safe modern mobile viewport unit */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      rgba(45, 123, 50, 0.8),
      rgba(76, 175, 80, 0.6),
      rgba(255, 143, 0, 0.3));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  min-height: 300px;
  padding: 0 2rem;
  color: var(--text-light);
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
  padding: 5rem 2rem;
}

.about,
.products,
.quality,
.export {
  max-width: 1200px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--bg-secondary);
  text-align: center;
}

.about h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.about p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* Products Section */
.products {
  background: var(--bg-primary);
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.products h2 {
  color: var(--primary-color);
  margin-bottom: 4rem;
  margin-top: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-body {
  padding: 2rem;
}

.card-body h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-actions .btn-primary,
.card-actions .btn-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-width: 120px;
}

.card-actions .btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Quality Section */
.quality {
  background: var(--bg-secondary);
  text-align: center;
}

.quality h2 {
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.quality-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.quality-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.quality-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.quality-item p {
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

/* Export Section */
.export {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-content {
  max-width: 800px;
  padding: 0 2rem;
}

.export-content h2 {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.export-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* FAQ Section */
.faq {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
}

.faq h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.faq-item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.faq-item h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
  font-weight: 600;
}

.faq-item p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* About Section Enhanced Styles */
.about ul {
  list-style: none;
  padding-left: 0;
  margin: 2rem auto;
  max-width: 800px;
  text-align: left;
}

.about ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-primary);
}

.about ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

.about ul li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.about h3 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.about a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.about a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--text-light);
  padding: 3rem 2rem;
  text-align: center;
}

.footer h3 {
  color: var(--primary-light);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.contact-item i {
  color: var(--primary-light);
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: rgba(76, 175, 80, 0.15);
  border-radius: 50%;
  color: var(--primary-light);
  font-size: 1.6rem;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.social-link:hover {
  background: var(--primary-light);
  color: var(--bg-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
  border-color: var(--primary-light);
}

.copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Font Awesome icon styling */
.social-link i,
.contact-item i {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  font-weight: 900;
}

/* Brand icons use different weight */
.fab {
  font-weight: 400;
}

/* Ensure proper icon display */
.fa-whatsapp,
.fa-linkedin {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

/* Floating Contact Buttons */
.contact-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-light);
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-btn:first-child {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-btn:last-child {
  background: linear-gradient(135deg, var(--secondary-color), #ff6f00);
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-heavy);
}

/* Smaller desktop screens - reduce navbar spacing to prevent wrapping */
@media (max-width: 1200px) {
  .navbar nav {
    gap: 1rem;
  }

  .navbar nav a {
    padding: 1rem 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo-image {
    height: 35px;
    max-width: 35px;
  }

  .logo-text {
    font-size: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 865px) {
  .navbar {
    justify-content: space-between;
    padding: 1rem;
    flex-wrap: nowrap;
    /* Prevent wrapping */
  }

  .navbar nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    gap: 0;
    box-shadow: var(--shadow-medium);
    z-index: 1003;
    /* ensure menu above overlay */

    /* Smooth transition setup */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .navbar.nav-open nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  }

  /* Staggered animation for menu items */
  .navbar nav a {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar.nav-open nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar.nav-open nav a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .navbar.nav-open nav a:nth-child(2) {
    transition-delay: 0.15s;
  }

  .navbar.nav-open nav a:nth-child(3) {
    transition-delay: 0.2s;
  }

  .navbar.nav-open nav a:nth-child(4) {
    transition-delay: 0.25s;
  }

  .navbar.nav-open nav a:nth-child(5) {
    transition-delay: 0.3s;
  }

  .navbar.nav-open nav a:nth-child(6) {
    transition-delay: 0.35s;
  }


  /* Overlay behind mobile menu to dim content and allow click-to-close */
  .nav-overlay {
    position: fixed;
    inset: calc(var(--header-height, 64px)) 0 0 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1001;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
  }

  .nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .navbar.nav-open nav a {
    color: var(--text-primary);
    /* Ensure text is dark on light background */
  }

  /* vertical menu link layout and tap targets */
  .navbar.nav-open nav a,
  .navbar.nav-open nav .toggle-container {
    display: block;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
  }

  .navbar.nav-open nav a:focus {
    background: rgba(0, 0, 0, 0.02);
    outline: 2px solid rgba(45, 123, 50, 0.15);
    outline-offset: -2px;
  }

  .hamburger {
    display: block;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-image {
    height: 35px;
    max-width: 35px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  section {
    padding: 3rem 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .contact-info {
    gap: 0.75rem;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .contact-item i {
    font-size: 1.2rem;
    width: 22px;
  }

  .contact-float {
    bottom: 20px;
    right: 20px;
  }

  .contact-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  /* Search responsive styles */
  .search-input-container {
    min-width: 200px;
    right: -8px;
  }

  .search-result-item {
    padding: 10px 12px;
  }

  .search-result-image {
    width: 35px;
    height: 35px;
  }

  .search-result-info h4 {
    font-size: 0.9rem;
  }

  .search-result-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .toggle-container {
    top: 10px;
    right: 10px;
  }

  .toggle-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .navbar nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Animations and Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Parallax Effect */
.parallax {
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Loading States */
img {
  transition: opacity 0.3s;
}

img[src*="placeholder"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Accessibility Styles */
.skip-navigation {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-navigation:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.toggle-btn:focus,
.contact-btn:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.navbar nav a:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.8);
  }

  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
}

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

  .parallax {
    background-attachment: scroll !important;
  }
}

/* Removed unused navigation/menu CSS for performance */