/* ==========================================================================
   WikiCare Maid Agency - Design System & Global Styles
   Strict 60-20-20 Color Rule:
   - 60% Base/Background: #ffffff
   - 20% Primary Accent: #96D8E6 (Light Blue)
   - 20% Secondary Accent: #EFA1C4 (Soft Pink)
   ========================================================================== */

:root {
  --color-base: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-card: #ffffff;

  --color-accent-blue: #96D8E6;
  --color-blue-dark: #3b82f6;
  --color-blue-deep: #1e3a8a;
  
  --color-accent-pink: #EFA1C4;
  --color-pink-dark: #ec4899;
  --color-pink-soft: #fbcfe8;

  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;

  --border-light: rgba(150, 216, 230, 0.35);
  --border-pink: rgba(239, 161, 196, 0.4);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-accent-blue: 0 10px 25px rgba(150, 216, 230, 0.4);
  --shadow-accent-pink: 0 10px 25px rgba(239, 161, 196, 0.4);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  background-color: var(--color-base);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
}

.gradient-text-blue {
  background: linear-gradient(135deg, #0284c7 0%, var(--color-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-pink {
  background: linear-gradient(135deg, #db2777 0%, var(--color-pink-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-brand {
  background: linear-gradient(135deg, #0284c7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary-blue {
  background-color: var(--color-accent-blue);
  color: #0369a1;
  box-shadow: var(--shadow-accent-blue);
}

.btn-primary-blue:hover {
  background-color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(125, 211, 252, 0.6);
}

.btn-primary-pink {
  background-color: var(--color-accent-pink);
  color: #9d174d;
  box-shadow: var(--shadow-accent-pink);
}

.btn-primary-pink:hover {
  background-color: #f472b6;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(244, 114, 182, 0.6);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-accent-blue);
  color: #0284c7;
}

.btn-outline:hover {
  background-color: var(--color-accent-blue);
  color: #0369a1;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background-color: rgba(150, 216, 230, 0.25);
  color: #0284c7;
  border: 1px solid var(--border-light);
}

.badge-pink {
  background-color: rgba(239, 161, 196, 0.25);
  color: #be185d;
  border: 1px solid var(--border-pink);
}

/* Header & Nav */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(150, 216, 230, 0.25);
  transition: all var(--transition-fast);
}

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

.logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #0284c7;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-pink));
  transition: width var(--transition-fast);
}

/* Responsive Mobile Navigation Drawer */
.mobile-nav-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 1.3rem;
  color: #0f172a;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .desktop-nav-items {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
  }

  .header-inner {
    height: 70px;
  }

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

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
}

.mobile-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 320px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.5rem;
  overflow-y: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

/* Full-Width Background & Centered Hero Carousel */
.hero-slider-container {
  position: relative;
  width: 100%;
  min-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
  background-color: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease-out;
  transform: scale(1.05);
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 1;
}

