/* ==========================================================================
   Total Care Facility Management - Main Stylesheet
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.1);
  --secondary: #06b6d4;
  --dark-navy: #0b132b;
  --dark-slate: #1c2541;
  --dark-card: #1e293b;
  --accent-gold: #f59e0b;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --border-light: #e2e8f0;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 85px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Badges */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-navy);
  line-height: 1.25;
  font-weight: 700;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark-navy);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark-navy);
  border: 2px solid var(--border-light);
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark-navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-brochure-nav {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-hover);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  font-weight: 600;
  transition: var(--transition);
}

.btn-brochure-nav:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Top Bar */
.top-bar {
  background: var(--dark-navy);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-contact .divider {
  opacity: 0.3;
}

.top-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Header Navbar */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 4px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Brand Logo Wrapper & Illuminated Sign Illusion */
.brand-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 0 6px 48px; /* Dedicated zone for electrician standing on the left without covering logo */
}

.brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  text-decoration: none;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo-img {
  height: 46px;
  max-height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* LED Backlight Behind Logo (Flickers & Lights Up as Electrician Fixes It from the left) */
.logo-led-backlight {
  position: absolute;
  inset: -6px -12px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 15% 50%, rgba(56, 189, 248, 0.85) 0%, rgba(16, 185, 129, 0.7) 35%, rgba(6, 182, 212, 0.35) 65%, rgba(16, 185, 129, 0) 85%);
  filter: blur(10px);
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
  animation: logoLedIgnitionIllusion 6s ease-in-out infinite;
}

/* Neon rim border that shines when powered on */
.brand-logo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s ease;
  animation: logoBorderIgnitionIllusion 6s ease-in-out infinite;
}

.brand-logo-wrapper:hover .logo-led-backlight {
  opacity: 1 !important;
  filter: blur(14px) drop-shadow(0 0 24px rgba(16, 185, 129, 0.95)) !important;
  transform: scale(1.04);
}

.brand-logo-wrapper:hover .brand-logo::after {
  opacity: 1 !important;
}

.brand-logo-wrapper:hover .brand-logo-img {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.45));
}

/* Miniature Electrician Standing on the Left Side (Doesn't cover logo) */
.mini-worker-electrician {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 50px;
  height: 50px;
  z-index: 20;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mini-worker-electrician:hover {
  transform: scale(1.15) translateY(-2px);
}

.mini-worker-electrician .mini-char-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* Spark flash sync at electrician's tool tip reaching the left edge of logo */
.electrician-spark-fx {
  position: absolute;
  right: 2px;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 15%, #38bdf8 55%, transparent 100%);
  box-shadow: 0 0 12px #38bdf8, 0 0 24px #fbbf24;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  animation: sparkPulseIllusion 6s ease-in-out infinite;
}

/* Synchronized Electrical Ignition Illusion Keyframes */
@keyframes logoLedIgnitionIllusion {
  0%, 14% {
    opacity: 0.15;
    filter: blur(6px);
    transform: scale(0.98);
  }
  17% {
    /* First connection tap */
    opacity: 0.6;
    filter: blur(8px);
  }
  20% {
    /* Dip */
    opacity: 0.2;
    filter: blur(5px);
  }
  24% {
    /* Second tap / flicker */
    opacity: 0.85;
    filter: blur(12px) drop-shadow(0 0 14px rgba(56, 189, 248, 0.8));
  }
  27% {
    /* Micro flicker */
    opacity: 0.35;
    filter: blur(6px);
  }
  30%, 33% {
    /* SPARK IGNITION: Sudden brilliant power surge! */
    opacity: 1;
    filter: blur(15px) drop-shadow(0 0 26px rgba(16, 185, 129, 0.95)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.7));
    transform: scale(1.05);
  }
  37%, 86% {
    /* Steady illuminated glow with living breathing LED aura */
    opacity: 0.92;
    filter: blur(12px) drop-shadow(0 0 18px rgba(16, 185, 129, 0.85)) drop-shadow(0 0 26px rgba(6, 182, 212, 0.45));
    transform: scale(1);
  }
  90% {
    /* Soft voltage dip before next service check */
    opacity: 0.65;
    filter: blur(10px);
  }
  100% {
    opacity: 0.15;
    filter: blur(6px);
    transform: scale(0.98);
  }
}

