@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap");

/* Global Styles */
:root {
  --fest-orange: #f07b26;
  --fest-dark: #0a0a0a;
  --warm-white: #fdfbf7;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
}


body {
  background-color: var(--fest-dark);
  color: #ffffff;
  font-family: "Inter", sans-serif !important;
  overflow-x: hidden;
  margin: 0;
  animation: pageFadeIn 0.8s ease-out;
}

/* .group-hover\:opacity-100 {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    transform: scale(0.95);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
} */


/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, #f07b26, #fdbb2d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.2;
}

/* Navigation Customization */
.nav-link {
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--fest-orange) !important;
  transform: translateY(-2px);
}

/* --- Dark-glass Mobile Nav --- */
#mobile-menu {
  background: rgba(10, 10, 10, 0.97) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}
#mobile-menu a {
  transition: all 0.3s ease;
}

#mobile-menu a:hover {
  color: #f07b26 !important;
  transform: scale(1.1);
}
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zungur-gradient {
  background:
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9)),
    url("https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

/* Program Cards */
.program_card {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  color: #333;
  transition: 0.3s ease;
}

.program_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(240, 123, 38, 0.1);
}

.press-card:hover img {
  transform: scale(1.1);
}

/* Schedule Tabs */
.day-tab.active {
  background-color: #f07b26;
  color: white;
  border-color: #f07b26;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f07b26;
  border: 4px solid #0a0a0a;
}

.guest-card:hover img {
  transform: scale(1.1);
}

/* Theme Section */
.theme-section {
  border-left: 1px solid rgba(240, 123, 38, 0.2);
  padding-left: 2rem;
  position: relative;
}

.theme-section::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 4px;
  height: 40px;
  background: #f07b26;
  border-radius: 2px;
}

/* Footer Socials */
.footer_section i {
  font-size: 1.2rem;
  margin: 0 10px;
  transition: 0.3s;
}

.footer_section i:hover {
  color: var(--fest-orange);
}

/* Social Grid Layouts */
.social_wall_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.social_item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 15px;
  background: #222;
}

.social_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 123, 38, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
  color: white;
  font-size: 2rem;
}

.social_item:hover .social_overlay {
  opacity: 1;
}

.platform_link {
  color: #999;
  margin: 10px 20px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.platform_link:hover {
  color: var(--fest-orange);
}

/* Press & Media Cards */
.media_card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: 0.3s;
}

.media_card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--fest-orange);
}

.download_btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: var(--fest-orange);
  color: white;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s;
  border: none;
}

.download_btn:hover {
  background: #d66a1e;
  color: white;
  text-decoration: none;
}

/* Press Release Items */
.press_release_item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.press_date {
  min-width: 100px;
  font-weight: 900;
  color: var(--fest-orange);
}

/* Hero Refinements */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Darker gradient at the bottom to transition into the next section */
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.2) 50%,
    rgba(10, 10, 10, 1) 100%
  );
  z-index: 1;
}

.gradient-text {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sponsors */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 4rem;
  position: relative;
  padding: 0.5rem 0;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 6rem;
  animation: scroll-marquee 30s linear infinite;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 4rem));
  }
}

/* Interactions */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.sponsor-logo {
  height: 48px;
  width: auto;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: contain;
}

.sponsor-logo:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

/* Tickets Specific UI */
.step-transition {
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.hidden-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ticket-card:hover {
  border-color: var(--fest-orange);
  background: rgba(255, 255, 255, 0.05);
}

input:checked + .slider {
  background-color: var(--fest-orange);
}
input:checked + .slider:before {
  transform: translateX(22px);
}

.recipient-section {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease-out,
    opacity 0.3s ease;
  opacity: 0;
}

.recipient-section.active {
  max-height: 500px;
  opacity: 1;
  margin-top: 2rem;
}

/* Modal Overlay */
.modal-overlay {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

/* Admin Panel */
/* Button Components */
.btn-primary {
  background-color: var(--fest-orange);
  color: #fff;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  background-color: #d66a1d;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(240, 123, 38, 0.2);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(3600deg); }
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid #fff;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: none;
}

.relative i.fa-search {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s;
}

.input-field:focus + i.fa-search {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fest-orange);
  transition: all 0.2s ease;
}

/* Standardized Admin Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--fest-orange);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Search icon highlight */
.input-field:focus {
  outline: none;
  border-color: #f07b26;
  background: rgba(240, 123, 38, 0.05);
  box-shadow: 0 0 20px rgba(240, 123, 38, 0.1);
}

.input-field select,
.input-field option,
select.input-field {
  background-color: #121212 !important;
  color: #ffffff !important;
  border: none;
  padding: 10px;
  transition: all 0.3s ease;
}
select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}
select.input-field:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background-color: #1a1a1a !important;
}

