/* ============================================
   XIMANE - Album Gallery
   Dark Elegant Theme
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --text: #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.2);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: #fff;
  transition: var(--transition);
}

.navbar-logo:hover {
  opacity: 0.8;
}

.navbar-logo span {
  font-weight: 700;
  opacity: 0.5;
}

.navbar-links {
  display: flex;
  gap: 32px;
}

.navbar-links a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  background: rgba(5, 5, 5, 0.98);
}

.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
}

.mobile-menu-inner {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-inner a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a.active {
  color: #fff;
}

/* ============================================
   HERO ALBUMS
   ============================================ */
.hero-albums {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-albums::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.02) 0%, transparent 60%);
  pointer-events: none;
}

.hero-albums-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  min-height: 160px;
}

/* Hero skeleton */
.hero-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.hero-content {
  animation: heroFadeIn 0.5s ease forwards;
}

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

.hero-albums-label {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-albums-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
}

.hero-albums-title span {
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-albums-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  margin: 20px auto;
}

.hero-albums-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.7;
}

.hero-albums-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.hero-albums-scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-albums-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollIndicator 2s ease-in-out infinite;
}

/* Album Boxes Grid */
.album-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  position: relative;
}

.album-box {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.album-box.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
}

.album-box:hover {
  border-color: rgba(255,255,255,0.2);
  z-index: 2;
}

.album-box-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.5s ease;
  filter: saturate(0.85) brightness(0.8);
}

.album-box.loaded .album-box-img {
  opacity: 1;
}

.album-box:hover .album-box-img {
  transform: scale(1.12);
  filter: saturate(1) brightness(1);
}

.album-box-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.05) 70%,
    transparent 100%
  );
  transition: all 0.5s ease;
}

.album-box:hover .album-box-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.2) 70%,
    rgba(0,0,0,0.3) 100%
  );
}

.album-box-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.album-box-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease, transform 0.8s ease, filter 0.5s ease;
  filter: saturate(0.85) brightness(0.8);
}

.album-box-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.album-box-slide.inactive {
  opacity: 0;
  transform: scale(1.05);
  z-index: 0;
}

.album-box-slide.loaded {
  opacity: 1;
}

.album-box-slide.inactive.loaded {
  opacity: 0;
}

.album-box:hover .album-box-slide.active {
  transform: scale(1.12);
  filter: saturate(1) brightness(1);
}

.album-box:hover .album-box-slide.inactive {
  transform: scale(1.12);
}

.album-box-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  transform: translateY(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.album-box:hover .album-box-info {
  transform: translateY(-4px);
}

.album-box-label {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 10px;
  margin-bottom: 8px;
}

.album-box-title {
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.album-box-count {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.album-box:hover .album-box-count {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LINKS SECTION
   ============================================ */
.links-section {
  padding: 80px 24px 100px;
  border-top: 1px solid var(--border);
  position: relative;
}

.links-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1));
}

.links-section-inner {
  max-width: 640px;
  margin: 0 auto;
}

.links-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.links-section-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.links-section-title {
  font-size: 24px;
  font-weight: 300;
  color: #fff;
}

.links-section-title span {
  font-weight: 700;
  opacity: 0.5;
}

.links-section-divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  margin: 16px auto 0;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.links-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.links-item:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.links-item:hover::before {
  opacity: 1;
}

.links-item:active {
  transform: translateX(2px) scale(0.99);
}

.links-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.links-item:hover .links-item-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

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

.links-item-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
  transition: color 0.3s;
}

.links-item:hover .links-item-title {
  color: rgba(255,255,255,0.8);
}

.links-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links-item-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-8px);
}

.links-item:hover .links-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.links-item-arrow svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   ALBUM MODAL (Lightbox)
   ============================================ */
.album-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 100px;
}

.album-modal.open {
  display: flex;
}

.album-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.album-modal-close:hover {
  color: #fff;
  opacity: 1;
  transform: rotate(90deg);
}

.album-modal-close svg {
  width: 24px;
  height: 24px;
}

.album-modal-header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.album-modal-title {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

.album-modal-counter {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.album-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 14px;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.album-modal-nav:hover {
  color: #fff;
  opacity: 1;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.album-modal-nav.prev {
  left: 24px;
}

.album-modal-nav.next {
  right: 24px;
}

.album-modal-nav svg {
  width: 24px;
  height: 24px;
}

.album-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 85vw;
  max-height: 70vh;
}

.album-modal-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 65vh;
  overflow: hidden;
}

.album-modal-image-wrap img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  opacity: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}

.album-modal-image-wrap img.fade {
  opacity: 0.3;
}

.album-modal-caption {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Thumbnail strip */
.album-modal-thumbs {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 90vw;
  overflow-x: auto;
}

.album-modal-thumbs::-webkit-scrollbar {
  height: 3px;
}

.album-modal-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.album-modal-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.4;
  flex-shrink: 0;
}

.album-modal-thumb:hover {
  opacity: 0.7;
  border-color: rgba(255,255,255,0.2);
}

.album-modal-thumb.active {
  opacity: 1;
  border-color: rgba(255,255,255,0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand a {
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #fff;
}

.footer-brand span {
  font-weight: 700;
  opacity: 0.4;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer h3 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-bottom .tagline {
  color: rgba(255,255,255,0.08);
  letter-spacing: 0.1em;
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.album-box-skeleton {
  aspect-ratio: 1 / 1;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  animation: waPulse 2s ease-in-out infinite;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-float span {
  display: none;
}

@media (min-width: 480px) {
  .whatsapp-float span {
    display: inline;
    white-space: nowrap;
  }
}

.whatsapp-float:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  color: #fff;
}

@keyframes waPulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollIndicator {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}

@media (max-width: 640px) {
  .album-boxes-grid {
    gap: 12px;
    max-width: 100%;
  }

  .album-box-info {
    padding: 14px 16px;
  }

  .album-box-title {
    font-size: 16px;
  }

  .album-modal {
    padding: 56px 12px 80px;
  }

  .album-modal-body {
    max-width: 98vw;
  }

  .album-modal-nav {
    padding: 10px;
  }

  .album-modal-nav.prev {
    left: 8px;
  }

  .album-modal-nav.next {
    right: 8px;
  }

  .album-modal-nav svg {
    width: 18px;
    height: 18px;
  }

  .album-modal-thumbs {
    gap: 6px;
    padding: 8px 12px;
  }

  .album-modal-thumb {
    width: 36px;
    height: 36px;
  }

  .links-section {
    padding: 60px 20px 80px;
  }

  .links-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .links-item-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .links-item-title {
    font-size: 12px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .album-boxes-grid {
    max-width: 540px;
  }
}
