/* 
   COLOR PALETTE (Esoteric/Odd)
   Deep Midnight: #0a0508
   Bruised Violet: #2d1b33
   Ethereal Lavender: #b39ddb
   Poisonous Mint: #a7ffeb
   Faded Gold: #c5a059
   Text: #e0e0e0
*/

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 0.4;
  }
}

@keyframes grain {

  0%,
  100% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -5%);
  }

  30% {
    transform: translate(5%, 5%);
  }

  50% {
    transform: translate(-5%, 5%);
  }

  70% {
    transform: translate(5%, -5%);
  }

  90% {
    transform: translate(-5%, -5%);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0508;
  background-image:
    radial-gradient(circle at 50% 50%, #2d1b33 0%, #0a0508 100%),
    url("https://www.transparenttextures.com/patterns/stardust.png");
  /* Subtle star/dust texture */
  color: #e0e0e0;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grainy texture overlay */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1000;
  animation: grain 8s steps(10) infinite;
}

/* Vignette */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Navigation */
nav {
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(10, 5, 8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #b39ddb;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav ul li a {
  color: #b39ddb;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  letter-spacing: 3px;
  font-size: 0.85rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav ul li a:hover {
  color: #a7ffeb;
  text-shadow: 0 0 15px #a7ffeb;
  letter-spacing: 5px;
}

/* Header & Hero */
header {
  padding: 160px 20px 80px;
  text-align: center;
  position: relative;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 10vw, 6rem);
  color: #c5a059;
  letter-spacing: 15px;
  margin-bottom: 0;
  text-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.suiseiseki-container {
  position: relative;
  display: inline-block;
}

.suiseiseki-stares {
  position: absolute;
  top: -180px;
  left: -90px;
}

.suiseiseki-left {
  position: absolute;
  left: -700px;
}

.suiseiseki-right {
  position: absolute;
  right: -700px;
}

.suiseiseki-right-gif {
  position: absolute;
  right: 30px;
  margin-right: 200px;
}

.pezhnoe {
  position: absolute;
  z-index: 1;
  width: 200px;
  left: 0;
  top: 0;
  transform: translateX(60px);
}

.subtitle {
  font-style: italic;
  font-size: 1.1rem;
  color: #b39ddb;
  letter-spacing: 4px;
  margin-top: 10px;
  opacity: 0.8;
}

.hero {
  margin-top: 60px;
  width: 90%;
  max-width: 1100px;
  height: 500px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(45, 27, 51, 0.3);
  border: 1px solid #b39ddb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(179, 157, 219, 0.1);
}

.hero::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(167, 255, 235, 0.05) 0%, transparent 50%);
  animation: pulse 6s infinite;
}

.hero p {
  font-family: 'Cinzel', serif;
  color: #a7ffeb;
  letter-spacing: 2px;
  z-index: 1;
}

/* Content Sections */
.content-section {
  padding: 120px 10%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-family: 'Cinzel', serif;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #c5a059;
  margin-bottom: 60px;
}

.section-title::before {
  content: "✧ ✧ ✧ ✧ ✧ ✧ ✧";
  display: block;
  font-size: 1.2rem;
  height: 15px;
  color: #a7ffeb;
  animation: float 4s ease-in-out infinite;
}

/* Lore Layout - Asymmetric */
.lore-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.lore-text {
  background: rgba(45, 27, 51, 0.2);
  padding: 40px;
  border-left: 3px solid #a7ffeb;
  position: relative;
}

.lore-text::before {
  content: "“";
  position: absolute;
  top: -30px;
  left: 10px;
  font-size: 5rem;
  color: rgba(167, 255, 235, 0.1);
  font-family: serif;
}

.lore-image-placeholder {
  height: 450px;
  background: #0a0508;
  border: 1px solid #2d1b33;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 20px 20px 0px #2d1b33;
}

.lore-image-placeholder p {
  color: #b39ddb;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
}

/* Maiden Cards - More Elegant */
.maiden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
}

.maiden-card {
  background: rgba(45, 27, 51, 0.15);
  border: 1px solid rgba(179, 157, 219, 0.2);
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.5s ease;
  overflow: hidden;
}

.maiden-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #a7ffeb;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(167, 255, 235, 0.2);
}

.maiden-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(167, 255, 235, 0.05), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.maiden-card:hover::after {
  transform: translateX(100%);
}

.card-img-placeholder {
  width: 100%;
  height: 320px;
  background: #0a0508;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2d1b33;
  position: relative;
}

.card-img-placeholder::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(197, 160, 89, 0.2);
  transform: rotate(45deg);
}

.maiden-card h3 {
  font-family: 'Cinzel', serif;
  color: #c5a059;
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.maiden-card p {
  font-size: 0.9rem;
  color: #b39ddb;
  font-style: italic;
}

/* Gallery Grid - Fragmented */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item-placeholder {
  height: 250px;
  background: #1a0a1a;
  border: 1px solid #2d1b33;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
  filter: grayscale(0.5);
}

.gallery-item-placeholder:hover {
  filter: grayscale(0);
  border-color: #a7ffeb;
  transform: scale(1.03) rotate(1deg);
}

.gallery-item-placeholder p {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: #b39ddb;
}

/* Philosophy Box - The Relic */
.philosophy-box {
  text-align: center;
  padding: 100px 40px;
  border: 1px solid #c5a059;
  background: radial-gradient(circle, rgba(45, 27, 51, 0.4) 0%, transparent 100%);
  position: relative;
}

.philosophy-box::before {
  content: "❦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: #c5a059;
}

.quote {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-style: italic;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Footer */
footer {
  text-align: center;
  padding: 60px 20px;
  font-size: 0.7rem;
  color: #5a4a5a;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-top: 1px solid #2d1b33;
}

/* Responsive */
@media (max-width: 992px) {
  .lore-container {
    grid-template-columns: 1fr;
  }

  .lore-image-placeholder {
    order: -1;
    height: 350px;
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  nav ul li a {
    font-size: 0.7rem;
  }

  .content-section {
    padding: 80px 5%;
  }

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