/* Base Design System */
:root {
  --primary-color: #a855f7;
  /* Lighter Purple for dark mode */
  --primary-dark: #581c87;
  --accent-color: #f59e0b;
  /* Golden Glow */
  --text-primary: #f3e8ff;
  /* Pale purple white */
  --text-secondary: #c084fc;
  /* Muted purple */
  --bg-color: #0f0518;
  /* Deepest Void */
  --bg-alt: #1e0933;
  /* Dark Purple */
  --bg-card: rgba(30, 9, 51, 0.7);

  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.3);
  --shadow-gold: 0 0 15px rgba(245, 158, 11, 0.4);

  --container-width: 1200px;
  --font-sans: 'Shippori Mincho', 'Times New Roman', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 50% 0%, #2e1065 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, #1e1b4b 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Animations */
@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
  }

  50% {
    text-shadow: 0 0 25px rgba(245, 158, 11, 0.6), 0 0 10px rgba(245, 158, 11, 0.4);
  }

  100% {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes bg-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  animation: pulse-glow 4s infinite;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

h2::after {
  content: '👁️';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--accent-color);
  opacity: 0.7;
}

h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Header/Nav */
header {
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 110;
  /* Fixed: Increased to be above overlay (100) */
  background: linear-gradient(to bottom, rgba(15, 5, 24, 0.95), transparent);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--primary-color);
  z-index: 102;
  /* Above mobile menu */
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  z-index: 102;
  /* Above mobile menu */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  z-index: 102;
  padding: 0.5rem;
  border: none;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--primary-color);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 5, 24, 0.95);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, var(--bg-color) 90%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.btn-primary {
  background: transparent;
  color: var(--accent-color);
  padding: 1rem 3rem;
  border: 1px solid var(--accent-color);
  border-radius: 0;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.btn-primary:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 30px var(--accent-color);
}

/* Cards & Features */
.features {
  padding: 8rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.feature-card {
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.1);
  text-align: center;
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(88, 28, 135, 0.4);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  animation: float 6s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Contact Section */
.contact {
  padding: 10rem 0;
  text-align: center;
  background: linear-gradient(to top, var(--bg-alt), transparent);
}

/* Footer */
footer {
  padding: 4rem 0;
  background-color: #050208;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 1280px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    height: auto;
    min-height: 90vh;
    padding: 8rem 0;
  }

  .nav-cta {
    display: none;
    /* Hide button on mobile, links are in menu */
  }

  .hamburger {
    display: block;
    z-index: 120;
    /* Highest priority */
  }

  .logo {
    z-index: 105;
    /* Lower than menu (110) */
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(15, 5, 24, 0.98);
    /* Solid background */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from center to allow scrolling from top */
    align-items: center;
    z-index: 110;
    /* Higher than logo (105) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    /* Enable vertical scrolling */
    padding-top: 6rem;
    /* Add space for close button/top */
    padding-bottom: 2rem;
  }



  .nav-links ul {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: var(--text-primary);
    display: block;
    padding: 1rem;
  }

  /* Active States */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-color);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-color);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  /* Overlay no longer needed for background, but kept for click-to-close if needed.
     Actually, if nav-links covers everything, we click nav-links to close?
     Or we keep overlay for logic.
     If nav-links is full screen z-110, overlay at z-100 is behind it.
  */
  .mobile-menu-overlay {
    display: none;
    /* Hide separate overlay, use nav-links bg */
  }
}

/* Mysterious Overlay */
.overlay-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 90;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--accent-color);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 red;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 blue;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(30px, 9999px, 10px, 0);
  }

  20% {
    clip: rect(85px, 9999px, 80px, 0);
  }

  40% {
    clip: rect(10px, 9999px, 60px, 0);
  }

  60% {
    clip: rect(40px, 9999px, 20px, 0);
  }

  80% {
    clip: rect(15px, 9999px, 5px, 0);
  }

  100% {
    clip: rect(70px, 9999px, 90px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(15px, 9999px, 40px, 0);
  }

  20% {
    clip: rect(90px, 9999px, 20px, 0);
  }

  40% {
    clip: rect(20px, 9999px, 60px, 0);
  }

  60% {
    clip: rect(50px, 9999px, 10px, 0);
  }

  80% {
    clip: rect(10px, 9999px, 80px, 0);
  }

  100% {
    clip: rect(80px, 9999px, 30px, 0);
  }
}

/* Cult Symbol */
.cult-symbol-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.cult-symbol {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
}

.ring-outer {
  animation: spin-slow 20s linear infinite;
  transform-origin: center;
}

.geometry-mid {
  animation: spin-reverse 15s linear infinite;
  transform-origin: center;
}

.inner-eye {
  animation: pulse-eye 4s ease-in-out infinite;
  transform-origin: center;
}

.rays {
  animation: flash-rays 3s ease-in-out infinite alternate;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes pulse-eye {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px var(--accent-color));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--accent-color));
  }
}

@keyframes flash-rays {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.8;
  }
}

/* Contact Form Styles */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 5, 24, 0.8);
  border: 1px solid var(--accent-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(30, 9, 51, 0.9);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.contact-form textarea {
  resize: vertical;
}