/* ==========================================================================
   SUPREME VISAS - HALLMARK LUXURY DESIGN SYSTEM (100% SANS-SERIF)
   - 100% Sans-serif typography: Plus Jakarta Sans (Headings) + Inter Tight (Body/UI)
   - Restrained weights (500-600 semi-bold, zero heavy black bold fonts)
   - Hairline borders (1px) with soft neutral contrast
   - Crimson Red (#C8102E) used with deliberate precision as accent
   - Inertial buttery-smooth scrolling (no abrupt jank)
   - Soft, ambient hover states (no tacky neon glows)
   - Tactile button presses (scale-98 easing)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* 100% Pure Modern Sans-Serif System */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  /* Hallmark Light Palette */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F4F4F6;
  --bg-card: #FFFFFF;
  
  --text-primary: #121316;
  --text-secondary: #52545E;
  --text-muted: #7E8190;
  
  --border-subtle: rgba(18, 19, 22, 0.08);
  --border-strong: rgba(18, 19, 22, 0.16);
  
  /* Brand Accents */
  --brand-red: #C8102E;
  --brand-red-hover: #A00C24;
  --brand-red-subtle: rgba(200, 16, 46, 0.06);
  --brand-red-border: rgba(200, 16, 46, 0.2);
  
  --brand-gold: #C5A059;
  --brand-gold-subtle: rgba(197, 160, 89, 0.1);
  --brand-gold-border: rgba(197, 160, 89, 0.35);

  --brand-maroon: #2A0707;
  --brand-dark-card: #1C0505;

  /* Hallmark Shadows (Diffused Ambient, Never Harsh) */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-soft: 0 12px 32px -8px rgba(18, 19, 22, 0.06), 0 4px 12px -4px rgba(18, 19, 22, 0.03);
  --shadow-elevated: 0 24px 48px -12px rgba(18, 19, 22, 0.1);

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxury: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-luxury: 0.5s;
  --duration-luxury-fast: 0.38s;
  --duration-luxury-slow: 0.65s;
}

[data-theme="dark"] {
  --bg-primary: #0A0A0C;
  --bg-secondary: #121216;
  --bg-tertiary: #18181E;
  --bg-card: #141419;

  --text-primary: #F4F4F6;
  --text-secondary: #A2A4B2;
  --text-muted: #6E7080;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --brand-red-subtle: rgba(200, 16, 46, 0.15);
  --brand-red-border: rgba(200, 16, 46, 0.4);

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   GLOBAL BASE & INERTIAL SMOOTH SCROLL
   ========================================================================== */
html {
  scroll-behavior: auto;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.4s var(--transition-smooth), color 0.4s var(--transition-smooth);
}

/* Headings: Clean, modern, crisp Sans-serif (Plus Jakarta Sans) */
h1, h2, h3, h4, h5, h6, .font-serif-title, .font-sans-title {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.025em;
}

.font-sans-ui {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

/* Section Marker (Clean Luxury Editorial Label - Borderless & Numberless) */
.section-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
}

/* Hallmark Luxury Card (Borderless with Soft Depth & Calm Hover) */
.hallmark-card {
  background-color: var(--bg-card);
  border: none !important;
  outline: none !important;
  border-radius: 1.25rem;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration-luxury) var(--ease-luxury),
              box-shadow var(--duration-luxury) var(--ease-luxury),
              background-color var(--duration-luxury) var(--ease-luxury);
}

[data-theme="light"] .hallmark-card {
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.08);
}

.hallmark-card:hover {
  transform: translateY(-5px) scale(1.012);
  border: none !important;
  outline: none !important;
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.65), 0 0 24px rgba(200, 16, 46, 0.16);
}

[data-theme="light"] .hallmark-card:hover {
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(200, 16, 46, 0.12);
}

/* Quick Tools Card Inner Icon Soft Glide */
#tools .hallmark-card .w-12 {
  transition: transform var(--duration-luxury) var(--ease-luxury),
              color var(--duration-luxury) var(--ease-luxury),
              background-color var(--duration-luxury) var(--ease-luxury),
              box-shadow var(--duration-luxury) var(--ease-luxury);
}

