/* =========================================
   Modern Style for Raya Home Services
   ========================================= */

:root {
  /* Color Palette - Premium & Modern */
  --primary-color: #2bc6c1;
  --primary-dark: #1eaeb5;
  --primary-light: #f0fdfc;
  --secondary-color: #0b2c3d;
  /* Deeper midnight blue */
  --accent-color: #ff6b6b;
  /* Catchy accent */
  --text-dark: #1a1a1a;
  --text-light: #555555;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --footer-bg: #0b0d17;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2bc6c1 0%, #00f2fe 100%);
  --gradient-hero: radial-gradient(
    circle at top right,
    #f0fdfc 0%,
    #ffffff 100%
  );
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 30px;

  /* Typography */
  --font-primary: "Noto Sans Arabic", "Inter", sans-serif;

  /* Dark Mode Defaults */
  --body-bg: var(--bg-light);
  --card-bg: var(--white);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --text-main: var(--text-dark);
}

[data-theme="dark"] {
  /* Premium Midnight Obsidian Palette */
  --body-bg: #05070a;
  --card-bg: #0d1117;
  --nav-bg: rgba(5, 7, 10, 0.9);
  --text-main: #f0f6fc;
  --text-dark: #ffffff;
  --text-light: #8b949e;
  --bg-light: #0d1117;
  --white: #161b22;
  --primary-color: #00f2fe;
  /* Brighter cyan for dark mode */
  --secondary-color: #7000ff;
  --shadow-sm: 0 4px 20px rgba(0, 242, 254, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.8);
  --gradient-hero: radial-gradient(
    circle at 50% -20%,
    #1a1f35 0%,
    #05070a 100%
  );
  --footer-bg: #010409;
}

[data-theme="dark"] .service-card-full,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .admin-card {
  background: rgba(13, 17, 23, 0.7) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 254, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .service-card-full:hover,
[data-theme="dark"] .feature-card:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

[data-theme="dark"] .hero-section::before {
  background: radial-gradient(
    circle,
    rgba(0, 242, 254, 0.15) 0%,
    transparent 70%
  );
}

[data-theme="dark"] .hero-section::after {
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.1) 0%,
    transparent 70%
  );
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  direction: rtl;
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--body-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* =========================================
   Utilities
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.text-primary {
  color: var(--primary-color);
}

.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Responsive Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* =========================================
   Header & Nav
   ========================================= */
header {
  height: var(--header-height);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.logo img {
  height: 50px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
  margin-left: 20px;
  z-index: 1001;
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.nav-links.desktop-nav {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.15rem;
  transition: var(--transition);
  position: relative;
  padding: 10px 18px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  background: rgba(43, 198, 193, 0.08);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 3px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  /* Hidden by default */
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: var(--transition);
  z-index: 999;
}

.mobile-nav.active {
  right: 0;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(43, 198, 193, 0.1) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.05) 0%,
    transparent 70%
  );
  bottom: -50px;
  left: -50px;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 35px;
  font-weight: 900;
  color: var(--text-dark);
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-text h1 .text-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7000ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-text h1 .text-primary::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 100%;
  height: 8px;
  background: rgba(43, 198, 193, 0.15);
  z-index: -1;
}

.hero-text p {
  color: var(--text-light);
  margin-bottom: 45px;
  max-width: 550px;
  font-size: 1.25rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn {
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #20ada9 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(43, 198, 193, 0.2);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(43, 198, 193, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.hero-img {
  position: relative;
  text-align: center;
}

.hero-img img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation:
    float 6s ease-in-out infinite,
    fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

/* =========================================
   Buttons & Actions
   ========================================= */
/* (Styles moved to Hero Section for consistency, but kept utility classes here) */
.btn-large {
  padding: 18px 45px;
  font-size: 1.2rem;
}

.auth-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 800;
  margin-right: 15px;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--primary-color);
}

/* =========================================
   Features Section
   ========================================= */
.features-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 25px;
  object-fit: contain;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
}

/* =========================================
   Services Section (ZigZag)
   ========================================= */
.services-section {
  padding: 100px 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reverse {
  direction: ltr;
  /* Layout flip */
}

.service-row.reverse .service-content {
  direction: rtl;
  /* Text stays RTL */
  text-align: right;
}

/* Fix for mobile text alignment in reverse mode if needed */

.service-content h2 {
  margin-bottom: 25px;
}

.service-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-img img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.service-img img:hover {
  transform: scale(1.02);
}

/* =========================================
   Footer
   ========================================= */
footer {
  /* Ultra-Premium Animated Nebula */
  background: linear-gradient(
    -45deg,
    #05070a,
    #0d1117,
    #1a1f35,
    #004e92,
    #000428
  );
  background-size: 400% 400%;
  animation: auroraNebula 15s ease infinite;
  padding: 100px 0 40px;
  color: #fff;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

@keyframes auroraNebula {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 242, 254, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
}

/* Floating Light Orbs for depth */
.footer-orb {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.footer-orb-1 {
  background: var(--primary-color);
  top: -50px;
  right: -50px;
  animation: floatOrb 8s infinite alternate ease-in-out;
}

.footer-orb-2 {
  background: #7000ff;
  bottom: -50px;
  left: -50px;
  animation: floatOrb 12s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, 40px);
  }
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Premium Neon Glow Top Border */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #00f2fe, #4facfe, #7000ff, #00f2fe);
  background-size: 200% auto;
  animation: neonFlow 5s linear infinite;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

@keyframes neonFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  color: #00f2fe;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  display: inline-block;
}

.footer-info p {
  color: #94a3b8;
  max-width: 350px;
  line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-right: 10px;
}

.footer-contact p {
  color: #adb5bd;
  margin-bottom: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
}

/* =========================================
   Social Icons & Newsletter (New Footer Features)
   ========================================= */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(43, 198, 193, 0.4);
}

