:root {
  --bg: #0f0f0f;
  --panel: #1a1a1a;
  --text: #ffffff;
  --muted: #ddd;
  --accent: #7d3cff;
  --accent-2: #a170ff;
  --grad-1: #3b006e;
  --grad-2: #7d3cff;
}

/* === Global Styles === */
* { box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* === Navigation === */
.nav {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  background: rgba(12, 12, 12, 0.7);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(125, 60, 255, .55);
}
.nav .spacer { flex: 1; }

/* === Hero === */
.hero {
  position: relative;
  height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 0, 110, 0.75), rgba(125, 60, 255, 0.5));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 900px;
  text-align: center;
}
.hero h1 { font-size: 3rem; margin: .25rem 0; }
.hero p { font-size: 1.2rem; color: #d8c7ff; }
.hero--landing::after {
  background-image: var(--hero-image), linear-gradient(0deg, transparent, transparent);
}
.site-title { font-size: 3.2rem; }
.tagline { font-size: 1.25rem; }

/* === Sections === */
.section { max-width: 1100px; margin: 80px auto; padding: 0 20px; }
.section--narrow { max-width: 900px; }
.center { text-align: center; }
.section h2, .section h3 {
  text-align: center;
  margin: 0 auto 20px;
}
.section p, .section ul, .section li { text-align: left; }

/* === Buttons === */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(125, 60, 255, .25);
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .5);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .08); }

/* === Footer === */
.footer {
  background: var(--panel);
  text-align: center;
  padding: 30px 12px;
  color: #999;
  font-size: .95rem;
}
.footer .socials a {
  color: #cbb4ff;
  text-decoration: none;
}
.footer .socials a:hover { text-decoration: underline; }

/* === Book / Gallery === */
.book-cover {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(125, 60, 255, .35);
  display: block;
  margin: 0 auto 24px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.gallery img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(125, 60, 255, .25);
}

/* === Credits === */
ul.credits {
  list-style: none;
  padding: 0;
  margin: 10px 0 40px;
  text-align: left;
}
ul.credits li { margin: 8px 0; color: var(--muted); }
ul.credits strong { color: #fff; }

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; animation: fadeInUp .9s ease forwards; }
.fade-in-delayed { opacity: 0; animation: fadeInUp 1s .2s ease forwards; }

/* === Fade for Subheader === */
@keyframes fadeIn { to { opacity: 1; } }
.subheader {
  font-size: 1.2rem;
  color: #d8c7ff;
  font-weight: 300;
  margin: 10px 0 20px;
  letter-spacing: 0.5px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.5s ease 1s forwards;
}

/* === Contact Page === */
.hero--connect {
  background: linear-gradient(135deg, rgba(59, 0, 110, 0.4), rgba(125, 60, 255, 0.55)),
              var(--hero-image) center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}
.hero--connect .hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.hero--connect .hero-content p {
  font-size: 1.2rem;
  color: #d8c7ff;
}

.contact-form {
  background: #1a1a1a;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(125, 60, 255, 0.25);
  max-width: 650px;
  margin: 60px auto;
  text-align: center;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 25px;
  border: none;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form button.btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 15px;
  background-color: #7d3cff;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}
.contact-form button.btn:hover {
  background-color: #a170ff;
  transform: translateY(-2px);
}

/* === Empowerment Tagline === */
.empowerment {
  text-align: center;
  font-size: 1.2rem;
  color: #e0caff;
  margin-top: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* === Responsive === */
@media (max-width: 780px) {
  .hero { height: 62vh; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .site-title { font-size: 2.2rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}
/* === Button Alignment Fix === */
.section p:has(.btn),
.section .btn,
.center {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Force buttons to stack instead of sit side-by-side */
.section .btn + .btn {
  display: block;
  margin-top: 15px;
}

/* Center Empowerment Tagline under the buttons */
.empowerment {
  text-align: center !important;
  display: block;
  margin: 20px auto 0;
  font-size: 1.2rem;
  color: #e0caff;
  font-weight: 500;
  letter-spacing: 0.5px;
}
