:root {
  --bg-deep: #000000;
  --bg-offset: #050d12;
  --accent-teal: #00e5ff;
  --accent-teal-soft: rgba(0, 229, 255, 0.4);
  --accent-teal-glow: rgba(0, 229, 255, 0.15);
  --text-main: #e0faff;
  --text-dim: #a0b8bb;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.loader-content {
  text-align: center;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--accent-teal);
  margin-top: 1rem;
  text-transform: uppercase;
}

.loader-bar {
  width: 150px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1rem auto;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-teal);
  animation: loadingProgress 2s infinite linear;
}

@keyframes loadingProgress {
  0% { left: -100%; }
  100% { left: 100%; }
}

.main-logo-svg {
  width: 250px;
  height: 250px;
}

.serpent-svg {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  stroke: var(--accent-teal);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 5px var(--accent-teal));
}

h1, h2, h3, .glitch-top {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

canvas#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Typography & Glows */
.glowing-text {
  text-shadow: 0 0 10px var(--accent-teal-soft), 0 0 20px var(--accent-teal-glow);
  color: var(--text-main);
}

.teal-highlight {
  color: var(--accent-teal);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.6em;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links li a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.23em;
  color: var(--text-dim);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.nav-links li a:hover {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
  min-height: 100vh;
  padding: 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Hero Section */
#hero {
  align-items: center;
  text-align: center;
  height: 100vh;
  justify-content: center;
}

.hero-logo-container {
  position: relative;
  margin-bottom: 0rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero-logo {
  max-width: 600px;
  width: 100%;
  height: auto;
  mix-blend-mode: screen; 
  /* Mask ensures edges are never visible as a square */
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  filter: contrast(1.1) brightness(1.1);
  animation: breathing 8s ease-in-out infinite;
}

@keyframes breathing {
  0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 20px var(--accent-teal-glow)); }
  50% { transform: scale(1.02); filter: brightness(1.2) drop-shadow(0 0 40px var(--accent-teal-soft)); }
}

.hero-content {
  margin-top: -2rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.white-glow {
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.2);
}

.hero-tagline {
  font-size: 1.1rem;
  letter-spacing: 1.2em;
  margin-bottom: 5rem;
  font-weight: 400;
  padding-left: 1.2em;
}

.teal-text {
  color: var(--accent-teal);
  text-shadow: 0 0 15px var(--accent-teal-soft);
  text-transform: uppercase;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  padding: 1.4rem 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.4s ease;
  min-width: 280px;
}

.btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.scroll-text {
  font-size: 0.6rem; 
  letter-spacing: 0.5em; 
  color: var(--text-dim);
  margin-top: 10px;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Track Cards */
.prescriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.prescription-card {
  background: rgba(5, 13, 18, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 4px;
  position: relative;
  transition: var(--transition-smooth);
}

.prescription-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.prescription-card::before {
  content: "POISON";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6rem;
  color: var(--accent-teal);
  opacity: 0.3;
  letter-spacing: 0.2em;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
}

/* About Section */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  align-items: stretch;
}

.about-visual {
  background: url('https://images.unsplash.com/photo-1514525253361-b874fe736029?q=80&w=1964&auto=format&fit=crop') center/cover no-repeat;
  filter: grayscale(1) contrast(1.2) brightness(0.6);
  position: relative;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, var(--bg-deep));
}

.about-content {
  padding: 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Rituals Section */
.rituals-list {
  margin-top: 3rem;
}

.ritual-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  transition: var(--transition-smooth);
}

.ritual-item:hover {
  padding-left: 1.5rem;
  border-bottom-color: var(--accent-teal);
  color: var(--accent-teal);
}

/* Form */
form {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 2rem;
}

input, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  padding: 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-teal);
  background: rgba(0, 229, 255, 0.05);
}

/* Footer */
footer {
  padding: 4rem 10vw;
  text-align: center;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: var(--text-dim);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  fill: var(--accent-teal);
  filter: drop-shadow(0 0 10px var(--accent-teal));
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0a151b;
  border-radius: 2px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.6);
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  filter: grayscale(0%) brightness(1) contrast(1.1);
  transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
}

.mouse {
  width: 20px;
  height: 35px;
  border: 1px solid var(--accent-teal);
  border-radius: 10px;
  position: relative;
}

.wheel {
  width: 2px;
  height: 6px;
  background: var(--accent-teal);
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-logo { max-width: 450px; }
  .hero-title { font-size: 5rem; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1.5rem 5vw;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
  }

  .nav-brand { font-size: 1rem; letter-spacing: 0.4em; }
  .nav-links { gap: 1.5rem; }
  .nav-links li a { font-size: 0.65rem; }

  section { padding: 15vh 8vw; }

  .hero-logo { max-width: 320px; }
  .hero-title { font-size: 3rem; letter-spacing: 0.2em; }
  .hero-tagline { font-size: 0.8rem; letter-spacing: 0.6em; margin-bottom: 3rem; }

  .cta-group {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    min-width: 100%;
    padding: 1.2rem;
    font-size: 0.8rem;
  }

  #about {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .about-visual {
    height: 40vh;
    order: 1;
  }

  .about-content {
    padding: 12vw 8vw;
    order: 2;
  }

  .ritual-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .ritual-date { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .hero-logo { max-width: 260px; }
  .hero-title { font-size: 2.5rem; }
  .nav-links { gap: 0.8rem; }
}
