/* CSS Reset and Variables */
:root {
  --primary-dark: #0a1128;
  --primary-teal: #0d9488; /* Teal color */
  --primary-blue: #1e3a8a; /* Navy blue */
  --accent-light-blue: #0284c7; /* Sky blue */
  --text-main: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #94a3b8; /* Slate 400 */
  --bg-main: #ffffff;
  --bg-light: #f8fafc;
  --bg-slate: #f1f5f9;
  --border-color: #e2e8f0;
  --rating-color: #f59e0b; /* Amber 500 */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-main);
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* Center desktop nav */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 40px;
}

/* Center nav items with active style pills */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-item a {
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  border-radius: 30px;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

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

.nav-item.active a {
  background-color: rgba(30, 58, 138, 0.08);
  color: var(--primary-blue);
}

/* Right Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  height: 38px;
  padding: 8px 16px 8px 36px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  width: 200px;
  transition: var(--transition-normal);
  background-color: var(--bg-main);
}

.search-input:focus {
  width: 250px;
  border-color: var(--primary-blue);
  background-color: var(--bg-main);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.icon-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  background-color: var(--bg-slate);
  border: 2px solid var(--border-color);
  cursor: pointer;
  color: #475569;
  transition: var(--transition-fast);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--primary-blue);
  border-color: #cbd5e1;
  background-color: #e2e8f0;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: var(--transition-fast);
}

.profile-avatar:hover {
  border-color: var(--primary-blue);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-image: url('image/background.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align content to the right as in design */
  padding: 0 10%;
  color: #ffffff;
  overflow: hidden;
}



.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: right;
  animation: fadeInUp 1s ease-out;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 535px;
  width: 100%;
  align-items: flex-end;
  margin-left: auto;
}

.hero-subtitle {
  font-size: 40px;
  line-height: 56px;
  font-weight: 500;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  color: #f1f5f9;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  color: #ffffff;
}

.word-reliable,
.word-ready,
.word-secure {
  color: #36408E;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
}

.btn {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-blue);
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Sections Common */
section {
  padding: 80px 0;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.section-pretitle {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-teal);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Intro Section overrides to match target mockup */
.intro-section {
  padding: 80px 0;
}

.intro-section .section-header-center {
  max-width: 1000px;
}

.intro-section .section-pretitle {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #64748b;
  font-weight: 300;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  max-width: 1122px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.intro-section .section-title {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #1e293b;
  font-weight: 500;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 0;
}

.intro-divider {
  width: 320px;
  height: 1px;
  background-color: #e2e8f0;
  margin: 30px auto;
}

.intro-section .section-subtitle {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  color: #64748b;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Product Section Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: #94a3b8;
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 12px;
}

.product-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  order: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px 0;
}

.rating-stars {
  display: flex;
  color: var(--rating-color);
}

.rating-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rating-stars svg[fill="none"] {
  fill: none !important;
  stroke: currentColor;
}

.rating-count {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1;
}

.product-title {
  order: 1;
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  order: 3;
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-top: auto;
}

/* Heading decor with blue line */
.decor-title {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.decor-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-teal);
  border-radius: 2px;
}

#new-arrivals .decor-title,
#products .decor-title,
#categories .decor-title,
.testimonials-section .decor-title {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 21px;
  letter-spacing: 0;
  text-align: center;
}

#new-arrivals .decor-title::after,
#products .decor-title::after,
#categories .decor-title::after,
.testimonials-section .decor-title::after {
  background-color: #005D93;
  width: 80px;
  height: 6px;
  border-radius: 3px;
}


/* Category Slider/Grid */
.categories-section {
  background-color: #f3f4f6; /* Modern light grey background */
  padding: 80px 0;
}

.categories-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 5px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
  user-select: none; /* Prevent text selection during drag-scroll */
}

.categories-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Webkit */
}

.categories-container.active-dragging {
  cursor: grabbing;
}

.category-card {
  flex: 0 0 200px;
  min-width: 180px;
  height: 380px; /* Tall vertical height */
  background-color: #ffffff;
  border: 2px solid transparent; /* Prevent layout shift on hover */
  border-radius: 16px;
  padding: 24px 20px 20px 20px; /* Optimized padding for larger image size */
  text-align: left; /* Left align text labels as in mockup */
  transition: all var(--transition-normal);
  cursor: grab;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align items */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-light-blue); /* Light blue border on hover */
}

.category-img-wrapper {
  width: 100%;
  height: 230px; /* Taller image container to fill the card */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 0;
  background-color: transparent;
  overflow: hidden;
}

.category-img {
  width: 100%; /* Scale to container width */
  height: 100%; /* Scale to container height */
  object-fit: contain; /* Contain to keep aspect ratio but maximize size */
  pointer-events: none;
  -webkit-user-drag: none;
  filter: grayscale(100%); /* Default to grey */
  opacity: 0.7; /* Muted by default */
  transition: filter var(--transition-normal), opacity var(--transition-normal);
}

