@import "tailwindcss";

@theme {
  --color-theatre-red: #8B0000;
  --color-theatre-dark: #1a0000;
  --color-theatre-black: #0a0a0a;
  --color-gold-accent: #D4AF37;
  --color-african-red: #C41E3A;
  
  --font-family-display: 'Playfair Display', serif;
  --font-family-body: 'Montserrat', sans-serif;
  --font-family-cinzel: 'Cinzel', serif;
}

@layer base {
  :root {
    --theatre-red: #8B0000;
    --theatre-dark: #1a0000;
    --theatre-black: #0a0a0a;
    --gold-accent: #D4AF37;
    --african-red: #C41E3A;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: white;
    overflow-x: hidden;
  }

  ::selection {
    background: var(--gold-accent);
    color: var(--theatre-black);
  }

  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--theatre-black);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--gold-accent);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #b8962e;
  }
}

@layer components {
  .text-gradient {
    background: linear-gradient(135deg, #8B0000 0%, #C41E3A 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .bg-gradient-red {
    background: linear-gradient(135deg, #8B0000 0%, #C41E3A 100%);
  }

  /* Navigation */
  .nav-link {
    position: relative;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theatre-red), var(--gold-accent));
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--gold-accent);
  }

  .nav-link-mobile {
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
  }

  .nav-link-mobile:hover,
  .nav-link-mobile.active {
    color: var(--gold-accent);
    padding-left: 1.5rem;
    border-color: var(--gold-accent);
  }

  /* Logo */
  .logo-container {
    display: inline-block;
    perspective: 500px;
  }

  .logo-3d {
    display: flex;
    gap: 2px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
  }

  .logo-container:hover .logo-3d {
    transform: rotateY(10deg) rotateX(10deg);
  }

  .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-accent);
    text-shadow: 
      2px 2px 0 var(--theatre-red),
      4px 4px 0 rgba(0,0,0,0.3);
    transition: all 0.3s ease;
  }

  .logo-container:hover .logo-text {
    text-shadow: 
      3px 3px 0 var(--theatre-red),
      6px 6px 0 rgba(0,0,0,0.3);
  }

  .logo-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: white;
    margin-top: 0.25rem;
    text-align: center;
  }

  /* Buttons */
  .btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--theatre-red) 0%, #a00000 100%);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
  }

  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.6);
  }

  .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
  }

  .btn-primary:hover .btn-shine {
    left: 100%;
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: 2px solid var(--gold-accent);
    color: var(--gold-accent);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
  }

  .btn-secondary:hover {
    background: var(--gold-accent);
    color: var(--theatre-black);
    transform: translateY(-3px);
  }

  .btn-ticket {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #b8962e 100%);
    color: var(--theatre-black);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s ease;
    overflow: hidden;
  }

  .btn-ticket:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
  }

  /* Hero Section */
  .hero-bg {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse at 20% 80%, rgba(139, 0, 0, 0.4) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 50%, rgba(196, 30, 58, 0.3) 0%, transparent 70%),
      linear-gradient(180deg, var(--theatre-black) 0%, var(--theatre-dark) 100%);
    z-index: 0;
  }

  .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
  }

  .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s infinite ease-in-out;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.2; }
  }

  /* Animations */
  .animate-fade-in {
    animation: fadeIn 1s ease forwards;
  }

  .animate-slide-up {
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
  }

  .animate-fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
  }

  .animate-fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
  }

  .animate-scroll {
    animation: scroll 2s infinite;
  }

  @keyframes fadeIn {
    to { opacity: 1; }
  }

  @keyframes slideUp {
    to { 
      opacity: 1; 
      transform: translateY(0);
    }
  }

  @keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
  }

  /* Stats Cards */
  .stat-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(26, 0, 0, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
  }

  .stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }

  /* Service Cards */
  .service-card {
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(26, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .service-card:hover::before {
    opacity: 1;
  }

  .service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold-accent);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  }

  .service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theatre-red) 0%, var(--african-red) 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    color: white;
    transition: all 0.4s ease;
  }

  .service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
  }

  /* Product Cards */
  .product-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(26, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.5s ease;
  }

  .product-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: var(--gold-accent);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  }

  .product-image {
    height: 250px;
    background: linear-gradient(135deg, var(--theatre-red) 0%, var(--theatre-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
  }

  .product-image-2 {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--theatre-dark) 100%);
  }

  .product-overlay {
    position: relative;
    z-index: 1;
    opacity: 0.8;
    transition: all 0.5s ease;
  }

  .product-card:hover .product-overlay {
    opacity: 1;
    transform: scale(1.1);
  }

  .product-content {
    padding: 2rem;
  }

  .btn-product {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #b8962e 100%);
    color: var(--theatre-black);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
  }

  .btn-product:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
  }

  /* Testimonial Cards */
  .testimonial-card {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(26, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
  }

  .testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  }

  .testimonial-stars {
    font-size: 1.25rem;
    letter-spacing: 0.25em;
  }

  /* African Pattern */
  .african-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23D4AF37' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  }

  /* Social Icons */
  .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
  }

  .social-icon:hover {
    background: var(--gold-accent);
    color: var(--theatre-black);
    transform: translateY(-3px);
  }

  /* Forms */
  .form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
  }

  .form-input:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(255,255,255,0.1);
  }

  .form-input::placeholder {
    color: rgba(255,255,255,0.5);
  }

  /* Event Cards */
  .event-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(26, 0, 0, 0.4) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
  }

  .event-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: var(--gold-accent);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  }

  .event-image {
    height: 200px;
    background: linear-gradient(135deg, var(--theatre-red) 0%, var(--theatre-dark) 100%);
    position: relative;
    overflow: hidden;
  }

  .event-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--theatre-black), transparent);
  }

  .event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gold-accent);
    color: var(--theatre-black);
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
  }

  .event-date .day {
    font-size: 1.5rem;
    line-height: 1;
  }

  .event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  .event-content {
    padding: 1.5rem;
  }

  .event-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-accent);
    font-size: 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
  }

  .event-price {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--theatre-red) 0%, var(--african-red) 100%);
    border-radius: 8px;
    font-weight: 600;
  }

  /* Modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .modal-content {
    background: linear-gradient(135deg, var(--theatre-dark) 0%, var(--theatre-black) 100%);
    border: 1px solid var(--gold-accent);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .modal-overlay.active .modal-content {
    transform: scale(1);
  }

  /* Ticket Card */
  .ticket-card {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--theatre-dark) 100%);
    border: 2px solid var(--gold-accent);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
  }

  .ticket-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--theatre-black);
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .ticket-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--theatre-black);
    border-radius: 50%;
    transform: translate(50%, -50%);
  }

  .ticket-header {
    background: linear-gradient(135deg, var(--theatre-red) 0%, var(--african-red) 100%);
    padding: 1.5rem;
    text-align: center;
  }

  .ticket-body {
    padding: 2rem;
  }

  .barcode {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 1rem 0;
  }

  .barcode span {
    width: 2px;
    height: 60px;
    background: var(--gold-accent);
    border-radius: 2px;
  }

  /* 3D Tilt Effect Container */
  .tilt-container {
    transform-style: preserve-3d;
    perspective: 1000px;
  }

  /* Tab Styles */
  .tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .tab-btn:hover,
  .tab-btn.active {
    background: linear-gradient(135deg, var(--theatre-red) 0%, var(--african-red) 100%);
    border-color: var(--theatre-red);
    color: white;
  }

  /* Pricing Cards */
  .pricing-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(26, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
  }

  .pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-accent);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  }

  .pricing-card.featured {
    border-color: var(--gold-accent);
    transform: scale(1.05);
  }

  .pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
  }

  .pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-accent);
  }

  .pricing-amount span {
    font-size: 1rem;
    color: white;
  }
}

