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

:root {
  --transition-curve: cubic-bezier(0.77, 0, 0.175, 1);
  --transition-duration: 1s;
}

html {
  background-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: transparent; /* Dark background as fallback */
  margin: 0;
  padding: 0;
  cursor: none;
  color: white;
}

/* Main App Containers */
#app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

#carousel-root {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10;
}

/* Custom Cursor */
#custom-cursor {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease-out, height 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Carousel Structure */
.perspective-container {
  perspective: 1000px;
  width: 100%;
  max-width: 40rem; /* 640px */
  height: 35vh;
  min-height: 250px;
  position: relative;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1rem; /* 16px */
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
  transition: transform var(--transition-duration) var(--transition-curve), opacity var(--transition-duration) var(--transition-curve);
}

/* Slide Image */
.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-size: cover;
  background-position: center;
  z-index: 2;
  transform: scale(1.1);
  transition: transform 7s ease-out;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.slide-image.active {
  transform: scale(1.2);
}

/* Slide Overlays & Gradients */
.slide-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.8;
}
.gradient-1 { background-image: linear-gradient(to bottom right, #6366f1, #a855f7, #ec4899); }
.gradient-2 { background-image: linear-gradient(to bottom right, #ec4899, #ef4444, #eab308); }
.gradient-3 { background-image: linear-gradient(to bottom right, #4ade80, #3b82f6); }
.gradient-4 { background-image: linear-gradient(to bottom right, #270091, #5cd2f0, #2189ce); }

/* Slide Content */
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  padding: 0 2rem 2rem 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
}

.slide-text-wrapper {
  transition: transform 1s, opacity 1s;
  transition-delay: 0.2s;
}

.slide-text-wrapper.inactive {
  transform: translateY(40px);
  opacity: 0;
}

.slide-content h2 {
  font-size: 1rem; /* 24px */
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-content .description {
  font-size: 0.7rem; /* 14.4px */
  max-width: 42rem; /* 672px */
  margin: 0 0 0.5rem;
  transition-delay: 0.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.slide-content .date {
  font-weight: 600;
  font-size: 0.6rem; /* 12.8px */
  color: #e5e7eb; /* gray-200 */
  margin: 0 0 1rem;
  transition-delay: 0.4s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.learn-more-btn {
  background-color: white;
  color: black;
  font-weight: 700;
  padding: 0.55rem 2rem;
  border-radius: 9999px;
  border: none;
  transition: all 0.3s;
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  cursor: none; /* Inherits custom cursor */
  align-self: flex-start; /* Align button to the left */
}

.learn-more-btn:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.9);
  animation: none;
}

@keyframes pulse {
  50% { opacity: .8; }
}

/* Carousel Controls */
#carousel-controls {
  position: absolute;
  bottom: 1.25rem; /* 20px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.dots-container {
  display: flex;
  align-items: center;
  gap: 1rem; /* 16px */
}

.dot {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  border-radius: 50%;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: none;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
  background-color: white;
  transform: scale(1.25);
}

.arrow-controls {
  display: block; /* Visible on all screen sizes */
}

.arrow-btn {
  position: absolute;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  width: 4rem; /* 64px */
  height: 4rem; /* 64px */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 20;
  transition: all 0.3s;
  border: none;
  cursor: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.arrow-btn.prev {
  left: 0.5rem;
  transform: translateY(-50%);
}
.arrow-btn.next {
  right: 0.5rem;
  transform: translateY(-50%);
}

.arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.arrow-btn svg {
  width: 2rem; /* 32px */
  height: 2rem; /* 32px */
}

/* Responsive Design */
@media (min-width: 768px) {
  .perspective-container {
    height: 40vh;
    min-height: 350px;
  }
  .slide-content {
    padding: 0 3rem 3rem 3rem; /* 48px */
  }
  .slide-content h2 {
    font-size: 2rem; /* 32px */
  }
  .slide-content .description {
    font-size: 1rem; /* 16px */
  }
  .slide-content .date {
    font-size: 0.9rem; /* 14.4px */
  }
  .arrow-btn.prev {
    left: -5rem;
  }
  .arrow-btn.next {
    right: -5rem;
  }
}