#tools .hallmark-card:hover .w-12 {
  transform: scale(1.08);
  color: var(--brand-red);
  box-shadow: 0 0 18px rgba(200, 16, 46, 0.28);
}

/* Spotlight Golden/Maroon Card for President's Counsel */
.hallmark-spotlight-card {
  background: linear-gradient(135deg, var(--brand-maroon) 0%, #1A0404 60%, #120202 100%);
  border: none !important;
  outline: none !important;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(42, 7, 7, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-luxury) var(--ease-luxury),
              box-shadow var(--duration-luxury) var(--ease-luxury);
}

.hallmark-spotlight-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 24px 48px -12px rgba(42, 7, 7, 0.6), 0 0 32px rgba(197, 160, 89, 0.2);
}

.hallmark-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-gold) 50%, transparent 100%);
  opacity: 0.6;
}

/* Tactile Soft Buttons (Borderless Luxury with Calm Deceleration) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--brand-red);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  border-radius: 0.75rem;
  border: none !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.38);
  cursor: pointer;
  transition: transform 0.45s var(--ease-luxury),
              box-shadow 0.45s var(--ease-luxury),
              background-color 0.45s var(--ease-luxury),
              color 0.45s var(--ease-luxury);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 10px 24px -4px rgba(200, 16, 46, 0.45), 0 0 18px rgba(200, 16, 46, 0.28);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.15s var(--ease-luxury);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  border-radius: 0.75rem;
  border: none !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.45s var(--ease-luxury),
              box-shadow 0.45s var(--ease-luxury),
              background-color 0.45s var(--ease-luxury),
              color 0.45s var(--ease-luxury);
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.32), 0 0 14px rgba(200, 16, 46, 0.15);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.15s var(--ease-luxury);
}

/* Hero Carousel Cross-fade & Ken Burns Subtle Pan */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  transition: background 0.5s var(--ease-luxury);
}

/* Dark Mode Hero Overlay - Deep Chiaroscuro Wash */
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(180deg, 
    rgba(10, 10, 12, 0.65) 0%, 
    rgba(18, 19, 22, 0.78) 50%, 
    var(--bg-primary) 100%);
}

/* Light Mode Hero Overlay - Left Diffusion Vignette (Keeps Right-Side Imagery Vibrant) */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.94) 0%, 
    rgba(255, 255, 255, 0.85) 38%, 
    rgba(255, 255, 255, 0.35) 68%, 
    rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(180deg, 
    rgba(255, 255, 255, 0.45) 0%, 
    transparent 30%, 
    var(--bg-primary) 100%);
}

/* ==========================================================================
   DYNAMIC THEME-ADAPTIVE HERO & NAVBAR TYPOGRAPHY
   ========================================================================== */

/* Dark Mode: Crisp White Navbar Links & High Contrast Text */
[data-theme="dark"] header nav a,
[data-theme="dark"] header nav button {
  color: #FFFFFF !important;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] header nav a:hover,
[data-theme="dark"] header nav button:hover {
  color: #FCA5A5 !important;
}

[data-theme="dark"] .hero-headline {
  color: #FFFFFF;
}
[data-theme="dark"] .hero-description {
  color: #D1D5DB;
}
[data-theme="dark"] .hero-highlight {
  color: #FFFFFF;
}
[data-theme="dark"] .hero-marker {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FDE047;
}
[data-theme="dark"] .hero-badge-pill {
  background-color: rgba(255, 255, 255, 0.1);
  color: #E5E7EB;
}
[data-theme="dark"] .hero-badge-pill:hover {
  background-color: rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] .hero-badge-strong {
  color: #FFFFFF;
}
[data-theme="dark"] .hero-btn-secondary {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}
[data-theme="dark"] .hero-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
}

