/* Custom styles extracted from inline CSS for better caching */

/* Hero video lazy loading styles */
.hero .carousel-item {
  position: relative;
  height: 100%;
}

.hero .carousel-item .hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero .carousel-item .hero-video-wrapper.video-loaded {
  opacity: 1;
}

.hero .carousel-item .hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback image while video loads */
.hero .carousel-item .hero-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero .carousel-item.video-ready .hero-fallback-img {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Ensure carousel controls are always clickable */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 100 !important;
}

/* Hero text fade-in animation */
.hero .info .col-lg-6 > * {
  opacity: 0;
  transform: translateY(20px);
}

.hero.text-visible .info h2 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero.text-visible .info p {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.hero.text-visible .info .btn-get-started {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: fade out text after delay */
.hero.text-fade-out .info h2,
.hero.text-fade-out .info p {
  animation: fadeOutUp 1s ease forwards !important;
  animation-delay: 0s !important;
}

@keyframes fadeOutUp {
  to {
    opacity: 0;
    transform: translateY(-15px);
  }
}

/* Google Reviews Section */
.google-reviews-section {
  background: #f8f9fa;
}

.google-review-header {
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.google-badge:hover {
  transform: translateY(-2px);
}

.google-badge .bi-google {
  font-size: 48px;
  color: #4285f4;
}

.rating-info {
  text-align: left;
}

.stars {
  color: #ffb72d;
  font-size: 20px;
  margin-bottom: 8px;
}

.rating-text {
  color: #1d2740;
  font-size: 16px;
  margin: 0;
}

.view-all {
  color: #4285f4;
  font-size: 14px;
  font-weight: 600;
}

.reviews-container {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.btn-leave-review {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-leave-review:hover {
  background: linear-gradient(135deg, #34a853 0%, #4285f4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
  color: white;
}

/* FAQ Section */
.faq-section .accordion-button {
  background-color: #ffffff;
  color: #1d2740;
  font-weight: 600;
  padding: 20px;
  border-radius: 8px !important;
}

.faq-section .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #1d2740 0%, #2a3a5a 100%);
  color: #ffb72d;
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: #ffb72d;
}

.faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231d2740'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffb72d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
  padding: 25px;
  line-height: 1.8;
  color: #555;
}

/* Alert Styling */
.alert {
  animation: slideInDown 0.5s ease-out;
  margin-bottom: 25px;
  font-size: 15px;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Form Submit Button */
.btn-submit-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  background: linear-gradient(135deg, #ffb72d 0%, #feb900 100%);
  color: #1d2740;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 183, 45, 0.3);
}

.btn-submit-form:hover {
  background: linear-gradient(135deg, #1d2740 0%, #2a3a5a 100%);
  color: #ffb72d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 39, 64, 0.4);
}

.btn-submit-form i {
  font-size: 18px;
}

/* Book Consultation Section */
.book-consultation-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(29, 39, 64, 0.05) 0%, rgba(255, 183, 45, 0.05) 100%);
}

.book-consultation-section h2 {
  color: #1d2740;
  font-weight: 700;
  font-size: 32px;
}

.book-consultation-section p {
  font-size: 18px;
  color: #666;
}

.btn-book-consultation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: #ffb72d;
  color: #1d2740;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 183, 45, 0.25);
}

.btn-book-consultation:hover {
  background: #1d2740;
  color: #ffb72d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 39, 64, 0.3);
}

.btn-book-consultation i {
  font-size: 20px;
}

/* Industries Section Styles */
.industries.section {
  padding: 80px 0;
  background: #ffffff;
}

.industries .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1d2740;
  margin-bottom: 10px;
}

.industries .section-title p {
  color: #666;
  font-size: 16px;
}

.industry-item {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 1px solid #f0f0f0;
}

.industry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(255, 183, 45, 0.2);
  border: 2px solid #ffb72d;
}

.industry-item i {
  font-size: 42px;
  color: #ffb72d;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.industry-item:hover i {
  color: #1d2740;
  transform: scale(1.1);
}

.industry-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1d2740;
  margin: 0;
  line-height: 1.4;
}

/* View All Projects Button Section */
.view-all-projects-section {
  padding: 40px 0;
  background: #ffffff;
}

.btn-view-all-projects {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #1d2740;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #1d2740;
}

.btn-view-all-projects:hover {
  background: transparent;
  color: #1d2740;
  transform: translateX(5px);
}

.btn-view-all-projects i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-view-all-projects:hover i {
  transform: translateX(5px);
}

/* Featured Projects Section */
.featured-projects.section {
  padding: 80px 0;
  background: #ffffff;
}

.featured-projects .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1d2740;
  margin-bottom: 10px;
}

.featured-projects .section-title p {
  color: #666;
  font-size: 16px;
}

.project-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #d0d0d0;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: #f5f5f5;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project-card:hover .project-image img {
  transform: none;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 39, 64, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay i {
  font-size: 40px;
  color: #ffffff;
}

.project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1d2740;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
  color: #ffb72d;
}

.project-category {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.project-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-view-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: #1d2740;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  align-self: flex-start;
  border: 2px solid #1d2740;
}

.btn-view-project:hover {
  background: #1d2740;
  color: #ffffff;
  transform: translateX(3px);
}

.btn-view-project i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-view-project:hover i {
  transform: translateX(3px);
}

.btn-view-more-projects {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 35px;
  background: transparent;
  color: #1d2740;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid #1d2740;
}

.btn-view-more-projects:hover {
  background: #1d2740;
  color: #ffffff;
  transform: translateX(5px);
}

.btn-view-more-projects i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-view-more-projects:hover i {
  transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .google-badge {
    flex-direction: column;
    gap: 15px;
  }

  .rating-info {
    text-align: center;
  }

  .book-consultation-section {
    padding: 60px 0;
  }

  .book-consultation-section h2 {
    font-size: 26px;
  }

  .book-consultation-section p {
    font-size: 16px;
  }

  .btn-book-consultation,
  .btn-submit-form,
  .btn-leave-review {
    padding: 15px 30px;
    font-size: 15px;
  }

  .btn-book-consultation i {
    font-size: 18px;
  }

  .industry-item {
    padding: 25px 15px;
    min-height: 140px;
  }

  .industry-item i {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .industry-item h4 {
    font-size: 14px;
  }

  .view-all-projects-section {
    padding: 30px 0;
  }

  .btn-view-all-projects,
  .btn-view-more-projects {
    padding: 12px 25px;
    font-size: 14px;
  }

  .featured-projects.section {
    padding: 60px 0;
  }

  .project-image {
    height: 200px;
  }

  .project-content {
    padding: 20px;
  }

  .project-content h3 {
    font-size: 18px;
  }
}
