/* ============================================
   HOME PAGE - Premium Services Section V3
   INNOVATIVE BLUE/WHITE VERSION - Construction & Luxury
   ============================================

   ⚠️  TEST VERSION: Innovative Design for Construction & Luxury Services
   - White background with architectural blueprint patterns (NO PARTICLES)
   - Blue accents with glassmorphism effects
   - Architectural grid lines and elegant flowing curves
   - Construction-themed geometric elements (blueprint style)
   - 3D card interactions with luxury feel
   - Clean, sophisticated, and disruptive aesthetic
   - Simple solid blue color for headlines (no gradients/effects)

   This is a TEST file for the innovative design.
   DO NOT use in production without thorough testing.
   ============================================ */

/* ========= PREMIUM SERVICES SECTION ========= */

.premium-section {
  position: relative;
  padding: 50px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  box-sizing: border-box;
  overflow: hidden;
  /* Elegant gradient background with construction/luxury feel */
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(26, 67, 191, 0.015) 30%,
    rgba(26, 67, 191, 0.02) 50%,
    rgba(26, 67, 191, 0.015) 70%,
    var(--bg) 100%);
}

/* Additional Architectural Detail Layer */
.premium-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Corner architectural accents - luxury construction detail */
    radial-gradient(circle 200px at 5% 5%, rgba(26, 67, 191, 0.04) 0%, transparent 50%),
    radial-gradient(circle 200px at 95% 95%, rgba(26, 67, 191, 0.04) 0%, transparent 50%),
    radial-gradient(circle 150px at 5% 95%, rgba(26, 67, 191, 0.03) 0%, transparent 50%),
    radial-gradient(circle 150px at 95% 5%, rgba(26, 67, 191, 0.03) 0%, transparent 50%);
  opacity: 0.6;
  animation: architecturalDetailPulse 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes architecturalDetailPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.premium-section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 20px;
  font-weight: 500;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue));
  animation: labelLineExpand 2s ease-in-out infinite;
}

.section-label::after {
  background: linear-gradient(90deg, var(--brand-blue), transparent);
  animation-delay: 0.5s;
}

@keyframes labelLineExpand {
  0%, 100% {
    width: 40px;
    opacity: 0.6;
  }
  50% {
    width: 60px;
    opacity: 1;
  }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
}

.section-title span {
  color: var(--brand-blue);
  font-style: italic;
  /* Simple solid color - no gradients, no effects */
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
}

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

/* ============================================
   CONSTRUCTION & LUXURY BACKGROUND ANIMATION
   Architectural Patterns & Elegant Flowing Elements
   ============================================ */

.premium-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    /* Architectural grid pattern - subtle blueprint feel */
    repeating-linear-gradient(0deg,
      transparent 0px,
      transparent 99px,
      rgba(26, 67, 191, 0.03) 100px,
      rgba(26, 67, 191, 0.03) 101px),
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 99px,
      rgba(26, 67, 191, 0.03) 100px,
      rgba(26, 67, 191, 0.03) 101px),
    /* Elegant flowing curves - luxury feel */
    radial-gradient(ellipse 1200px 600px at 15% 10%, rgba(26, 67, 191, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 1000px 800px at 85% 90%, rgba(26, 67, 191, 0.05) 0%, transparent 55%),
    /* Central architectural focus */
    radial-gradient(ellipse 600px 400px at 50% 50%, rgba(26, 67, 191, 0.03) 0%, transparent 60%);
  /* PERFORMANCE: Removed mix-blend-mode - expensive, use opacity adjustment instead */
  opacity: 0.75;
  animation: architecturalPatternFlow 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  /* PERFORMANCE: GPU acceleration and containment */
  transform: translateZ(0);
  will-change: transform, opacity;
  contain: layout style paint;
}

@keyframes architecturalPatternFlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
    /* PERFORMANCE: Removed filter: blur from animation */
  }
  25% {
    transform: translate3d(-15px, 10px, 0) scale(1.05);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(10px, -15px, 0) scale(1.03);
    opacity: 0.82;
  }
  75% {
    transform: translate3d(-8px, 8px, 0) scale(1.04);
    opacity: 0.85;
  }
}

