:root {
  --color-bg: #000000;
  --color-bg-secondary: #111111;
  --color-accent: #EDEBE6;
  --color-accent-hover: #ffffff;
  --color-text: #EDEBE6;
  --color-text-muted: #a0a0a0;
  --color-border: #222222;

  --font-primary: 'Outfit', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  text-shadow: 0 0 5px rgba(237, 235, 230, 0.15), 0 0 15px rgba(237, 235, 230, 0.05);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 30px rgba(237, 235, 230, 0.15);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #000000;
  border: 1px solid var(--color-accent);
  box-shadow: 0 0 15px rgba(237, 235, 230, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 0 25px rgba(237, 235, 230, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 5%;
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
}

.logo span {
  color: var(--color-accent);
}

.logo-img-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition-fast);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 1;
}

section {
  padding: 5rem 0;
}



/* --- Differentials Section --- */
.differentials {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(237, 235, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 235, 230, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.diff-card {
  background: transparent;
  padding: 1.5rem 2rem;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.3;
  transform: scale(0.95) translateY(20px);
  text-align: center;
}

.diff-card.highlight-active,
.diff-card:hover {
  background: rgba(237, 235, 230, 0.05);
  transform: scale(1) translateY(-10px);
  opacity: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.diff-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.diff-icon img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(237, 235, 230, 0.4));
}

.diff-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.diff-card p {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* --- Clients & Partners Section --- */
.clients-partners {
  background-color: var(--color-bg-secondary);
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
}

.clients-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Soft fading edges for the carousel */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 1rem 0;
}

.clients-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollClients 25s linear infinite; /* Adjusted speed slightly for premium feel */
}

/* Removed hover pause on clients-track to ensure continuous animation */

.clients-set {
  display: flex;
  gap: 2rem;
}

@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem)); /* -50% of track minus half the gap between sets */
  }
}

.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 150px;
  flex-shrink: 0;
}

.client-card {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #181818;
  border: 1px solid #282828;
  border-radius: 16px;
  transition: all var(--transition-normal);
}

.client-card:hover {
  background: #222222;
  border-color: rgba(237, 235, 230, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(237, 235, 230, 0.05);
  transform: translateY(-5px);
}

.client-img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  transition: all var(--transition-normal);
  filter: grayscale(100%) opacity(0.55);
}

.client-card:hover .client-img {
  filter: grayscale(0%) opacity(1) brightness(1.2);
  transform: scale(1.05);
}

.client-name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.client-item:hover .client-name {
  color: var(--color-accent);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .nav-links.nav-active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 5px);
  }

  .toggle .line2 {
    opacity: 0;
  }

  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -5px);
  }
}

/* --- Enhanced Footer --- */
.main-footer {
  background-color: var(--color-bg-secondary);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
  background-image:
    linear-gradient(rgba(237, 235, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 235, 230, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
}

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

.footer-about .logo-img {
  height: 50px;
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--color-text-muted);
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  color: var(--color-text);
}

.footer-links h4::after,
.footer-social h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links ul li a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.social-btn::before {
  content: '→';
  margin-right: 8px;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

.social-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.main-footer .footer-bottom {
  border-top: 1px solid rgba(237, 235, 230, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about p {
    margin: 0 auto;
  }

  .footer-links h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    align-items: center;
  }
}

.gallery-item video,
.gallery-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  z-index: 2;
}

/* Ensure the poster image matches the gallery sizing and smooth hover effects */
.portfolio-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .portfolio-video-poster {
  transform: scale(1.1);
}

/* When a video is playing, smoothly fade out overlay, poster image, and play button */
.gallery-item.playing .portfolio-video-poster,
.gallery-item.playing .play-button,
.gallery-item.playing .item-overlay {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

/* Botão central */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 70px;
  height: 70px;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.3s ease;
}

/* Triângulo do play */
.play-button::before {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
}

/* Hover */
.gallery-item:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}

.whatsapp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;

  padding: 0.95rem 2.2rem;
  border-radius: 999px;

  background: rgba(237, 235, 230, 0.08);
  color: var(--color-text);
  border: 1px solid rgba(237, 235, 230, 0.35);

  box-shadow:
    0 0 18px rgba(237, 235, 230, 0.12),
    inset 0 0 12px rgba(237, 235, 230, 0.04);

  backdrop-filter: blur(10px);
  overflow: hidden;
}

.whatsapp-btn::before {
  background: linear-gradient(120deg,
      transparent,
      rgba(37, 211, 102, 0.3),
      transparent);
}

.whatsapp-btn:hover::before {
  transform: translateX(100%);
}

.whatsapp-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  border-color: #25D366;

  transform: translateY(-3px);

  box-shadow:
    0 0 30px rgba(37, 211, 102, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.whatsapp-icon {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
}

.whatsapp-btn span,
.whatsapp-btn {
  z-index: 1;
}

.whatsapp-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;

  background: rgba(237, 235, 230, 0.08);
  color: #25D366;
  border: 1px solid #25D366;

  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradiente "vivo" */
.whatsapp-btn::after {
  content: '';
  position: absolute;
  inset: 0;

  background: linear-gradient(120deg,
      #25D366 0%,
      #1ebe5d 40%,
      #25D366 70%,
      #0f9d58 100%);

  background-size: 200% 100%;
  background-position: left;

  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.6s ease;

  z-index: -1;
}

/* Hover ativa o movimento */
.whatsapp-btn:hover::after {
  opacity: 1;
  background-position: right;
}

.whatsapp-btn:hover {
  color: #ffffff;
  border-color: #25D366;

  transform: translateY(-3px);

  box-shadow:
    0 0 35px rgba(37, 211, 102, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

/* --- Particles --- */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.3);
}

@keyframes floatParticle {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(var(--tx), var(--ty));
  }

  66% {
    transform: translate(calc(var(--tx) * -0.5), calc(var(--ty) * 1.5));
  }
}

/* --- Shooting Stars --- */
.shooting-star {
  position: absolute;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.4);
}

