/* Service Page Specific Styles */

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.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;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 70%
  );
  z-index: 1;
}

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

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

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

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

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: var(--color-background-alt);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

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

.service-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;
}

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

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

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

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

.service-content {
  padding: 20px;
}

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

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

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

.service-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);
}

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

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

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

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

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

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

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

/* Service Details Page */
.service-details-hero {
  position: relative;
  height: 80vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--color-heading);
  }
}

.service-details-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.service-details-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.service-details-body-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

.service-details-body {
  margin-bottom: 30px;
}

.service-details-body p {
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-details-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Dark Mode Styles */
body.dark-mode .service-card {
  background-color: var(--color-card-bg);
  box-shadow: var(--box-shadow);
}

body.dark-mode .service-card:hover {
  box-shadow: var(--box-shadow-hover);
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero-title,
  .service-details-title {
    font-size: 2.5rem;
  }

  .hero-subtitle,
  .service-details-subtitle {
    font-size: 1.3rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

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

@media (max-width: 991px) {
  .hero-section,
  .service-details-hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content,
  .service-details-content {
    padding: 30px;
  }

  .hero-title,
  .service-details-title {
    font-size: 2.2rem;
  }

  .hero-subtitle,
  .service-details-subtitle {
    font-size: 1.1rem;
  }

  .services-section,
  .cta-section,
  .service-details-body-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

@media (max-width: 767px) {
  .hero-section,
  .service-details-hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content,
  .service-details-content {
    padding: 20px;
  }

  .hero-title,
  .service-details-title {
    font-size: 1.8rem;
  }

  .hero-subtitle,
  .service-details-subtitle {
    font-size: 1rem;
  }

  .services-section,
  .cta-section,
  .service-details-body-section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .service-details-body p {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .hero-section,
  .service-details-hero {
    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;
  }

  .service-details-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

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

.service-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;
}

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

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

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

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

/* Contact Form Section */
.contact-form-section {
  padding: 80px 0;
  background-color: var(--color-background-alt);
}

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

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-control {
  height: 50px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  padding: 10px 15px;
  font-size: 1rem;
  color: var(--color-text);
}

.contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

.contact-form textarea.form-control {
  height: auto;
  resize: vertical;
}

.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-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

.form-message {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.form-message.success {
  color: green;
}

.form-message.error {
  color: red;
}

/* Responsive Styles for Form */
@media (max-width: 991px) {
  .contact-form-section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .contact-form-section {
    padding: 50px 0;
  }

  .contact-form .form-control {
    font-size: 0.9rem;
  }

  .contact-form .form-check-input {
    width: 18px;
    height: 18px;
  }

  .contact-form .form-check-label {
    font-size: 0.9rem;
  }

  .contact-form .form-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .contact-form .form-control {
    font-size: 0.85rem;
  }

  .contact-form .form-check-input {
    width: 16px;
    height: 16px;
  }

  .contact-form .form-check-label {
    font-size: 0.85rem;
  }
}

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

.gallery-grid {
  --bs-gutter-x: 20px; /* Gap horizontal */
  --bs-gutter-y: 20px; /* Gap vertical */
  margin: 0 -10px; /* Compensate Bootstrap's negative margin */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

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

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-image {
  opacity: 0.9;
}

/* Gallery Modal */
.gallery-modal .modal-dialog {
  max-width: 90vw; /* Wider modal for larger images */
}

.gallery-modal .modal-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.gallery-modal .modal-header {
  position: absolute;
  z-index: 999;
  right: 10px;
  top: 10px;
  /* background-color: var(--color-background); */
  border-bottom: none;
  padding: 15px 20px;
  color: var(--color-text);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.gallery-modal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.gallery-modal .btn-close {
  filter: invert(1);
  background-size: 1.5rem;
}

.gallery-modal .modal-body {
  padding: 0;
  background-color: rgba(0, 0, 0, 0.9); /* Dark overlay for elegance */
}

.gallery-modal .carousel-inner {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-modal .carousel-item {
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth fade transition */
}

.gallery-modal .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  margin: 0 auto;
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
  width: 15%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gallery-modal .carousel-control-next {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent);
}

.gallery-modal .carousel-control-prev:hover,
.gallery-modal .carousel-control-next:hover {
  opacity: 1;
}

.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-size: 2rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  filter: none;
}

body.dark-mode .gallery-modal .modal-header {
  /* background-color: var(--color-card-bg); */
  color: var(--color-text);
}

body.dark-mode .gallery-modal .modal-body {
  background-color: rgba(0, 0, 0, 0.95);
}

body.dark-mode .gallery-item {
  box-shadow: var(--box-shadow);
}

body.dark-mode .gallery-item:hover {
  box-shadow: var(--box-shadow-hover);
}

/* Responsive Styles for Gallery */
@media (max-width: 991px) {
  .gallery-section {
    padding: 60px 0;
  }

  .gallery-image {
    height: 200px;
  }

  .gallery-grid {
    --bs-gutter-x: 15px;
    --bs-gutter-y: 15px;
  }

  .gallery-modal .carousel-item img {
    max-height: 70vh;
  }
}

@media (max-width: 767px) {
  .gallery-section {
    padding: 50px 0;
  }

  .gallery-image {
    height: 180px;
  }

  .gallery-modal .carousel-item img {
    max-height: 60vh;
  }

  .gallery-grid {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }
}

@media (max-max-width: 575px) {
  .gallery-image {
    height: 150px;
  }

  .gallery-modal .carousel-item img {
    max-height: 50vh;
  }

  .gallery-modal .modal-title {
    font-size: 1.2rem;
  }

  .gallery-modal .carousel-control-prev-icon,
  .gallery-modal .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 1.5rem;
  }
}
