/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0c0a2a 0%, #1a0a3e 40%, #15082e 70%, #0c0a2a 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== STARS BACKGROUND ===== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

.star.large {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.4);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===== SPARKLES ===== */
.sparkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  font-size: 14px;
  color: #FFD700;
  animation: float-up var(--duration) linear infinite;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) rotate(360deg) scale(0.2);
  }
}

/* ===== SHOOTING STAR ===== */
.shooting-star {
  position: fixed;
  width: var(--trail-length, 120px);
  height: 2px;
  border-radius: 0 50% 50% 0;
  transform: rotate(-35deg);
  animation: shoot var(--shoot-duration, 1.2s) ease-out forwards;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.4) 70%, #fff 100%);
}

.shooting-star::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 8px 3px rgba(255, 255, 255, 0.9),
    0 0 20px 6px rgba(200, 220, 255, 0.5),
    0 0 40px 10px rgba(180, 200, 255, 0.2);
}

.shooting-star::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 220, 255, 0.3));
  filter: blur(1px);
}

@keyframes shoot {
  0% {
    opacity: 0;
    transform: rotate(-35deg) translateX(0);
  }
  8% {
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: rotate(-35deg) translateX(var(--shoot-distance, 400px));
  }
}

/* ================================================
   LOGIN PAGE
   ================================================ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 24px;
  padding: 50px 40px 40px;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 80px rgba(212, 165, 116, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: card-appear 1s ease-out;
}

@keyframes card-appear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Castle */
.castle-silhouette {
  width: 160px;
  margin: 0 auto 20px;
  opacity: 0.7;
  animation: castle-glow 4s ease-in-out infinite alternate;
}

@keyframes castle-glow {
  0% { filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.2)); }
  100% { filter: drop-shadow(0 0 20px rgba(212, 165, 116, 0.5)); }
}

.login-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: #d4a574;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(212, 165, 116, 0.3);
  letter-spacing: 2px;
}

.login-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin-bottom: 35px;
  line-height: 1.5;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  text-align: left;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(212, 165, 116, 0.8);
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: rgba(212, 165, 116, 0.5);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 14px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.input-wrapper input:focus {
  border-color: rgba(212, 165, 116, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.15);
}

/* Error */
.error-message {
  color: #ff6b9d;
  font-size: 0.85rem;
  min-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
}

.error-message.visible {
  min-height: 24px;
  opacity: 1;
}

/* Login Button */
.login-btn {
  position: relative;
  padding: 16px 32px;
  background: linear-gradient(135deg, #d4a574, #c4915e, #d4a574);
  background-size: 200% 200%;
  border: none;
  border-radius: 14px;
  color: #0c0a2a;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  letter-spacing: 0.5px;
  animation: btn-shimmer 3s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-sparkle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(0.8); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
}

/* Login footer */
.login-footer {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-sparkle {
  color: rgba(212, 165, 116, 0.3);
  font-size: 0.7rem;
  animation: sparkle-pulse 3s ease-in-out infinite;
}

.footer-sparkle:nth-child(2) {
  animation-delay: 1s;
}

.footer-sparkle:nth-child(3) {
  animation-delay: 2s;
}

/* Loading state */
.login-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.login-btn.loading .btn-text::after {
  content: '...';
  animation: dots 1.5s steps(3) infinite;
}

@keyframes dots {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* ================================================
   GALLERY PAGE
   ================================================ */

.gallery-page {
  padding-bottom: 100px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  animation: hero-appear 1.5s ease-out;
}

@keyframes hero-appear {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: #d4a574;
  text-shadow:
    0 0 40px rgba(212, 165, 116, 0.4),
    0 0 80px rgba(212, 165, 116, 0.15);
  margin-bottom: 20px;
  letter-spacing: 3px;
  line-height: 1.1;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}

.divider-star {
  color: #d4a574;
  font-size: 0.9rem;
  opacity: 0.7;
  animation: sparkle-pulse 3s ease-in-out infinite;
}

.divider-star:last-child {
  animation-delay: 1.5s;
}

.divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.5), transparent);
}

.hero-message {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 0.3px;
}

.hero-signature {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #ff6b9d;
  text-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

/* Scroll hint */
.scroll-hint {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: scroll-hint-appear 1.5s ease-out 2s both;
}

.scroll-hint-text {
  font-size: 0.8rem;
  color: rgba(212, 165, 116, 0.5);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.scroll-hint-arrow {
  color: rgba(212, 165, 116, 0.4);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-hint-appear {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 0.8; }
}

/* ===== TRANSITION SECTION ===== */
.transition-section {
  position: relative;
  z-index: 10;
  padding: 60px 20px 40px;
  text-align: center;
}

.transition-content {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

.transition-content.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease-out;
}

.transition-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.transition-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.35), transparent);
}

.transition-line.short {
  width: 50px;
}

.transition-icon {
  color: #d4a574;
  font-size: 1rem;
  opacity: 0.6;
  animation: sparkle-pulse 3s ease-in-out infinite;
}

