/* Ensure full-screen, snap scrolling */
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  cursor: none;
  background: #121212;
}

/* Advanced custom cursor */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.9) 20%,
      rgba(59, 130, 246, 0.6) 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.cursor-trail {
  position: fixed;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.3) 20%,
      transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cursor.hovered {
  transform: scale(1.5);
  background: radial-gradient(circle,
      rgba(255, 255, 255, 1) 20%,
      rgba(59, 130, 246, 0.8) 80%);
}

/* Smooth snap scrolling */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.snap-item {
  scroll-snap-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Scrollbar customization */
.snap-container::-webkit-scrollbar {
  width: 6px;
}

.snap-container::-webkit-scrollbar-track {
  background: transparent;
}

.snap-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.snap-container {
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.scroll-dot.active {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  transform: scale(1.6);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.scroll-dot:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.6);
}

/* Navigation arrows - Updated positioning */
.nav-arrow {
  position: fixed;
  right: 60px;
  /* Moved to right, next to scroll indicator */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.85;
}

.nav-arrow:hover {
  opacity: 1;
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-arrow.up {
  top: calc(50% - 80px);
  /* Positioned above scroll indicator */
}

.nav-arrow.down {
  bottom: calc(50% - 80px);
  /* Positioned below scroll indicator */
}

/* Gradient backgrounds */
.gradient-1 {
  background: linear-gradient(145deg, #2d3954, #4c70af, #5e81ac);
  position: relative;
  animation: gradientShift 15s ease-in-out infinite;
}

.gradient-2 {
  background: linear-gradient(145deg, #b85b7a, #d16d96, #944f6b);
  position: relative;
  animation: gradientShift 15s ease-in-out infinite;
}

.gradient-3 {
  background: linear-gradient(145deg, #1f8aa2, #3ba3c3, #5db2d4);
  position: relative;
  animation: gradientShift 15s ease-in-out infinite;
}

.gradient-4 {
  background: linear-gradient(135deg, #3b7c5f, #4d5e8b);
  position: relative;
}

.gradient-5 {
  background: linear-gradient(135deg, #5f9ad1, #a694e9);
  position: relative;
}

.gradient-6 {
  background: linear-gradient(135deg, #644e9c, #756ec7);
  position: relative;
}

.gradient-7 {
  background: linear-gradient(135deg, #a55671, #c26a87);
  position: relative;
}

.gradient-8 {
  background: linear-gradient(135deg, #68a4ec, #8a94a5);
  position: relative;
}

.gradient-9 {
  background: linear-gradient(135deg, #545864, #469486);
  position: relative;
}

.gradient-10 {
  background: linear-gradient(135deg, #3b8fa3, #4fb5c4);
  position: relative;
}

.content-card h1,
.content-card p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Updated Animations - More engaging and subtle */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  0% {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.8s ease-out;
}

.rotate-in {
  animation: rotateIn 0.8s ease-out;
}

.bounce-in {
  animation: bounceIn 1s ease-out;
}

/* Removed old float animation */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
}

.pulse-animation {
  animation: pulse 3.5s ease-in-out infinite;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hover effects */
.hover-scale:hover {
  transform: scale(1.08) rotateY(3deg);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Text shadow */
.text-shadow {
  text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 255, 255, 0.15);
}

/* Content card - Updated for Instagram-like vertical layout */
.content-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 32px;
  margin: 20px;
  /* Instagram-like aspect ratio - vertical */
  width: min(85vw, 400px);
  min-height: min(75vh, 700px);
  max-height: 85vh;
  text-align: center;
  transform: perspective(1200px) rotateX(2deg);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-card {
    width: 90vw;
    min-height: 70vh;
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .content-card {
    width: 95vw;
    min-height: 65vh;
    padding: 24px 16px;
  }
}

.content-card:hover {
  transform: perspective(1200px) rotateX(0deg) translateY(-8px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.content-card h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.6);
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .content-card h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .content-card h1 {
    font-size: 1.75rem;
  }
}

.content-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .content-card p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* Loading animation */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #1e3a8a, #6b7280);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  /* Added to ensure overlay is fully hidden */
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Entrance animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeIn 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.liked svg {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  100% {
    opacity: 0;
    transform: scale(1.8) translateY(-40px);
  }
}

.like-anim::before {
  content: "❤️";
  font-size: 1.5rem;
  animation: floatUp 0.8s ease-out forwards;
  position: absolute;
}

.bookmark-anim::before {
  content: "🔖";
  font-size: 1.5rem;
  animation: floatUp 0.8s ease-out forwards;
  position: absolute;
}

.share-anim::before {
  content: "📤";
  font-size: 1.5rem;
  animation: floatUp 0.8s ease-out forwards;
  position: absolute;
}

.thumb-feedback {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  z-index: 50;
}

/* Floating up and fading */
.thumb-up {
  animation-name: floatUpFade;
}

/* Floating down and fading */
.thumb-down {
  animation-name: floatDownFade;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}

@keyframes floatDownFade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(50px);
  }
}

@keyframes float-up {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  50% {
    transform: scale(1.4) translateY(-20px);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.1) translateY(-60px);
    opacity: 0;
  }
}

.animate-like {
  animation: float-up 0.6s ease-out forwards;
  font-size: 1.5rem;
  color: #ef4444;
  pointer-events: none;
}
.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.select-trigger {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
  width: 100%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px;
}

.select-trigger:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.select-trigger.active {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.select-text.placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.select-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.select-trigger.active .select-arrow {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.select-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(241, 245, 249, 0.9);
  text-transform: capitalize;
  font-weight: 500;
}

.select-option:hover {
  background: rgba(99, 102, 241, 0.2);
  color: white;
  transform: translateX(4px);
}

.select-option.selected {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100vh;
}

.snap-start {
  scroll-snap-align: start;
}