/* ===== HOMEPAGE STYLES ===== */

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.carousel-logo-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.carousel-content h1 {
  /* font-size: 3rem;
  font-weight: 700; */
  line-height: 1.15;
  /* margin-bottom: 16px; */
  max-width: 800px;
  padding: 30px 0;
}

.carousel-content p {
  font-size: 1.8rem;
  line-height: 1.6;
  max-width: 550px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

/* Company Introduction */
.company-intro {
  padding: 40px 0;
  text-align: center;
}

.company-intro .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #666;
  text-transform: uppercase;
}

.intro-label svg {
  color: #0a1628;
}

.company-intro p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #333;
  max-width: 850px;
  margin: 0 auto 30px;
}

.company-intro .btn {
  align-self: center;
}

/* Factory Video */
.factory-video {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: 100%;
  overflow: hidden;
  background: #0a1628;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-logo-text {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  opacity: 0.7;
}

.video-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.video-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 10;
}

.video-toggle:hover {
  background: #fff;
  transform: scale(1.1);
}

.video-volume {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 10;
}

.video-volume:hover {
  background: #fff;
  transform: scale(1.1);
}

.volume-slider-container {
  background: rgba(255,255,255,0.9);
  border-radius: 25px;
  padding: 8px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
}

.volume-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #ddd;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Video Unmute Overlay */
.video-unmute-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.video-unmute-overlay:hover {
  background: rgba(0, 0, 0, 0.25);
}

.unmute-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 500;
  color: #0a1628;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unmute-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.unmute-btn svg {
  flex-shrink: 0;
}

@media (max-width: 531px) {
  .unmute-btn {
    padding: 10px 18px;
    font-size: 1.2rem;
    gap: 8px;
  }

  .unmute-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Our Products */
.our-products {
  padding: 40px 0;
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f0f4f8;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  /* font-size: 1.05rem;
  font-weight: 700; */
  margin: 10px 0;
  color: #000;
}

.product-card-body p {
  font-size: 1.6rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-body .btn {
  width: 100%;
  justify-content: center;
  align-self: stretch;
}


/* Explore Applications */
.explore-applications {
  padding-bottom: 40px;
  background: #fff;
}

.applications-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.applications-grid .application-card {
  width: calc((100% - 48px) / 3);
}

.application-card {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.application-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.application-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.application-card-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.application-card-body h3 {
  /* font-size: 0.95rem;
  font-weight: 600; */
  color: #000;
  margin: 10px;
}

.app-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.application-card:hover .app-arrow {
  background: #333;
}

/* Section Title */
.section-title {
  /* font-size: 2.5rem;
  font-weight: 700; */
  color: #000;
  margin: 0px 40px 40px;
  text-align: center;
}


/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive Styles */
@media (max-width: 960px) {
  .carousel-content h1 {
    font-size: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .applications-grid .application-card {
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 855px){

  .hero-carousel{
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 709px){

  .hero-carousel{
    aspect-ratio: auto;
    min-height: 350px;
    height: 60vh;
  }

  .carousel-slide {
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 450px){

  .hero-carousel{
    aspect-ratio: 16 / 7;
  }

  .products-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .applications-grid .application-card {
    width: 100%;
  }
}

@media (max-width: 531px) {
  .video-wrapper {
    min-height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .video-wrapper video {
    min-height: auto;
    max-height: none;
  }

  .video-controls {
    bottom: 12px;
    right: 12px;
    gap: 8px;
  }

  .video-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .video-volume {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .volume-slider-container {
    padding: 6px 12px;
  }

  .volume-slider {
    width: 70px;
  }
}


