/* Oasis Orthopedic Center - Main CSS Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-font: 'Inter', sans-serif;
  --heading-font: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-blue-light: #f0f9ff;
  --accent-blue-glow: rgba(2, 132, 199, 0.15);
  
  --border-color: #e2e8f0;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --footer-bg: #0f172a;
  --footer-text: #e2e8f0;
  --footer-text-secondary: #94a3b8;
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 25px 50px -12px rgba(2, 132, 199, 0.1);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* Max width for layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* Dark Mode Color Palette overrides */
body.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-blue: #38bdf8;
  --accent-blue-hover: #7dd3fc;
  --accent-blue-light: rgba(56, 189, 248, 0.1);
  --accent-blue-glow: rgba(56, 189, 248, 0.25);
  
  --border-color: #334155;
  --navbar-bg: rgba(15, 23, 42, 0.85);
  --card-bg: #1e293b;
  --footer-bg: #020617;
  --footer-text: #f1f5f9;
  --footer-text-secondary: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 25px 50px -12px rgba(56, 189, 248, 0.2);
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Loading Animation Overlay */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.text-center { text-align: center; }

/* Grid Layouts */
.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
}

/* Section Header Utility */
.section-header {
  max-width: 700px;
  margin: 0 auto 56px auto;
}
.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-blue);
  border-radius: 2px;
}
.section-header.text-left h2::after {
  left: 0;
  transform: none;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--accent-blue-glow);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.btn-secondary:hover {
  background-color: var(--accent-blue-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

/* Common Sticky Header & Navbar */
.header-top {
  background-color: var(--accent-blue);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
}
.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-info {
  display: flex;
  gap: 24px;
}
.header-top-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-top-socials {
  display: flex;
  gap: 16px;
}
.header-top-socials a:hover {
  opacity: 0.8;
}

.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}
.logo-text {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-text span {
  color: var(--accent-blue);
}
.main-header.scrolled .logo-img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--heading-font);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle-btn, .search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.theme-toggle-btn:hover, .search-toggle-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent-blue);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-appointment-btn {
  display: none;
}