.transition-icon.small {
  font-size: 0.7rem;
  opacity: 0.4;
  animation-delay: 1.5s;
}

.transition-quote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.5px;
  line-height: 1.8;
  padding: 28px 10px;
}

/* Gallery Section */
.gallery-section {
  position: relative;
  z-index: 10;
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #d4a574;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Photo Cards */
.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 165, 116, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.photo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(212, 165, 116, 0.4);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(212, 165, 116, 0.15);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.08);
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(12, 10, 42, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover::after {
  opacity: 1;
}

/* Sparkle overlay on hover */
.photo-card .photo-sparkle {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #FFD700;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.photo-card:hover .photo-sparkle {
  opacity: 1;
  animation: sparkle-pulse 1.5s ease-in-out infinite;
}

/* ===== CLOSING SECTION ===== */
.closing-section {
  position: relative;
  z-index: 10;
  padding: 60px 20px 120px;
  text-align: center;
}

.closing-content {
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

.closing-content.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.2s ease-out;
}

.closing-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.flourish-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
}

.flourish-ornament {
  opacity: 0.6;
}

.closing-quote {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #d4a574;
  line-height: 1.5;
  padding: 30px 10px 12px;
  text-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

.closing-signature {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: rgba(255, 107, 157, 0.5);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.closing-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #d4a574;
  font-size: 0.7rem;
  opacity: 0.4;
}

.closing-stars .main {
  font-size: 1rem;
  opacity: 1;
  animation: sparkle-pulse 3s ease-in-out infinite;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 20, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(212, 165, 116, 0.15);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  animation: lightbox-zoom 0.4s ease-out;
}

@keyframes lightbox-zoom {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(255, 107, 157, 0.3);
  border-color: rgba(255, 107, 157, 0.5);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(212, 165, 116, 0.2);
  border-color: rgba(212, 165, 116, 0.4);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* ===== MUSIC PLAYER ===== */
.music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 10, 42, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  padding: 12px 20px;
  animation: player-slide-up 0.8s ease-out 1s both;
}

@keyframes player-slide-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.player-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, #d4a574, #c4915e);
  border: none;
  border-radius: 50%;
  color: #0c0a2a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.player-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(212, 165, 116, 0.5);
}

.player-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-play {
  margin-left: 2px;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-title {
  display: block;
  font-size: 0.85rem;
  color: #d4a574;
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: height 0.2s ease;
}

.player-progress:hover {
  height: 6px;
}

.player-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d4a574, #ff6b9d);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.player-progress-bar::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 6px rgba(212, 165, 116, 0.5);
}

.player-progress:hover .player-progress-bar::after {
  opacity: 1;
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.player-next {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.player-next:hover {
  background: rgba(212, 165, 116, 0.2);
  color: #d4a574;
}

.player-next svg {
  width: 16px;
  height: 16px;
}

.player-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-volume-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.player-volume-btn:hover {
  color: #d4a574;
}

.player-volume-btn svg {
  width: 20px;
  height: 20px;
}

.player-volume {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4a574;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(212, 165, 116, 0.5);
}

.player-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4a574;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(212, 165, 116, 0.5);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(12, 10, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 116, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 116, 0.5);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-section {
    padding: 30px 16px 60px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 400px;
    margin: 0 auto;
  }

  .photo-card {
    aspect-ratio: 4/3;
  }

  .hero {
    min-height: 90vh;
    padding: 30px 16px;
  }

  .hero-message {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .transition-section {
    padding: 40px 16px 30px;
  }

  .scroll-hint {
    margin-top: 35px;
  }

  /* Login mobile */
  .login-card {
    padding: 40px 24px 30px;
    border-radius: 20px;
  }

  .login-title {
    font-size: 2.6rem;
  }

  .castle-silhouette {
    width: 120px;
  }

  /* Player mobile */
  .player-inner {
    gap: 10px;
  }

  .player-volume-wrapper {
    display: none;
  }

  .player-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .player-next {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .player-title {
    font-size: 0.78rem;
  }

  .player-time {
    font-size: 0.65rem;
  }

  /* Lightbox mobile */
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .lightbox-content {
    max-width: 95vw;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .login-card {
    padding: 30px 18px 24px;
  }

  .login-title {
    font-size: 2.2rem;
  }

  .input-wrapper input {
    padding: 14px 16px 14px 42px;
    font-size: 0.9rem;
  }

  .login-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* Landscape on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 40px 20px;
  }

  .login-page {
    padding: 10px;
  }

  .login-card {
    padding: 20px 30px;
  }

  .castle-silhouette {
    width: 80px;
    margin-bottom: 10px;
  }

  .login-title {
    font-size: 2rem;
    margin-bottom: 4px;
  }

  .login-subtitle {
    margin-bottom: 15px;
    font-size: 0.8rem;
  }
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .star, .sparkle {
    display: none;
  }

  .photo-card {
    opacity: 1;
    transform: none;
  }

  .transition-content {
    opacity: 1;
    transform: none;
  }

  .closing-content {
    opacity: 1;
    transform: none;
  }
}
