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

:root {
  --bg: #0a0a0a;
  --bg-warm: #0d0b09;
  --text: #c8bfb0;
  --text-dim: #6b6255;
  --accent: #b87333;
  --accent-light: #d4944a;
  --silver: #8a8a8a;
  --iridescent-1: #e47aff;
  --iridescent-2: #7ab8ff;
  --iridescent-3: #ffa07a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', 'Roboto Mono', monospace;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184, 115, 51, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(122, 184, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(228, 122, 255, 0.04) 0%, transparent 50%);
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  animation: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 2%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-3%, 3%); }
  60% { transform: translate(1%, -1%); }
  70% { transform: translate(-2%, 2%); }
  80% { transform: translate(3%, -3%); }
  90% { transform: translate(-1%, 1%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: auto;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(184, 115, 51, 0.06),
    transparent,
    rgba(122, 184, 255, 0.04),
    transparent,
    rgba(228, 122, 255, 0.05),
    transparent
  );
  animation: heroRing 12s linear infinite;
  pointer-events: none;
}

@keyframes heroRing {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 18vw, 22rem);
  letter-spacing: 0.2em;
  line-height: 0.85;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #d4a76a 25%,
    var(--silver) 50%,
    var(--iridescent-2) 75%,
    var(--iridescent-1) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  user-select: none;
}

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

.hero-tagline {
  font-family: 'Special Elite', cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  color: var(--text-dim);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.scroll-hint {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: 2.5rem;
  color: var(--text-dim);
  animation: bob 2.5s ease-in-out infinite;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.scroll-hint:hover {
  opacity: 1;
  color: var(--accent-light);
}

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

/* ===== STICKY HEADER ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 50px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  pointer-events: none;
}

.sticky-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  flex: 1;
}

.lang-toggle {
  background: none;
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-family: 'Space Mono', 'Roboto Mono', monospace;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  transition: border-color 0.3s ease;
}

.lang-toggle:hover {
  border-color: var(--accent-light);
}

.lang-option {
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.lang-option.active {
  color: var(--accent-light);
}

.lang-sep {
  color: rgba(184, 115, 51, 0.3);
}

.sticky-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.sticky-links a {
  font-family: 'Space Mono', 'Roboto Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}

.sticky-links a:hover {
  color: var(--accent-light);
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(184, 115, 51, 0.0) 0%,
    rgba(184, 115, 51, 0.12) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(184, 115, 51, 0);
  border-radius: 2px;
  transition: border-color 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover::before {
  border-color: rgba(184, 115, 51, 0.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: saturate(0.8) contrast(1.05) brightness(0.95);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.1) brightness(1);
}

/* ===== ABOUT / FOOTER ===== */
.about {
  border-top: 1px solid rgba(184, 115, 51, 0.15);
  padding: 4rem 2rem;
  margin-top: 2rem;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 1.2rem;
}

.about p:last-of-type {
  margin-bottom: 2rem;
}

.about-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-dim);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
}

.social-link:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

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

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

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
  cursor: default;
}

.lightbox.active .lightbox-img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox-close:hover {
  color: var(--text);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10;
  padding: 1rem;
  line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent-light);
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    columns: 1;
    column-gap: 0;
  }

  .gallery-section {
    padding: 1rem;
  }

  .gallery-item {
    margin-bottom: 0.75rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.5rem;
  }

  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }

  .about {
    padding: 3rem 1.5rem;
  }

  .sticky-header {
    padding: 0 1rem;
    height: 44px;
  }

  .sticky-title {
    font-size: 1.2rem;
  }

  .lang-toggle {
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
  }

  .sticky-links {
    gap: 1rem;
  }

  .sticky-links a {
    font-size: 0.65rem;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--accent);
  color: var(--bg);
}