/* ============================================
   CONSTRUCTION & LUXURY ANIMATION SYSTEM
   Architectural Elements & Elegant Flowing Patterns
   ============================================ */

.premium-floating-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
  z-index: 0;
  /* PERFORMANCE: Containment for better performance */
  contain: layout style paint;
  will-change: transform;
}

/* Architectural Grid Lines - Blueprint Style */
.premium-floating-particles::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Vertical architectural lines - blueprint style */
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 199px,
      rgba(26, 67, 191, 0.06) 200px,
      rgba(26, 67, 191, 0.06) 201px,
      transparent 202px),
    /* Horizontal architectural lines - blueprint style */
    repeating-linear-gradient(0deg,
      transparent 0px,
      transparent 199px,
      rgba(26, 67, 191, 0.06) 200px,
      rgba(26, 67, 191, 0.06) 201px,
      transparent 202px),
    /* Diagonal architectural lines - luxury construction feel */
    repeating-linear-gradient(45deg,
      transparent 0px,
      transparent 280px,
      rgba(26, 67, 191, 0.03) 281px,
      rgba(26, 67, 191, 0.03) 282px,
      transparent 283px),
    /* Counter-diagonal lines */
    repeating-linear-gradient(-45deg,
      transparent 0px,
      transparent 280px,
      rgba(26, 67, 191, 0.03) 281px,
      rgba(26, 67, 191, 0.03) 282px,
      transparent 283px);
  opacity: 0.5;
  animation: architecturalGridPulse 10s ease-in-out infinite;
  pointer-events: none;
  filter: blur(0.5px);
}

@keyframes architecturalGridPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    opacity: 0.6;
    transform: translate3d(1px, 1px, 0) scale(1.002);
  }
  66% {
    opacity: 0.55;
    transform: translate3d(-1px, -1px, 0) scale(0.998);
  }
}

/* Elegant Flowing Curves - Luxury Construction Feel */
.premium-floating-particles::after {
  content: '';
  position: absolute;
  width: 180%;
  height: 250px;
  top: 25%;
  left: -40%;
  background:
    /* Flowing architectural curve 1 - top */
    radial-gradient(ellipse 1000px 250px at 25% 50%, rgba(26, 67, 191, 0.1) 0%, transparent 65%),
    /* Flowing architectural curve 2 - middle */
    radial-gradient(ellipse 800px 200px at 75% 50%, rgba(26, 67, 191, 0.08) 0%, transparent 60%),
    /* Elegant construction flow - bottom */
    radial-gradient(ellipse 600px 180px at 50% 50%, rgba(26, 67, 191, 0.06) 0%, transparent 55%);
  animation: luxuryConstructionFlow 25s ease-in-out infinite;
  pointer-events: none;
  /* PERFORMANCE: Reduced blur for better performance */
  filter: blur(30px);
  z-index: 0;
  /* PERFORMANCE: GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
}

@keyframes luxuryConstructionFlow {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    opacity: 0.65;
  }
  20% {
    transform: translateX(40px) translateY(-25px) rotate(1.5deg) scale(1.05);
    opacity: 0.75;
  }
  40% {
    transform: translateX(-30px) translateY(35px) rotate(-1.5deg) scale(0.98);
    opacity: 0.7;
  }
  60% {
    transform: translateX(25px) translateY(-20px) rotate(1deg) scale(1.03);
    opacity: 0.75;
  }
  80% {
    transform: translateX(-15px) translateY(15px) rotate(-0.5deg) scale(1.01);
    opacity: 0.7;
  }
}

/* Architectural Elements - Created via JavaScript */
.premium-geometric-shape {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  animation: architecturalElementFloat 15s ease-in-out infinite;
  /* PERFORMANCE: GPU acceleration */
  transform: translateZ(0);
  will-change: transform, opacity;
  contain: layout style paint;
}

/* Architectural Square/Blueprint Element */
.premium-geometric-shape--hexagon {
  width: 50px;
  height: 50px;
  background: transparent;
  border: 2px solid rgba(26, 67, 191, 0.2);
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
  position: relative;
}

.premium-geometric-shape--hexagon::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(26, 67, 191, 0.15);
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

/* Architectural Triangle/Blueprint Element */
.premium-geometric-shape--triangle {
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 45px solid rgba(26, 67, 191, 0.12);
  position: relative;
}

.premium-geometric-shape--triangle::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -15px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid rgba(26, 67, 191, 0.08);
}