/* Light Mode: Dark Charcoal Navbar Links & High Contrast Text */
[data-theme="light"] header nav a,
[data-theme="light"] header nav button {
  color: #121316 !important;
  font-weight: 600;
  text-shadow: none;
}
[data-theme="light"] header nav a:hover,
[data-theme="light"] header nav button:hover {
  color: #C8102E !important;
}

[data-theme="light"] .hero-headline {
  color: #121316;
}
[data-theme="light"] .hero-description {
  color: #374151;
}
[data-theme="light"] .hero-highlight {
  color: #121316;
  font-weight: 600;
}
[data-theme="light"] .hero-marker {
  background-color: rgba(200, 16, 46, 0.08);
  color: #C8102E;
  border: 1px solid rgba(200, 16, 46, 0.16);
}
[data-theme="light"] .hero-badge-pill {
  background-color: rgba(255, 255, 255, 0.88);
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .hero-badge-pill:hover {
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .hero-badge-strong {
  color: #121316;
}
[data-theme="light"] .hero-btn-secondary {
  background-color: #FFFFFF !important;
  color: #121316 !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
}
[data-theme="light"] .hero-btn-secondary:hover {
  background-color: #F9FAFB !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

/* Subtle Animated Headline Cycler */
.word-cycler {
  display: inline-block;
  min-width: 220px;
  position: relative;
  color: var(--brand-red);
  border-bottom: 2px solid var(--brand-gold);
  padding-bottom: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   HALLMARK TRUE 3D COVERFLOW STAGE (GPU HARDWARE ACCELERATED)
   ========================================================================== */
.coverflow-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1400px;
  overflow: hidden;
  padding: 2rem 0;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 380px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}
.coverflow-stage:active {
  cursor: grabbing;
}

.coverflow-card {
  position: absolute;
  width: 90%;
  max-width: 440px;
  height: 320px;
  transform-style: preserve-3d;
  will-change: transform, opacity, z-index, box-shadow;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s ease;
  cursor: pointer;
  border-radius: 1.25rem;
  user-select: none;
  background: var(--bg-card);
  border: none !important;
  outline: none !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.55);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="light"] .coverflow-card {
  border: none !important;
  outline: none !important;
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.12);
}

.coverflow-card.is-active {
  cursor: default;
}

.coverflow-card:not(.is-active):hover {
  filter: brightness(1.06);
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(200, 16, 46, 0.22);
}

.coverflow-card .review-quote {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .coverflow-stage {
    height: 360px;
  }
  .coverflow-card {
    width: 82%;
    max-width: 420px;
    height: 310px;
  }
}

@media (min-width: 1024px) {
  .coverflow-stage {
    height: 360px;
  }
  .coverflow-card {
    width: 420px;
    max-width: 440px;
    height: 310px;
  }
}

/* Flanking Side Arrows (දෙපැත්තෙන්ම Arrows - Borderless with Calm Soft Glide) */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: none !important;
  outline: none !important;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform var(--duration-luxury) var(--ease-luxury),
              background-color var(--duration-luxury) var(--ease-luxury),
              color var(--duration-luxury) var(--ease-luxury),
              box-shadow var(--duration-luxury) var(--ease-luxury);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.carousel-nav-btn:hover {
  background: var(--brand-red);
  border: none !important;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 34px rgba(200, 16, 46, 0.45), 0 0 20px rgba(200, 16, 46, 0.25);
}
.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
  transition: transform 0.15s var(--ease-luxury);
}
.carousel-nav-btn.prev-btn {
  left: 0.5rem;
}
.carousel-nav-btn.next-btn {
  right: 0.5rem;
}
@media (min-width: 1024px) {
  .carousel-nav-btn.prev-btn {
    left: 0.25rem;
  }
  .carousel-nav-btn.next-btn {
    right: 0.25rem;
  }
}

/* ==========================================================================
   HALLMARK FRENCH LUXURY EDITORIAL TEAM CAROUSEL (FROSTED GLASS & BLUR HOVER)
   ========================================================================== */
.team-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.25rem 0.5rem;
  margin: -1.25rem -0.5rem;
}

