@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* Custom animations */
@keyframes fade-in-out {
  0%,
  100% {
    opacity: 0;
  }
  16.67%,
  83.33% {
    opacity: 1;
  }
}

.animate-fade-in-out {
  animation: fade-in-out 24s infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

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

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #e11d48, #f97316);
}

.modern-shadow {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: translateY(-5px);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spotlight:hover .spotlight-effect {
  opacity: 1;
}

.led-glow {
  position: relative;
}

.led-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(255, 255, 255, 0.1), rgba(0, 0, 255, 0.1));
  animation: led-pulse 3s infinite alternate;
  pointer-events: none;
}

@keyframes led-pulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}

.billboard-3d {
  perspective: 1000px;
}

.billboard-3d-inner {
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.billboard-3d:hover .billboard-3d-inner {
  transform: rotateY(5deg) rotateX(5deg);
}

.two-sided-billboard {
  perspective: 1500px;
}

.two-sided-billboard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.two-sided-billboard:hover .two-sided-billboard-inner {
  transform: rotateY(180deg);
}

.two-sided-billboard-front,
.two-sided-billboard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.two-sided-billboard-back {
  transform: rotateY(180deg);
}

.billboard-card {
  perspective: 1000px;
}

.billboard-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.billboard-card:hover .billboard-card-inner {
  transform: rotateY(180deg);
}

.billboard-card-front,
.billboard-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.billboard-card-back {
  transform: rotateY(180deg);
}

.tilt-effect {
  transition: transform 0.3s ease;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
}

.parallax-element {
  transition: transform 0.2s ease-out;
}

.rotating-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.rotating-bg-1 {
  opacity: 1;
  animation: rotate-bg 20s infinite 0s;
}

.rotating-bg-2 {
  animation: rotate-bg 20s infinite 5s;
}

.rotating-bg-3 {
  animation: rotate-bg 20s infinite 10s;
}

.rotating-bg-4 {
  animation: rotate-bg 20s infinite 15s;
}

@keyframes rotate-bg {
  0%,
  95%,
  100% {
    opacity: 0;
  }
  5%,
  90% {
    opacity: 1;
  }
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes flipCard {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes flipCardBack {
  0% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.6s ease forwards;
}

@keyframes slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(20px);
  animation: slide-left 0.6s ease forwards;
}

@keyframes slide-left {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(-20px);
  animation: slide-right 0.6s ease forwards;
}

@keyframes slide-right {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.typing-animation {
  overflow: hidden;
  border-right: 3px solid white;
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

.animate-pulse-slow {
  animation: pulse 3s infinite ease-in-out;
}

.animate-float {
  animation: float 6s infinite ease-in-out;
}

.animate-rotate {
  animation: rotate 10s linear infinite;
}

.animate-glow {
  animation: glow 2s infinite ease-in-out;
}

.animate-slide-down {
  animation: slideDown 0.5s ease forwards;
}

.billboard-card {
  perspective: 1000px;
}

.billboard-card:hover {
  transform: translateY(-10px);
}

.billboard-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.billboard-card:hover .billboard-card-inner {
  transform: rotateY(180deg);
}

.billboard-card-front,
.billboard-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.75rem;
  overflow: hidden;
}

.billboard-card-back {
  transform: rotateY(180deg);
}

.spotlight {
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-dot {
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: white;
}

.billboard-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.billboard-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for items */
.staggered-item {
  opacity: 0;
  transform: translateY(20px);
}

.staggered-item:nth-child(1) {
  animation: stagger-in 0.6s ease forwards 0.1s;
}

.staggered-item:nth-child(2) {
  animation: stagger-in 0.6s ease forwards 0.3s;
}

.staggered-item:nth-child(3) {
  animation: stagger-in 0.6s ease forwards 0.5s;
}

@keyframes stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal animation for sections */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.staggered-item {
  opacity: 0;
  transform: translateY(20px);
}

.staggered-item.visible {
  animation: slideInUp 0.5s ease forwards;
}

.staggered-item:nth-child(1) {
  animation-delay: 0.1s;
}
.staggered-item:nth-child(2) {
  animation-delay: 0.2s;
}
.staggered-item:nth-child(3) {
  animation-delay: 0.3s;
}
.staggered-item:nth-child(4) {
  animation-delay: 0.4s;
}
.staggered-item:nth-child(5) {
  animation-delay: 0.5s;
}
.staggered-item:nth-child(6) {
  animation-delay: 0.6s;
}

.tilt-effect {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.led-glow {
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
  animation: glow 2s infinite ease-in-out;
}

/* Video player styling */
video {
  max-width: 100%;
  height: auto;
}

video:focus {
  outline: none;
}