@keyframes logoBorderIgnitionIllusion {
  0%, 27% {
    opacity: 0;
  }
  30%, 33% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.85), inset 0 0 12px rgba(56, 189, 248, 0.5);
  }
  37%, 86% {
    opacity: 0.75;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45), inset 0 0 8px rgba(16, 185, 129, 0.25);
  }
  90%, 100% {
    opacity: 0;
  }
}

@keyframes sparkPulseIllusion {
  0%, 15% {
    opacity: 0;
    transform: scale(0.4);
  }
  17% {
    opacity: 0.75;
    transform: scale(1.2);
  }
  20% {
    opacity: 0;
    transform: scale(0.5);
  }
  24% {
    opacity: 0.95;
    transform: scale(1.5);
    box-shadow: 0 0 16px #38bdf8, 0 0 28px #fbbf24;
  }
  27% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  30%, 33% {
    /* Big spark when the light ignites */
    opacity: 1;
    transform: scale(2.2);
    box-shadow: 0 0 20px #ffffff, 0 0 35px #38bdf8, 0 0 45px #fbbf24;
  }
  36% {
    opacity: 0.4;
    transform: scale(1.1);
  }
  38%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* Interactive click trigger for Electrician */
.brand-logo-wrapper.forced-ignite .logo-led-backlight {
  opacity: 1 !important;
  filter: blur(14px) drop-shadow(0 0 26px rgba(16, 185, 129, 0.95)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.75)) !important;
  transform: scale(1.05) !important;
}

.brand-logo-wrapper.forced-ignite .brand-logo::after {
  opacity: 1 !important;
}

.mini-worker-electrician.manual-spark .electrician-spark-fx {
  opacity: 1 !important;
  transform: scale(2.5) !important;
  box-shadow: 0 0 24px #ffffff, 0 0 40px #38bdf8, 0 0 50px #fbbf24 !important;
  transition: transform 0.2s ease, opacity 0.5s ease;
}

/* Miniature Navbar Cleaner Micro-Interaction */
.mini-worker {
  position: absolute;
  pointer-events: none;
  z-index: 25;
  user-select: none;
}

.mini-worker .mini-char-img {
  display: block;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18));
}

/* Animated Miniature Cleaner Standing & Mopping on Navbar */


.mini-worker-navbar {
  position: absolute;
  right: -52px;
  bottom: 0px;
  width: 36px;
  height: 36px;
  transform-origin: bottom center;
  animation: cleanerPatrol 8s ease-in-out infinite alternate;
}

.mini-worker-navbar .mini-char-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Gentle sweeping patrol in the open space between Contact and CTA button */
@keyframes cleanerPatrol {
  0% {
    transform: translateX(0) scaleX(1);
  }
  45% {
    transform: translateX(16px) scaleX(1);
  }
  50% {
    transform: translateX(16px) scaleX(-1);
  }
  95% {
    transform: translateX(0) scaleX(-1);
  }
  100% {
    transform: translateX(0) scaleX(1);
  }
}

@media (max-width: 992px) {
  .mini-worker-navbar {
    display: none;
  }
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--dark-navy), var(--dark-slate));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--dark-navy);
  line-height: 1;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary-hover);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-hover);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2.5px;
  background: var(--dark-navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--dark-navy);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 120px 0;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-media img,
.hero-bg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  animation: heroCinematicMotion 26s ease-in-out infinite alternate;
}

@keyframes heroCinematicMotion {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.14) translate(1%, 0.5%);
  }
}

.hero-ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.65;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.22), transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.2), transparent 50%),
              linear-gradient(to bottom, rgba(11, 19, 43, 0.78), rgba(11, 19, 43, 0.94));
  z-index: 2;
}

.hero-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 2;
  animation: floatAmbientGlow 14s ease-in-out infinite alternate;
}

.hero-ambient-glow.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent 70%);
  top: -120px;
  right: -80px;
  animation-duration: 16s;
}

.hero-ambient-glow.glow-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  bottom: -60px;
  left: 5%;
  animation-duration: 20s;
  animation-delay: -6s;
}

@keyframes floatAmbientGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(35px, -25px) scale(1.12);
  }
  100% {
    transform: translate(-25px, 35px) scale(0.92);
  }
}


.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.strip-item .icon {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Quick Stats Bar */
.stats-banner {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.4);
}

.service-thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
  cursor: pointer;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-thumb img,
.service-thumb:focus-visible img {
  transform: scale(1.08);
}

.service-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.service-card:hover .service-thumb-overlay,
.service-thumb:focus-visible .service-thumb-overlay {
  opacity: 1;
}

