* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: #020617;
}

.navbar a {
  margin-left: 18px;
  text-decoration: none;
  color: #cbd5f5;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.hero {
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 3rem;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 26px;
  background: #6366f1;
  color: white;
  text-decoration: none;
  border-radius: 30px;
}

.sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 60px;
  gap: 30px;
}

.card {
  background: #020617;
  padding: 30px;
  border-radius: 12px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #020617;
}

.hero-journey {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-subconscious {
  background: linear-gradient(135deg, #020617, #312e81);
}

.hero-manifest {
  background: linear-gradient(135deg, #1e1b4b, #4f46e5);
}

.hero-grow {
  background: linear-gradient(135deg, #022c22, #065f46);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card.active {
  outline: 2px solid #6366f1;
}

.sections.alt {
  background: rgba(255,255,255,0.02);
  padding: 80px 60px;
}

.sections.alt .card {
  background: #020617;
}

/* Logo base styling */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5e7eb;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo span {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Home page logo highlight */
.home .logo img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 18px rgba(99,102,241,0.6));
}

.home .logo span {
  font-size: 1.4rem;
  background: linear-gradient(90deg, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Navbar logo fix (small & corner) --- */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 85px;     /* SMALL SIZE */
  height: 85px;
  object-fit: contain;
}

.logo span {
  font-size: 1rem;
  font-weight: 600;
}

/* --- Home page logo highlight (subtle) --- */

.home .logo img {
  width: 85px;   /* slightly bigger, NOT huge */
  height: 85px;
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.5));
}

.home .logo span {
  font-size: 1.1rem;
  background: linear-gradient(90deg, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Hamburger Menu ===== */

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
}

/* Nav menu hidden by default */
/* ===== Animated Hamburger Menu ===== */

.nav-menu {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background: #020617;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  flex-direction: column;
  gap: 10px;
  z-index: 9999;

  /* animation part */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: #a5b4fc;
}

/* Show menu */
.nav-menu.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav-menu a.active {
  color: #a5b4fc;
  font-weight: 600;
}

.nav-menu a.active::before {
  box-shadow: 0 0 8px rgba(99,102,241,0.8);
}

.navbar.scrolled {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ===== Logo Animation ===== */

.logo img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* gentle hover */
.logo:hover img {
  transform: rotate(-3deg) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.6));
}

/* home page special entrance */
.home .logo img {
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* ===== About Author Section ===== */

.author-card {
  max-width: 720px;
  margin: 0 auto;
}

.author-name {
  margin-top: 20px;
  font-style: italic;
  color: #c7d2fe;
}

.author-name span {
  display: block;
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* ===== Share Form Styling ===== */

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

input, textarea {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px;
  color: #e5e7eb;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.note {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ===== Community Reflections ===== */

.reflection {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 3px solid #6366f1;
}

.reflection p {
  margin-bottom: 6px;
}

.reflection span {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ===== Weekly Quote Special Animation ===== */

.quote-week {
  position: relative;
  overflow: hidden;
  animation: quoteReveal 1.2s ease forwards;
}

/* gentle reveal */
@keyframes quoteReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* subtle glow pulse */
.quote-week::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(99,102,241,0.15),
    transparent 70%
  );
  opacity: 0;
  animation: quoteGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes quoteGlow {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.25; }
}

/* hover interaction */
.quote-week:hover {
  transform: translateY(-4px);
  transition: transform 0.4s ease;
}

/* Decorative quote mark */
.quote-week::after {
  content: "“";
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 5rem;
  color: rgba(99,102,241,0.15);
  font-family: serif;
  opacity: 0;
  animation: quoteMark 1.5s ease forwards;
}

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

/* ===== Form Select (Role) Styling ===== */

form select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Dropdown options */
form select option {
  background: #0b1020;
  color: #e5e7eb;
}

/* ===== Menu Overlay ===== */

#menuOverlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 998;
  display: none;
}

/* ===============================
   Ebook / Magazine Cover Styling
================================ */

.ebook-cover {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.ebook-cover img {
  width: 100%;
  max-width: 200px;   /* 🔑 smaller & more book-like */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Ebook intro spacing fix */
body[data-page="ebooks"] .sections {
  padding: 40px 24px;
}

/* ===============================
   Floating News Ticker
================================ */

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.12);
  border-top: 1px solid rgba(99,102,241,0.3);
  border-bottom: 1px solid rgba(99,102,241,0.3);
  padding: 12px 0;
  margin: 30px 0;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: tickerMove 18s linear infinite;
}

.ticker span {
  font-size: 0.95rem;
  color: #ef4444;
  padding-left: 100%;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Animation */
@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===== Desktop Navigation Fix ===== */
@media (min-width: 768px) {
  .menu-toggle {
    display: none; /* hide hamburger */
  }

  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    gap: 20px;
    opacity: 1;
    transform: none;
  }
}

/* ===============================
   Quote of the Week – Highlight
================================ */

.quote-week {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.15),
    rgba(2,6,23,0.95)
  );
  border: 1px solid rgba(99,102,241,0.35);
  box-shadow:
    0 0 25px rgba(99,102,241,0.25),
    inset 0 0 20px rgba(99,102,241,0.15);
  overflow: hidden;
}

/* glowing edge */
.quote-week::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(
    circle at top,
    rgba(99,102,241,0.35),
    transparent 70%
  );
  opacity: 0.6;
  pointer-events: none;
}

/* badge */
.quote-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #6366f1;
  color: #fff;
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 16px rgba(99,102,241,0.5);
}

/* quote text */
.quote-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin-top: 20px;
  position: relative;
}

/* decorative quote mark */
.quote-text::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 4.5rem;
  color: rgba(99,102,241,0.3);
  font-family: serif;
}

/* author */
.quote-author {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #a5b4fc;
  font-style: italic;
}

/* gentle pulse animation */
@keyframes quotePulse {
  0%, 100% { box-shadow: 0 0 25px rgba(99,102,241,0.25); }
  50% { box-shadow: 0 0 40px rgba(99,102,241,0.45); }
}

.quote-week {
  animation: quotePulse 4s ease-in-out infinite;
}

.quote-week {
  position: relative;
  background: linear-gradient(135deg, #020617, #1e1b4b);
  border-left: 4px solid #6366f1;
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.quote-week p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
}

.quote-author {
  display: block;
  margin-top: 14px;
  text-align: right;
  font-size: 0.9rem;
  color: #a5b4fc;
}

.quote-mark {
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 4rem;
  color: rgba(99,102,241,0.2);
  font-family: serif;
}

.ebook-thumb {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 12px;
}

.coming {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #f87171;
}

/* ===== Ebook Cover FINAL FIX ===== */

.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.ebook-item {
  background: #020617;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

/* Image container controls height */
.ebook-cover-box {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 14px;
  aspect-ratio: 3 / 4;   /* 🔑 KEY LINE */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* Image fits container, NEVER overflows */
.ebook-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* 🔑 PREVENTS BIG IMAGE */
  display: block;
 }
}

/* ===============================
   Reading Time Indicator
================================ */

.read-time {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ===============================
   Author Signature
================================ */

.author-sign {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #c7d2fe;
  font-style: italic;
}

.author-sign span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: normal;
}

/* ===============================
   Free Community Comment Section
================================ */

.community-comments {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.comments-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.comments-note {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* Disqus cleanup */
#disqus_thread {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
 }
}

.author-sign {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #c7d2fe;
  font-style: italic;
}

.author-sign span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: normal;
 }
}
