/* ARTE3D - Dark Premium Gallery with Animated Hero */

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050505;
  color: #F1F1F1;
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }
input { font: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* PROGRESS BAR */
.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #AEB7C2, #F1F1F1);
  transition: width 0.15s ease-out;
}

/* HEADER */
header {
  z-index: 40;
}

.icon-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.icon-link:hover {
  color: #AEB7C2;
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.05);
}

/* HERO SECTION - ANIMATED */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
  padding: 3rem 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(174, 183, 194, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(174, 183, 194, 0.03) 0%, transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(79, 184, 255, 0.02) 0%, transparent 50%);
  z-index: 0;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" seed="2"/></filter><rect width="100" height="100" fill="%23050505" filter="url(%23n)"/></svg>');
  opacity: 0.02;
  pointer-events: none;
}

/* Animated glow elements */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(174, 183, 194, 0.15) 0%, transparent 70%);
  top: 10%;
  left: 15%;
  filter: blur(80px);
  animation: breathe-glow-1 12s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 184, 255, 0.1) 0%, transparent 75%);
  top: 50%;
  right: 10%;
  filter: blur(100px);
  animation: breathe-glow-2 14s ease-in-out infinite;
  animation-delay: 2s;
}

.hero-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(174, 183, 194, 0.08) 0%, transparent 70%);
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(90px);
  animation: breathe-glow-3 16s ease-in-out infinite;
  animation-delay: 4s;
}

@keyframes breathe-glow-1 {
  0%, 100% { opacity: 0.4; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.7; transform: scale(1.1) translate(-20px, -20px); }
}

@keyframes breathe-glow-2 {
  0%, 100% { opacity: 0.3; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.6; transform: scale(1.15) translate(15px, 20px); }
}

@keyframes breathe-glow-3 {
  0%, 100% { opacity: 0.35; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.65; transform: scale(1.1) translate(10px, -15px); }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-center {
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(174, 183, 194, 0.8);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fade-in 1s ease-out 0.2s forwards;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #F1F1F1;
  margin: 0 0 1rem;
  line-height: 1.1;
  opacity: 0;
  animation: fade-in 1.2s ease-out 0.4s forwards;
}

.hero-text {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fade-in 1s ease-out 0.6s forwards;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.feature-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  animation: fade-in 1s ease-out 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in 1s ease-out 0.9s forwards;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid;
}

.btn-primary {
  background: rgba(174, 183, 194, 0.12);
  color: #AEB7C2;
  border-color: rgba(174, 183, 194, 0.25);
}

.btn-primary:hover {
  background: rgba(174, 183, 194, 0.2);
  border-color: rgba(174, 183, 194, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(174, 183, 194, 0.1);
}

.btn-secondary {
  background: transparent;
  color: #F1F1F1;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

/* SECTION ARCHIVE */
.section-archive {
  background: #050505;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(174, 183, 194, 0.7);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #F1F1F1;
  margin: 0;
  line-height: 1.15;
}

.section-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin: 1rem 0 0;
}

.archive-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.archive-item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.archive-visual {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 50%),
              radial-gradient(circle at 30% 30%, rgba(174, 183, 194, 0.03), transparent 40%);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.01),
              0 0 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.archive-item:hover .archive-visual {
  border-color: rgba(174, 183, 194, 0.12);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.02),
              0 0 60px rgba(174, 183, 194, 0.08);
}

.visual-relic {
  width: 100%;
  height: 100%;
  position: relative;
}

.visual-relic.v-split {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(174, 183, 194, 0.06) 100%);
}

.visual-relic.v-split::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.04) 50%, transparent 55%);
}

.visual-relic.v-contrast {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(174, 183, 194, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 100%);
}

.visual-relic.v-contrast::after {
  content: '';
  position: absolute;
  inset: 25%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(174, 183, 194, 0.04);
}

.archive-meta {
  display: flex;
  align-items: flex-start;
}

.archive-index {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 0.9;
  margin-right: 0.5rem;
}

.archive-info {
  flex: 1;
}

.archive-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #F1F1F1;
  margin: 0 0 0.2rem;
}

.archive-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(174, 183, 194, 0.6);
  margin: 0 0 0.8rem;
}

.archive-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.link-cta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #AEB7C2;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  display: inline-block;
  transition: all 0.3s ease;
}

.link-cta:hover {
  color: #F1F1F1;
}

/* SECTION COLLECTOR */
.section-collector {
  background: #050505;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.collector-split {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .collector-split {
    grid-template-columns: 1fr 1fr;
  }
}

.collector-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
}

@media (min-width: 900px) {
  .collector-visual {
    order: 0;
  }
}

.clipper-wall {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(174, 183, 194, 0.01));
  padding: 1.8rem;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.01),
              0 0 60px rgba(0, 0, 0, 0.3);
}

.clipper-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: space-around;
}

.clipper-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.clipper-slot {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: 1px;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.01);
}

.clipper-slot:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(174, 183, 194, 0.03));
  border-color: rgba(174, 183, 194, 0.15);
}

.collector-content {
  max-width: 500px;
}

.collector-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(174, 183, 194, 0.85);
  padding: 0.55rem 1.1rem;
  background: rgba(174, 183, 194, 0.1);
  border: 1px solid rgba(174, 183, 194, 0.15);
  border-radius: 999px;
}

/* SECTION CUSTOM */
.section-custom {
  background: #050505;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  position: relative;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-container {
  max-width: 700px;
  margin: 0 auto;
}

/* SECTION RITUAL */
.section-ritual {
  background: #050505;
  padding: clamp(2.5rem, 5vw, 4rem) 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.ritual-container {
  max-width: 1000px;
  margin: 0 auto;
}

.ritual-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  color: #F1F1F1;
  margin: 0 0 2.5rem;
  letter-spacing: 0.01em;
}

.ritual-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .ritual-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.ritual-step {
  text-align: center;
}

.step-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #F1F1F1;
  margin-bottom: 0.6rem;
}

.step-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.ritual-arrow {
  display: none;
  align-self: center;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 900px) {
  .ritual-arrow {
    display: block;
  }
}

/* SECTION FINAL CTA */
.section-final-cta {
  background: #050505;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.final-cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.final-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #F1F1F1;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.final-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 2rem;
}

/* FOOTER */
.section-footer {
  background: #050505;
  padding: clamp(2.5rem, 4vw, 3.5rem) 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #AEB7C2;
}

.footer-bottom {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

/* UTILITIES */
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* RESPONSIVE MOBILE-FIRST */
@media (max-width: 480px) {
  header {
    background: #050505/90;
  }

  .hero-section {
    min-height: 90vh;
    padding: 2rem 1rem;
  }

  .hero-glow-1 {
    width: 250px;
    height: 250px;
  }

  .hero-glow-2 {
    width: 280px;
    height: 280px;
  }

  .hero-glow-3 {
    width: 220px;
    height: 220px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .feature-badge {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .section-label {
    font-size: 0.65rem;
  }

  .ritual-timeline {
    gap: 0.8rem;
  }
}