/* Navigation Links */
.nav-link {
  transition: all 0.3s ease;
  position: relative;
}

.nav-link.active {
  color: var(--fest-orange);
  background: rgba(255, 255, 255, 0.05);
}

/* Sidebar */
aside {
  height: 100vh; /* Lock to viewport height */
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(240, 123, 38, 0.03);
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 123, 38, 0.3);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 123, 38, 0.3) rgba(255, 255, 255, 0.02);
}

/* Tab Content & Animations */
.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease forwards;
}

.tab-content.active {
  display: block;
}

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

/* Custom Toggle Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--fest-orange);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Form Input Fields */
.input-field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.input-field:focus {
  border-color: var(--fest-orange);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  box-shadow: 0 0 0 4px rgba(240, 123, 38, 0.1);
}

/* Toast Notifications */
*:not(i) {
  font-family: "Inter", sans-serif !important;
}

.fas,.fab,.far,.fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900;
}

/* Toast Positioning */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  transform: translateX(120%); 
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10001;
}

.toast-container.show {
  transform: translateX(0); 
  opacity: 1;
  visibility: visible;
}

aside::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.text-center::placeholder {
  text-align: center;
}

/* Animated Background Orbs */
.orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15; /* Adjust for brightness */
  animation: float 20s infinite alternate;
}

@keyframes float {
  from {
    transform: translate(-10%, -10%) scale(1);
  }
  to {
    transform: translate(10%, 10%) scale(1.1);
  }
}

/* Modal System */
#modal-overlay:not(.hidden) {
  display: flex !important;
  opacity: 1;
  pointer-events: all;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

/* Modal Content Animation */
#modal-overlay:not(.hidden) > div:not(.hidden) {
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hero Preview Timer Boxes */
.preview-timer-box {
  background: rgba(255, 255, 255, 0.05); /* Slight white tint */
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  backdrop-filter: blur(8px); /* Blurs background for glass effect */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure the countdown container looks good */
#preview-countdown-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

/* --- Checkout --- */
#recipient-section {
  display: none;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

#recipient-section.active {
  display: block;
  opacity: 1;
}

#successModal.flex {
    display: flex !important;
}

/* Optional: Fade in animation */
#successModal {
    transition: opacity 0.3s ease-in-out;
}


/* --- Scanner UI --- */
#reader {
  width: 100% !important;
  border: none !important;
  border-radius: 2.5rem !important;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hide the default library borders and text */
#reader__scan_region {
  background: #000 !important;
}

#scannerInterface {
  position: relative;
}

#scanResult.hidden {
  display: none !important;
}

#reader img {
  display: none;
}

/* Full Screen Result Overlay */
#scanResult {
  position: absolute;
  inset: 0; /* Covers the whole scanner card */
  z-index: 100;
  background: rgba(
    10,
    10,
    10,
    0.95
  ); /* Dark background to show result clearly */
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scan-status-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* --- Scanner & Login UI --- */
.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}
.shake-error {
  animation: shake 0.4s ease-in-out;
  border-color: #ef4444 !important;
}

/* Buttons loading spinner */
.loading-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

#modal-sp-bio,
.guest-card p {
  text-justify: inter-word; 
  hyphens: auto; 
  word-break: break-word;
}

/* --- QR Scanner Styling --- */
#reader {
  width: 100% !important;
  border: none !important;
  background: #000 !important;
  border-radius: 2.5rem;
  overflow: hidden;
  position: relative;
}

#reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 1.5rem;
}

#reader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f07b26, transparent);
  box-shadow: 0 0 15px #f07b26;
  z-index: 10;
  animation: laserMove 2s infinite linear;
}

@keyframes laserMove {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

.scanner-viewfinder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  z-index: 5;
  pointer-events: none;
}

/* Hide clutter from the Html5Qrcode lib */
reader__dashboard_section_csr button,
#reader__dashboard_section_fsr,
#reader__status_span,
#reader__camera_selection,
img[alt="Info icon"],
img[alt="Camera menu icon"] {
  display: none !important;
}
#reader__scan_region {
  background: black !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-4px);
  }
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

