* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow: hidden;
}

.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 0, 51, 0.95) 100%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  z-index: 1000;
}

.header-fixed .logo {
  font-size: 2rem;
  margin-bottom: 5px;
}

.header-fixed h1 {
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(120deg, #00d4ff, #0095ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15px;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
  padding-top: 80px;
}

/* ============================================
   TOKEN SCREEN
   ============================================ */
#token-screen {
  width: 100%;
  max-width: 500px;
  animation: fadeIn 0.6s ease-out;
}

.form-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 80px);
  padding: 20px;
}

.form-inner {
  width: 100%;
  max-width: 500px;
  padding: 40px 30px;
  text-align: center;
}

.form-title-section {
  margin-bottom: 40px;
}

.form-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, #00d4ff, #0095ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.form-inner > p {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.header {
  margin-bottom: 50px;
}

.logo {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(120deg, #00d4ff, #0095ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  color: #a0a0a0;
  font-size: 1.1rem;
}

#token-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  text-align: left;
  font-weight: 600;
  color: #e0e0e0;
}

.file-description {
  font-size: 0.9rem;
  color: #808080;
  text-align: left;
  margin: 0 !important;
}

.file-description a {
  color: #00d4ff;
  text-decoration: none;
}

.file-description a:hover {
  text-decoration: underline;
}

#json-upload {
  display: none;
}

.file-name {
  font-size: 0.9rem;
  color: #00d4ff;
  text-align: left;
  margin-top: 8px;
  word-break: break-all;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.year-btn {
  padding: 15px;
  border: 2px solid #333;
  background: #1a1a2e;
  color: #a0a0a0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.year-btn:hover {
  border-color: #00d4ff;
  color: #00d4ff;
}

.year-btn.selected {
  background: linear-gradient(120deg, #00d4ff, #0095ff);
  color: #000;
  border-color: #00d4ff;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.95rem;
  display: none;
  text-align: center;
}

.error-message.show {
  display: block;
  animation: shake 0.4s;
}

/* ============================================
   BUTTONS
   ============================================ */
.button {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button-primary {
  background: linear-gradient(120deg, #00d4ff, #0095ff);
  color: #000;
  border: 2px solid #00d4ff;
}

.button-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.button-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-secondary {
  background: #1a1a2e;
  color: #00d4ff;
  border: 2px solid #333;
}

.button-secondary:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  z-index: 100;
}

/* ============================================
   WRAPPED SCREEN - SLIDES
   ============================================ */
#wrapped-screen {
  width: 100%;
  height: calc(100vh - 80px);
  margin-top: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
  overflow: hidden;
}

#wrapped-screen.hidden {
  display: none;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 10;
}

.slide.prev {
  opacity: 0;
  transform: scale(0.9) translateX(-100%);
}

.slide.next {
  opacity: 0;
  transform: scale(0.9) translateX(100%);
}

.slide-content {
  text-align: center;
  max-width: 600px;
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: translateY(-60px);
}

/* Intro Slide */
.slide-intro {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #0a1a2e 100%);
}

.slide-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #00d4ff, #0095ff, #ff006b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-title:nth-child(1) {
  animation-delay: 0s;
}

.slide-title:nth-child(2) {
  animation-delay: 0.2s;
}

.slide-title:nth-child(3) {
  animation-delay: 0.4s;
}

