/* ===== Root Variables ===== */
:root {
  --primary-color: #f7b500;
  --primary-dark: #b8860b;
  --text-color: #fff;
  --header-text-color: #333;
  --bg-color: #fff;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --gradient-start: #0f2027;
  --gradient-middle: #203a43;
  --gradient-end: #2c5364;
  --icon-color: rgba(255, 255, 255, 0.1);
  --btn-border-radius: 50px;
  --btn-padding: 12px 30px;
  --hero-title-size: 2.8rem;
  --hero-subtitle-size: 1.2rem;
  --hero-float-distance: 15px;
  --hero-float-duration: 6s;
}

/* ===== Global Styles ===== */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Header ===== */
.navbar {
  transition: all 0.3s ease;
  background-color: var(--bg-color) !important;
  height: 4.5rem ;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--header-text-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.book-btn {
  background-color: var(--primary-color);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.scrolled {
  background-color: var(--bg-color) !important;
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* Mobile Menu */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
  }

  .nav-item {
    margin-bottom: 10px;
  }
}

/* ===== Logo Styles ===== */
.navbar-brand img {
  height: 70px;
  width: auto;
  transition: all 0.3s ease;
  border-radius: 1rem;
}

/* Mobile responsive logo */
@media (max-width: 991px) {
  .navbar-brand img {
      height: 60px;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
      height: 55px;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
      height: 50px;
      margin-top: -10px;
  }
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
  display: flex;
  align-items: center;
  color: var(--text-color);
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--hero-title-size);
  font-weight: 700;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: var(--hero-subtitle-size);
  margin-top: 15px;
  color: var(--text-color);
}

.hero-buttons .btn-hero {
  padding: var(--btn-padding);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--btn-border-radius);
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: #000;
  box-shadow: 0 0 15px rgba(247,181,0,0.5);
}

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

.hero-buttons .btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.hero-buttons .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #000;
  transform: scale(1.05);
}

.hero-img {
  max-width: 100%;
  border-radius: 1rem;
  animation: float 3s ease-in-out infinite;
}

/* Floating animation for image */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Floating Hero Icons */
.hero-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-icons i {
  position: absolute;
  font-size: 60px;
  color: var(--icon-color);
  animation: floatIcon var(--hero-float-duration) ease-in-out infinite;
}

/* Individual Icon Positions & Duration */
.icon1 { top: 5%; left: 10%; animation-duration: 5s; }
.icon2 { top: 15%; right: 12%; animation-duration: 7s; }
.icon3 { top: 35%; left: 20%; animation-duration: 6s; }
.icon4 { bottom: 20%; left: 15%; animation-duration: 8s; }
.icon5 { bottom: 10%; right: 20%; animation-duration: 5.5s; }
.icon6 { top: 50%; right: 5%; animation-duration: 6.5s; }
.icon7 { top: 25%; left: 50%; animation-duration: 7.2s; }
.icon8 { bottom: 30%; right: 35%; animation-duration: 6.8s; }

/* Floating Animation */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

/* ===== Responsive Hero ===== */
@media(max-width: 767px){
  .hero-title { font-size: 2rem; margin-top: 5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons .btn-hero { padding: 10px 20px; font-size: 1rem; }
  .hero-img { margin-top: 20px; }
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 40px;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  background-color: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  padding: 30px 20px;
  overflow: hidden;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-middle),
    var(--gradient-end),
    var(--primary-color)
  );
}

.service-card::before {
  width: 5px;
  height: 100%;
  left: 0;
  top: 0;
}

.service-card::after {
  width: 100%;
  height: 5px;
  bottom: 0;
  left: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 50px;
  color: var(--primary-color);
  transition: color 0.3s ease;
  margin-bottom: 15px;
}

.service-card:hover .service-icon {
  color: var(--primary-dark);
}

.service-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin-top: 10px;
}

/* ===== About Section ===== */
#about {
  background-color: #f8f9fa;
}

.about-features .d-flex {
  margin-bottom: 1rem;
}

.about-features i {
  color: var(--primary-color);
  min-width: 40px;
}

.about-features h5 {
  font-weight: 600;
  margin-bottom: 3px;
}

.about-features p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* ===== Brands Section ===== */
.trusted-brands {
  margin-top: 60px;
  padding: 80px 16px;
  background: #f8f9fa;
  text-align: center;
  overflow: hidden;
}

.brands-container {
  max-width: 1200px;
  margin: 0 auto;
}

.trusted-brands h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.trusted-brands h2 span {
  color: var(--primary-color);
}

.brands-subtitle {
  color: #555;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* Slider container */
.brands-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Track for scrolling logos */
.brands-track {
  display: flex;
  gap: 30px;
  animation: scrollBrands 20s linear infinite;
  will-change: transform;
}

/* Each logo card */
.brand-card {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-color);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Gallery Section ===== */
#gallery {
  background-color: #f8f9fa;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
  background: #f8f9fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 2;
}

.gallery-title {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.gallery-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}

/* ===== Full Screen Image Viewer ===== */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-viewer.active {
  display: flex;
  opacity: 1;
}

.viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.viewer-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
}

.close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
  z-index: 10000;
}

.close-btn:hover {
  color: var(--primary-color);
}

.image-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1.1rem;
  padding: 0 20px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  z-index: 10000;
}