.service-thumb-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-navy);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.service-card:hover .service-thumb-btn,
.service-thumb:focus-visible .service-thumb-btn {
  transform: translateY(0);
}

.btn-service-gallery {
  transition: var(--transition);
  font-weight: 600;
}

.btn-service-gallery:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.service-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.service-icon-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.service-body {
  padding: 32px 24px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.service-subtitle {
  font-size: 0.85rem;
  color: var(--primary-hover);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.service-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-feature-list {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--bg-alt);
}

.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.service-feature-list .check {
  color: var(--primary);
  font-weight: bold;
}

/* Interactive Showcase Section */
.showcase-section {
  padding: 90px 0;
  background: var(--bg-alt);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.showcase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.showcase-badge {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.showcase-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.showcase-specs {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.showcase-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Why Choose Total Care */
.why-section {
  padding: 100px 0;
  background: var(--dark-navy);
  color: var(--white);
}

.why-section .section-title {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.why-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.why-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.why-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Find Your Space - Enquiry Section */
.enquiry-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-alt));
}

.enquiry-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.enquiry-info {
  padding: 50px 40px;
  background: linear-gradient(135deg, var(--dark-navy), var(--dark-slate));
  color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.enquiry-info h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.enquiry-info p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.video-launcher-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.video-launcher-card:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary);
}

.play-button-ring {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.enquiry-form-wrapper {
  padding: 50px 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Custom Checkbox Grid */
.requirement-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-light);
  transition: var(--transition);
  user-select: none;
}

.checkbox-card:hover {
  border-color: var(--primary);
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

/* Alert Notification Banner */
.alert-banner {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: none;
  font-size: 0.925rem;
}

.alert-banner.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--primary);
  color: #065f46;
}

.alert-banner.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.02);
}

.about-experience-badge {
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-experience-badge .badge-icon {
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-experience-badge .badge-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-experience-badge .number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.about-experience-badge .badge-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.35;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: var(--bg-alt);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px auto;
}

.contact-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.contact-card p, .contact-card a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 350px;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-navy), var(--dark-slate));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 20px;
}

.map-placeholder .map-pin-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Footer Styling */
.site-footer {
  background: var(--dark-navy);
  color: var(--text-light);
  padding: 80px 0 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-wrapper {
  display: inline-block;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.footer-logo-wrapper img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.footer-desc {
  margin: 16px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-tagline {
  color: var(--primary);
  font-size: 0.9rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
  margin-top: 8px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.925rem;
}

.footer-contact-info .icon {
  color: var(--primary);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  font-size: 0.875rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  gap: 12px;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Video Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--dark-card);
  color: var(--white);
  width: 90%;
  max-width: 800px;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h3 {
  color: var(--white);
  font-size: 1.4rem;
}

.modal-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   Gallery Section - Pure Image Horizontal Scrollable Carousel & Lightbox
   ========================================================================== */

.gallery-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.gallery-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--dark-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-arrow:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.carousel-arrow:active {
  transform: scale(0.96);
}

/* Horizontal Scrollable Pure Image Track */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  z-index: 2;
}

.gallery-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 6px 20px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.gallery-carousel-track::-webkit-scrollbar {
  display: none;
}

.gallery-carousel-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

/* Pure Image Gallery Card (No Tiles, Images Only) */
.gallery-photo-card {
  flex: 0 0 460px;
  max-width: 460px;
  aspect-ratio: 16 / 10;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  cursor: pointer;
}

.gallery-photo-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18), 0 0 25px rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

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

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

.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 19, 43, 0) 40%, rgba(11, 19, 43, 0.55) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-photo-card:hover .gallery-photo-overlay,
.gallery-photo-card:focus-visible .gallery-photo-overlay {
  opacity: 1;
}