.team-carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0.25rem;
  cursor: grab;
  user-select: none;
  will-change: transform;
}
.team-carousel-track:active {
  cursor: grabbing;
}
.team-carousel-track::-webkit-scrollbar {
  display: none;
}

.team-card {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  height: 415px;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  border: none !important;
  outline: none !important;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.5);
  background: 
    linear-gradient(180deg, rgba(200, 16, 46, 0.12) 0%, transparent 26%),
    radial-gradient(ellipse 75% 60% at 50% 28%, rgba(180, 16, 40, 0.26) 0%, rgba(45, 5, 8, 0.45) 50%, #0D0203 100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] .team-card {
  border: none !important;
  outline: none !important;
  background: 
    linear-gradient(180deg, rgba(200, 16, 46, 0.08) 0%, transparent 26%),
    radial-gradient(ellipse 75% 60% at 50% 28%, #FFFFFF 0%, rgba(255, 245, 246, 0.88) 45%, #E5DCDE 100%);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.12);
}

.team-card:hover {
  border: none !important;
  outline: none !important;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.7), 0 0 28px rgba(200, 16, 46, 0.28);
}

[data-theme="light"] .team-card:hover {
  border: none !important;
  outline: none !important;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.22), 0 0 26px rgba(200, 16, 46, 0.22);
}

.team-card-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 4%;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover .team-card-photo {
  transform: translateX(-50%) scale(1.04);
  filter: blur(8px);
  opacity: 0.58;
}

/* Front Text at bottom of card */
.team-card-front {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 1, 1, 0.65) 35%, rgba(11, 1, 1, 0.98) 100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
  pointer-events: none;
}

[data-theme="light"] .team-card-front {
  background: linear-gradient(180deg, transparent 0%, rgba(11, 1, 1, 0.65) 35%, rgba(11, 1, 1, 0.98) 100%);
}

.team-card:hover .team-card-front {
  opacity: 0;
  transform: translateY(12px);
}

.team-card-front h4 {
  color: #FFFFFF !important;
}
[data-theme="light"] .team-card-front h4 {
  color: #FFFFFF !important;
}
.team-card-front p {
  color: #E5E7EB !important;
}
[data-theme="light"] .team-card-front p {
  color: #E5E7EB !important;
}

/* Hover Overlay (Crystal Frosted Glass - No Dots, High Clarity) */
.team-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.05s;
  pointer-events: none;
  z-index: 20;
  background: rgba(12, 2, 4, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .team-card-overlay {
  background: rgba(14, 3, 5, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.team-card:hover .team-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.team-card-overlay h4 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}
[data-theme="light"] .team-card-overlay h4 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}
.team-card-overlay .bio-text {
  color: #F3F4F6 !important;
  font-size: 0.8125rem;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
[data-theme="light"] .team-card-overlay .bio-text {
  color: #F3F4F6 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* Flanking Side Navigation Buttons (දෙපැත්තෙන්ම Navigation Buttons - Borderless with Calm Soft Glide) */
.team-flank-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: none !important;
  outline: none !important;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform var(--duration-luxury) var(--ease-luxury),
              background-color var(--duration-luxury) var(--ease-luxury),
              color var(--duration-luxury) var(--ease-luxury),
              box-shadow var(--duration-luxury) var(--ease-luxury);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.team-flank-btn:hover {
  background: var(--brand-red);
  border: none !important;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 32px rgba(200, 16, 46, 0.42), 0 0 20px rgba(200, 16, 46, 0.25);
}
.team-flank-btn:active {
  transform: translateY(-50%) scale(0.95);
  transition: transform 0.15s var(--ease-luxury);
}
.team-flank-btn.prev {
  left: -12px;
}
.team-flank-btn.next {
  right: -12px;
}
@media (min-width: 1024px) {
  .team-flank-btn.prev {
    left: -22px;
  }
  .team-flank-btn.next {
    right: -22px;
  }
}
@media (max-width: 640px) {
  .team-flank-btn {
    width: 38px;
    height: 38px;
  }
  .team-flank-btn.prev {
    left: 2px;
  }
  .team-flank-btn.next {
    right: 2px;
  }
}

/* Global Borderless Luxury Form Inputs & Selects */
input:not([type="checkbox"]):not([type="radio"]), 
select, 
textarea {
  border: none !important;
  outline: none !important;
}
input:not([type="checkbox"]):not([type="radio"]):focus, 
select:focus, 
textarea:focus {
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.6) !important;
}

/* Global Smooth Scrolling is managed via luxury inertial RAF lerp */

/* Theme Toggle Button (Calm Soft Hover & Gentle Icon Rotation) */
#themeToggle {
  transition: transform 0.45s var(--ease-luxury),
              background-color 0.45s var(--ease-luxury),
              color 0.45s var(--ease-luxury),
              box-shadow 0.45s var(--ease-luxury);
  cursor: pointer;
}
#themeToggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 14px rgba(200, 16, 46, 0.2);
}
#themeToggle svg {
  transition: transform 0.5s var(--ease-luxury);
}
#themeToggle:hover svg {
  transform: rotate(15deg);
}
#themeToggle:active {
  transform: scale(0.95);
  transition: transform 0.15s var(--ease-luxury);
}

