/* ===================================
   Event Palace - Visual Enhancements
   Making the site "pop" with vibrant effects
   =================================== */

/* Enhanced Card Hover Effects */
.card {
  position: relative;
  overflow: visible !important;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  border-radius: 12px 12px 0 0;
}

.card:hover::before {
  transform: scaleX(1);
  animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

/* Enhanced Button Hover Effects */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(224, 191, 184, 0.5);
}

/* Gallery Item Enhanced Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
  filter: brightness(1.1) contrast(1.1);
}

.gallery-overlay {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(224, 191, 184, 0.9), rgba(212, 175, 55, 0.9));
}

.gallery-overlay span {
  transition: transform 0.4s ease;
  display: inline-block;
}

.gallery-item:hover .gallery-overlay span {
  transform: scale(1.2);
}

/* Feature Card Pulse Animation */
.feature-card {
  animation: fadeInUp 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Section Title Animation */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  border-radius: 2px;
  animation: titleUnderline 1.5s ease forwards;
}

@keyframes titleUnderline {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 120px;
    opacity: 1;
  }
}

/* Enhanced Navigation Hover */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

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

/* Form Focus Enhancement */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  transform: scale(1.02);
}

/* Hero Content Animation Enhancement */
.hero-content {
  animation: heroZoom 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  transform: scale(0.8);
  opacity: 0;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating Animation for Icons (only for regular cards, not feature-cards) */
.card:not(.feature-card) svg {
  animation: float 3s ease-in-out infinite;
}

.feature-card svg {
  transition: transform 0.3s ease;
}

.feature-card:hover svg {
  transform: scale(1.1);
}

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

/* Add gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glowing effect on hover for contact info */
.contact-details a:hover {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

/* Footer link hover effect */
.site-footer a {
  position: relative;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* Scroll-triggered fade-in for sections */
.section {
  animation: fadeIn 1s ease;
}

/* Enhanced shadow on scroll for header */
.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Image zoom on load */
@keyframes imageZoom {
  from {
    transform: scale(1.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-item img,
.card img {
  animation: imageZoom 0.8s ease forwards;
}

/* Ripple effect on button click */
.btn:active {
  transform: scale(0.95);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.6s;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 0;
}

/* Grid item stagger animation */
.grid > * {
  animation: fadeInUp 0.8s ease backwards;
}

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

/* Text shimmer on hover */
.logo:hover {
  background: linear-gradient(90deg, var(--text-light), var(--secondary-color), var(--text-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}