@keyframes shootStar {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(-200vw) translateY(200vw) rotate(-45deg);
    opacity: 0;
  }
}

/* --- Twinkling Stars --- */
.twinkle-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.8);
  animation: twinkle 1s ease-in-out forwards;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* --- Border Glow Card Effect --- */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 16px;
  --glow-padding: 40px;
  --cone-spread: 25;
  --fill-opacity: 0.45;
  --card-bg: #111111;

  /* HSL Colors derived from '40 80 80' input */
  --glow-color: hsl(40deg 80% 80% / 100%);
  --glow-color-60: hsl(40deg 80% 80% / 60%);
  --glow-color-50: hsl(40deg 80% 80% / 50%);
  --glow-color-40: hsl(40deg 80% 80% / 40%);
  --glow-color-30: hsl(40deg 80% 80% / 30%);
  --glow-color-20: hsl(40deg 80% 80% / 20%);
  --glow-color-10: hsl(40deg 80% 80% / 10%);

  /* Gradient colors matching '#c084fc', '#f472b6', '#38bdf8' */
  --gradient-one: radial-gradient(at 80% 55%, #c084fc 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #f472b6 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #38bdf8 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #c084fc 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #f472b6 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #38bdf8 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #f472b6 0px, transparent 50%);
  --gradient-base: linear-gradient(#c084fc 0 100%);

  position: relative;
  border-radius: var(--border-radius) !important;
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  background: var(--card-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow: visible !important;
  box-shadow:
    rgba(0, 0, 0, 0.15) 0px 1px 2px,
    rgba(0, 0, 0, 0.15) 0px 2px 4px,
    rgba(0, 0, 0, 0.15) 0px 4px 8px,
    rgba(0, 0, 0, 0.15) 0px 8px 16px;
  transition: background var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}

/* Ensure all normal card children sit above the glow elements */
.border-glow-card > * {
  position: relative;
  z-index: 2;
}

/* Exclude the edge-light helper element from text positioning */
.border-glow-card > .edge-light {
  position: absolute !important;
  z-index: 1 !important;
  pointer-events: none;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #120F17) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, destination-over, destination-over, destination-over, destination-over, destination-over;
  opacity: calc(var(--fill-opacity, 0.45) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(40deg 80% 80% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%));
}

/* --- Light Point Custom Cursor --- */
@media (pointer: fine) {
  html.cursor-enabled,
  html.cursor-enabled * {
    cursor: none !important;
  }

  .light-point-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 
      0 0 10px 2px rgba(255, 255, 255, 0.8),
      0 0 20px 6px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: screen;
    transition: 
      width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
      height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
      margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
      margin-top 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
      background-color 0.3s ease,
      box-shadow 0.3s ease,
      opacity 0.2s ease;
    opacity: 0;
  }

  .light-point-cursor.visible {
    opacity: 1;
  }

  /* --- Morphological and Color States --- */

  /* Link & Button Hover (Cream/White Glow) */
  .light-point-cursor[data-hover="link"] {
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    background-color: var(--color-accent);
    box-shadow: 
      0 0 12px 3px var(--color-accent),
      0 0 24px 8px rgba(237, 235, 230, 0.5);
  }

  /* Service Card Hover (Purple/Violet Theme) */
  .light-point-cursor[data-hover="service"] {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    background-color: #c084fc;
    box-shadow: 
      0 0 15px 4px #c084fc,
      0 0 30px 10px rgba(192, 132, 252, 0.5);
  }

  /* Differential Card Hover (Cyan/Blue Theme) */
  .light-point-cursor[data-hover="diff"] {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    background-color: #38bdf8;
    box-shadow: 
      0 0 15px 4px #38bdf8,
      0 0 30px 10px rgba(56, 189, 248, 0.5);
  }

  /* Client/Partner Card Hover (Pink Theme) */
  .light-point-cursor[data-hover="client"] {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    background-color: #f472b6;
    box-shadow: 
      0 0 12px 3px #f472b6,
      0 0 24px 8px rgba(244, 114, 182, 0.5);
  }

  /* Portfolio Gallery Item Hover (Gold/Amber Theme) */
  .light-point-cursor[data-hover="portfolio"] {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    background-color: #f59e0b;
    box-shadow: 
      0 0 15px 4px #f59e0b,
      0 0 30px 10px rgba(245, 158, 11, 0.5);
  }

  /* WhatsApp Hover (Green Theme) */
  .light-point-cursor[data-hover="whatsapp"] {
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    background-color: #25D366;
    box-shadow: 
      0 0 14px 4px #25D366,
      0 0 28px 8px rgba(37, 211, 102, 0.4);
  }
}