.slide-subtitle {
  font-size: 1.5rem;
  color: #a0a0a0;
  margin-top: 40px;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

/* Stat Slides */
.slide-stat {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
}

.stat-label {
  font-size: 1.1rem;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0;
  animation: slideUp 0.6s 0.2s forwards;
}

.stat-value {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(120deg, #00d4ff, #0095ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 20px 0;
  opacity: 0;
  animation: slideUp 0.6s 0.4s forwards;
  line-height: 1;
}

.stat-unit {
  font-size: 1.3rem;
  color: #808080;
  margin-top: 15px;
  opacity: 0;
  animation: slideUp 0.6s 0.6s forwards;
}

.stat-subtitle {
  font-size: 1.1rem;
  color: #00d4ff;
  margin-top: 25px;
  opacity: 0;
  animation: slideUp 0.6s 0.8s forwards;
}

/* Language/Project Slides */
.slide-languages,
.slide-project {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
}

.slide-section-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(120deg, #00d4ff, #0095ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 50px;
  opacity: 0;
  animation: slideUp 0.6s 0.2s forwards;
}

.language-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.language-item {
  text-align: left;
  padding: 20px;
  background: rgba(0, 212, 255, 0.08);
  border-left: 4px solid #00d4ff;
  border-radius: 8px;
  opacity: 0;
  animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.language-item:nth-child(1) { animation-delay: 0.3s; }
.language-item:nth-child(2) { animation-delay: 0.5s; }
.language-item:nth-child(3) { animation-delay: 0.7s; }

.language-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.language-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.language-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.language-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.language-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #0095ff);
  width: 0%;
  animation: fillBar 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.language-item:nth-child(1) .language-bar-fill { animation-delay: 0.5s; }
.language-item:nth-child(2) .language-bar-fill { animation-delay: 0.7s; }
.language-item:nth-child(3) .language-bar-fill { animation-delay: 0.9s; }

.language-percent {
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Editor/OS Slides */
.slide-editors,
.slide-os {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
}

.editor-list,
.os-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.editor-item,
.os-item {
  text-align: left;
  padding: 20px;
  background: rgba(0, 212, 255, 0.08);
  border-left: 4px solid #00d4ff;
  border-radius: 8px;
  opacity: 0;
  animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.editor-item:nth-child(1) { animation-delay: 0.3s; }
.editor-item:nth-child(2) { animation-delay: 0.5s; }
.editor-item:nth-child(3) { animation-delay: 0.7s; }

.os-item:nth-child(1) { animation-delay: 0.3s; }
.os-item:nth-child(2) { animation-delay: 0.5s; }
.os-item:nth-child(3) { animation-delay: 0.7s; }

.editor-header,
.os-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.editor-icon,
.os-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.editor-name,
.os-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.editor-bar,
.os-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.editor-bar-fill,
.os-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #0095ff);
  width: 0%;
  animation: fillBar 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.editor-item:nth-child(1) .editor-bar-fill { animation-delay: 0.5s; }
.editor-item:nth-child(2) .editor-bar-fill { animation-delay: 0.7s; }
.editor-item:nth-child(3) .editor-bar-fill { animation-delay: 0.9s; }

.os-item:nth-child(1) .os-bar-fill { animation-delay: 0.5s; }
.os-item:nth-child(2) .os-bar-fill { animation-delay: 0.7s; }
.os-item:nth-child(3) .os-bar-fill { animation-delay: 0.9s; }

.editor-percent,
.os-percent {
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Busiest Month Slide */
.slide-busiest {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
}

.busiest-card,
.weekday-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 149, 255, 0.05));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  opacity: 0;
  animation: slideUp 0.6s 0.4s forwards;
}

.busiest-month-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 10px;
}

.busiest-hours {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
}

.busiest-subtitle {
  font-size: 0.95rem;
  color: #a0a0a0;
}

.weekday-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  color: #00d4ff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.weekday-label {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 5px;
}

.weekday-subtitle {
  font-size: 0.95rem;
  color: #a0a0a0;
}

/* Date-style stat value */
.stat-date {
  font-size: 3rem !important;
}

.project-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 149, 255, 0.05));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  opacity: 0;
  animation: slideUp 0.6s 0.4s forwards;
}

.project-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 15px;
  word-break: break-word;
}

/* Project Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.carousel-card-track {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-carousel-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 149, 255, 0.05));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  width: 320px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-carousel-card.card-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 10;
}

.project-carousel-card.card-left-1 {
  opacity: 0.5;
  transform: translateX(-220px) scale(0.88);
  z-index: 5;
}

.project-carousel-card.card-left-2 {
  opacity: 0.2;
  transform: translateX(-420px) scale(0.76);
  z-index: 1;
}

.project-carousel-card.card-right-1 {
  opacity: 0.5;
  transform: translateX(220px) scale(0.88);
  z-index: 5;
}

.project-carousel-card.card-right-2 {
  opacity: 0.2;
  transform: translateX(420px) scale(0.76);
  z-index: 1;
}

.project-carousel-card.card-hidden {
  opacity: 0;
  transform: translateX(0) scale(0.7);
  z-index: 0;
  pointer-events: none;
}

.carousel-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-nav-zone {
  opacity: 1;
}

.carousel-nav-zone-left {
  left: 0;
}

.carousel-nav-zone-right {
  right: 0;
}

.carousel-nav-zone:hover {
  background: rgba(0, 212, 255, 0.1);
  border-radius: 8px;
}

.carousel-nav-zone::after {
  font-size: 2rem;
  color: #00d4ff;
  opacity: 0.7;
}

.carousel-nav-zone-left::after {
  content: '‹';
}

.carousel-nav-zone-right::after {
  content: '›';
}

.carousel-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(120deg, #00d4ff, #0095ff);
}

/* Heatmap */
.slide-heatmap .slide-content {
  max-width: 100%;
  width: auto;
  padding: 0 40px;
}