@layer utilities {
  .perspective-1000 {
    perspective: 1000px;
  }

  .preserve-3d {
    transform-style: preserve-3d;
  }

  .backface-hidden {
    backface-visibility: hidden;
  }
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Spotlight Effect */
.spotlight {
  position: relative;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

/* Glowing Border */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--theatre-red), var(--gold-accent), var(--theatre-red));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-border:hover::after {
  opacity: 1;
}

/* Image Hover Zoom */
.zoom-hover {
  overflow: hidden;
}

.zoom-hover img {
  transition: transform 0.5s ease;
}

.zoom-hover:hover img {
  transform: scale(1.1);
}

/* Text Reveal */
.text-reveal {
  clip-path: inset(0 100% 0 0);
  animation: textReveal 1s ease forwards;
}

@keyframes textReveal {
  to { clip-path: inset(0 0 0 0); }
}

/* Parallax Background */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Gradient Text Animation */
.gradient-animate {
  background-size: 200% auto;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* Pulse Glow */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

/* Floating Animation */
.float {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Counter Animation */
.counter {
  display: inline-block;
}

/* ============================================ */
/* 3D HERO SLIDER STYLES */
/* ============================================ */
.hero-3d-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease, transform 8s ease;
  transform: scale(1.1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.9) 100%
  );
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(139, 0, 0, 0.3) 0%,
    rgba(212, 175, 55, 0.1) 30%,
    transparent 70%
  );
  z-index: 2;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Hero 3D Floating Shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  border-radius: 50%;
  animation-delay: -5s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  transform: rotate(30deg);
  animation-delay: -10s;
}

@keyframes floatShape {
  0%, 100% { 
    transform: translateY(0) rotate(45deg);
    opacity: 0.3;
  }
  50% { 
    transform: translateY(-30px) rotate(90deg);
    opacity: 0.6;
  }
}

/* Hero Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(212, 175, 55, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover,
.slider-dot.active {
  background: var(--gold-accent);
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ============================================ */
/* GALLERY STYLES */
/* ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.gallery-item-1 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-2 {
  grid-column: span 2;
}

.gallery-item-3,
.gallery-item-4,
.gallery-item-5,
.gallery-item-6 {
  grid-column: span 1;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(139, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  
  .gallery-item-1 {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .gallery-item-2 {
    grid-column: span 1;
  }
  
  .gallery-item-3,
  .gallery-item-4,
  .gallery-item-5,
  .gallery-item-6 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 150px);
  }
  
  .gallery-item-1 {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .gallery-item-2,
  .gallery-item-3,
  .gallery-item-4,
  .gallery-item-5,
  .gallery-item-6 {
    grid-column: span 1;
  }
}

/* ============================================ */
/* ENHANCED 3D EFFECTS */
/* ============================================ */
.perspective-3d {
  perspective: 1500px;
}

.preserve-3d {
  transform-style: preserve-3d;
}

.rotate-y-15 {
  transform: rotateY(15deg);
}

.rotate-x-15 {
  transform: rotateX(15deg);
}

/* Enhanced hover effects */
.hover-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* Gradient borders */
.gradient-border {
  position: relative;
  background: linear-gradient(var(--theatre-dark), var(--theatre-dark)) padding-box,
              linear-gradient(135deg, var(--theatre-red), var(--gold-accent)) border-box;
  border: 2px solid transparent;
  border-radius: 16px;
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filterpx);
  border: blur(10: 1px solid rgba(255, 255, 255, 0.1);
}
