html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: #222;
  font-family: 'Poppins', sans-serif;
}

/* Custom Focus Styles (Branded for DISHARI Event Theme) */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(243, 85, 37, 0.8) !important; /* Branded orange glow */
  border: none !important;
  box-shadow: 0 0 0 0.2rem rgba(243, 85, 37, 0.25) !important; /* Soft orange glow */
  transition: all 0.3s ease-in-out;
}

/* Button Focus & Active States */
button:focus,
.btn:focus,
button:active,
.btn:active {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(243, 85, 37, 0.4) !important;
  text-decoration: none !important;
  transition: all 0.3s ease-in-out;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #f3066e !important;
  transition: border-color 0.3s ease-in-out;
}

/* Page Loader Styling */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1); /* White background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #f3066e; /* Orange color for spinner */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Navbar hover effect */
.navbar-nav .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #f3066e;
  transition: width 0.3s;
  margin-top: 4px;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: #f3066e !important;
}

/* Hero Slider */
.hero-slider {
  height: 100vh;
}

.hero-slider .swiper-slide {
  height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Bottom Overlay behind text */
.hero-slider .swiper-slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%; /* Adjust for more/less overlay */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

/* Keep text above the overlay */
.hero-slider .container {
  position: relative;
  z-index: 2;
  padding-bottom: 5vh;
  color: #fff;
}

/* Hero background styles */
.hero-slide-1 {
  background: url('../img/hero-slide1.png') center/cover no-repeat;
}
.hero-slide-2 {
  background: url('../img/hero-slide2.png') center/cover no-repeat;
}
.hero-slide-3 {
  background: url('../img/hero-slide3.png') center/cover no-repeat;
}

/* Custom Orange Button */
.btn-primary-orange {
  background-color: #f3066e;
  color: #fff;
  border: none;
  transition: 0.3s ease;
}

.btn-primary-orange:hover {
  background-color: #000;
  color: #fff;
}

/* About Image */
.about-img {
  max-height: 280px;
  object-fit: cover;
}

/* Text Styling */
.text-muted {
  font-size: 1rem;
}

/* Section Headings */
.section-heading {
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  transition: all 0.6s ease;
}

.text-gradient {
  background: linear-gradient(90deg, #f3066e, #ff6e40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
  opacity: 0.8;
  transition: opacity 0.6s ease;
}

.section-heading:hover .section-title {
  transform: translateY(-2px);
}

.section-heading:hover .section-subtitle {
  opacity: 1;
}

/* Service Card Styles */
.service-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  height: 100%;
  background-color: #f9f9f9; /* Light background for better contrast */
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Slightly darker shadow */
}

.service-card .card-body {
  background: rgba(243, 85, 37, 0.7); /* Use brand's orange with a slight transparency */
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card .card-title {
  font-size: 1.6rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
}

.service-card .card-text {
  font-size: 1.125rem;
  color: #fff;
  opacity: 0.9;
}

.service-card .btn {
  background-color: #f3066e; /* Primary Brand Color */
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  padding: 10px 25px;
  transition: background-color 0.3s ease;
  border: none;
}

.service-card .btn:hover {
  background-color: #e14a1f; /* Darker shade of the brand orange */
  color: #fff;
}

/* Visit Button */
.visit-btn {
  background-color: #f3066e; /* Primary Brand Color */
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.visit-btn:hover {
  background-color: #e14a1f; /* Darker orange on hover */
}

/* Testimonials Section */
#testimonials {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Testimonial Card */
.testimonial-card {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px); /* Slight lift on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Testimonial Image */
.testimonial-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%; /* Circular images */
}

/* Testimonial Text */
.testimonial-card p.fst-italic {
  font-size: 1.125rem; /* Slightly larger text */
  font-weight: 500;
  color: #333; /* Slightly darker text for better readability */
}

/* Star Rating */
.stars i {
  margin-right: 3px; /* Space between stars */
  font-size: 1.25rem; /* Larger stars */
  color: #fbc531; /* Gold color for stars */
}

/* Section Heading */
#testimonials .section-heading {
  text-align: center;
}

#testimonials .section-title {
  font-size: 2.5rem;
  color: #f3066e; /* Gradient text color */
  font-family: 'Poppins', sans-serif;
}

