/* CREATIVUN 2025 - Additional Styles */

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

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(217, 70, 239, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.8),
      0 0 30px rgba(6, 182, 212, 0.5);
  }
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: #111827;
  /* Warna latar belakang gelap (bg-gray-900) */
}

/* Efek bayangan untuk nuansa neon pada teks */
.text-glow-fuchsia {
  text-shadow: 0 0 8px rgba(217, 70, 239, 0.8), 0 0 10px rgba(217, 70, 239, 0.6);
}

.text-glow-cyan {
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.8), 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Efek bayangan untuk tombol */
.button-glow {
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.7), 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Custom Meteor Cursor */
.meteor-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #d946ef 0%, #06b6d4 70%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 
    0 0 10px #d946ef,
    0 0 20px #06b6d4,
    0 0 30px rgba(217, 70, 239, 0.3);
  animation: meteor-pulse 2s ease-in-out infinite;
}

.meteor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.8) 0%, rgba(6, 182, 212, 0.4) 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-out;
}

.meteor-particle {
  position: fixed;
  width: 3px;
  height: 3px;
  background: #8b5cf6;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.4s ease-out;
  box-shadow: 0 0 6px #8b5cf6;
}

.meteor-streak {
  position: fixed;
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, #d946ef 0%, rgba(217, 70, 239, 0.3) 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.2s ease-out;
}

@keyframes meteor-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 
      0 0 10px #d946ef,
      0 0 20px #06b6d4,
      0 0 30px rgba(217, 70, 239, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 
      0 0 15px #d946ef,
      0 0 25px #06b6d4,
      0 0 35px rgba(217, 70, 239, 0.5),
      0 0 45px rgba(6, 182, 212, 0.3);
  }
}

@keyframes meteor-sparkle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}

/* Hide default cursor */
* {
  cursor: none !important;
}

/* Modal specific cursor handling */
#registration-modal * {
  cursor: auto !important;
}

#registration-modal iframe {
  cursor: auto !important;
}

/* Ensure meteor effects don't interfere with modal */
#registration-modal {
  position: fixed;
  z-index: 10000 !important;
}

.meteor-cursor.modal-open,
.meteor-trail.modal-open,
.meteor-particle.modal-open,
.meteor-streak.modal-open {
  display: none !important;
}

/* CSS untuk fitur baru */
.progress-bar {
  transition: width 0.3s ease-in-out;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(217, 70, 239, 0.3);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #d946ef, #06b6d4);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
}