/* Architectural Circle/Blueprint Element */
.premium-geometric-shape--circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(26, 67, 191, 0.2);
  position: relative;
}

.premium-geometric-shape--circle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(26, 67, 191, 0.15);
}

.premium-geometric-shape--circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(26, 67, 191, 0.3);
}

@keyframes architecturalElementFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
  }
  8% {
    opacity: 0.5;
    transform: translateY(85vh) translateX(15px) rotate(45deg) scale(0.7);
  }
  50% {
    opacity: 0.7;
    transform: translateY(0vh) translateX(-20px) rotate(180deg) scale(1);
  }
  92% {
    opacity: 0.5;
    transform: translateY(-85vh) translateX(15px) rotate(315deg) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(0) rotate(360deg) scale(0.6);
  }
}

@media (max-width: 768px) {
  .premium-bg-pattern {
    opacity: 0.6;
    animation: architecturalPatternFlowMobile 22s ease-in-out infinite;
  }

  @keyframes architecturalPatternFlowMobile {
    0%, 100% {
      transform: translate3d(0, 0, 0) scale(1);
      opacity: 0.6;
    }
    25% {
      transform: translate3d(-10px, 8px, 0) scale(1.03);
      opacity: 0.7;
    }
    50% {
      transform: translate3d(8px, -10px, 0) scale(1.02);
      opacity: 0.65;
    }
    75% {
      transform: translate3d(-6px, 6px, 0) scale(1.03);
      opacity: 0.7;
    }
  }

  .premium-floating-particles::before {
    opacity: 0.3;
    background-size: 100px 100px;
  }

  .premium-floating-particles::after {
    height: 150px;
    /* PERFORMANCE: Further reduced blur on mobile */
    filter: blur(20px);
  }
}

/* Services Container */
.premium-services-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  display: flex;
  gap: 30px;
  perspective: 2000px;
  margin-top: 40px;
  z-index: 1;
  /* PERFORMANCE: Containment to prevent layout thrashing */
  contain: layout style;
  /* PERFORMANCE: GPU acceleration */
  transform: translateZ(0);
}

/* Service Card - Glassmorphism & 3D */
.premium-service-card {
  position: relative;
  flex: 1;
  min-height: 550px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  /* UX: Better cursor feedback */
  user-select: none;
  -webkit-user-select: none;
  /* UX: Focus state for accessibility */
  outline: none;
  /* PERFORMANCE: Reduced transition durations for snappier feel */
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
  /* PERFORMANCE: Removed flex transition - causes layout thrashing, use transform instead */
  /* PERFORMANCE: Removed filter transition - use opacity/transform instead */
  transform-style: preserve-3d;
  background: rgba(255, 255, 255, 0.7);
  /* PERFORMANCE: Reduced backdrop-filter blur for better performance */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(26, 67, 191, 0.15);
  background-clip: padding-box;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(26, 67, 191, 0.12),
    0 0 0 1px rgba(26, 67, 191, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  /* PERFORMANCE: GPU acceleration and containment */
  /* PERFORMANCE: Only set will-change when card is about to animate */
  contain: layout style paint;
  transform: translateZ(0);
}

/* PERFORMANCE: Only set will-change on hover/active, remove after transition */
.premium-service-card:hover {
  will-change: transform, box-shadow;
}

.premium-service-card.premium-active {
  will-change: transform, box-shadow;
}

/* PERFORMANCE: Remove will-change after transitions complete */
.premium-service-card:not(:hover):not(.premium-active) {
  will-change: auto;
}

.premium-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 67, 191, 0.15) 0%,
    transparent 50%,
    rgba(26, 67, 191, 0.12) 100%);
  opacity: 0;
  /* PERFORMANCE: Faster transition and removed transform */
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
  /* PERFORMANCE: Removed mix-blend-mode - expensive, use stronger gradient instead */
  transform: translateZ(0);
}

