/* ============================================
   Payl Dent — Premium Dental Clinic
   Color palette derived from logo
   ============================================ */

:root {
  --primary: #1a1a4b;
  --primary-dark: #12123a;
  --primary-light: #2d2d7a;
  --primary-soft: #3d3d8f;
  --accent: #5b7cfa;
  --accent-light: #8ba4ff;
  --white: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-muted: #e8edf3;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --gradient-primary: linear-gradient(135deg, #1a1a4b 0%, #2d2d7a 50%, #1a3a6b 100%);
  --gradient-hero: linear-gradient(160deg, #0f0f2e 0%, #1a1a4b 40%, #1e3a6e 100%);
  --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 12px rgba(26, 26, 75, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 26, 75, 0.1);
  --shadow-lg: 0 20px 60px rgba(26, 26, 75, 0.15);
  --shadow-glow: 0 0 40px rgba(91, 124, 250, 0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Noto Sans Armenian', 'Montserrat', sans-serif;
  --font-display: 'Montserrat', 'Noto Sans Armenian', sans-serif;
  /* Fluid typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.35vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-3xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  --text-hero: clamp(1.75rem, 1.2rem + 4vw, 3.75rem);
  /* Fluid spacing */
  --section-py: clamp(3.5rem, 2.5rem + 4vw, 6.25rem);
  --container-px: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  font-size: var(--text-base);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  object-fit: cover;
}

/* Prevent horizontal overflow globally */
.container,
.container-fluid {
  max-width: 100%;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.row {
  --bs-gutter-x: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
}

h1, h2, h3, h4, h5, h6, p, li, a, span {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

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

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-logo {
  width: 120px;
  margin: 0 auto 2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-shine), var(--accent);
  border-radius: 10px;
  animation: loadBar 1.8s ease-in-out forwards;
}

.loader-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* ---- Navbar ---- */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.navbar.scrolled .nav-link {
  color: var(--text) !important;
}

.navbar.scrolled .navbar-brand img {
  filter: none;
}

.nav-logo {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.navbar .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.navbar.scrolled .nav-link::after {
  background: var(--primary);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.6rem;
}

.navbar.scrolled .navbar-toggler {
  border-color: var(--bg-muted);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 75, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-nav {
  padding: 0.5rem 1.4rem !important;
  font-size: 0.85rem !important;
  border-radius: 50px !important;
}

/* Mobile nav menu */
.nav-menu {
  transition: var(--transition);
}

.nav-menu .nav-item {
  width: 100%;
}

.nav-menu .nav-link {
  padding: 0.75rem 0.5rem !important;
  border-bottom: 1px solid var(--bg-muted);
}

.nav-menu .nav-link::after {
  display: none;
}

.nav-menu .nav-cta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bg-muted);
}

.nav-menu .nav-cta .btn-nav {
  display: block;
  text-align: center;
  padding: 0.75rem 1.5rem !important;
}

/* ---- Buttons ---- */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-shine);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: var(--white);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1fb855;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ---- Sections ---- */
.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.section-text-center {
  max-width: 36rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.section-text {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

.hero-shine {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 150vmax;
  max-width: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 40%, rgba(91,124,250,0.12) 0%, transparent 50%);
  animation: rotateShine 20s linear infinite;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .hero-shine {
    animation: none;
    opacity: 0.6;
  }
}

@keyframes rotateShine {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 4rem;
  width: 100%;
}

.hero-row {
  min-height: calc(100vh - var(--nav-height) - 2rem);
  min-height: calc(100dvh - var(--nav-height) - 2rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem clamp(0.75rem, 2vw, 1.2rem);
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  text-align: center;
  flex-wrap: wrap;
}

.hero-badge i {
  color: var(--accent-light);
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-base);
  max-width: 32.5rem;
  margin-bottom: 1.75rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 22rem;
}

.hero-cta .btn {
  width: 100%;
  text-align: center;
  white-space: normal;
  padding: 0.85rem 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  min-width: 0;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-item span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,75,0.4), transparent);
}

.hero-card {
  position: absolute;
  top: -20px;
  left: -30px;
  padding: 1.25rem 1.5rem;
  z-index: 3;
  max-width: 200px;
  animation: floatCard 4s ease-in-out infinite;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.hero-card h3 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin: 0;
}

.hero-float {
  position: absolute;
  background: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 3;
}

.hero-float i {
  color: var(--accent);
}

.hero-float-1 {
  bottom: 40px;
  right: -20px;
  animation: floatCard 5s ease-in-out infinite 0.5s;
}

.hero-float-2 {
  bottom: 100px;
  left: -40px;
  animation: floatCard 4.5s ease-in-out infinite 1s;
}

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

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 4px;
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---- About ---- */
.about {
  background: var(--white);
}

.about-image-grid {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding-bottom: 1rem;
}

.about-img-main {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.about-img-secondary {
  position: absolute;
  bottom: -1.5rem;
  right: 0;
  width: min(55%, 11rem);
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about-experience {
  position: absolute;
  top: 1rem;
  right: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  background: var(--white) !important;
  border: none !important;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.exp-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.about-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 500;
}

.about-features i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ---- Services ---- */
.services {
  background: var(--bg-soft);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
  height: 100%;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91,124,250,0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(26,26,75,0.08), rgba(91,124,250,0.12));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  color: var(--accent);
  gap: 0.7rem;
}

/* ---- Advantages ---- */
.advantages {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.advantages::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.advantages .section-label {
  color: var(--accent-light);
}

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

.advantage-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  height: 100%;
  min-width: 0;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.advantage-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.25);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
  background: var(--white);
  color: var(--primary);
  transform: rotate(-5deg) scale(1.05);
}

.advantage-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.advantage-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Gallery ---- */
.gallery {
  background: var(--bg-soft);
}

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 2px solid transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-primary);
}

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