.heatmap-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heatmap-months-row {
  position: relative;
  width: 100%;
  height: 16px;
  margin-bottom: 2px;
}

.heatmap-month-label {
  font-size: 0.65rem;
  color: #a0a0a0;
}

.heatmap-grid {
  display: flex;
  gap: 2px;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heatmap-day {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.heatmap-day[data-level="1"] { background: rgba(0, 212, 255, 0.2); }
.heatmap-day[data-level="2"] { background: rgba(0, 212, 255, 0.4); }
.heatmap-day[data-level="3"] { background: rgba(0, 212, 255, 0.6); }
.heatmap-day[data-level="4"] { background: rgba(0, 212, 255, 0.8); }
.heatmap-day[data-level="5"] { background: rgba(0, 212, 255, 1); }

#stat-hours-unit {
  font-size: 1rem;
  color: #808080;
  margin-top: 5px;
}

.heatmap-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  margin-top: 8px;
}

.heatmap-label {
  font-size: 0.65rem;
  color: #606060;
}

.project-hours {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.project-percent {
  font-size: 1rem;
  color: #a0a0a0;
}

/* Outro Slide */
.slide-outro {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #0a1a2e 100%);
}

.slide-outro .slide-title {
  font-size: 3rem;
}

.slide-outro .slide-subtitle {
  margin-bottom: 20px;
}

.slide-outro .wrapped-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.wrapped-controls {
  opacity: 0;
  animation: slideUp 0.6s 1s forwards;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.slides-nav {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 20;
  opacity: 0;
  animation: fadeIn 1s 0.5s forwards;
}

.nav-btn {
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  transform: scale(1.1);
}

.slides-indicators {
  display: flex;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(120deg, #00d4ff, #0095ff);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  pointer-events: none;
  opacity: 0;
}

.loading-dots {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.loading-dots div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00d4ff;
  animation: pulse 1.4s infinite;
}

.loading-dots div:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots div:nth-child(3) {
  animation-delay: 0.4s;
}

.loading-overlay p {
  font-size: 1.2rem;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fillBar {
  from {
    width: 0%;
  }
  to {
    width: var(--width, 100%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Final Card Slide */
.slide-final-card {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 100%);
}

.final-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 149, 255, 0.05));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 50px;
  max-width: 600px;
  width: 100%;
  opacity: 0;
  animation: slideUp 0.6s 0.4s forwards;
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.download-btn {
  margin-top: 20px;
  padding: 10px 24px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.download-btn:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.final-card-content {
  text-align: left;
}

/* Hide back button on wrapped screen, show it nicely centered */
#back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  opacity: 0;
  animation: fadeIn 0.6s 0.3s forwards;
  z-index: 15;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .stat-value {
    font-size: 3.5rem;
  }

  .stat-label,
  .stat-unit,
  .stat-subtitle {
    font-size: 1rem;
  }

  .slide-section-title {
    font-size: 2rem;
  }

  .language-name {
    font-size: 1.1rem;
  }

  .project-name {
    font-size: 1.8rem;
  }

  .busiest-month-name {
    font-size: 1.8rem;
  }

  .heatmap-grid {
    transform: scale(0.8);
    transform-origin: center top;
  }

  .project-carousel-card {
    width: 260px;
    padding: 30px 20px;
  }

  .project-carousel-card.card-left-1 {
    transform: translateX(-180px) scale(0.85) !important;
  }

  .project-carousel-card.card-right-1 {
    transform: translateX(180px) scale(0.85) !important;
  }

  .project-carousel-card.card-left-2,
  .project-carousel-card.card-right-2 {
    display: none;
  }

  .slides-nav {
    gap: 15px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .wrapped-controls {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
