/* ==========================================================================
   Modern, Premium Video Call Website Styles
   HTML5, CSS3 & Vanilla JavaScript
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Light Mode Palette (Soft Pink & White Theme) */
  --bg-primary: #fff0f5;
  --bg-gradient: radial-gradient(120% 120% at 50% 10%, #ffe4ec 0%, #fff0f5 40%, #fdf6f9 70%, #ffffff 100%);
  --orb-1: rgba(255, 182, 193, 0.45);
  --orb-2: rgba(255, 209, 220, 0.4);
  --orb-3: rgba(252, 228, 236, 0.5);

  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 25px 50px -12px rgba(230, 80, 130, 0.16),
                 0 12px 24px -8px rgba(0, 0, 0, 0.05),
                 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  
  --text-main: #1f1f2e;
  --text-muted: #6b6b80;
  --text-light: #8e8ea0;
  
  --header-bg: rgba(255, 255, 255, 0.65);
  --header-border: rgba(244, 114, 182, 0.18);
  --footer-border: rgba(244, 114, 182, 0.15);
  
  /* WhatsApp Green Palette */
  --wa-green: #25D366;
  --wa-dark-green: #128C7E;
  --wa-teal: #075E54;
  --wa-gradient: linear-gradient(135deg, #25D366 0%, #1fb857 50%, #128C7E 100%);
  --wa-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.45);
  --wa-shadow-hover: 0 14px 32px -2px rgba(37, 211, 102, 0.6);
  --wa-pulse-color: rgba(37, 211, 102, 0.6);

  /* Live Badge */
  --live-badge-bg: rgba(18, 20, 29, 0.72);
  --live-badge-text: #ffffff;
  --live-dot-color: #25D366;

  /* Slider Controls */
  --nav-arrow-bg: rgba(255, 255, 255, 0.85);
  --nav-arrow-color: #1f1f2e;
  --dot-bg: rgba(255, 255, 255, 0.45);
  --dot-active-bg: #ffffff;

  /* Theme Toggle */
  --toggle-track-bg: #f0e2ea;
  --toggle-thumb-bg: #ffffff;
  --toggle-icon-color: #f59e0b;
  --toggle-border: rgba(225, 140, 175, 0.25);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 28px;
  --radius-media: 20px;
  --radius-btn: 18px;

  /* Transitions */
  --transition-theme: background-color 0.4s ease, background 0.4s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.4s ease;
}

/* --------------------------------------------------------------------------
   2. Dark Mode Palette
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-primary: #0d0c13;
  --bg-gradient: radial-gradient(120% 120% at 50% 10%, #201322 0%, #13121b 45%, #0b0a10 75%, #07060a 100%);
  --orb-1: rgba(180, 50, 110, 0.22);
  --orb-2: rgba(110, 35, 130, 0.18);
  --orb-3: rgba(45, 25, 60, 0.35);

  --card-bg: rgba(22, 20, 30, 0.82);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 28px 65px -12px rgba(0, 0, 0, 0.75),
                 0 0 35px rgba(220, 60, 120, 0.07),
                 0 0 0 1px rgba(255, 255, 255, 0.06) inset;

  --text-main: #f5f5f9;
  --text-muted: #a3a3b5;
  --text-light: #6d6d82;

  --header-bg: rgba(13, 12, 19, 0.75);
  --header-border: rgba(255, 255, 255, 0.06);
  --footer-border: rgba(255, 255, 255, 0.06);

  --nav-arrow-bg: rgba(20, 19, 27, 0.75);
  --nav-arrow-color: #ffffff;
  --dot-bg: rgba(255, 255, 255, 0.3);
  --dot-active-bg: #25D366;

  --toggle-track-bg: #222030;
  --toggle-thumb-bg: #111017;
  --toggle-icon-color: #cbd5e1;
  --toggle-border: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   3. Global Resets & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: var(--transition-theme);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   4. Ambient Glow Background Animations
   -------------------------------------------------------------------------- */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  will-change: transform;
  transition: background-color 0.5s ease;
}

.orb-top-left {
  top: -10%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  background: var(--orb-1);
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.orb-bottom-right {
  bottom: -15%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: var(--orb-2);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.orb-center {
  top: 40%;
  left: 35%;
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--orb-3);
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(30px, 80px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.12); }
  100% { transform: translate(-20px, -70px) scale(0.96); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(-40px, 30px) scale(1.1); }
}

/* --------------------------------------------------------------------------
   5. Page Layout Container
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   6. Clean & Minimal Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: var(--transition-theme);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--wa-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-text span {
  color: var(--wa-green);
}

/* Dark Mode / Light Mode Toggle */
.theme-toggle-btn {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 30px;
  background: var(--toggle-track-bg);
  border: 1px solid var(--toggle-border);
  padding: 3px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-theme);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
  border-color: rgba(37, 211, 102, 0.4);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--wa-green);
  outline-offset: 2px;
}

.toggle-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.toggle-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--toggle-icon-color);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.sun-icon svg {
  width: 16px;
  height: 16px;
}

.moon-icon svg {
  width: 15px;
  height: 15px;
}

/* Toggle Pill Thumb */
.theme-toggle-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--toggle-thumb-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s ease;
  z-index: 2;
}

[data-theme="dark"] .theme-toggle-btn::after {
  transform: translateX(30px);
}