.premium-service-card::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 28px;
  padding: 3px;
  background: linear-gradient(135deg,
    var(--brand-blue) 0%,
    transparent 30%,
    transparent 70%,
    var(--brand-blue) 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  z-index: -1;
  /* PERFORMANCE: Faster transition */
  transition: opacity 0.35s ease;
  /* PERFORMANCE: Disabled border flow animation - causes constant repaints */
  /* animation: premiumCardBorderFlow 12s ease-in-out infinite; */
  pointer-events: none;
  transform: translateZ(0);
}

@keyframes premiumCardBorderFlow {
  0%, 100% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

.premium-service-card:hover::before {
  opacity: 1;
}

.premium-service-card:hover::after,
.premium-service-card.premium-active::after {
  opacity: 0.9;
}

.premium-service-card.premium-active {
  /* PERFORMANCE: Use transform scale instead of flex to avoid layout thrashing */
  flex: 1.5;
  z-index: 10;
  /* PERFORMANCE: Use translate3d for GPU acceleration */
  transform: translate3d(0, -16px, 0) scale(1.1) rotateX(2deg);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.15),
    0 30px 80px rgba(26, 67, 191, 0.25),
    0 0 100px rgba(26, 67, 191, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(26, 67, 191, 0.1);
  border-color: rgba(26, 67, 191, 0.4);
  background: rgba(255, 255, 255, 0.85);
  /* PERFORMANCE: Disabled pulse animation on active - causes repaints */
  /* animation: premiumCardActivePulse 4s ease-in-out infinite; */
  /* PERFORMANCE: Remove will-change after animation completes */
  will-change: auto;
}

@keyframes premiumCardActivePulse {
  0%, 100% {
    box-shadow:
      0 50px 120px rgba(0, 0, 0, 0.15),
      0 30px 80px rgba(26, 67, 191, 0.25),
      0 0 100px rgba(26, 67, 191, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -1px 0 rgba(26, 67, 191, 0.1);
  }
  50% {
    box-shadow:
      0 50px 120px rgba(0, 0, 0, 0.18),
      0 30px 80px rgba(26, 67, 191, 0.35),
      0 0 120px rgba(26, 67, 191, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      inset 0 -1px 0 rgba(26, 67, 191, 0.15);
  }
}

.premium-service-card:not(.premium-active) {
  /* PERFORMANCE: Use translate3d and opacity instead of filter */
  transform: translate3d(0, 0, 0) scale(0.95) rotateX(-1deg);
  opacity: 0.95;
  /* PERFORMANCE: Remove will-change when not active */
  will-change: auto;
}

.premium-service-card:not(.premium-active):hover {
  /* PERFORMANCE: Removed expensive filter transitions */
  opacity: 1;
  transform: translate3d(0, -6px, 0) scale(0.98) rotateX(1deg);
}

/* UX: Focus state for keyboard navigation */
.premium-service-card:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-color: var(--brand-blue);
}

/* Card Image */
.premium-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.premium-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* PERFORMANCE: Reduced transition duration and removed filter transition */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.08) contrast(1.15) saturate(1.1);
  /* PERFORMANCE: GPU acceleration for image transforms */
  transform: translateZ(0);
  will-change: transform;
}

.premium-service-card:hover .premium-card-image img {
  /* PERFORMANCE: Use translate3d for GPU acceleration */
  transform: translate3d(0, 0, 0) scale(1.12);
}

/* Card Overlay - Enhanced Glassmorphism */
.premium-card-overlay {
  position: absolute;
  inset: 0;
  /* READABILITY: Enhanced dark gradient for better text contrast */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  /* PERFORMANCE: Faster transition */
  transition: background 0.3s ease;
  /* PERFORMANCE: Removed backdrop-filter for better performance */
  transform: translateZ(0);
}