.nav-btn:hover {
  background: var(--primary-color);
  color: #000;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* ===== Responsive Gallery ===== */
@media (max-width: 768px) {
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
  .nav-btn { width: 40px; height: 40px; font-size: 1rem; }
  .close-btn { top: -60px; right: 10px; font-size: 2rem; }
  .gallery-overlay { padding: 15px; }
  .gallery-title { font-size: 1rem; }
  .gallery-desc { font-size: 0.8rem; }
}

@media (max-width: 576px) {
  .viewer-content { max-width: 95%; }
  .image-caption { font-size: 0.9rem; }
  .gallery-item { aspect-ratio: 1; }
}

/* ===== Testimonials Section ===== */
#testimonials {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  animation: slideLoop 30s linear infinite;
  gap: 30px;
}

.testimonial-slide {
  flex: 0 0 calc(33.333% - 20px);
  min-width: calc(33.333% - 20px);
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.stars i {
  margin-right: 2px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.6;
  font-size: 1rem;
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #000;
  font-size: 1.2rem;
}

.author-info h6 {
  color: #333;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.author-info small {
  color: #666;
  font-size: 0.85rem;
}

/* Infinite Loop Animation */
@keyframes slideLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 30px));
  }
}

/* Pause animation on hover */
.testimonials-track:hover {
  animation-play-state: paused;
}

/* Testimonials Navigation Dots */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.testimonial-dot:hover {
  background: var(--primary-color);
}

/* ===== Responsive Testimonials ===== */
@media (max-width: 992px) {
  .testimonial-slide {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
  }
  
  @keyframes slideLoop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-200% - 45px));
    }
  }
}

@media (max-width: 768px) {
  .testimonial-slide {
    flex: 0 0 calc(100% - 10px);
    min-width: calc(100% - 10px);
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
  
  .author-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  @keyframes slideLoop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-600% - 180px));
    }
  }
}

@media (max-width: 576px) {
  .testimonials-track {
    gap: 20px;
  }
  
  .testimonial-card {
    padding: 1.25rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-avatar {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .testimonials-dots {
    gap: 8px;
  }
  
  .testimonial-dot {
    width: 10px;
    height: 10px;
  }
}

/* ===== FAQ Section ===== */
#faq {
  background-color: #f8f9fa;
}

.accordion-button {
  background-color: white;
  color: #333;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: white;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(247, 181, 0, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%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");
  transition: transform 0.3s ease;
}

.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='%23f7b500'%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");
}

.accordion-body {
  padding: 1.5rem;
  background-color: white;
  border-top: 1px solid #e9ecef;
  line-height: 1.6;
}

.accordion-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
}

.accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 8px !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.faq-contact-card {
  background: white;
  border-top: 4px solid var(--primary-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .accordion-button {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .accordion-button i {
    font-size: 1rem;
    margin-right: 0.75rem;
  }
  
  .accordion-body {
    padding: 1.25rem;
  }
  
  .faq-contact-card {
    padding: 1.5rem !important;
  }
}

/* ===== CONTACT SECTION ===== */
#contact {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-form-card {
  background: white;
  border-top: 4px solid var(--primary-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Form Styles */
.form-control, .form-select {
  border: 1px solid #e9ecef;
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(247, 181, 0, 0.25);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(247, 181, 0, 0.3);
}

/* Quick Contact Card */
.quick-contact-card {
  background: white;
  border-top: 4px solid var(--primary-color);
  max-width: 800px;
  margin: 0 auto;
}

.quick-contact-item {
  padding: 20px;
  transition: transform 0.3s ease;
}

.quick-contact-item:hover {
  transform: translateY(-5px);
}

.quick-contact-item h5 {
  color: #333;
  margin-bottom: 10px;
}

.quick-contact-item p {
  color: #555;
  margin-bottom: 5px;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-call {
  background: var(--primary-color);
}

.floating-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

/* Tooltip for floating buttons */
.floating-btn::after {
  content: attr(title);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-btn:hover::after {
  opacity: 1;
}

/* Responsive floating buttons */
@media (max-width: 768px) {
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .floating-btn::after {
    font-size: 12px;
    padding: 6px 10px;
    right: 60px;
  }
}

/* ===== FOOTER SECTION ===== */
footer {
  background: #1a1a1a !important;
  font-size: 0.95rem;
}

footer h4 {
  font-weight: 700;
  font-size: 1.5rem;
}

footer h5 {
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

footer a {
  transition: all 0.3s ease;
  opacity: 0.8;
}

footer a:hover {
  color: var(--primary-color) !important;
  opacity: 1;
  text-decoration: underline !important;
}

footer ul li {
  transition: transform 0.3s ease;
}

footer ul li:hover {
  transform: translateX(5px);
}

/* Contact Buttons */
.contact-section .btn {
  transition: all 0.3s ease;
  font-size: 0.9rem;
  padding: 8px 16px;
}

.contact-section .btn:hover {
  transform: translateY(-2px);
}

/* Policy Links */
.policy-links a {
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  footer .col-lg-4,
  footer .col-lg-2,
  footer .col-lg-3 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    display: inline-block;
    text-align: left;
  }
  
  .contact-section .btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .policy-links {
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  footer {
    text-align: center;
    padding: 2rem 0;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-info p {
    justify-content: center;
  }
  
  .contact-section .btn {
    max-width: 100%;
  }
  
  .policy-links a {
    display: block;
    margin: 5px 0;
  }
}