:root {
  --primary: #0f4c81;
  /* Deep Trust Blue */
  --primary-light: #2d73b3;
  --secondary: #1abc9c;
  /* Medical Green */
  --secondary-light: #48c9b0;
  --bg-color: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #475569;
  --white: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(15, 76, 129, 0.06);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -10px rgba(15, 76, 129, 1);
  --shadow-premium: 0 30px 60px -15px rgba(15, 76, 129, 0.1);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
  /* Page Transition */
  animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Global Utilities */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 0;
  /* Massive spacing */
}

/* Page Header Utility */
.page-header {
  padding: 12rem 5% 6rem;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.02) 0%, rgba(26, 188, 156, 0.05) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

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

.section-subtitle {
  display: block;
  text-align: center;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Glassmorphism / Premium Cards */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.2rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(15, 76, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(15, 76, 129, 0.5);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(26, 188, 156, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(26, 188, 156, 0.5);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid rgba(15, 76, 129, 0.1);
  box-shadow: var(--shadow-md);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.nav-cta {
  padding: 0.8rem 1.8rem !important;
  font-size: 0.95rem !important;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo-img {
  height: 75px !important;
  width: auto !important;
  display: block;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo-main span {
  font-weight: 600;
  color: var(--primary);
}

.logo-main span.teal {
  color: var(--secondary);
}

.logo-icon {
  color: var(--primary);
  font-size: 2rem;
}

.logo-icon i.fa-child-reaching {
  color: var(--secondary);
  margin-right: 0.1rem;
}

.logo-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-top: 0.2rem;
  margin-left: 2.3rem;
  letter-spacing: -0.2px;
}

/* Flyer Services Components */
.services-flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.flyer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.flyer-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-5px);
}

.flyer-card-header {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flyer-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
}

.flyer-card-header h3 small {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.flyer-card.theme-secondary .flyer-card-header {
  background: #e74c3c;
  /* Red banner to match Neurological Conditions on flyer */
}

.flyer-list {
  list-style: none;
  padding: 2rem;
  margin: 0;
}

.flyer-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.flyer-list li i {
  color: var(--text-light);
  font-size: 0.5rem;
}

.flyer-list li:last-child {
  border-bottom: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
  font-size: 1.05rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

/* Dropdown Menu */
.nav-item {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.15);
  list-style: none;
  padding: 12px 0;
  margin-top: 8px;
  z-index: 999;
  border: 1px solid rgba(15, 76, 129, 0.1);
}

.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: rgba(26, 188, 156, 0.1);
  color: var(--secondary);
  border-left-color: var(--secondary);
  padding-left: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 80vh;
  height: 80vh;
  background: radial-gradient(circle, var(--secondary-light) 0%, transparent 60%);
  opacity: 0.08;
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  flex: 1.2;
  z-index: 2;
}

.hero-subtitle {
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: rgba(26, 188, 156, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}

.hero-desc {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.trust-badges {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.badge i {
  color: var(--secondary);
  font-size: 1.2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(to top, rgba(15, 76, 129, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  object-fit: cover;
  transition: var(--transition);
}

.social-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(15, 76, 129, 0.2);
}

.social-links a {
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  transform: scale(1.2) translateY(-2px);
  color: var(--secondary);
}

/* Multi-Page About Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
}

.about-features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(15, 76, 129, 0.05));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.service-card {
  padding: 3rem;
  transition: var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-premium);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(26, 188, 156, 0.08);
  color: var(--secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--secondary);
  color: var(--white);
  transform: scale(1.1);
}

.service-card--media {
  padding: 0;
  gap: 0;
}

.service-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 21, 39, 0.04) 0%, rgba(8, 21, 39, 0.34) 100%);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.08);
}

.service-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem;
}

.service-card-content h3 {
  margin-bottom: 0.75rem;
}

.service-card-copy {
  color: var(--text-light);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.service-card-link {
  margin-top: auto;
  align-self: flex-start;
}

.service-card-icon-badge {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--secondary);
  box-shadow: 0 12px 30px rgba(8, 21, 39, 0.22);
  backdrop-filter: blur(12px);
}

.service-card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(26, 188, 156, 0.12);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-card--center .service-card-content {
  text-align: center;
  align-items: center;
}

.service-card--center .service-card-copy {
  max-width: 28ch;
}

.service-card--center .service-card-link {
  align-self: center;
}

/* Detailed Services Page Specifics */
.detailed-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 8rem;
  align-items: center;
}

.detailed-service-row:nth-child(even) {
  direction: rtl;
}

.detailed-service-row:nth-child(even)>* {
  direction: ltr;
}

/* Why Choose Us */
.why-choose-us {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 8rem 5%;
  border-radius: var(--radius-xl);
  margin: 4rem 5%;
  position: relative;
  overflow: hidden;
}

.why-choose-us h2,
.why-choose-us p {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
  text-align: center;
}

.why-item {
  padding: 3rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px);
}

.why-item i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Appointment Full Page UI */
.appointment-wrapper {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5%;
  background: url('assets/hero-rehab.png') center/cover no-repeat fixed;
  position: relative;
}

.appointment-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
}

.appointment-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding: 4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

input,
select,
textarea {
  padding: 1.2rem;
  border: 2px solid rgba(15, 76, 129, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 1.1rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.15);
}

/* Time Slot Buttons */
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.time-slot-btn {
  background: var(--white);
  border: 2px solid rgba(15, 76, 129, 0.1);
  color: var(--text-dark);
  padding: 0.8rem;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.time-slot-btn:hover {
  border-color: var(--secondary);
  background: rgba(26, 188, 156, 0.05);
  transform: translateY(-2px);
}

.time-slot-btn.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================
   ELITE CLINIC GALLERY
   ============================================ */

/* Auto Image Slider */
.gallery-slider {
  position: relative;
  width: 100%;
  max-height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  margin-bottom: 3rem;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 500px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(15, 76, 129, 0.85) 0%, transparent 100%);
  text-align: left;
}

.slide-overlay h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

.slider-dots {
  position: absolute;
  bottom: 1.2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Filter Buttons */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.7rem 1.8rem;
  border: 2px solid rgba(15, 76, 129, 0.1);
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 20px -5px rgba(15, 76, 129, 0.4);
}

/* Masonry Grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.2rem;
}

/* Grid Spanning Classes */
.gallery-item.hero-span {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.vertical-span {
  grid-row: span 2;
}

.gallery-item.window-span {
  grid-column: span 2;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover {
  box-shadow: var(--shadow-premium);
  z-index: 2;
}

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

/* Glassmorphism Overlay */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(15, 76, 129, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: left;
  box-shadow: none;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0;
}

/* Hidden state for filter animation */
.gallery-item.hidden {
  display: none;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(0.9);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Testimonials */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  padding-top: 2rem;
}

.testimonial-card {
  padding: 3rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 6rem;
  color: rgba(15, 76, 129, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}

.patient-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Blog */
.search-bar-container {
  max-width: 600px;
  margin: 0 auto 4rem;
  position: relative;
}

.search-bar-container input {
  padding-right: 4rem;
  border-radius: var(--radius-full);
}

.search-bar-container button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.blog-card {
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-premium);
}

.blog-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
}

.contact-info-card {
  padding: 4rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: #f1f5f9;
  padding: 6rem 5% 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding: 0 !important;
}

.footer-col .logo-img {
  filter: brightness(0) invert(1);
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.05rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 1rem;
}

/* Animations Trigger Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }

  .about-grid,
  .contact-section,
  .detailed-service-row {
    gap: 3rem;
  }
}

@media (max-width: 992px) {

  .hero,
  .about-grid,
  .contact-section {
    flex-direction: column;
  }

  .about-grid,
  .contact-section,
  .detailed-service-row,
  .detailed-service-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    /* Reset RTL */
  }

  .why-choose-us {
    margin: 2rem 0;
    border-radius: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .logo-img {
    height: 40px !important;
  }

  /* Typography Scale Down */
  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  p {
    font-size: 0.95rem !important;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo-tagline {
    font-size: 0.65rem;
    margin-left: 1.8rem;
  }

  /* Layout & Spacing Defaults */
  .container {
    padding: 4rem 0;
    width: 92%;
  }

  .page-header {
    padding: 6rem 5% 2rem;
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  .social-links {
    margin: 1rem 0 0 0;
    padding: 0;
    border: none;
    width: 100%;
    justify-content: center;
  }

  /* Premium Mobile Hero */
  .hero {
    align-items: flex-end;
    padding: 0;
    padding-bottom: 3rem;
    min-height: 95vh;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .hero-subtitle {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
  }

  .hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2.5rem;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0;
  }

  .hero-image img {
    border-radius: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 76, 129, 0.2) 0%, rgba(15, 76, 129, 0.98) 100%);
    border-radius: 0;
  }

  .trust-badges {
    justify-content: center;
  }

  .trust-badges .badge {
    color: var(--white);
  }

  .trust-badges .badge i {
    color: var(--secondary-light);
  }

  /* Touch Targets & Forms */
  .btn {
    min-height: 52px;
    border-radius: var(--radius-xl);
  }

  input,
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .appointment-content {
    padding: 2rem 1.5rem;
  }

  .appointment-content .btn {
    width: 100%;
  }

  .contact-info-card .btn {
    width: 100%;
  }

  .time-slot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .time-slot-btn {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Components */
  .services-flyer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flyer-list {
    padding: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card-content {
    padding: 1.5rem;
  }

  .service-card-media {
    aspect-ratio: 4 / 3;
  }

  .about-grid,
  .contact-section {
    gap: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .footer-col {
    padding: 0 !important;
  }

  .footer-col:first-child {
    margin-bottom: 1rem;
  }

  .footer-col:first-child p {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem;
  }

  .footer-col:first-child .logo-img {
    height: 40px !important;
    width: auto !important;
  }

  .footer-col:first-child div[style*="display: flex"] {
    justify-content: center !important;
    margin-top: 1rem !important;
    gap: 1.2rem !important;
  }

  .footer-col:first-child a[style*="font-size"] {
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .footer-links a {
    display: block;
    padding: 0.5rem;
  }

  /* Gallery Mobile */
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    gap: 1.5rem;
  }

  .gallery-item.hero-span {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item.vertical-span {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item.window-span {
    grid-column: span 1;
  }

  .gallery-overlay {
    transform: translateY(0);
    padding: 0.8rem;
  }

  .gallery-overlay h4 {
    font-size: 0.85rem;
  }

  .gallery-overlay p {
    font-size: 0.75rem;
  }

  .filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
  }

  /* Slider Mobile */
  .gallery-slider {
    max-height: 300px;
    border-radius: var(--radius-lg);
  }

  .slider-track {
    height: 300px;
  }

  .slide-overlay {
    padding: 1.5rem;
  }

  .slide-overlay h3 {
    font-size: 1.2rem;
  }

  .slider-dots {
    bottom: 0.8rem;
    right: 1rem;
  }

  /* Expert Section Mobile */
  .expert-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .expert-image {
    min-height: 300px !important;
    max-height: 400px !important;
  }

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

  .expert-content .section-subtitle {
    text-align: center !important;
  }

  .expert-content h2 {
    text-align: center !important;
  }

  .expert-highlights li {
    justify-content: center;
  }

  .expert-experience-badge {
    bottom: 1rem;
    left: 1rem;
    padding: 1rem;
  }

  .expert-experience-badge .years {
    font-size: 2rem;
  }
}

/* Expert Section Desktop */
.expert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: stretch;
}

.expert-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  min-height: 500px;
  max-height: 650px;
}

.expert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.expert-experience-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.expert-experience-badge .years {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.expert-experience-badge .text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.expert-highlights li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

/* Service Detail Rows */
.service-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.service-detail-row.reverse {
  direction: rtl;
}

.service-detail-row.reverse>* {
  direction: ltr;
}

.service-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}

.service-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.service-tag {
  background: rgba(15, 76, 129, 0.06);
  border: 1px solid rgba(15, 76, 129, 0.12);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.service-tag i {
  color: var(--secondary);
  font-size: 0.8rem;
}

.service-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.service-tag:hover i {
  color: white;
}

/* Treatment Pages Mobile Responsive */
@media (max-width: 768px) {

  /* Treatment page hero section */
  section.hero.container {
    padding: 3rem 1.5rem !important;
  }

  /* All treatment page sections */
  section[style*="padding: 4rem 2rem"],
  section.container[style*="padding"] {
    padding: 2rem 1.5rem !important;
  }

  /* Grid layouts in treatment content - 2 columns to 1 column */
  [style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Auto-fit grids to single column */
  [style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Image containers - maintain aspect ratio */
  [style*="border-radius: 16px"] img {
    height: auto !important;
    width: 100% !important;
  }

  img[style*="height: 400px"],
  img[style*="height: 300px"] {
    height: auto !important;
    max-height: 250px;
  }

  /* Testimonials grid */
  .testimonial-grid,
  [style*="display: grid"][style*="gap: 2rem"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Trust badges section */
  [style*="display: flex"][style*="gap: 3rem"][style*="justify-content"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }

  /* CTA Section */
  section[style*="text-align: center"][style*="padding: 4rem"] {
    padding: 2.5rem 1.5rem !important;
  }

  section[style*="text-align: center"] h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  section[style*="text-align: center"] p {
    margin-bottom: 1.5rem !important;
  }

  /* Footer adjustments */
  footer {
    padding: 2rem 1.5rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Dropdown menu on mobile - hide by default */
  .dropdown-menu {
    display: none !important;
  }

  .nav-item {
    position: relative;
  }

  .nav-item>a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
  }

}

@media (max-width: 768px) {
  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-row.reverse {
    direction: ltr;
  }

  .service-detail-image img {
    min-height: 250px;
  }

  .service-detail-content {
    text-align: center;
  }

  .service-tags {
    justify-content: center;
  }
}


/* =====================================================
   🔥 TOP-NOTCH PREMIUM UI UPGRADE (DROP-IN)
   ===================================================== */

/* === ADVANCED TOKENS === */
:root {
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --blur-glass: blur(20px);

  --gradient-primary: linear-gradient(135deg, #0f4c81, #2d73b3);
  --gradient-secondary: linear-gradient(135deg, #1abc9c, #48c9b0);

  --gradient-mesh:
    radial-gradient(circle at 20% 30%, rgba(26, 188, 156, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(15, 76, 129, 0.12), transparent 40%);
}

/* =====================================================
   🧊 PREMIUM FLOATING NAVBAR
   ===================================================== */
nav {
  top: 20px !important;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1300px;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);

  padding: 1rem 2rem;
  transition: all 0.4s var(--ease-premium);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-premium);
  transform: translateX(-50%) scale(0.98);
}

/* =====================================================
   ✨ NAV LINK MICRO INTERACTION
   ===================================================== */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =====================================================
   🔥 PREMIUM BUTTON UPGRADE
   ===================================================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-premium);
  will-change: transform;
}

/* Glow effect */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  transition: opacity 0.4s ease;
}

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

.btn:hover {
  transform: translateY(-6px) scale(1.04);
}

.btn:active {
  transform: scale(0.96);
}

/* =====================================================
   💎 CARD PREMIUM HOVER (GLOBAL)
   ===================================================== */
.service-card,
.blog-card,
.flyer-card {
  position: relative;
  overflow: hidden;
}

/* Shine sweep */
.service-card::before,
.blog-card::before,
.flyer-card::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  transform: rotate(25deg);
  transition: 0.7s;
}

.service-card:hover::before,
.blog-card:hover::before,
.flyer-card:hover::before {
  top: 120%;
  left: 120%;
}

/* =====================================================
   🌊 HERO PREMIUM BACKGROUND
   ===================================================== */
.hero {
  background: var(--gradient-mesh);
}

/* =====================================================
   🚀 SCROLL ANIMATION UPGRADE
   ===================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: all 1s var(--ease-premium);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =====================================================
   🧠 IMAGE HOVER SMOOTHNESS
   ===================================================== */
img {
  transition: transform 0.5s var(--ease-premium);
}

/* =====================================================
   🔥 GLASS ENHANCEMENT
   ===================================================== */
.glass {
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =====================================================
   📱 MOBILE POLISH
   ===================================================== */
@media (max-width: 768px) {
  nav {
    width: 95%;
    top: 10px !important;
    padding: 0.8rem 1.2rem;
  }

  .btn {
    transform: none !important;
  }

  .btn:hover {
    transform: scale(1.02);
  }
}

/* ================================
   ✨ MAGIC REVEAL EFFECT
   ================================ */

.reveal {
  opacity: 0;
  transform: translateY(80px) scale(0.95);
  filter: blur(10px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger delay (makes it feel alive) */
.reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal:nth-child(4) {
  transition-delay: 0.4s;
}

/* ================================
   🌊 TEXT MAGIC (Gradient Glow)
   ================================ */

.magic-text {
  background: linear-gradient(90deg, #0f4c81, #1abc9c, #2d73b3);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textFlow 4s linear infinite;
}

@keyframes textFlow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ================================
   💫 FLOATING ELEMENT EFFECT
   ================================ */

.float {
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* ================================
   ⚡ CARD POP EFFECT
   ================================ */

.service-card,
.blog-card,
.flyer-card {
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.show,
.blog-card.show,
.flyer-card.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Magic hover glow */
.glass {
  transition: all 0.4s ease;
}

.glass:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Button magic */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Fade animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero image float effect */
.hero-image img {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Navbar glass effect on scroll */
#navbar.scrolled {
  background: rgba(163, 163, 163, 0.85);
  backdrop-filter: blur(10px);
}

/* Gallery zoom */
.gallery-item img {
  transition: transform 0.4s ease;
}

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

#cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Extra Small Mobile Devices (568px and below) */
@media (max-width: 568px) {
  footer {
    padding: 4rem 5% 2rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-col h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .footer-col:first-child {
    margin-bottom: 0.5rem;
  }

  .footer-col:first-child .logo-img {
    height: 40px !important;
    width: auto !important;
  }

  .footer-col:first-child p {
    font-size: 0.85rem !important;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .footer-col:first-child div[style*="display: flex"] {
    gap: 1rem !important;
    margin-top: 0.8rem !important;
  }

  .footer-col:first-child a[style*="font-size"] {
    font-size: 0.9rem !important;
    transition: transform 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .footer-col:first-child a[style*="font-size"]:hover {
    transform: scale(1.1);
  }

  .footer-links li {
    margin-bottom: 0.7rem;
  }

  .footer-links a {
    font-size: 0.9rem !important;
  }

  .footer-bottom {
    padding-top: 2rem;
    font-size: 0.85rem;
  }
}

/* Mobile Button Adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.76rem;
  }
}