.premium-service-card.premium-active .premium-card-overlay {
  /* READABILITY: Stronger dark gradient for active card text readability */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(0, 0, 0, 0.6) 65%,
    rgba(0, 0, 0, 0.8) 100%);
}

/* Card Content */
.premium-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 40px;
  z-index: 2;
  /* PERFORMANCE: Reduced transition duration and use translate3d */
  transform: translate3d(0, 60px, 0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* READABILITY: Add subtle dark background behind content for better text contrast */
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    transparent 100%);
  /* PERFORMANCE: GPU acceleration */
  will-change: transform;
}

.premium-service-card.premium-active .premium-card-content {
  /* PERFORMANCE: Use translate3d for GPU acceleration */
  transform: translate3d(0, 0, 0);
  /* READABILITY: Stronger background for active card content */
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%);
}

/* Service Badge - Enhanced Glassmorphism */
.premium-service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: rgba(26, 67, 191, 0.9);
  /* PERFORMANCE: Reduced backdrop-filter blur */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 30px rgba(26, 67, 191, 0.35),
    0 0 20px rgba(26, 67, 191, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  font-weight: 700;
  /* PERFORMANCE: Disabled morph animation - causes repaints */
  /* animation: premiumBadgeMorph 3s ease-in-out infinite; */
  /* PERFORMANCE: GPU acceleration */
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

@keyframes premiumBadgeMorph {
  0%, 100% {
    box-shadow:
      0 12px 30px rgba(26, 67, 191, 0.35),
      0 0 20px rgba(26, 67, 191, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(26, 67, 191, 0.5),
      0 0 30px rgba(26, 67, 191, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
  }
}

.premium-service-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6), transparent 60%);
  opacity: 0.9;
  /* PERFORMANCE: Removed mix-blend-mode - expensive, use stronger gradient instead */
  pointer-events: none;
  /* PERFORMANCE: Disabled shine animation - causes repaints */
  /* animation: badgeShine 3s ease-in-out infinite; */
  transform: translateZ(0);
}

@keyframes badgeShine {
  0%, 100% {
    opacity: 0.9;
    transform: translateX(-100%);
  }
  50% {
    opacity: 1;
    transform: translateX(100%);
  }
}

/* Service Title - Enhanced 3D Effect */
.premium-service-title {
  font-family: 'Playfair Display', serif;
  font-size: 4.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-white);
  position: relative;
  display: inline-block;
  /* READABILITY: Enhanced multi-layer text shadow for better contrast */
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 0, 0, 0.3);
  /* PERFORMANCE: GPU acceleration */
  transform: translateZ(0);
  /* READABILITY: Subtle background for 100% readability - elegant and non-distracting */
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.4) 100%);
  /* PERFORMANCE: Reduced backdrop-filter blur for better performance */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  /* PERFORMANCE: Remove will-change - title doesn't animate */
  will-change: auto;
}

.premium-service-title span {
  color: var(--bg);
  /* READABILITY: Enhanced shadow for blue text to ensure visibility */
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.7),
    0 6px 24px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(26, 67, 191, 0.5),
    0 0 60px rgba(26, 67, 191, 0.3);
  /* Simple solid color - no gradients, no effects, no animations */
  /* READABILITY: Additional glow for blue text to make it pop */
  filter: drop-shadow(0 0 8px rgba(26, 67, 191, 0.4));
}

.premium-service-card.premium-active .premium-service-title {
  /* READABILITY: Even stronger background and shadows for active card */
  background: linear-gradient(135deg, rgb(143 143 143 / 50%) 0%, rgb(162 154 154 / 60%) 50%, rgba(0, 0, 0, 0.5) 40%);
  /* PERFORMANCE: Reduced backdrop-filter blur */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgb(45 76 240 / 60%), inset 0 1px 0 rgb(255 240 240 / 5%);
  text-shadow: 0 3px 10px rgb(86 86 86 / 70%), 0 5px 20px rgba(0, 0, 0, 0.6), 0 8px 30px rgb(255 255 255 / 50%), 0 0 50px rgba(0, 0, 0, 0.4);
}

