:root {
  --bg-dark: #0f212d;
  --bg-light: #fefefe;
  --accent: #e91e63;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Gill Sans', Calibri, sans-serif;
  transition: .3s;
  line-height: 1.6;
}

body.light-mode { 
  background: var(--bg-light); 
  color: #000; 
}
body.dark-mode { 
  background: var(--bg-dark); 
  color: #fff; 
}

/* Background */
body::before {
  content: ""; 
  position: fixed; 
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../img/Bg.webp') no-repeat center/cover;
  z-index: -2; 
  opacity: 0.5;
}

#particles-js { 
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: -1; 
}

/* Dark mode styles */
body.dark {
  background: #111;
  color: #f0f0f0;
}
body.dark nav { background: #222; }
body.dark .menubar { background: #222; }
body.dark a,
body.dark button { color: #f0f0f0; }

/* Navbar */
nav {
  padding: 5px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
              rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 10;
  position: relative;
  background: #fff;
}

nav .logo img { height: 48px; }

nav ul {
  list-style: none;
  display: flex;
}

nav ul li { margin-left: 1.5rem; }

nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 5px;
}

nav ul li a:hover { background-color: #ccf08d; }

/* Dark mode nav link colors */
body.dark nav ul li a,
body.dark .menubar ul li a {
  color: #fff;
}
body.dark nav ul li a:hover,
body.dark .menubar ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
}
body.dark nav .logo img { filter: brightness(0) invert(1); }

/* Utility icons desktop */
.utility-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.utility-icons a, 
.utility-icons button {
  font-size: 18px;
  border: none;
  background: none;
  cursor: pointer;
  color: #000;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
}
.hamburger .line {
  width: 25px;
  height: 2px;
  background-color: #1f1f1f;
  display: block;
  margin: 6px auto;
  transition: all 0.3s ease-in-out;
}
.hamburger-active .line:nth-child(2) { width: 0; }
.hamburger-active .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* Dark mode hamburger */
body.dark .hamburger .line { background-color: #fff; }

/* Mobile Menu */
.menubar {
  position: absolute;
  top: 20px;
  left: -100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  height: 100vh;
  padding: 40px 20px;
  background: rgb(179, 176, 176);
  transition: all 0.4s ease-in;
  z-index: 9;
}
.menubar.active { left: 0; }

.menubar ul {
  padding: 0;
  list-style: none;
  text-align: center;
  width: 100%;
}
.menubar ul li { margin: 15px 0; }
.menubar ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 5px;
}
.menubar ul li a:hover { background: #f5f5f5; }

/* Mobile form */
.mobile-form {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.mobile-form a, 
.mobile-form button {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Responsive */
@media screen and (max-width: 790px) {
  nav ul { display: none; }
  .utility-icons { display: none; }
  .hamburger { display: block; }
}

/* Sections */
section { padding: 60px 5%; min-height: auto; }
section h2 { 
  text-align: center; 
  margin-bottom: 20px; 
  font-size: 28px; 
}

/* Hero */
.hero-content { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  min-height: 100vh; 
  margin-top: -180px; 
}
.hero-card { 
  background: rgba(45, 40, 40, 0.4); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px; 
  border-radius: 12px; 
  max-width: 800px; 
  border: #f0f0f0 1px solid;
}
.hero-card h1 { font-size: 42px; margin-bottom: 16px; }
.hero-card p { font-size: 18px; margin-bottom: 24px; }
.btn { 
  background: var(--accent); 
  color: #fff; 
  padding: 10px 24px; 
  border-radius: 999px; 
  text-decoration: none; 
}
.btn:hover { background: #c2185b; }

/* About */
.about { text-align: center; margin-top: -220px; }
.about p { max-width: 700px; margin: auto; }

/* Services */
.service-list { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); 
  gap: 20px; 
}
.service-item { 
  background: rgba(0,0,0,0.3); 
  padding: 16px; 
  border-radius: 10px; 
  text-align: center; 
}
.service-item img { 
  width: 100%; 
  border-radius: 8px; 
  margin-bottom: 20px; 
}


/* Testimonials */
.testimonial-list { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px; 
  justify-content: center; 
}
.testimonial-item { 
  background: rgba(0,0,0,0.3); 
  padding: 20px; 
  border-radius: 10px; 
  max-width: 260px; 
  text-align: center; 
  color: #fff; 
  font-style: italic; 
}

/* Footer */
footer {
  padding: 20px;
  color: #ffffff;
  font-weight: bold;
}
.footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-left { text-align: left; flex: 1; }
.footer-center { text-align: center; flex: 1; }
.footer-right { text-align: right; flex: 1; }
.footer-center p { margin-bottom: 10px; }

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.social-icons a { color: #2557ea; font-size: 20px; }

.whatsapp-btn {
  background: #25d366;
  padding: 8px 14px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ===== Responsive Adjustments ===== */

/* Tablets */
@media (max-width: 1024px) {
  .header { padding: 12px 20px; }
  .hero-card h1 { font-size: 36px; }
  .hero-card p { font-size: 16px; }
  .service-list { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
  .gallery-grid img { width: 85%; height: 230px; }
}

/* Mobile */
@media (max-width: 768px) {
  .header { flex-direction: column; gap: 10px; padding: 12px 15px; }
  .navbar { justify-content: center; gap: 12px; }
  .hero-card { padding: 25px; }
  .hero-card h1 { font-size: 28px; }
  .hero-card p { font-size: 14px; }
  .service-list { grid-template-columns: 1fr; gap: 15px; }

  /* Gallery mobile view */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid img {
    width: 95%;
    height: 280px;
    border-radius: 12px;
  }

  .testimonial-item { max-width: 100%; }
  .booking-card { padding: 15px; }
  .footer-line { flex-direction: column; text-align: center; }
  .footer-left, .footer-center, .footer-right { 
    text-align: center; 
    margin-bottom: 10px; 
  }
}
/* ==== Animated Gallery Carousel ==== */
.gallery .wrapper {
  max-width: 1000px;
  width: 100%;
  position: relative;
  margin: auto;
}

.gallery .wrapper i {
  height: 40px;
  width: 40px;
  background: #fff;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 1.2rem;
  transform: translateY(-50%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  z-index: 5;
  color: #333;
}

.gallery .wrapper i:hover {
  background: #ccf08d;
}

.gallery .wrapper i:first-child {
  left: -25px;
}

.gallery .wrapper i:last-child {
  right: -25px;
}

.gallery .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 12px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 20px 0;
}

.gallery .carousel::-webkit-scrollbar {
  display: none;
}

.gallery .carousel :where(.card, .img) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery .carousel .card {
  scroll-snap-align: start;
  height: 300px;
  list-style: none;
  background: rgba(0,0,0,0.3); 
  color: #fff;
  border-radius: 10px;
  display: flex;
  cursor: pointer;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery .carousel .card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.gallery .card .img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  
}

.gallery .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid #fff;
  border-radius: 50%;
}

/* Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.chatbot-toggle {
  background-color: #e5d636;
  color: #0c0505;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  display: none;
  width: 300px;
  max-height: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  flex-direction: column;
  position: relative;
}

.chatbot-header {
  background: #ff4081;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-close {
  background: none;
  border: none;
  color: #040101;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-messages {
  padding: 10px;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #f5f5f5;
}

.chatbot-messages .message {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
}

.chatbot-messages .user-msg {
  align-self: flex-end;
  background: #ff4081;
  color: #fff;
}

.chatbot-messages .bot-msg {
  align-self: flex-start;
  background: #e0e0e0;
  color: #000;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

.chatbot-input button {
  background: #ef4141;
  border: none;
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
}

/* Responsive */
@media screen and (max-width: 900px) {
  .gallery .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
  }
}

@media screen and (max-width: 600px) {
  .gallery .wrapper .carousel {
    grid-auto-columns: 100%;
  }
}