.gallery-expand-badge {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.gallery-photo-card:hover .gallery-expand-badge {
  transform: translateY(0);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Custom Scrollbar Progress Indicator */
.carousel-scrollbar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.carousel-scrollbar-thumb {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 9999px;
  transition: transform 0.15s ease-out, width 0.25s ease;
  transform: translateX(0);
}

/* Lightbox Modal (Pure Image Viewer) */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.show {
  display: flex;
  opacity: 1;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 10;
  background: transparent;
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: modalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPopIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 25;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.gallery-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.05);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.gallery-modal-nav:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal-nav.prev {
  left: -20px;
}

.gallery-modal-nav.next {
  right: -20px;
}

.gallery-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gallery-modal-image-wrapper {
  position: relative;
  background: #000000;
  width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.gallery-modal-loader {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 29, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.gallery-modal-loader.loading {
  display: flex;
}

.gallery-modal-loader .spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(16, 185, 129, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.gallery-modal-footer {
  margin-top: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-info-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.modal-info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.modal-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.modal-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.gallery-modal-footer .modal-counter {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  white-space: nowrap;
}


/* ==========================================================================
   Comprehensive Responsive Media Queries (All Screen Sizes)
   ========================================================================== */

/* 1. Large Laptops / Small Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.92rem;
  }

  .gallery-photo-card {
    flex: 0 0 420px;
    max-width: 420px;
  }
}

/* 2. Standard Laptops / Tablets Landscape (max-width: 1080px) */
@media (max-width: 1080px) {
  .navbar-inner {
    height: auto;
    min-height: 74px;
    padding: 10px 0;
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 6px 8px;
  }

  .nav-actions .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: clamp(2.3rem, 4.8vw, 3rem);
  }

  .gallery-photo-card {
    flex: 0 0 380px;
    max-width: 380px;
  }
}

/* 3. Tablets / Mobile Navigation Trigger (max-width: 900px) */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 30px;
    gap: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    transform: translateY(-150%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  }

  .mini-worker-navbar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-section {
    min-height: 68vh;
    padding: 80px 0 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .enquiry-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .gallery-modal-dialog {
    max-width: 94vw;
  }

  .gallery-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .gallery-modal-nav.prev {
    left: 10px;
  }

  .gallery-modal-nav.next {
    right: 10px;
  }
}

/* 4. Tablet Portrait / Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-features-strip {
    gap: 12px 18px;
  }

  .strip-item {
    font-size: 0.85rem;
  }

  .services-grid,
  .why-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filter-bar {
    gap: 8px;
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .carousel-nav-arrows {
    align-self: flex-end;
  }

  .gallery-photo-card {
    flex: 0 0 76vw;
    max-width: 76vw;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* 5. Standard Mobile Screens (max-width: 560px) */
@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .brand-logo-img {
    height: 38px;
  }

  .brand-logo-wrapper {
    padding-left: 38px;
  }

  .mini-worker-electrician {
    left: 0;
    bottom: 3px;
    top: auto;
    right: auto;
    width: 40px;
    height: 40px;
  }

  .hero-section {
    padding: 70px 0 85px;
  }

  .section-tag {
    font-size: 0.72rem;
    padding: 4px 12px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-desc {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .service-body,
  .showcase-card,
  .enquiry-info,
  .enquiry-form-wrapper,
  .contact-card,
  .why-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .enquiry-info h2 {
    font-size: 1.75rem;
  }

  .about-experience-badge {
    padding: 14px 16px;
  }

  .about-experience-badge .number {
    font-size: 1.1rem;
  }

  .gallery-photo-card {
    flex: 0 0 84vw;
    max-width: 84vw;
    border-radius: 14px;
  }

  .gallery-carousel-track {
    gap: 16px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    background: rgba(15, 23, 42, 0.88);
  }

  .gallery-modal-image-wrapper {
    max-height: 68vh;
    border-radius: 12px;
  }

  .gallery-modal-img {
    max-height: 68vh;
  }

  .gallery-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 52%;
  }

  .gallery-modal-nav.prev {
    left: 8px;
  }

  .gallery-modal-nav.next {
    right: 8px;
  }
}

/* 6. Compact Mobile Screens (max-width: 420px) */
@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }

  .navbar-inner {
    gap: 8px;
  }

  .brand-logo-img {
    height: 34px;
  }

  .brand-logo-wrapper {
    padding-left: 33px;
  }

  .mini-worker-electrician {
    left: 0;
    bottom: 2px;
    top: auto;
    right: auto;
    width: 35px;
    height: 35px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .service-thumb {
    height: 180px;
  }

  .showcase-card {
    padding: 18px 16px;
  }

  .gallery-photo-card {
    flex: 0 0 87vw;
    max-width: 87vw;
    aspect-ratio: 16 / 10;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .gallery-modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    top: 8px;
    right: 8px;
  }

  .gallery-modal-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .gallery-modal-nav.prev {
    left: 6px;
  }

  .gallery-modal-nav.next {
    right: 6px;
  }
}

/* 7. Extra Small Devices (max-width: 360px - e.g. Folded Phones) */
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .strip-item {
    font-size: 0.78rem;
  }

  .gallery-photo-card {
    flex: 0 0 88vw;
    max-width: 88vw;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}



