/* Custom Fonts: Commissioner */
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/font/Commissioner-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Ysabeau Fonts */
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ysabeau';
  src: url('/font/Ysabeau-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Commissioner', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  background-color: #080511;
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080511;
}
::-webkit-scrollbar-thumb {
  background: #251b3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5227FF;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(19, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card {
  background: rgba(19, 15, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-modal {
  background: rgba(14, 10, 24, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glow-btn {
  box-shadow: 0 0 35px -5px rgba(82, 39, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-btn:hover {
  box-shadow: 0 0 50px 0px rgba(82, 39, 255, 0.85);
}

.font-ysabeau {
  font-family: 'Ysabeau', sans-serif !important;
}

.font-commissioner {
  font-family: 'Commissioner', sans-serif !important;
}

/* Accordion Gallery */
.accordion-gallery {
  display: flex;
  width: 100%;
  gap: var(--ag-gap, 12px);
  perspective: 1200px;
  user-select: none;
  overflow: hidden;
  box-sizing: border-box;
}

.ag-panel {
  flex: 1 1 0%;
  position: relative;
  overflow: hidden;
  border-radius: var(--ag-radius, 20px);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: flex-grow, transform;
  outline: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 380px;
}

.ag-panel:hover,
.ag-panel--active {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 15px 40px -10px rgba(82, 39, 255, 0.4);
}

.ag-panel__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ag-panel__media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ag-media-size, 100%);
  height: 100%;
  min-width: 100%;
  will-change: transform, filter;
  transform: translate(-50%, -50%);
}

.ag-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: grayscale(var(--ag-gray, 0)) brightness(calc(1 - var(--ag-dim, 0)));
  transition: filter 0.4s ease;
}

.ag-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 0, 16, 0.9) 0%, rgba(6, 0, 16, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.ag-panel__label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 10;
  pointer-events: none;
}

.ag-panel__bar {
  width: 28px;
  height: 3px;
  background: var(--ag-accent, #5227FF);
  border-radius: 9999px;
  box-shadow: 0 0 10px var(--ag-accent, #5227FF);
  margin-bottom: 4px;
}

.ag-panel__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.ag-panel__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Marquee / Infinite Ticker Animations */
@keyframes marquee-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

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

.animate-marquee-left {
  display: flex;
  width: max-content;
  animation: marquee-left 35s linear infinite;
}

.animate-marquee-right {
  display: flex;
  width: max-content;
  animation: marquee-right 35s linear infinite;
}

.animate-marquee-left:hover,
.animate-marquee-right:hover {
  animation-play-state: paused;
}
