/* Custom styles for Estudio RK */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@layer utilities {
  .text-glow {
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
  }
  .box-glow {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080a0e;
}
::-webkit-scrollbar-thumb {
  background: #232b3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c5a059;
}

/* Lightbox animation */
#lightbox-modal.flex,
#vcard-modal.flex {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Infinite Marquee Rows */
.marquee-container {
  overflow: hidden;
  user-select: none;
  position: relative;
  min-height: 11rem;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #080a0e, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #080a0e, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

.marquee-left {
  animation: scrollLeft 45s linear infinite;
}

.marquee-right {
  animation: scrollRight 45s linear infinite;
}

/* Pause on hover/touch */
.marquee-container:hover .marquee-track,
.marquee-container:active .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Digital Business Card texture */
.digital-card {
  background: radial-gradient(circle at 10% 20%, #1e2638 0%, #0d121c 90%);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8), 0 0 20px rgba(197,160,89,0.15);
}