.hero-slide-text.centered {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-slide-text.centered {
  transform: translateY(0);
  opacity: 1;
}

.hero-title-centered {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-desc-centered {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 700px;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-btn-group.centered {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid #ffffff;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: #0f172a;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  width: 32px;
  border-radius: 6px;
  background-color: var(--color-accent-pink);
}

/* Mobile Adjustments for Centered Fullscreen Hero */
@media (max-width: 992px) {
  .hero-slider-container {
    min-height: 480px;
  }
  .hero-title-centered {
    font-size: 2.5rem;
  }
  .hero-desc-centered {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .hero-slider-container {
    min-height: 440px;
  }
  .hero-slide {
    padding: 2.5rem 1.2rem;
  }
  .hero-title-centered {
    font-size: 1.85rem;
    margin-bottom: 0.8rem;
  }
  .hero-desc-centered {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-btn-group.centered {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-group.centered .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* About Us Responsive Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-wrap img {
    height: 340px !important;
  }
}

@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Our Licenses Responsive Grid */
.licenses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .licenses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .licenses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Section 3: Why Choose Us - 3D Card Flip */
.cards-grid-3d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .cards-grid-3d {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-grid-3d {
    grid-template-columns: 1fr;
  }
}

.card-3d-wrap {
  perspective: 1000px;
  height: 240px;
}

.card-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-3d-wrap:hover .card-3d-inner,
.card-3d-wrap.flipped .card-3d-inner {
  transform: rotateY(180deg);
}

.card-3d-front, .card-3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(150, 216, 230, 0.3);
}

.card-3d-front {
  background: linear-gradient(135deg, #ffffff 0%, rgba(150, 216, 230, 0.15) 100%);
  color: var(--color-text-main);
}

.card-3d-back {
  background: linear-gradient(135deg, rgba(239, 161, 196, 0.2) 0%, #ffffff 100%);
  color: var(--color-text-main);
  transform: rotateY(180deg);
  border-color: var(--color-accent-pink);
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-accent-blue);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: #ffffff;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(150, 216, 230, 0.3);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-pink);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(239, 161, 196, 0.2);
  color: #be185d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Flag Visuals Section */
.biodata-intro-box {
  background: linear-gradient(135deg, rgba(150, 216, 230, 0.15) 0%, rgba(239, 161, 196, 0.15) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  border: 2px solid rgba(150, 216, 230, 0.4);
}

.flags-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.flag-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.flag-badge:hover {
  transform: scale(1.05);
}

.flag-img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Testimonials Infinite Slow Auto-Scrolling Marquee */
.testimonials-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  padding: 1rem 0 2.5rem 0;
}

.testimonials-marquee-content {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marqueeScrollSlow 35s linear infinite;
  will-change: transform;
}

.testimonials-marquee-wrapper:hover .testimonials-marquee-content {
  animation-play-state: paused;
}

@keyframes marqueeScrollSlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(150, 216, 230, 0.25);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent-pink);
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 2.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid rgba(150, 216, 230, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  padding: 1.4rem 1.8rem;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  user-select: none;
}

.faq-question:hover {
  background-color: rgba(150, 216, 230, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.8rem;
  color: var(--color-text-muted);
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 1.8rem 1.4rem 1.8rem;
}

/* Floating Chatbot Bubble */
.chatbot-bubble-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-pink), #ec4899);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(239, 161, 196, 0.6);
  cursor: pointer;
  z-index: 999;
  border: none;
  animation: floatPulse 3s infinite;
}

@keyframes floatPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 161, 196, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(239, 161, 196, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 161, 196, 0); }
}

/* ==========================================================================
   Scroll-Triggered Animation System
   Elements start hidden; JS adds .visible via IntersectionObserver.
   ========================================================================== */

/* Base hidden state */
[data-animate] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-duration: 0.75s;
}

/* Visible state (added by IntersectionObserver) */
[data-animate].visible {
  opacity: 1;
  transform: none !important;
}

/* Animation variant: fade up */
[data-animate="fade-up"] {
  transform: translateY(40px);
}

/* Animation variant: fade left (slides in from left) */
[data-animate="fade-left"] {
  transform: translateX(-50px);
}

/* Animation variant: fade right (slides in from right) */
[data-animate="fade-right"] {
  transform: translateX(50px);
}

/* Animation variant: zoom in */
[data-animate="zoom-in"] {
  transform: scale(0.88);
}

/* Animation variant: flip up */
[data-animate="flip-up"] {
  transform: perspective(800px) rotateX(20deg) translateY(30px);
}

/* Stagger delays for child items — apply to the child itself */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="450"] { transition-delay: 0.45s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* Stagger delays remain active during the entrance animation.
   Because .visible is only added once and never removed, the delay
   fires exactly once on entrance — no override needed. */

/* Stat number count-up sparkle */
@keyframes countUpPop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

.stat-number-animate {
  display: inline-block;
  opacity: 0;
  transform: scale(0.6);
}

.stat-number-animate.visible {
  animation: countUpPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Service card hover lift pulse */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Testimonial slide-in from right */
@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Section heading underline wipe */
@keyframes underlineWipe {
  from { width: 0; }
  to   { width: 60px; }
}

.section-heading-animated {
  position: relative;
  display: inline-block;
}

.section-heading-animated::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  height: 4px;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-pink));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.section-heading-animated.visible::after {
  width: 60px;
}

/* Flag badge bounce-in */
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.1); }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

