/* Product Page Specific Styles */

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-section:hover .hero-background img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  padding: 40px;
  color: white;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.bg-alt {
  background-color: var(--color-background-alt) !important;
}

/* Products Section (for product.php) */
.products-section {
  padding: 100px 0;
  background: linear-gradient(
    to bottom,
    var(--color-background),
    var(--color-background-alt)
  );
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text);
}

.product-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 30px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-content {
  padding: 20px;
}

.product-content h3 {
  margin-bottom: 15px;
  color: var(--color-heading);
}

.product-content h3 a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-content h3 a:hover {
  color: var(--color-primary);
}

.product-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--color-primary-dark);
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Product Details Section (for product_details.php) */
.product-details-section {
  padding: 100px 0;
  background-color: var(--color-background);
}

.features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.features-list li {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--color-text);
}

.features-list i {
  margin-right: 10px;
  color: var(--color-primary);
}

/* Service Details Tags */
.product-details-tags {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-details-tags .tag {
  padding: 5px 15px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.product-details-tags .tag:hover {
  background-color: var(--color-primary);
  color: white;
}

body.dark-mode .product-details-tags .tag {
  background-color: rgba(var(--color-primary-rgb), 0.2);
}

body.dark-mode .product-details-tags .tag:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Responsive Styles for Tags */
@media (max-width: 575px) {
  .product-details-tags .tag {
    font-size: 0.8rem;
  }
}

/* Video Section (for product_details.php) */
.video-section {
  padding: 100px 0;
  background-color: var(--color-background);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  background-color: #000;
}

.video-container video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: var(--border-radius);
}

.video-container video::-webkit-media-controls-play-button,
.video-container video::-webkit-media-controls-volume-slider,
.video-container video::-webkit-media-controls-timeline {
  filter: brightness(1.2);
}

.video-container video::-webkit-media-controls {
  color: var(--color-primary);
}

/* Gallery Section (for product_details.php) */
.gallery-section {
  padding: 100px 0;
  background-color: var(--color-background);
}

.gallery-grid {
  margin-bottom: 30px;
}

.gallery-item {
  margin-bottom: 20px;
}

.gallery-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-link:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-hover);
}

.gallery-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-link:hover img {
  transform: scale(1.1);
}

#galleryModal .modal-content {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
}

#galleryModal .modal-body {
  padding: 0;
}

#galleryModal .modal-body img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

#galleryModal .modal-footer {
  justify-content: space-between;
}

#galleryModal .btn-secondary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

#galleryModal .btn-secondary:hover {
  background-color: var(--color-primary-dark);
}

/* Contact Form Section (for product_details.php) */
.contact-form-section {
  padding: 100px 0;
  background: linear-gradient(
    to bottom,
    var(--color-background),
    var(--color-background-alt)
  );
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--color-heading);
}

.contact-form .form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  padding: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form .form-check-input {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  accent-color: var(--color-primary);
}

.contact-form .form-check-label {
  font-size: 1rem;
  color: var(--color-text);
}

.contact-form .terms-link {
  color: var(--color-primary);
  text-decoration: none;
  padding: 2px 5px;
  transition: color 0.3s ease;
}

.contact-form .terms-link:hover {
  color: var(--color-primary-dark);
}

.contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(var(--color-primary-rgb), 0.3);
}

.contact-form .btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-form .btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

/* CTA Section (for product.php) */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

.cta-buttons .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.btn-white {
  background-color: white;
  color: var(--color-primary);
  border-color: white;
}

.btn-white:hover {
  background-color: transparent;
  color: white;
}

/* Dark Mode Styles */
body.dark-mode .product-card,
body.dark-mode .product-details-section,
body.dark-mode .gallery-section,
body.dark-mode .contact-form-section {
  background-color: var(--color-card-bg);
  box-shadow: var(--box-shadow);
}

body.dark-mode .products-section,
body.dark-mode .video-section,
body.dark-mode .gallery-section,
body.dark-mode .contact-form-section {
  background: var(--color-background-alt);
}

body.dark-mode .video-container,
body.dark-mode .gallery-link {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .video-container:hover,
body.dark-mode .gallery-link:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

body.dark-mode .form-control {
  background-color: var(--color-background);
  color: var(--color-text);
  border-color: var(--color-border-dark);
}

body.dark-mode #galleryModal .modal-content {
  background-color: var(--color-background-alt);
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.4rem;
  }
  .section-header h2 {
    font-size: 2.5rem;
  }
  .cta-content h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }
  .hero-content {
    padding: 30px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .products-section,
  .product-details-section,
  .video-section,
  .gallery-section,
  .contact-form-section,
  .cta-section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .section-header h2 {
    font-size: 2.2rem;
  }
  .cta-content h2 {
    font-size: 2.2rem;
  }
  .gallery-item {
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  .hero-content {
    padding: 20px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .products-section,
  .product-details-section,
  .video-section,
  .gallery-section,
  .contact-form-section,
  .cta-section {
    padding: 50px 0;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .section-header p {
    font-size: 1.1rem;
  }
  .cta-content h2 {
    font-size: 2rem;
  }
  .cta-content p {
    font-size: 1.2rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .video-container,
  .gallery-grid {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .hero-section {
    height: 50vh;
    min-height: 350px;
  }
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .section-header p {
    font-size: 1rem;
  }
}

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

.animate-on-scroll.animated {
  animation: fadeInUp 1s ease-out;
}