.gallery-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 100%;
}

.gallery-item {
  min-width: 0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,75,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
}

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

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 1.5rem;
}

.gallery-overlay span {
  font-weight: 600;
  font-size: 0.9rem;
}

.gallery-item.hidden {
  display: none;
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--white);
}

.testimonials-swiper {
  padding-bottom: 50px !important;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.testimonials-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.testimonial-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  height: 100%;
  border: 1px solid var(--bg-muted);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(91,124,250,0.2);
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.swiper-pagination-bullet {
  background: var(--primary) !important;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 6px !important;
}

/* ---- Contact ---- */
.contact {
  background: var(--bg-soft);
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.contact-item a {
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form {
  padding: 2.5rem;
  background: var(--white) !important;
  border: 1px solid var(--bg-muted) !important;
  box-shadow: var(--shadow-md);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91,124,250,0.12);
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.map-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--bg-muted);
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

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

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--accent-light);
  margin-top: 4px;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ---- Form Success ---- */
.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success i {
  font-size: 3rem;
  color: #25d366;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   MODERN ENHANCEMENTS — animations & polish
   ============================================ */

/* Animated section-label pill with dot */
.section-label {
  position: relative;
  padding-left: 1.4rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(91,124,250,0.5);
  animation: labelPing 2.4s ease-out infinite;
}

.text-center .section-label {
  padding-left: 0;
}

.text-center .section-label::before {
  display: none;
}

@keyframes labelPing {
  0% { box-shadow: 0 0 0 0 rgba(91,124,250,0.45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(91,124,250,0); }
}

/* Animated gradient title accent */
.section-title .text-gradient,
.hero-title .text-gradient {
  background: linear-gradient(120deg, var(--accent-light), var(--white), var(--accent-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 5s linear infinite;
}

@keyframes shimmerText {
  to { background-position: 200% center; }
}

/* Section titles: animated underline */
.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: 4px;
  background: var(--gradient-primary);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.advantages .section-title::after {
  background: linear-gradient(90deg, var(--accent-light), var(--white));
}

.section.in-view .section-title::after {
  width: 64px;
}

.text-center.in-view .section-title::after {
  width: 80px;
}

/* Interactive 3D tilt cards */
.service-card,
.advantage-card,
.testimonial-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,124,250,0.18), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.service-card:hover .tilt-glow {
  opacity: 1;
}

.service-card > *:not(.tilt-glow) {
  position: relative;
  z-index: 1;
}

/* Animated service icon float on hover */
.service-card:hover .service-icon {
  animation: iconBob 1.2s ease-in-out infinite;
}

@keyframes iconBob {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50% { transform: scale(1.05) translateY(-5px); }
}

/* Magnetic buttons already have transitions; add press feedback */
.btn-primary:active,
.btn-outline-light:active {
  transform: translateY(1px) scale(0.98);
}

/* Reveal-on-scroll for elements without AOS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Hero badge subtle border shimmer */
.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-shine);
  transform: translateX(-120%);
  animation: badgeSweep 4s ease-in-out infinite;
}

@keyframes badgeSweep {
  0%, 60% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Floating gradient blobs in section backgrounds */
.services::before,
.gallery::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,124,250,0.10), transparent 70%);
  animation: blobFloat 14s ease-in-out infinite;
  pointer-events: none;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,45,122,0.08), transparent 70%);
  animation: blobFloat 16s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.12); }
}

