:root {
  --kesa-deep: #0d1453;
  --kesa-blue: #2196f3;
  --kesa-gold: #f9a825;
  --kesa-teal: #11b8a6;
}

.typing-word {
  display: inline-block;
  min-width: 5.8ch;
  color: #c6841b;
  text-shadow: 0 2px 12px rgba(198, 132, 27, 0.35);
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 5px;
  background: #c6841b;
  vertical-align: -0.1em;
  animation: blink-caret 0.9s steps(1, end) infinite;
}

@keyframes blink-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.kesa-sparkles-panel {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: auto;
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
}

.kesa-sparkles-panel::after {
  display: none;
}

.kesa-sparkles-panel h2,
.kesa-sparkles-panel p {
  position: relative;
  z-index: 2;
}

.kesa-sparkles-panel h2 {
  margin: 0 0 8px;
  color: #f1f7ff;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  font-size: clamp(1.7rem, 3.2vw, 2rem);
}

.kesa-sparkles-panel p {
  margin: 0 0 6px;
  color: rgba(225, 237, 255, 0.84);
  font-size: 1rem;
}

.kesa-about-main {
  position: relative;
  background: linear-gradient(145deg, #11255f 0%, #173f85 55%, #0f2f66 100%);
  min-height: 460px;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.about-image .image-box.kesa-about-main {
  background-image: none !important;
}

.about-image .image-box.kesa-about-main::before {
  display: none;
}

.kesa-about-copy {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  margin: 0 auto;
  transform: translateY(-22px);
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 20, 74, 0.92), rgba(13, 39, 94, 0.9));
  border: 1px solid rgba(141, 191, 255, 0.28);
  box-shadow: 0 20px 42px rgba(5, 11, 45, 0.36);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kesa-about-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.95) 0 1.5px, transparent 2px),
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 10%, rgba(255, 255, 255, 0.85) 0 1.6px, transparent 2.1px),
    radial-gradient(circle at 63% 16%, rgba(255, 255, 255, 0.85) 0 1.3px, transparent 2px),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.85) 0 1.2px, transparent 2px);
  animation: star-twinkle 1.7s ease-in-out infinite alternate;
}

.kesa-about-copy > h3,
.kesa-about-copy > p,
.kesa-about-copy > .kesa-sparkles-panel,
.kesa-about-copy > .kesa-about-legal {
  position: relative;
  z-index: 2;
  transform: translateZ(24px);
}

.kesa-copy-sparkles {
  inset: 0;
}

.kesa-about-main h3 {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.kesa-about-legal {
  margin-top: 16px;
  overflow: visible;
  max-width: 100%;
}

.kesa-about-legal p {
  margin: 0;
  white-space: normal !important;
  font-size: 0.84rem !important;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  text-wrap: pretty;
}

.kesa-about-legal p + p {
  margin-top: 8px;
}

.about-vortex-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  isolation: isolate;
  mix-blend-mode: screen;
}

.about-vortex-layer::before,
.about-vortex-layer::after {
  content: "";
  position: absolute;
  inset: 14% 20%;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(171, 214, 255, 0), rgba(220, 241, 255, 0.75), rgba(171, 214, 255, 0));
  filter: blur(10px);
  transform-origin: center;
  animation: about-vortex-glow 3.2s linear infinite;
  opacity: 0.95;
}

.about-vortex-layer::before {
  animation-delay: 0.2s;
}

.about-vortex-layer::after {
  inset: 24% 28%;
  animation-duration: 2.6s;
  animation-direction: reverse;
}

.vortex-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 1), rgba(150, 205, 255, 0.7) 56%, rgba(100, 170, 255, 0));
  box-shadow: 0 0 14px rgba(228, 245, 255, 1), 0 0 26px rgba(149, 209, 255, 0.78);
  transform-origin: center;
  animation: about-vortex-orbit linear infinite;
  opacity: 1;
  will-change: transform, opacity;
}

.service-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}

.contact-item-icon-svg {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: #ffffff;
}

.kesa-sparkles-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sparkle-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  animation: sparkle-drift linear infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

@keyframes sparkle-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.4);
  }
  15% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -32px, 0) scale(1);
  }
}

.services-grid .service-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.98));
}

.services-grid .service-card > * {
  position: relative;
  z-index: 3;
}

.services-grid .service-card .service-icon,
.services-grid .service-card h3,
.services-grid .service-card p,
.services-grid .service-card .learn-more {
  transform: translateZ(28px);
}