.timeline-line {
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background: linear-gradient(to bottom, #d946ef, #06b6d4);
}

/* Enhanced timeline styling for better visual hierarchy */
.timeline-item .min-w-\[140px\] {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(even) .min-w-\[140px\] {
  background: linear-gradient(135deg, #d946ef, #06b6d4) !important;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

/* Day section styling for 2-column layout */
.day-section {
  position: relative;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(31, 41, 55, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.day-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Day 1 specific styling */
.day-section:first-child {
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.day-section:first-child .timeline-item {
  border-left: 3px solid rgba(139, 92, 246, 0.3);
}

/* Purple border styling for new timeline items */
.day-section .timeline-item.border-purple-500\/30 {
  border-color: rgba(139, 92, 246, 0.3);
}

.day-section .timeline-item.border-purple-500\/30:hover {
  border-color: rgba(139, 92, 246, 0.6);
}

/* Purple text color for headings */
.text-purple-400 {
  color: #a78bfa;
}

/* Day 2 specific styling */
.day-section:last-child {
  border-left: 4px solid #ec4899;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(251, 146, 60, 0.05));
}

.day-section:last-child .timeline-item {
  border-left: 3px solid rgba(236, 72, 153, 0.3);
}

/* Enhanced timeline item styling for 2-column layout */
.day-section .timeline-item {
  position: relative;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.day-section .timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.3s ease;
}

.day-section .timeline-item:hover::before {
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
}

.day-section:last-child .timeline-item:hover::before {
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.8), transparent);
}

.day-section .timeline-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Time badge styling */
.day-section .timeline-item .bg-gradient-to-r {
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.day-section .timeline-item .bg-gradient-to-r::before {
  content: '';
  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;
}

.day-section .timeline-item:hover .bg-gradient-to-r::before {
  left: 100%;
}

/* Day header styling */
.day-section h3 {
  background: linear-gradient(135deg, #5b21b6, #1e40af) !important;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(91, 33, 182, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.day-section:last-child h3 {
  background: linear-gradient(135deg, #be185d, #ea580c) !important;
  box-shadow: 0 8px 32px rgba(190, 24, 93, 0.4);
}

.day-section h3::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  transform: rotate(0deg);
  transition: transform 3s ease;
}

.day-section:hover h3::before {
  transform: rotate(360deg);
}

/* Outfit styling */
.text-yellow-400 {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  font-weight: 700;
}

/* Mobile responsiveness for 2-column layout */
@media (max-width: 1024px) {
  .day-section {
    margin-bottom: 2rem;
  }
  
  .day-section .timeline-item {
    padding: 1rem;
  }
  
  .day-section .timeline-item .bg-gradient-to-r {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .day-section h3 {
    font-size: 1.5rem;
    padding: 1rem;
  }
  
  .day-section .timeline-item h4 {
    font-size: 1rem;
  }
  
  .day-section .timeline-item p {
    font-size: 0.875rem;
  }
}

/* Day header styling */
.timeline-item h3.bg-gradient-to-r {
  background: linear-gradient(135deg, #5b21b6, #1e40af) !important;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(91, 33, 182, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Outfit styling */
.text-yellow-400 {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  font-weight: 700;
}

/* Timeline container improvements */
.space-y-4 > .timeline-item {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness for timeline */
@media (max-width: 768px) {
  .timeline-item .min-w-\[140px\] {
    min-width: 100px !important;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .timeline-item {
    padding-left: 1rem;
  }
  
  .timeline-item::before {
    left: -4px;
  }
}

.gallery-item {
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.lightbox {
  backdrop-filter: blur(5px);
}

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

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

  50% {
    opacity: 0.7;
  }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Floating animation for hero elements */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Enhanced glow effects */
.enhanced-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Shimmer effect for loading states */
.shimmer {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Card hover effects */
.card-hover-effect {
  transition: all 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(45deg, #d946ef, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #374151;
  border-top: 4px solid #d946ef;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .timeline-item {
    padding-left: 1rem;
  }

  .timeline-item::before {
    left: -4px;
  }

  .card-hover-effect:hover {
    transform: none;
  }

  .notification {
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
  }

  .notification.show {
    transform: translateY(0);
  }

  /* Mobile back to top button */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .text-glow-fuchsia,
  .text-glow-cyan {
    text-shadow: none !important;
  }

  .bg-gray-900,
  .bg-gray-800 {
    background: white !important;
    border: 1px solid #ccc !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .text-gray-300,
  .text-gray-400 {
    color: #000 !important;
  }

  .bg-gray-800,
  .bg-gray-900 {
    background: #fff !important;
    border: 2px solid #000 !important;
  }
}

/* Focus styles for keyboard navigation */
.focus-visible:focus {
  outline: 2px solid #d946ef;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #374151;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #d946ef, #06b6d4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #c026d3, #0891b2);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #d946ef, #06b6d4);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(217, 70, 239, 0.6);
  background: linear-gradient(45deg, #c026d3, #0891b2);
}

.back-to-top:active {
  transform: translateY(-1px) scale(1.05);
}

/* Floating effect for back to top */
.back-to-top.show {
  animation: float-gentle 3s ease-in-out infinite;
}

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

/* Selection styles */
::selection {
  background: rgba(217, 70, 239, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(217, 70, 239, 0.3);
  color: white;
}