#testimonials .section-subtitle {
  font-size: 1.125rem;
  color: #6c757d;
}

/* Swiper Container */
.swiper {
  position: relative;
}

.testimonial-swiper .swiper-slide {
  padding: 0 10px; /* Adds space between each testimonial */
}

.swiper-pagination {
  margin-top: 20px;
}

/* Swiper Settings */
.testimonial-swiper .swiper-pagination-bullet {
  background-color: #f3066e; /* Active color */
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background-color: #d84f1f; /* Darker shade of orange */
}


/* CTA Section */
.cta-section {
  background-color: #f3066e;
  padding: 50px 0;
  color: white;
  text-align: center;
}

 /* Hover effect and transitions for footer links */
  .hover-transition {
    transition: color 0.3s ease-in-out;
  }
  .hover-transition:hover {
    color: #f3066e;
  }

  /* Styling for the Back to Top button */
  .back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f3066e;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    transition: transform 0.3s ease;
  }

.back-to-top:hover {
  background-color: #000;
  color: white;
  border: 2px solid white;
}


  /* Button Text Style */
  .back-to-top i {
    font-size: 20px;
  }

/* Feedback button container */
#feedback-button {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: #000;
  padding: 10px 5px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  z-index: 999;
  transition: background-color 0.3s ease;
}

/* Rotated text */
.feedback-label {
  color: white;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: 'Segoe UI', sans-serif;
}

/* Tooltip - hidden by default */
.feedback-tooltip {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) translateX(-10px);
  background-color: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 13px;
  font-family: 'Segoe UI', sans-serif;
  margin-left: 5px;
}

/* Show tooltip on hover */
#feedback-button:hover .feedback-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* Optional: change button background on hover */
#feedback-button:hover {
  background-color: #333;
}

/* Modal Background */
#feedback-modal {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transition: left 0.4s ease;
}

/* Modal Content */
#feedback-modal .modal-content {
  background: white;
  padding: 25px;
  width: 320px;
  max-width: 90%;
  border-radius: 0 10px 10px 0;
  position: relative;
  animation: slideIn 0.4s ease;
}

/* Close Button */
#feedback-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Form styles */
#feedback-modal form .form-group {
  margin-bottom: 15px;
}

#feedback-modal form input,
#feedback-modal form textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#feedback-modal form button {
  background-color: #f3066e;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

/* Slide-in Animation */
@keyframes slideIn {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Active Modal */
#feedback-modal.active {
  left: 0;
}


.map-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery Section */
.gallery-section {
  padding: 60px 20px;
  background-color: #f9f9f9; /* Light background to make images stand out */
}
/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 250px; /* Set a fixed height */
  object-fit: cover; /* Ensure the image covers the given height and width */
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05); /* Slight scale effect on hover */
}

.gallery-item img:hover {
  transform: scale(1.1); /* Zoom effect on image hover */
}


.gallery-item img:hover {
  transform: scale(1.1); /* Zoom effect on image hover */
}

/* Overlay Style */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.view-details {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.view-details:hover {
  color: #ff8c00; /* Hover color for better visual feedback */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .gallery-item {
    border-radius: 5px; /* Smaller radius for smaller screens */
  }
}
/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  width: 80%;  /* Set width of the modal to be consistent */
  max-width: 900px;  /* Maximum width to prevent it from being too large */
  max-height: 80%;  /* Maximum height to avoid overflow */
  background: white;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  overflow: hidden;  /* Prevent overflow of the image */
}

#lightbox-img {
  width: 100%;
  height: auto;
  max-height: 80vh;  /* Ensure the image does not exceed the height */
  object-fit: contain;  /* Ensure aspect ratio is maintained */
}

.navigation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

button {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}