.services-grid .service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(33, 150, 243, 0.12);
  pointer-events: none;
  z-index: 2;
}

.services-grid .service-card:hover {
  box-shadow: 0 18px 46px rgba(13, 20, 83, 0.18);
}

.meteor-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.meteor {
  position: absolute;
  top: -18%;
  width: 1px;
  height: 36px;
  transform: rotate(33deg);
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(33, 150, 243, 0), rgba(33, 150, 243, 0.75));
  filter: drop-shadow(0 0 5px rgba(33, 150, 243, 0.6));
  animation: meteor-fall linear infinite;
  opacity: 0;
}

.about-vortex-layer .meteor {
  display: none;
}

@keyframes star-twinkle {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}

@keyframes about-vortex-glow {
  0% {
    transform: rotate(0deg) scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: rotate(180deg) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(0.92);
    opacity: 0.7;
  }
}

@keyframes about-vortex-orbit {
  0% {
    opacity: 0.2;
    transform: translate(-50%, -50%) rotate(var(--vortex-angle)) translateX(var(--vortex-radius)) scale(0.4);
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) rotate(calc(var(--vortex-angle) + 360deg)) translateX(var(--vortex-radius)) scale(1);
  }
}

@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -16px, 0) rotate(33deg);
  }
  12% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate3d(78px, 132px, 0) rotate(33deg);
  }
}

.whatsapp-float {
  background: #25d366;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.whatsapp-svg-icon {
  width: 30px;
  height: 30px;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .kesa-sparkles-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    max-width: none;
    margin-bottom: 24px;
  }

  .kesa-about-copy {
    margin-top: 0;
    padding: 22px;
    transform: translateY(-14px);
    width: calc(100% - 34px);
  }

  .kesa-about-main h3 {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .kesa-sparkles-panel {
    padding: 20px;
  }

  .kesa-sparkles-panel h2 {
    letter-spacing: 0.13em;
    font-size: 1.35rem;
  }

  .typing-word {
    min-width: 5.4ch;
  }

  .kesa-about-main h3 {
    margin-top: 4px;
    font-size: 1.9rem;
  }

  .kesa-about-copy {
    padding: 18px;
    transform: translateY(-8px);
    width: calc(100% - 22px);
  }

  .kesa-about-legal p {
    white-space: normal !important;
    font-size: 0.93rem !important;
  }
}

@media (max-width: 480px) {
  .kesa-about-main {
    min-height: 420px;
  }

  .kesa-about-copy {
    padding: 15px;
    transform: translateY(-6px);
  }

  .kesa-about-main h3 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .kesa-sparkles-panel p,
  .kesa-about-copy > p,
  .kesa-about-legal p {
    font-size: 0.86rem !important;
    line-height: 1.4;
  }
}

/* =============================================
   LAZY LOADING STYLES
   ============================================= */

/* Image lazy loading animation */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[data-src].loaded {
    opacity: 1;
}

/* Background image lazy loading */
[data-bg-image] {
    background-size: cover;
    background-position: center;
}

[data-bg-image]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

[data-bg-image].bg-loaded::before {
    opacity: 0;
}

/* =============================================
   WEB FONTS OPTIMIZATION
   ============================================= */

/* System font fallback while custom fonts load */
.fonts-loading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.fonts-loading .navbar-brand .company-name,
.fonts-loading .section-header h2,
.fonts-loading .service-card h3,
.fonts-loading .btn,
.fonts-loading .footer-brand .logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* When fonts are loaded, use custom fonts */
.fonts-loaded body,
.fonts-loaded .navbar-brand .company-name,
.fonts-loaded .section-header h2,
.fonts-loaded .service-card h3,
.fonts-loaded .btn {
    font-family: 'Inter', 'Montserrat', sans-serif;
}

/* =============================================
   PERFORMANCE CONTAINMENT
   ============================================= */

/* Reduce paint/layout thrashing */
body {
    contain: layout style paint;
}

.hero, .section-header, .service-card, .about-grid {
    contain: layout style paint;
}

/* =============================================
   CORE WEB VITALS OPTIMIZATION
   ============================================= */

/* Largest Contentful Paint (LCP) optimization */
.hero h1 {
    font-display: optional;
    contain: content;
}

/* Cumulative Layout Shift (CLS) prevention */
.navbar {
    contain-intrinsic-size: auto 65px;
}

img {
    contain: strict;
}
