
:where([class^="ri-"])::before { content: "\f3c2"; }

/* Full-screen carousel offset */
.pt-screen\: {
  padding-top: 100vh;
}

.mt-screen {
  margin-top: 100vh;
}

.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --border-color: #334155;
}

.dark-mode * {
  background-color: inherit;
}

.dark-mode body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.dark-mode nav {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: var(--border-color) !important;
}

.dark-mode footer {
  background: #1a1f2e !important;
  color: var(--text-primary) !important;
}

.dark-mode a {
  color: #60a5fa !important;
}

.dark-mode a:hover {
  color: #93c5fd !important;
}

.dark-mode .bg-white {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.dark-mode .bg-gray-50 {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.dark-mode .bg-gray-100 {
  background: #334155 !important;
}

.dark-mode .text-gray-900 {
  color: var(--text-primary) !important;
}

.dark-mode .text-gray-600 {
  color: var(--text-secondary) !important;
}

.dark-mode .text-gray-700 {
  color: var(--text-secondary) !important;
}

.dark-mode .text-gray-300 {
  color: var(--text-secondary) !important;
}

.dark-mode .text-gray-400 {
  color: #94a3b8 !important;
}

.dark-mode .text-amber-100 {
  color: var(--text-secondary) !important;
}

.dark-mode .text-amber-200 {
  color: #fed7aa !important;
  opacity: 0.9;
}

.dark-mode .border-gray-200 {
  border-color: var(--border-color) !important;
}

.dark-mode .border-gray-800 {
  border-color: var(--border-color) !important;
}

.dark-mode .bg-gradient-to-br {
  background-color: var(--bg-secondary) !important;
}

.dark-mode .shadow-lg {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.dark-mode p {
  color: var(--text-secondary) !important;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: var(--text-primary) !important;
}

.dark-mode .accessibility-panel {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.dark-mode .accessibility-panel label {
  color: var(--text-primary) !important;
}

.dark-mode .accessibility-panel input[type="range"] {
  background: #334155 !important;
}

.high-contrast {
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --border-color: #ffffff;
}

.high-contrast body {
  background: #000000 !important;
  color: #ffffff !important;
}

.high-contrast nav {
  background: #000000 !important;
  border-color: #ffffff !important;
}

.high-contrast footer {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.high-contrast a {
  color: #ffffff !important;
  text-decoration: underline;
}

.high-contrast .bg-white {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.high-contrast .bg-gray-50 {
  background: #000000 !important;
}

.high-contrast .bg-gray-100 {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

.high-contrast .text-gray-900 {
  color: #ffffff !important;
}

.high-contrast .text-gray-600 {
  color: #ffffff !important;
}

.high-contrast .text-gray-700 {
  color: #ffffff !important;
}

.high-contrast .text-gray-300 {
  color: #ffffff !important;
}

.high-contrast .text-gray-400 {
  color: #ffffff !important;
}

.high-contrast .text-amber-100 {
  color: #ffffff !important;
}

.high-contrast .text-amber-200 {
  color: #ffffff !important;
}

.high-contrast .border-gray-200 {
  border-color: #ffffff !important;
}

.high-contrast .border-gray-800 {
  border-color: #ffffff !important;
}

.high-contrast .bg-gradient-to-br {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
}

.high-contrast .shadow-lg {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.high-contrast p {
  color: #ffffff !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6 {
  color: #ffffff !important;
}

.high-contrast .accessibility-panel {
  background: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 3px #ffffff !important;
}

.high-contrast .accessibility-panel label {
  color: #ffffff !important;
}

.high-contrast .accessibility-panel input[type="range"] {
  background: #333333 !important;
  border: 2px solid #ffffff !important;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

.logo-text {
  font-family: 'Pacifico', serif;
}

.nav-link-premium {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.hero-bg {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(245, 158, 11, 0.6) 100%),
    url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&h=1080') center/cover;
}

.scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.scroll-item {
  flex: 1 1 calc(33.333% - 1.333rem);
  min-width: 300px;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Fade-in */
.navbar-fade {
opacity: 0;
transition: opacity 0.8s ease;
}

.navbar-fade.visible {
opacity: 1;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}


.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

.accessibility-panel {
  position: fixed;
  top: 50%;
  right: -300px;
  transform: translateY(-50%);
  width: 280px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 1.5rem;
}

.accessibility-panel.open {
  right: 20px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #DC2626, #F59E0B);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.book-container {
  perspective: none;
  display: none;
}

.book {
  display: none;
}

.book-page {
  display: none;
}

.carousel-container {
  overflow: hidden;
}

.carousel-wrapper {
  scroll-behavior: smooth;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  transition: opacity 0.6s ease;
}

/* ===============================================
   STACKED CARD DECK CAROUSEL - PREMIUM DESIGN
   =============================================== */

.stacked-carousel-container {
  perspective: 1000px;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}

.stacked-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  cursor: grab;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.stacked-card:active {
  cursor: grabbing;
}

/* Stack positioning - cards offset behind each other */
.stacked-card[data-index="0"] {
  z-index: 30;
  transform: translateY(0) rotateZ(0deg) scale(1);
  opacity: 1;
}

.stacked-card[data-index="1"] {
  z-index: 20;
  transform: translateY(12px) rotateZ(1deg) scale(0.95);
  opacity: 0.8;
}

.stacked-card[data-index="2"] {
  z-index: 10;
  transform: translateY(24px) rotateZ(-1deg) scale(0.9);
  opacity: 0.6;
}

.stacked-card[data-index="3"] {
  z-index: 5;
  transform: translateY(36px) rotateZ(0.5deg) scale(0.85);
  opacity: 0.4;
}

/* Exit animation - slide off to the left */
.stacked-card.exit-left {
  animation: slideOffLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Exit animation - slide off to the right */
.stacked-card.exit-right {
  animation: slideOffRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideOffLeft {
  0% {
    transform: translateY(0) translateX(0) rotateZ(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) translateX(-150%) rotateZ(-15deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes slideOffRight {
  0% {
    transform: translateY(0) translateX(0) rotateZ(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(0) translateX(150%) rotateZ(15deg) scale(0.8);
    opacity: 0;
  }
}

/* Card overlay for darker, better text readability */
.stacked-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Show overlay only for active card */
.stacked-card[data-index="0"] .stacked-card-overlay {
  opacity: 1;
}

/* Card content wrapper */
.stacked-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* Show content only for active card */
.stacked-card[data-index="0"] .stacked-card-content {
  opacity: 1;
  pointer-events: auto;
}

/* Badge */
.stacked-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Title */
.stacked-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Description */
.stacked-description {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 600px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* CTA Button */
.stacked-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stacked-cta:hover {
  background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.4);
}

.stacked-cta:active {
  transform: translateY(-2px);
}

.stacked-cta i {
  transition: transform 0.3s ease;
}

.stacked-cta:hover i {
  transform: translateX(4px);
}

/* Entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 1024px) {
  .stacked-card {
    border-radius: 24px;
  }

  .stacked-card-content {
    padding: 40px;
  }

  .stacked-title {
    font-size: 2.5rem;
  }

  .stacked-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .stacked-card {
    border-radius: 20px;
  }

  .stacked-card-content {
    padding: 28px;
  }

  .stacked-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }

  .stacked-description {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .stacked-badge {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .stacked-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .stacked-card {
    border-radius: 16px;
  }

  .stacked-card-content {
    padding: 16px;
    justify-content: flex-end;
  }

  .stacked-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .stacked-description {
    font-size: 0.75rem;
    margin-bottom: 12px;
    max-width: 100%;
    line-height: 1.4;
  }

  .stacked-badge {
    font-size: 9px;
    padding: 3px 8px;
    margin-bottom: 8px;
  }

  .stacked-cta {
    padding: 8px 16px;
    font-size: 0.75rem;
    gap: 4px;
  }

}

.wild-title {
  background: linear-gradient(45deg, #8B4513, #D2691E, #CD853F);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}