/* Mobile Nav Styles */
@media (max-width: 1024px) {
  .hamburger-btn {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-right: 1px solid var(--border-color);
  }
  .nav-menu.open {
    left: 0;
  }
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    display: block;
  }
  .main-header.scrolled + .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  .mobile-appointment-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }
  .nav-actions .btn-primary {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  padding: 8px 16px;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title span {
  color: var(--accent-blue);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
}
.hero-image-bg-effect {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 90%;
  height: 90%;
  border-radius: var(--border-radius-lg);
  background-color: var(--accent-blue-light);
  z-index: 1;
}
.hero-img {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 8px solid var(--card-bg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-tagline {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-subtitle {
    margin: 0 auto 40px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Card Component */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}
.card:hover::after {
  opacity: 1;
}
.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.card:hover .card-icon {
  background-color: var(--accent-blue);
  color: #ffffff;
}
.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Doctor card specific style */
.doctor-card {
  padding: 0;
}
.doctor-image-container {
  position: relative;
  overflow: hidden;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  aspect-ratio: 1/1.1;
  background-color: var(--bg-tertiary);
}
.doctor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.doctor-card:hover .doctor-image {
  transform: scale(1.05);
}
.doctor-info {
  padding: 32px;
}
.doctor-specialty {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.doctor-name {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.doctor-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}
.doctor-details-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.doctor-details-list li i {
  color: var(--accent-blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Statistics section */
.stats-section {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.stat-item p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Testimonial slider */
.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 16px;
}
.testimonial-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}
.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}
.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.testimonial-author-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.testimonial-author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.testimonial-control-btn {
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.testimonial-control-btn:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

/* CTA Banner section */
.cta-banner-section {
  position: relative;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  margin: 0 24px 96px 24px;
}
.cta-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  z-index: 1;
}
.cta-banner-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 48px;
  flex-wrap: wrap;
  gap: 32px;
}
.cta-banner-content {
  text-align: left;
}
.cta-banner-content h2 {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}
.cta-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .cta-banner-section {
    margin: 0 16px 60px 16px;
  }
  .cta-banner-container {
    flex-direction: column;
    text-align: center;
    padding: 48px 24px;
  }
  .cta-banner-content {
    text-align: center;
  }
}

/* Footer Section */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-title {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: 1px;
}
.footer-about img {
  height: 48px;
  margin-bottom: 20px;
}
.footer-about p {
  color: var(--footer-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--footer-text-secondary);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--accent-blue);
  transform: translateX(4px);
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--footer-text-secondary);
  font-size: 0.95rem;
}
.footer-contact-info li i {
  color: var(--accent-blue);
  margin-top: 4px;
  flex-shrink: 0;
}
.footer-map-placeholder {
  margin-top: 20px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 150px;
  border: 1px solid var(--border-color);
}
.footer-map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--footer-text-secondary);
  font-size: 0.9rem;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a:hover {
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 24px 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Floating Actions system */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 998;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border: none;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.float-whatsapp {
  background-color: #25d366;
}
.float-call {
  background-color: var(--accent-blue);
}
.float-appointment {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.float-scroll-top {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.float-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.float-btn-tooltip {
  position: absolute;
  right: 70px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.float-btn:hover .float-btn-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Live Chat Widget Box drawer */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 360px;
  height: 480px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.chat-widget.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.chat-widget-header {
  background-color: var(--accent-blue);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-widget-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  display: flex;
}
.chat-widget-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-msg-bot {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-msg-user {
  background-color: var(--accent-blue);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-widget-input-area {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}
.chat-widget-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px 16px;
  outline: none;
  background-color: var(--bg-secondary);
  font-size: 0.9rem;
}
.chat-widget-input:focus {
  border-color: var(--accent-blue);
}
.chat-widget-send {
  background-color: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (max-width: 480px) {
  .chat-widget {
    width: calc(100% - 32px);
    right: 16px;
    height: 400px;
  }
}

/* Modal Popup Core */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal.open .modal-content {
  transform: scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}
.modal-close-btn:hover {
  color: var(--accent-blue);
}
.modal-body {
  text-align: left;
}
.modal-header-layout {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-blue-light);
}
.modal-title-layout h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.modal-specialty {
  color: var(--accent-blue);
  font-weight: 600;
}
.modal-section-title {
  font-size: 1.15rem;
  margin: 24px 0 12px 0;
  border-bottom: 2px solid var(--bg-tertiary);
  padding-bottom: 8px;
}

/* Success submission popup */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.success-popup.show {
  opacity: 1;
  visibility: visible;
}
.success-popup-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  max-width: 480px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.success-popup.show .success-popup-card {
  transform: scale(1);
}
.success-checkmark {
  width: 72px;
  height: 72px;
  background-color: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}
.success-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.success-msg {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Form Styles */
.form-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 480px) {
  .form-card {
    padding: 24px;
  }
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
}
.form-group {
  margin-bottom: 24px;
  text-align: left;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 12px 18px;
  border-radius: var(--border-radius-md);
  outline: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.form-control:focus {
  border-color: var(--accent-blue);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}
textarea.form-control {
  resize: vertical;
}

/* Search Modal Utility styles */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.search-modal.open {
  opacity: 1;
  visibility: visible;
}
.search-modal-container {
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  text-align: center;
  position: relative;
}
.search-input {
  width: 100%;
  border: none;
  border-bottom: 3px solid var(--border-color);
  background: none;
  font-size: 2rem;
  font-weight: 700;
  padding: 16px 0;
  outline: none;
  text-align: center;
  color: var(--text-primary);
}
.search-input:focus {
  border-color: var(--accent-blue);
}
.search-close-btn {
  position: absolute;
  top: -80px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}
.search-results {
  margin-top: 40px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.search-result-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: var(--border-radius-md);
  display: block;
}
.search-result-item:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}
.search-result-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.search-result-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.appear {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Subpage Header layout styling */
.subpage-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.subpage-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.breadcrumb-separator {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--accent-blue);
}

/* Gallery layout style */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 132, 199, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
  padding: 24px;
  text-align: center;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* Lightbox overlay styling */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid #ffffff;
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}
.lightbox-caption {
  color: #ffffff;
  text-align: center;
  margin-top: 16px;
  font-family: var(--heading-font);
  font-weight: 600;
}
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev {
  left: -70px;
}
.lightbox-next {
  right: -70px;
}
@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav-btn { background: rgba(0,0,0,0.5); }
}

/* Service Nav List layout */
.service-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
@media (max-width: 1024px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.service-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 100px;
}
@media (max-width: 1024px) {
  .service-nav-list {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .service-nav-list::-webkit-scrollbar {
    display: none;
  }
}
.service-nav-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}
.service-nav-btn:hover, .service-nav-btn.active {
  background-color: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}
.service-nav-btn i {
  transition: transform 0.3s ease;
}
.service-nav-btn:hover i, .service-nav-btn.active i {
  transform: translateX(4px);
}
@media (max-width: 1024px) {
  .service-nav-btn {
    white-space: nowrap;
    padding: 12px 20px;
  }
  .service-nav-btn i {
    display: none;
  }
}

.service-content-panel {
  display: none;
}
.service-content-panel.active {
  display: block;
}
.service-panel-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
}
.service-content-panel h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.service-content-panel p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.service-faq-section {
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 48px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--card-bg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.faq-item.active {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}
.faq-item.active .faq-trigger {
  color: var(--accent-blue);
}
.faq-item.active .faq-panel {
  max-height: 200px;
  padding-bottom: 20px;
}

/* Contact page styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.contact-detail-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.contact-info-text p, .contact-info-text span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.contact-map-wrapper {
  margin-top: 40px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border-color);
}
.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