.category-card:hover .category-img {
  filter: grayscale(0%); /* Full color on hover */
  opacity: 1; /* Full opacity on hover */
}

.category-name {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-top: auto; /* Push the label to the bottom */
  position: relative;
  padding-bottom: 8px; /* Leave space for underline */
}

.category-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 4px;
  background-color: #005d93; /* Premium blue line */
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.category-card:hover .category-name::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Load More Container */
.load-more-container {
  text-align: center;
  margin-top: 30px;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background-color: var(--bg-slate);
}

/* Brand Logos Section */
.brands-section {
  padding: 40px 0;
  border-top: none;
  border-bottom: none;
  background-color: var(--bg-main); /* Same background color as New Arrivals (white) */
}

.brands-container {
  display: flex;
  justify-content: space-between; /* Spreads logos evenly across the container width */
  align-items: center;
  gap: 15px; /* Clean spacing between logo columns */
  flex-wrap: nowrap !important; /* Force strictly 1 row */
}

.brand-logo {
  flex: 1 1 0px; /* Equal column widths for all logos */
  opacity: 0.5;
  transition: var(--transition-normal);
  filter: grayscale(100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.brand-logo svg, .brand-logo img {
  height: 65px; /* Large and clear */
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brands-container {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 15px;
  }
  .brand-logo img {
    height: 40px;
  }
}

/* Newsletter CTA Section */
.cta-section {
  background-color: #078da5; /* Matching mockup teal/cyan color */
  color: #ffffff;
  padding: 80px 0;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.cta-text {
  max-width: 800px;
  margin-bottom: 30px;
}

.cta-title {
  color: #ffffff;
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.cta-description {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.cta-form {
  width: 100%;
  max-width: 600px;
}

.cta-input-wrapper {
  display: flex;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 5px;
  align-items: center;
  width: 100%;
}

.cta-input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  background-color: transparent;
  color: var(--text-main);
  width: 100%;
}

.cta-input::placeholder {
  color: #94a3b8;
}

.btn-cta-submit {
  background-color: #061033; /* Dark navy button */
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-cta-submit:hover {
  background-color: #0c1844;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }
  .cta-title {
    font-size: 28px;
  }
  .cta-input-wrapper {
    flex-direction: column;
    background-color: transparent;
    padding: 0;
    gap: 12px;
  }
  .cta-input {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 14px 18px;
  }
  .btn-cta-submit {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
  }
}

/* Happy Customers / Testimonials */
.testimonials-section {
  background-color: var(--bg-main); /* White background as New Arrivals to blend cleanly */
  padding: 80px 0;
}

.testimonials-slider {
  position: relative;
  overflow-x: auto; /* Enable horizontal scrolling */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 30px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.testimonials-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.testimonials-slider.active-dragging {
  cursor: grabbing;
}

.testimonials-track {
  display: flex;
  gap: 30px; /* Spacious gaps between testimonials */
  width: 100%;
}

.testimonial-card {
  flex: 0 0 calc(25% - 22.5px); /* Exactly 4 items visible at 100%-110% zoom */
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform var(--transition-normal);
  text-align: left;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--rating-color);
  margin-bottom: 12px;
}

.testimonial-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.testimonial-rating .rating-count {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.testimonial-author {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 8px;
}

.testimonial-comment {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: normal;
}

/* Hide dots completely */
.testimonials-dots {
  display: none !important;
}

/* Footer styling */
footer {
  background-color: #02093d; /* Matches the background of image/logo.png exactly */
  color: #ffffff;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-logo-link {
  display: flex;
}

.footer-logo-img {
  height: 285px;
  width: auto;
  object-fit: contain;
}

.footer-col-title {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-light);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.contact-label {
  color: var(--text-light);
  margin-right: 8px;
}

.contact-value {
  color: #ffffff;
  font-weight: 700;
}

.footer-social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer-social-icon {
  background-color: transparent !important;
  color: #ffffff !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
}

.footer-social-icon:hover {
  opacity: 0.7;
  transform: none !important;
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 12px;
  color: var(--text-light);
  width: 100%;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .category-card {
    flex: 0 0 calc(25% - 15px);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
  .footer-grid > *:last-child {
    grid-column: span 4;
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cta-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .cta-form {
    width: 100%;
  }
  .hero {
    justify-content: center;
    padding: 0 5%;
  }
  .hero-content {
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .testimonial-card {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
  }
  .nav-menu {
    display: none; /* Hide standard menu on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-item {
    width: 100%;
    text-align: center;
  }
  .nav-item a {
    display: block;
    width: 100%;
    padding: 12px;
  }
  .nav-actions {
    gap: 10px;
  }
  .search-box {
    display: none; /* Hide search bar on small screens to save space */
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
  }
  .mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  .hero-highlight {
    font-size: 36px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .category-card {
    flex: 0 0 calc(50% - 10px);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid > * {
    grid-column: span 1 !important;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-highlight {
    font-size: 32px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
}
