/* ==========================================
   Homepage Specific Styles
   ========================================== */

/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.5s ease;
}

.hero-section.video-loading .hero-video {
  opacity: 0;
}

.hero-section.video-loaded .hero-video {
  opacity: 1;
}

.hero-section.video-fallback {
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 204, 0.7) 0%,
    rgba(0, 71, 153, 0.8) 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 2rem 0;
}

.hero-title {
  font-size: 4rem;
  font-weight: var(--font-weight-extrabold);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
  display: inline-block;
  position: relative;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: var(--font-weight-regular);
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-actions {
  margin-bottom: 3rem;
}

.hero-actions .btn {
  margin: 0.5rem;
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator a {
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0.8;
  transition: var(--transition-normal);
  animation: bounce 2s infinite;
}

.scroll-indicator a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* --- About Section --- */
.about-section {
  padding: 5rem 0;
  position: relative;
}

.about-content {
  padding-right: 2rem;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--gray);
}

.features-list {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: var(--font-weight-medium);
}

.feature-item i {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  transition: var(--transition-slow);
}

.about-image img:hover {
  transform: scale(1.02);
}

/* --- Featured Products Section --- */
.featured-products {
  padding: 5rem 0;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 102, 204, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-info h4 {
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-weight: var(--font-weight-semibold);
}

.product-info p {
  color: var(--gray);
  margin-bottom: 0;
}

/* --- Services Section --- */
.services-section {
  padding: 5rem 0;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
}

.service-card h4 {
  margin-bottom: 1rem;
  color: var(--dark-gray);
  font-weight: var(--font-weight-semibold);
}

.service-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.why-choose-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  opacity: 0.9;
}

.why-choose-us .container {
  position: relative;
  z-index: 1;
}

.advantage-item {
  margin-bottom: 2rem;
}

.advantage-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2.5rem;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.advantage-item:hover .advantage-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.advantage-item h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-semibold);
}

.advantage-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

/* --- Partners Section --- */
.partners-section {
  padding: 3rem 0;
  background: var(--light-gray);
}

.partners-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 0;
}

.partner-logo {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  max-width: 180px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.partner-logo img {
  max-height: 60px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(50%);
  transition: var(--transition-normal);
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .about-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .partners-carousel {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  .advantage-icon,
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}
