/* ===== HOME PAGE SPECIFIC STYLES ===== */

/* ===== HERO SLIDER ===== */
.slider {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  margin-top: 100px;
  /* Account for fixed navbar */
}

.list {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.item.active {
  opacity: 1;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== SLIDER CONTROLS ===== */
.buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
}

#prev,
#next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

#prev:hover,
#next:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* ===== SLIDER DOTS ===== */
.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dots li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dots li.active {
  background-color: var(--secondary-color);
  transform: scale(1.2);
}

/* ===== PRODUCT INFO SECTION ===== */
.product-info {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--gray-800) 100%);
  color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
}



.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ===== PRODUCT DETAILED SECTIONS ===== */
.product-detailed {
  padding: 80px 0;
  background-color: var(--gray-100);
}

.product-detailed:nth-child(even) {
  background-color: var(--light-color);
}

.product-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}



.product-image {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  width: 400px;
  height: 260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.product-image img {
  width: 100%;
  height: auto;
  transition: var(--transition-slow);
}

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

.product-content h2 {
  color: var(--dark-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
  line-height: 1.3;
}

.product-content ul {
  margin-bottom: 30px;
}

.product-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--gray-700);
  line-height: 1.6;
}

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

.product-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.product-actions .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

/* ===== HERO OVERLAY ===== */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(26, 26, 26, 0.7) 0%,
      rgba(26, 26, 26, 0.4) 50%,
      rgba(26, 26, 26, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.hero-content {
  text-align: center;
  color: var(--light-color);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== FEATURED PRODUCTS GRID ===== */
.featured-products {
  padding: 80px 0;
  background-color: var(--light-color);
}

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

.featured-card {
  background: var(--light-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

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

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

.featured-card:hover img {
  transform: scale(1.1);
}

.featured-card-content {
  padding: 25px;
}

.featured-card h3 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.featured-card p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.6;
}

.featured-card .btn {
  width: 100%;
  margin-top: 15px;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b91c3c 100%);
  padding: 80px 0;
  color: var(--light-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  animation: fadeInUp 0.8s ease-out;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== CALL TO ACTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #e6b800 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--dark-color);
}

.cta-content h2 {
  color: var(--dark-color);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.cta-content p {
  color: var(--gray-800);
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .product-box {
    gap: 40px;
  }

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

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

@media (max-width: 768px) {
  .slider {
    height: 70vh;
    min-height: 500px;
  }

  .product-box {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .product-image {
    order: -1;
  }

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

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

  .buttons {
    padding: 0 15px;
  }

  #prev,
  #next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 300px;
  }

  .product-actions {
    flex-direction: column;
    align-items: center;
  }

  .product-actions .btn {
    width: 100%;
    max-width: 250px;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .slider {
    height: 60vh;
    min-height: 400px;
  }

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

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

  .product-detailed {
    padding: 60px 0;
  }

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

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

  .stat-number {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

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

/* ===== ANIMATIONS ===== */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

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

.slide-in-right {
  animation: slideInFromRight 0.8s ease-out;
}

.slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

/* ===== LOADING ANIMATION ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: var(--transition);
}

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

.hover-scale {
  transition: var(--transition);
}

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

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CUSTOM SCROLLBAR FOR SLIDER ===== */
.slider::-webkit-scrollbar {
  display: none;
}

.slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}