[data-animate="bounce-in"] {
  transform: scale(0.5);
}

[data-animate="bounce-in"].visible {
  animation: bounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 1;
  transform: none;
}

/* Floating badge sparkle (About section overlay badge) */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.float-badge-anim {
  animation: floatBadge 3s ease-in-out infinite;
}

/* ========================================================================== */

/* Footer */
footer {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 4rem 0 2rem 0;
}

footer a {
  color: var(--color-accent-blue);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.35rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background-color: #EFA1C4;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .hero-slide-image-wrapper {
    display: none;
  }
}

/* Agent Contact Cards Section */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.agent-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(150, 216, 230, 0.4);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-pink));
}

.agent-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(150, 216, 230, 0.4);
  border-color: var(--color-accent-blue);
}

.agent-avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, rgba(150, 216, 230, 0.6), rgba(239, 161, 196, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.agent-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f8fafc;
  border: 3px solid #ffffff;
}

.agent-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background-color: rgba(150, 216, 230, 0.2);
  color: #0284c7;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.agent-title {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.agent-contact-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agent-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.agent-whatsapp-btn {
  background-color: #25d366;
  color: #ffffff;
}

.agent-whatsapp-btn:hover {
  background-color: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.agent-phone-btn {
  background-color: rgba(150, 216, 230, 0.2);
  color: #0284c7;
  border: 1px solid rgba(150, 216, 230, 0.5);
}

.agent-phone-btn:hover {
  background-color: rgba(150, 216, 230, 0.4);
  color: #0369a1;
}

.agent-email-btn {
  background-color: rgba(239, 161, 196, 0.2);
  color: #be185d;
  border: 1px solid rgba(239, 161, 196, 0.5);
}

.agent-email-btn:hover {
  background-color: rgba(239, 161, 196, 0.4);
  color: #9d174d;
}

/* Container for the side-by-side layout */
.candidates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

/* Individual Card Styling */
.candidate-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff; /* fallback */
}

/* Hover effect to make it feel clickable */
.candidate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* The Portrait Image */
.candidate-img {
  width: 100%;
  height: 450px; /* Forces a consistent portrait shape */
  object-fit: cover; /* Ensures images don't stretch */
  display: block;
  transition: transform 0.5s ease;
}

/* Slight zoom effect on hover for the image */
.candidate-card:hover .candidate-img {
  transform: scale(1.05);
}

/* The dark gradient overlay at the bottom of the card */
.candidate-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
}

.candidate-flag {
  font-size: 2.2rem;
  line-height: 1;
}

.candidate-country {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .candidates-grid {
    grid-template-columns: 1fr; /* Stacks them vertically on mobile */
    max-width: 400px; /* Keeps the cards from getting too wide on tablets */
  }
  
  .candidate-img {
    height: 380px; /* Slightly shorter on mobile screens */
  }
}

/* ==========================================================================
   Dedicated Professional Animations for "About WikiCare" Section (#about)
   ========================================================================== */

/* Animated backdrop aura frame */
.about-backdrop-rect {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-pink));
  border-radius: 28px;
  z-index: 0;
  opacity: 0.35;
  filter: blur(8px);
  animation: aboutAuraFloat 6s ease-in-out infinite alternate;
}

@keyframes aboutAuraFloat {
  0% {
    transform: translateY(0) scale(0.99) rotate(0deg);
    opacity: 0.3;
    filter: blur(6px);
  }
  100% {
    transform: translateY(-8px) scale(1.03) rotate(1.5deg);
    opacity: 0.5;
    filter: blur(14px);
  }
}

/* Image container tilt & zoom on hover */
.about-image-card {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.about-image-wrap:hover .about-image-card {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 25px 50px rgba(150, 216, 230, 0.35);
}

/* Floating Glassmorphism Verified Badge */
.about-float-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.4rem;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: badgeFloatWave 4s ease-in-out infinite alternate;
}

@keyframes badgeFloatWave {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-9px);
  }
}

