/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-color: #1a202c;
  --secondary-color: #ff6b35;
  --accent-color: #f7931e;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --background: #ffffff;
  --background-light: #fafafa;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-heading: "Playfair Display", serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --element-spacing: 2rem;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
}

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

/* New sticky rounded header styles */
.header.sticky-rounded {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%; /* Increased width to accommodate menu */
  max-width: 800px; /* Increased max-width for menu */
  min-width: 500px; /* Increased min-width for menu */
  border-radius: 50px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.header.sticky-rounded .header-content {
  padding: 0.75rem 1.5rem;
}

.header.sticky-rounded .logo h1 {
  font-size: 1.5rem;
}

/* Show compact navigation in sticky header */
.header.sticky-rounded .nav-desktop {
  display: block;
}

.header.sticky-rounded .nav-list {
  gap: 1.5rem; /* Reduced gap for compact menu */
}

.header.sticky-rounded .nav-link {
  font-size: 0.9rem; /* Smaller font size for compact menu */
}

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

.logo h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 1px;
}

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

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  overflow: hidden;
}

/* Expandable search styles */
.search-container.expanded {
  width: 280px; /* Increased width for better UX */
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  position: relative;
}

/* Added search suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-suggestions.show {
  opacity: 1;
  visibility: visible;
}

.search-suggestion {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.search-suggestion:hover {
  background: rgba(255, 107, 53, 0.05);
}

.search-suggestion-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.search-input {
  padding: 0.5rem 1rem;
  padding-right: 2.5rem;
  border: none;
  background: transparent;
  border-radius: 25px;
  font-size: 0.9rem;
  width: 100%;
  opacity: 0;
  transition: all 0.3s ease;
}

.search-container.expanded .search-input {
  opacity: 1;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-color);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.search-btn:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.cart-btn:hover {
  color: var(--secondary-color);
  background: rgba(255, 107, 53, 0.1);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--secondary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  transform: scale(0);
  transition: var(--transition-fast);
}

.cart-count.show {
  transform: scale(1);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background: white;
  padding: 2rem;
  transform: translateX(100%);
  transition: var(--transition);
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.mobile-menu-list {
  list-style: none;
  margin-top: 3rem;
}

.mobile-menu-list li {
  margin-bottom: 1.5rem;
}

.mobile-menu-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.mobile-menu-link:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  /* Fixed image path to load correctly */
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.8) 70%,
      rgba(255, 255, 255, 1) 100%
    ), url("./img/hero-background.png") center / cover no-repeat;
  overflow: hidden;
  min-height: 80vh;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(248, 249, 250, 0.3) 30%,
    rgba(248, 249, 250, 0.8) 70%,
    var(--background) 100%
  );
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

.hero-text {
  /* Ensured text is always centered */
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.highlight {
  color: var(--secondary-color);
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  animation: slideIn 1s ease-out 0.5s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-chair {
  position: relative;
  z-index: 2;
}

.chair-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 80px;
  height: 80px;
  background: rgba(255, 107, 53, 0.2);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  background: rgba(247, 147, 30, 0.3);
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  background: rgba(26, 32, 44, 0.1);
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Why Choose Us Section */
.why-choose-us {
  background: var(--background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.feature-link:hover {
  gap: 0.75rem;
}

/* Products Section */
.products-section {
  background: white;
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  background: rgba(255, 107, 53, 0.05);
}

.products-container {
  position: relative;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--background-light);
}

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

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-badge.sale {
  background: var(--accent-color);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-category {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
}

.rating-text {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.add-to-cart-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn:hover {
  background: #e55a2b;
  transform: scale(1.1);
}

.view-all-container {
  text-align: center;
  margin-top: 3rem;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 2rem;
  border: 2px solid var(--secondary-color);
  border-radius: 25px;
  transition: var(--transition);
}

.view-all-btn:hover {
  background: var(--secondary-color);
  color: white;
  gap: 0.75rem;
}

/* Experiences Section */
.experiences-section {
  background: var(--background-light);
}

.experiences-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.experiences-images {
  order: -1;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 400px;
}

.image-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-item.large {
  grid-row: 1 / -1;
}

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

.image-item:hover .experience-img {
  transform: scale(1.05);
}

.experiences-text {
  text-align: left;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: var(--transition-fast);
}

.cta-link:hover {
  gap: 0.75rem;
}

/* Materials Section */
.materials-section {
  background: white;
}

.materials-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.materials-text {
  text-align: left;
}

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

.material-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.material-item:first-child {
  grid-row: 1 / 3;
  aspect-ratio: 4 / 6;
}

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

.material-item:hover .material-img {
  transform: scale(1.05);
}

/* Testimonials Section */
.testimonials-section {
  background: var(--background-light);
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  opacity: 0.5;
  transform: scale(0.9);
  transition: var(--transition);
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-content {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
}

.testimonial-image {
  position: relative;
  overflow: hidden;
}

.testimonial-bg {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.testimonial-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.customer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
}

.customer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.customer-role {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-rating .stars {
  color: #f59e0b;
  font-size: 1.1rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  background: white;
  border: 2px solid var(--border-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.carousel-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  background: rgba(255, 107, 53, 0.05);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator.active {
  background: var(--secondary-color);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer-section h3 {
  font-size: 1.5rem;
}

.footer-section h4 {
  font-size: 1.1rem;
}

.footer-section p {
  color: #cbd5e0;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: #cbd5e0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e0;
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 2rem;
  background: var(--secondary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateX(400px);
  transition: var(--transition);
  z-index: 1001;
}

.cart-notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* AOS Animation Classes */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }

  .search-container {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    /* Keep text centered even on desktop */
    text-align: center;
    gap: 4rem;
  }

  .hero-text {
    /* Keep text centered on all screen sizes */
    text-align: center;
  }

  .hero-description {
    /* Center description on all screen sizes */
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .experiences-content {
    grid-template-columns: 1fr 1fr;
  }

  .experiences-images {
    order: 0;
  }

  .materials-content {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-content {
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
  }

  .testimonial-bg {
    height: 100%;
  }

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

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer-section:first-child {
    grid-column: 1 / 3;
  }
}

/* Print Styles */
@media print {
  .header,
  .mobile-menu-overlay,
  .cart-notification {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  * {
    box-shadow: none !important;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }

  .feature-card,
  .product-card,
  .testimonial-content {
    border: 2px solid var(--text-primary);
  }
}

/* Responsive adjustments for sticky header */
@media (max-width: 768px) {
  .header.sticky-rounded {
    width: 95%; /* Adjusted for mobile */
    min-width: 320px;
  }

  /* Hide navigation on mobile sticky header */
  .header.sticky-rounded .nav-desktop {
    display: none;
  }

  .search-container.expanded {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .header.sticky-rounded {
    width: 98%;
    min-width: 300px;
  }

  .search-container.expanded {
    width: 180px;
  }
}