/* --------------------------------------------------------------------------
   7. Hero Section & Main Centered Card
   -------------------------------------------------------------------------- */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 48px;
}

.hero-card-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  perspective: 1000px;
}

/* Floating Card Animation */
.hero-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--card-shadow);
  animation: heroCardFloat 6.5s ease-in-out infinite;
  transition: var(--transition-theme);
  will-change: transform;
}

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

/* Pause card floating when interacting */
.hero-card:hover {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   8. Image Slider & Media Frame
   -------------------------------------------------------------------------- */
.card-media-wrapper {
  position: relative;
  width: 100%;
  /* Portrait aspect ratio that preserves full face and composition */
  aspect-ratio: 9 / 14.5;
  border-radius: var(--radius-media);
  overflow: hidden;
  background-color: #1e1d27;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12);
  user-select: none;
  -webkit-user-select: none;
}

/* Live Status Badge */
.live-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--live-badge-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--live-badge-text);
  padding: 6px 13px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--live-dot-color);
  box-shadow: 0 0 10px var(--live-dot-color);
  animation: liveDotPulse 2s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(37, 211, 102, 0);
  }
}

/* Slides Viewport & Image Stacking */
.slides-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-image {
  width: 100%;
  height: 100%;
  /* Maintain original aspect ratio and focus on upper body/face without cutting heads */
  object-fit: cover;
  object-position: center 15%;
  display: block;
  pointer-events: none;
}

/* Subtle Gradient overlay for contrast and depth */
.card-media-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Slider Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nav-arrow-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--nav-arrow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-arrow svg {
  width: 20px;
  height: 20px;
}

.nav-arrow-left {
  left: 12px;
}

.nav-arrow-right {
  right: 12px;
}

/* Show arrows on hover or touch devices */
.card-media-wrapper:hover .nav-arrow {
  opacity: 0.88;
}

.nav-arrow:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.08);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

/* Slider Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--dot-bg);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  width: 24px;
  background: var(--dot-active-bg);
}

/* --------------------------------------------------------------------------
   9. Action Area & WhatsApp CTA Button
   -------------------------------------------------------------------------- */
.card-action-wrapper {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* WhatsApp "Video Call Me" Button */
.btn-video-call {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 16px 24px;
  background: var(--wa-gradient);
  border-radius: var(--radius-btn);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--wa-shadow);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              filter 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Glowing Pulsing Ring Around the Button */
.btn-pulse-wave {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-btn);
  box-shadow: 0 0 0 0 var(--wa-pulse-color);
  animation: waPulseRing 2.6s infinite cubic-bezier(0.45, 0, 0.55, 1);
  pointer-events: none;
}

@keyframes waPulseRing {
  0% {
    box-shadow: 0 0 0 0 var(--wa-pulse-color);
    opacity: 0.9;
  }
  60% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    opacity: 0;
  }
}

/* Hover & Active States */
.btn-video-call:hover {
  transform: translateY(-3px);
  box-shadow: var(--wa-shadow-hover);
  filter: brightness(1.04);
}

.btn-video-call:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 6px 18px -2px rgba(37, 211, 102, 0.5);
  filter: brightness(0.98);
}

/* Shimmer Light Sweep on Hover */
.btn-video-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.btn-video-call:hover::before {
  left: 150%;
}

/* Button Icon Styling */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.btn-label {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.btn-arrow svg {
  width: 19px;
  height: 19px;
}

.btn-video-call:hover .btn-arrow {
  transform: scale(1.1);
}

/* Trust / Privacy Micro-Badge */
.trust-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.trust-icon {
  width: 14px;
  height: 14px;
  stroke: var(--wa-green);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Clean & Minimal Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--footer-border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 24px;
  transition: var(--transition-theme);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   11. Responsive Media Queries
   -------------------------------------------------------------------------- */
/* Large Screens / Desktops */
@media (min-width: 1024px) {
  .hero-card-container {
    max-width: 430px;
  }
}

/* Tablets (iPad, Android Tablets) */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 18px 40px;
  }

  .hero-card {
    padding: 16px;
    border-radius: 24px;
  }

  .card-media-wrapper {
    aspect-ratio: 9 / 14;
    border-radius: 18px;
  }

  .btn-video-call {
    min-height: 56px;
    font-size: 1.1rem;
    padding: 14px 20px;
  }

  /* Show navigation arrows persistently on touch screens with subtle opacity */
  .nav-arrow {
    opacity: 0.7;
    width: 34px;
    height: 34px;
  }
}

/* Small Mobile Phones (iPhone SE, Galaxy A series, etc.) */
@media (max-width: 480px) {
  .header-container {
    padding: 12px 18px;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-icon svg {
    width: 17px;
    height: 17px;
  }

  .hero-section {
    padding: 20px 14px 28px;
  }

  .hero-card {
    padding: 14px;
    border-radius: 22px;
  }

  .card-media-wrapper {
    aspect-ratio: 9 / 14;
    border-radius: 16px;
  }

  .live-status-badge {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.68rem;
  }

  .btn-video-call {
    min-height: 54px;
    font-size: 1.05rem;
    border-radius: 15px;
    gap: 10px;
  }

  .whatsapp-svg {
    width: 24px;
    height: 24px;
  }

  .site-footer {
    padding: 16px 18px;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .footer-tagline {
    font-size: 0.73rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-card {
    animation: none !important;
  }
  
  .btn-pulse-wave {
    display: none !important;
  }
}