.premium-service-card.premium-active .premium-service-title span {
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.9),
    0 5px 20px rgba(0, 0, 0, 0.8),
    0 8px 30px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(26, 67, 191, 0.6),
    0 0 80px rgba(26, 67, 191, 0.4);
  /* READABILITY: Stronger glow for active blue text */
  filter: drop-shadow(0 0 12px rgba(26, 67, 191, 0.6));
}

/* Service Features */
.premium-service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  opacity: 0;
  /* PERFORMANCE: Use translate3d and reduce transition duration */
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.3s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.3s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-service-card.premium-active .premium-service-features {
  opacity: 1;
  /* PERFORMANCE: Use translate3d for GPU acceleration */
  transform: translate3d(0, 0, 0);
}

/* Premium Feature Tags - Glassmorphism */
.premium-feature-tag {
  padding: 10px 18px;
  background: rgba(26, 67, 191, 0.18);
  /* PERFORMANCE: Reduced backdrop-filter blur */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  /* PERFORMANCE: Optimized transition - only transform and opacity */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  /* PERFORMANCE: GPU acceleration */
  transform: translateZ(0);
  will-change: transform;
}

.premium-feature-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 67, 191, 0.35) 0%,
    rgba(26, 67, 191, 0.25) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.premium-feature-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.premium-feature-tag:hover {
  background: rgba(26, 67, 191, 0.3);
  border-color: rgba(26, 67, 191, 0.6);
  color: var(--text-white);
  /* PERFORMANCE: Use translate3d for GPU acceleration */
  transform: translate3d(0, -4px, 0) scale(1.08);
  box-shadow:
    0 14px 32px rgba(26, 67, 191, 0.45),
    0 0 24px rgba(26, 67, 191, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.premium-feature-tag:hover::before {
  opacity: 1;
}

.premium-feature-tag:hover::after {
  left: 100%;
}

.premium-service-card.premium-active .premium-feature-tag {
  background: rgba(26, 67, 191, 0.25);
  border-color: rgba(26, 67, 191, 0.55);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(26, 67, 191, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

/* Service Description */
.premium-service-desc {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.9;
  margin-bottom: 30px;
  font-size: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  /* PERFORMANCE: Reduced transition duration */
  transition: opacity 0.4s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1),
              max-height 0.4s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  /* READABILITY: Enhanced text shadow for description */
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 0, 0, 0.4);
}

.premium-service-card.premium-active .premium-service-desc {
  opacity: 1;
  max-height: 280px;
  color: rgba(255, 255, 255, 0.98);
  /* READABILITY: Enhanced multi-layer text shadow for active description */
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.7),
    0 6px 24px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.premium-service-card.premium-active .premium-service-desc::before {
  content: '';
  position: absolute;
  inset: -12px -16px;
  background: linear-gradient(135deg,
    rgba(26, 67, 191, 0.25) 0%,
    rgba(26, 67, 191, 0.18) 100%);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.7;
  /* PERFORMANCE: Reduced backdrop-filter blur */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* CTA Button - Enhanced 3D Glassmorphism */
.premium-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg,
    rgba(26, 67, 191, 0.95) 0%,
    var(--brand-blue) 100%);
  /* PERFORMANCE: Reduced backdrop-filter blur */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--bg) !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  /* PERFORMANCE: Optimized transition - only essential properties */
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  box-shadow:
    0 20px 45px rgba(26, 67, 191, 0.45),
    0 0 30px rgba(26, 67, 191, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
  /* PERFORMANCE: Disabled morph animation - causes repaints */
  /* animation: premiumCTAMorph 3.5s ease-in-out infinite; */
  /* PERFORMANCE: GPU acceleration */
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* PERFORMANCE: Remove will-change when not hovering */
.premium-cta-btn:not(:hover) {
  will-change: auto;
}

@keyframes premiumCTAMorph {
  0%, 100% {
    box-shadow:
      0 20px 45px rgba(26, 67, 191, 0.45),
      0 0 30px rgba(26, 67, 191, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 20px 45px rgba(26, 67, 191, 0.6),
      0 0 40px rgba(26, 67, 191, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
  }
}

.premium-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--brand-blue) 0%,
    rgba(26, 67, 191, 0.9) 50%,
    var(--brand-blue) 100%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  border-radius: 50px;
}

.premium-cta-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg,
    var(--brand-blue) 0%,
    rgba(26, 67, 191, 0.8) 50%,
    var(--brand-blue) 100%);
  background-size: 300% 300%;
  border-radius: 50px;
  opacity: 0;
  z-index: -2;
  transition: opacity 0.5s ease;
  animation: premiumCTABorderFlow 4s ease-in-out infinite;
}