.newsletter-form {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.newsletter-input {
  padding: 12px 15px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 100%;
  outline: none;
}

.newsletter-input::placeholder {
  color: #aaa;
}

.newsletter-btn {
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: #00e0eb;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* =========================================
   Responsive Design (Media Queries)
   ========================================= */

/* Tablet & Mobile */
@media (max-width: 992px) {
  .hero-content,
  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  /* Reset direction for mobile stacking */
  .service-row.reverse {
    direction: rtl;
  }

  .service-row.reverse .service-content {
    text-align: center;
  }

  .hero-text p,
  .service-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-img {
    order: -1;
    /* Image on top on mobile */
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links h3::after,
  .footer-contact h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  :root {
    --header-height: 70px;
  }

  .header-actions {
    margin-left: 10px;
    gap: 10px;
  }

  .header-actions .btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .theme-switch {
    width: 45px;
    height: 24px;
  }

  .slider:before {
    height: 18px;
    width: 18px;
  }
}

/* =========================================
   Modal Styles
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-white);
  width: 95%;
  max-width: 500px;
  max-height: 90vh;
  /* تحديد أقصى ارتفاع */
  overflow-y: auto;
  /* السماح بالتمرير الداخلي */
  border-radius: 20px;
  padding: 25px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

/* تحسين السكرول بار للمودال */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

.booking-form .form-group {
  margin-bottom: 20px;
}

.booking-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-color);
}

/* تحسين خيارات الدفع */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.payment-option {
  border: 2px solid var(--border-color, #eee);
  padding: 15px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  background: var(--card-bg);
  color: var(--text-main);
  font-weight: 600;
}

.payment-option:hover {
  border-color: var(--primary-color);
  background: rgba(43, 198, 193, 0.05);
  transform: translateY(-3px);
}

.payment-option input[type="radio"] {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .payment-methods {
    grid-template-columns: 1fr;
    /* عمود واحد للموبايل الصغير */
  }

  .modal-content {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.booking-form textarea {
  resize: none;
  height: 100px;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
}

.whatsapp-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulseWhatsApp 2s infinite;
}

.whatsapp-icon-wrapper img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover .whatsapp-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsApp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon-wrapper img {
    width: 25px;
    height: 25px;
  }
}

/* =========================================
   Search & Filter Styling
   ========================================= */
.search-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(43, 198, 193, 0.2);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Dark Mode Toggle Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 44px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #e0e0e0;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "☀️";
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  left: 4px;
  position: absolute;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 18px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: linear-gradient(135deg, #00f2fe 0%, #7000ff 100%);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

input:checked + .slider:before {
  transform: translateX(20px);
  content: "🌙";
  background-color: #05070a;
  color: #00f2fe;
}

.service-card-full,
.feature-card,
.review-card,
.admin-card,
.modal-content {
  background-color: var(--card-bg) !important;
}

/* Baby Blue Modal Styling for Dark Mode */
.dark-mode .modal-content h2,
.dark-mode .modal-content h3,
.dark-mode #modalTitle {
  color: #89cff0 !important;
  text-shadow: 0 0 10px rgba(137, 207, 240, 0.3);
}

.dark-mode .modal-content label {
  color: #a2d2ff !important;
  font-weight: 600;
}

.dark-mode .modal-content .form-group input,
.dark-mode .modal-content .form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(137, 207, 240, 0.3);
  color: #fff;
}

.dark-mode .modal-content .form-group input:focus {
  border-color: #89cff0;
  box-shadow: 0 0 10px rgba(137, 207, 240, 0.2);
}

/* ---------------------------------------------------------
   Live Chat Premium Interface
   --------------------------------------------------------- */
.chat-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2500;
  font-family: var(--font-primary);
  opacity: 1 !important;
  /* Ensure visibility */
}

.chat-button {
  width: 60px;
  height: 60px;
  background: #2bc6c1;
  /* Solid primary color */
  background: linear-gradient(135deg, #00f2fe 0%, #7000ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  opacity: 1 !important;
}

.chat-button:hover {
  transform: scale(1.1) rotate(10deg);
}

.chat-button svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 350px;
  height: 450px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 242, 254, 0.1);
}

[data-theme="dark"] .chat-window {
  background: #0d1117;
  border-color: rgba(137, 207, 240, 0.2);
}

.chat-window.active {
  display: flex;
  transform: translateY(0);
}

.chat-header {
  background: linear-gradient(135deg, #00f2fe 0%, #7000ff 100%);
  padding: 15px 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.msg-bot {
  background: #f0f2f5;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

[data-theme="dark"] .msg-bot {
  background: rgba(255, 255, 255, 0.05);
  color: #eee;
}

.msg-user {
  background: var(--primary-color);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

[data-theme="dark"] .chat-input-area {
  border-color: rgba(255, 255, 255, 0.1);
}

.chat-input {
  flex: 1;
  border: none;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 25px;
  outline: none;
  font-family: inherit;
}

[data-theme="dark"] .chat-input {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.chat-send {
  background: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}

.chat-send:hover {
  background: #24afaa;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
  display: block;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #161b22 25%, #21262d 50%, #161b22 75%);
  background-size: 200% 100%;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--white);
  color: var(--text-dark);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  transform: translateX(-120%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-right: 5px solid var(--primary-color);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-right-color: #ff4757;
}

.toast.success {
  border-right-color: #2ed573;
}