/* Hero Badge Pill Soft Lift */
.hero-badge-pill {
  transition: transform 0.45s var(--ease-luxury),
              background-color 0.45s var(--ease-luxury),
              box-shadow 0.45s var(--ease-luxury);
}
.hero-badge-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Header Navigation Links Soft Calm Color Fade */
nav a {
  transition: color 0.35s var(--ease-luxury),
              transform 0.35s var(--ease-luxury);
}

/* ==========================================================================
   OFFICIAL SOCIAL FEED (4:5 ASPECT RATIO CARDS)
   ========================================================================== */
.feed-social-card {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.feed-social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.25);
  border-color: rgba(200, 16, 46, 0.3) !important;
}
[data-theme="dark"] .feed-social-card:hover {
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.65), 0 0 20px rgba(200, 16, 46, 0.15);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE EXCELLENCE (WORLD-CLASS STANDARDS)
   ========================================================================== */

/* Touch Device Support for Team Cards */
.team-card.touch-active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 0 24px rgba(200, 16, 46, 0.25);
}

.team-card.touch-active .team-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.team-card.touch-active .team-card-photo {
  transform: translateX(-50%) scale(1.04);
  filter: blur(8px);
  opacity: 0.58;
}

.team-card.touch-active .team-card-front {
  opacity: 0;
  transform: translateY(12px);
}

/* Mobile & Tablet Optimizations (< 1024px) */
@media (max-width: 1023px) {
  /* Prevent horizontal screen leakage */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Team Carousel on Tablets & Mobile */
  .team-carousel-wrapper {
    padding: 1rem 0;
    margin: -1rem 0;
  }
}

/* Mobile Screens (< 640px) */
@media (max-width: 639px) {
  /* Team Card Dimensions for Mobile Thumb Swipe */
  .team-card {
    flex: 0 0 260px;
    width: 260px;
    height: 395px;
    border-radius: 1.25rem;
  }

  .team-carousel-track {
    gap: 1.25rem;
    padding: 0.5rem 0.25rem;
  }

  /* Flanking buttons on mobile touch: Natural touch swipe is preferred */
  .team-flank-btn {
    display: none !important;
  }

  /* Coverflow Stage on Mobile */
  .coverflow-stage {
    height: 340px;
  }
  .coverflow-card {
    width: 88%;
    height: 300px;
  }
  .carousel-nav-btn {
    width: 42px;
    height: 42px;
  }
  .carousel-nav-btn.prev-btn { left: 0.25rem; }
  .carousel-nav-btn.next-btn { right: 0.25rem; }

  /* Hero Section Typography and Padding */
  .hero-headline {
    font-size: 1.85rem !important;
    line-height: 1.22 !important;
  }
  .hero-description {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  /* Modals on Mobile */
  .hallmark-card {
    border-radius: 1.25rem;
  }
}

