/* ===== BASE STYLES ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  background-color: #1D1D1D;
  height: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.5s ease;
}

/* ===== THEME SYSTEM ===== */
.dark-mode {
  background: url('/img/bg1.jpg') center/cover no-repeat fixed, 
              linear-gradient(to bottom, #1a1a2e, #16213e);
  --stack-border: rgba(255, 255, 255, 0.12);
  --stack-shadow: 0 4px 20px rgba(0, 10, 30, 0.4);
  --modal-bg: rgba(15, 25, 35, 0.98);
  --btn-color: rgba(200, 220, 255, 0.8);
  
}

.light-mode {
  background: url('/img/bg2.jpg') center/cover no-repeat fixed,
              linear-gradient(to bottom, #f5f5f5, #e0e0e0);
  --stack-border: rgba(0, 0, 0, 0.1);
  --stack-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --modal-bg: rgba(245, 240, 235, 0.95);
  --btn-color: #555;
}

.sequence-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.sequence-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 10px; 
  overflow: hidden; 
}

.sequence-container {
  width: 90vw;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

/* ===== PHOTO STACK CONTAINER ===== */
.stack-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto; 
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto; 
}

/* ===== INDIVIDUAL PHOTOS ===== */
.stack-item {
  width: 180px;
  height: 240px;
  background-size: cover;
  background-position: center;
  border: 12px solid var(--stack-border);
  box-shadow: var(--stack-shadow);
  position: absolute;
  transition: all 0.3s ease;
   border-radius: 18px; 
  overflow: hidden; 
}

.stack-item:hover {
  z-index: 100 !important;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* ===== MODAL STYLES (keep your existing modal) ===== */
.sequence-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.sequence-container {
  width: 90vw;
  height: 90vh;
  position: relative;
}

/* ===== NAVIGATION CONTROLS ===== */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--btn-color);
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--btn-color);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ===== LIKE BUTTON ===== */
.appreciate-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--btn-color);
  font-size: 24px;
  cursor: pointer;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
}

.appreciate-btn.active .heart {
  color: #ff4d4d;
  transform: scale(1.2);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .stack-item {
    width: 140px;
    height: 186px;
    border-width: 8px;
  }
  
  .nav-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .prev-btn { left: 15px; }
  .next-btn { right: 15px; }
}