/* Stat card interactive pop & hover lift */
.about-stat-card {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.about-stat-card.blue {
  background-color: rgba(150, 216, 230, 0.15);
  border: 1px solid rgba(150, 216, 230, 0.45);
}

.about-stat-card.pink {
  background-color: rgba(239, 161, 196, 0.15);
  border: 1px solid rgba(239, 161, 196, 0.45);
}

.about-stat-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.about-stat-card.blue:hover {
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.2);
  border-color: #0284c7;
}

.about-stat-card.pink:hover {
  box-shadow: 0 14px 30px rgba(190, 24, 93, 0.2);
  border-color: #be185d;
}

/* Stat numbers count glow effect */
.about-stat-number {
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  transition: transform 0.3s ease;
}

.about-stat-card:hover .about-stat-number {
  transform: scale(1.06);
}

/* ==========================================================================
   License Lightbox Modal Dialog Styles
   ========================================================================== */
.license-card-clickable {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.license-card-clickable:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(150, 216, 230, 0.35) !important;
  border-color: var(--color-accent-blue) !important;
}

.license-card-clickable:hover .license-view-badge {
  background-color: var(--color-accent-blue) !important;
  color: #0369a1 !important;
}

.license-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInModal 0.25s ease-out;
}

.license-modal-dialog {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(150, 216, 230, 0.6);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.license-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.license-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.license-modal-close-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.license-modal-body {
  padding: 1.5rem;
}

.license-modal-img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   WYSIWYG Rich Text Editor (Admin Portal — Working Experience)
   ========================================================================== */

/* Placeholder when editor is empty */
[contenteditable][data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-style: italic;
  pointer-events: none;
}

/* Focus ring on editor */
[contenteditable]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(150, 216, 230, 0.45);
  border-color: #96D8E6 !important;
}

/* Inner content formatting rendered inside the editor */
[contenteditable] h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0284c7;
  margin: 0.6rem 0 0.2rem 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.15rem;
}
[contenteditable] p {
  margin: 0.3rem 0;
  line-height: 1.7;
}
[contenteditable] ul,
[contenteditable] ol {
  margin: 0.3rem 0 0.3rem 1.4rem;
  padding: 0;
}
[contenteditable] li {
  margin-bottom: 0.2rem;
  line-height: 1.6;
}
[contenteditable] strong { font-weight: 700; }
[contenteditable] em     { font-style: italic; }
[contenteditable] u      { text-decoration: underline; }

/* ==========================================================================
   Responsive Maid Cards, Filter Bar & Detail Modal
   ========================================================================== */

.maid-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.maid-card-container {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(150, 216, 230, 0.4);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.maid-card-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.maid-card-image-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.maid-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s ease;
}

.maid-card-container:hover .maid-card-image {
  transform: scale(1.03);
}

.maid-card-body {
  padding: 1.25rem;
}

.maid-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background-color: #f8fafc;
  padding: 0.6rem 0.4rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1rem;
}

.maid-card-actions {
  padding: 0 1.25rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* Detail Modal Responsive Grid */
.maid-modal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.maid-modal-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.maid-modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 16px;
  margin-bottom: 1rem;
}

/* Tablet & Mobile Media Queries (<= 768px) */
@media (max-width: 768px) {
  .maid-directory-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .maid-card-image-wrap {
    height: 310px; /* Enhanced portrait view for mobile phones */
  }

  .maid-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
  }

  .maid-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
  }

  .maid-filter-buttons button {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.82rem !important;
  }

  .maid-filter-input {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .maid-modal-card {
    padding: 1.25rem !important;
    border-radius: 18px !important;
  }

  .maid-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .maid-modal-grid > div:first-child {
    text-align: center;
  }

  .maid-modal-img {
    height: 270px !important;
    max-width: 250px;
    margin: 0 auto 1rem auto;
    display: block;
  }

  .maid-modal-specs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
}

/* Small Mobile Screens (<= 420px) */
@media (max-width: 420px) {
  .maid-card-image-wrap {
    height: 270px;
  }

  .maid-card-body {
    padding: 1rem;
  }

  .maid-card-actions {
    padding: 0 1rem 1rem 1rem;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .maid-card-stats {
    font-size: 0.75rem;
  }
}