@keyframes premiumCTABorderFlow {
  0%, 100% {
    background-position: 0% 0%;
    opacity: 0;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.8;
  }
}

.premium-cta-btn:hover {
  /* PERFORMANCE: Use translate3d for GPU acceleration */
  transform: translate3d(0, -3px, 0) scale(1.05);
  box-shadow:
    0 28px 60px rgba(26, 67, 191, 0.6),
    0 0 40px rgba(26, 67, 191, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.premium-cta-btn:hover::before {
  opacity: 1;
  animation: premiumCTAShimmerV3 2.5s ease-in-out infinite;
}

.premium-cta-btn:hover::after {
  opacity: 1;
}

@keyframes premiumCTAShimmerV3 {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.premium-cta-btn,
.premium-cta-btn * {
  color: var(--bg) !important;
  position: relative;
  z-index: 2;
}

.premium-cta-btn svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.premium-cta-btn:hover svg {
  transform: translateX(8px) scale(1.15);
}

.premium-service-card.premium-active .premium-cta-btn {
  box-shadow:
    0 24px 55px rgba(26, 67, 191, 0.55),
    0 0 50px rgba(26, 67, 191, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.premium-service-card.premium-active .premium-cta-btn::after {
  opacity: 0.7;
}

/* Card Glow Effect - Enhanced */
.premium-card-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
    rgba(26, 67, 191, 0.3) 0%,
    rgba(26, 67, 191, 0.15) 40%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 0;
  filter: blur(40px);
}

.premium-service-card:hover .premium-card-glow {
  opacity: 1;
  transform: scale(1.2);
}

/* Mobile Navigation */
.premium-mobile-nav {
  display: none;
  gap: 15px;
  margin-top: 30px;
  z-index: 20;
}

.premium-nav-dot {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(26, 67, 191, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(26, 67, 191, 0.3);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(26, 67, 191, 0.15);
}

.premium-nav-dot.premium-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--bg);
  transform: scale(1.15);
  box-shadow:
    0 6px 20px rgba(26, 67, 191, 0.5),
    0 0 15px rgba(26, 67, 191, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   ENHANCED STRUCTURE ELEMENTS (V3 HTML)
   ============================================ */

/* Decorative Lines */
.premium-decorative-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.premium-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(26, 67, 191, 0.2) 20%,
    rgba(26, 67, 191, 0.4) 50%,
    rgba(26, 67, 191, 0.2) 80%,
    transparent 100%);
  animation: decorativeLineFlow 8s ease-in-out infinite;
}

.premium-line--top {
  top: 15%;
  animation-duration: 8s;
}

.premium-line--bottom {
  bottom: 15%;
  animation-duration: 10s;
  animation-direction: reverse;
}

@keyframes decorativeLineFlow {
  0%, 100% {
    transform: translateX(-100%);
    opacity: 0.3;
  }
  50% {
    transform: translateX(0%);
    opacity: 0.6;
  }
}

/* Image Overlay Gradient */
.premium-image-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 67, 191, 0.1) 0%,
    transparent 50%,
    rgba(26, 67, 191, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.premium-service-card:hover .premium-image-overlay-gradient {
  opacity: 1;
}

/* Card Decoration */
.premium-card-decoration {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(26, 67, 191, 0.2);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
  pointer-events: none;
}

.premium-card-decoration::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(26, 67, 191, 0.3);
  border-radius: 50%;
  animation: decorationPulse 3s ease-in-out infinite;
}

@keyframes decorationPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.premium-service-card.premium-active .premium-card-decoration {
  opacity: 1;
  transform: scale(1);
}