/* Gallery card zoom cursor hint */
.gallery-card {
  cursor: zoom-in;
}

/* Nav link glow on active (scrolled) */
.navbar.scrolled .nav-link.active {
  color: var(--accent) !important;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 100000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(91,124,250,0.6);
}

/* Floating WhatsApp bubble */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 998;
  transition: var(--transition);
  animation: waBob 3s ease-in-out infinite;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: waPing 2.5s ease-out infinite;
}

.whatsapp-float:hover {
  color: var(--white);
  transform: scale(1.08);
}

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

@keyframes waPing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================
   RESPONSIVE — Mobile-first breakpoints
   320 | 375 | 425 | 768 | 1024 | 1440+
   ============================================ */

/* ---- Large screens (1440px+) ---- */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero-cta {
    flex-direction: row;
    max-width: none;
    align-items: center;
  }

  .hero-cta .btn {
    width: auto;
  }

  .hero-stats {
    margin: 0;
    max-width: none;
  }
}

/* ---- Desktop (1024px+) ---- */
@media (min-width: 1024px) {
  :root {
    --nav-height: 80px;
  }

  .hero-content {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
    text-align: left;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-badge {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    width: auto;
    align-items: center;
  }

  .hero-cta .btn {
    width: auto;
    flex: 0 1 auto;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    max-width: none;
    grid-template-columns: unset;
  }

  .stat-item {
    text-align: left;
  }

  .stat-divider {
    display: block;
  }

  .about-img-main {
    width: 85%;
  }

  .about-img-secondary {
    width: 55%;
    bottom: -30px;
  }

  .about-experience {
    top: 30px;
    right: 10px;
    left: auto;
    transform: none;
  }

  .nav-menu .nav-item {
    width: auto;
  }

  .nav-menu .nav-link {
    border-bottom: none;
    padding: 0.5rem 1rem !important;
  }

  .nav-menu .nav-cta {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* ---- Tablet landscape (768px - 1023px) ---- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta .btn {
    width: auto;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 10rem;
  }

  .hero-stats {
    max-width: 28rem;
  }

  .testimonial-card {
    padding: 2rem;
  }

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

/* ---- Tablet & below (max 991px) ---- */
@media (max-width: 991.98px) {
  .navbar-collapse.nav-menu,
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 1.25rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-height) - 1rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar .nav-link {
    color: var(--text) !important;
  }

  .navbar .nav-link::after {
    background: var(--primary);
  }

  .navbar:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
  }

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-scroll {
    display: none;
  }

  .contact-info {
    margin-bottom: 0.5rem;
  }

  .footer-desc {
    max-width: 100%;
  }
}

/* ---- Mobile large (425px - 767px) ---- */
@media (max-width: 767.98px) {
  :root {
    --nav-height: 64px;
  }

  .nav-logo {
    height: 40px;
  }

  .hero-row {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-content {
    padding-top: calc(var(--nav-height) + 1rem);
    padding-bottom: 2.5rem;
  }

  .about-image-grid {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .about-img-secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 75%;
    margin: -2rem auto 0;
    display: block;
  }

  .about-experience {
    top: auto;
    bottom: 0;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .advantage-card {
    padding: 1.5rem;
  }

  .testimonials-swiper {
    overflow: hidden;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: var(--text-sm);
  }

  .gallery-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }

  .contact-social {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .contact-social .btn-whatsapp {
    justify-content: center;
    width: 100%;
  }

  .social-icons {
    justify-content: center;
  }

  .footer {
    padding-top: 3.5rem;
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
    text-align: left;
  }

  /* Reduce motion on mobile for performance */
  .service-card:hover {
    transform: none;
  }

  .advantage-card:hover {
    transform: none;
  }
}

/* ---- Mobile medium (375px - 424px) ---- */
@media (max-width: 424.98px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 12rem;
  }

  .stat-divider {
    display: none;
  }

  .hero-badge {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .btn-primary,
  .btn-outline-light {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .section-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }
}

/* ---- Mobile small (320px - 374px) ---- */
@media (max-width: 374.98px) {
  :root {
    --container-px: 0.875rem;
  }

  .hero-title br {
    display: none;
  }

  .hero-title {
    line-height: 1.2;
  }

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

  .gallery-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .lightbox {
    padding: 1rem;
  }

  .loader-logo {
    width: 90px;
  }

  .loader-bar {
    width: 160px;
  }
}

/* ---- Touch devices: larger tap targets ---- */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .filter-btn,
  .service-link,
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu .nav-link {
    min-height: 48px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-shine,
  .particle,
  .hero-badge i {
    animation: none !important;
  }
}
