@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

@font-face {
    font-family: 'Algerian';
    src: url('assets/Algerian%20Regular/Algerian%20Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'STZhongsong';
    src: url('assets/stzhongsong/chinese.stzhongs.woff') format('woff'),
         url('assets/stzhongsong/chinese.stzhongs.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Chalkduster';
    src: url('assets/Chalkduster.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
  /* Vibrant Palette (Book Page Feel) */
  --color-bg: #fdfbf7;
  --color-bg-center: #fdfbf7;
  --color-bg-edge: #f2efe9;
  --color-surface: #f8faff;
  --color-primary: #0056b3; /* Royal Blue */
  --color-secondary: #f1c40f; /* Sun Yellow */
  --color-gold: #d4af37; /* Gold */
  --color-text: #1a2a3a; /* Deep Navy */
  --color-text-muted: #5a6a7a;
  
  /* Typography */
  --font-serif: 'Times New Roman', Times, serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.3s ease;
}

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

/* Fluid Element Scaling on Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
  html {
    font-size: calc(100vw / 90);
  }
}
@media (min-width: 1441px) {
  html {
    font-size: 16px;
  }
}

html, body {
  background-image: 
    radial-gradient(circle at center, var(--color-bg-center) 0%, var(--color-bg-edge) 100%),
    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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-color: var(--color-bg-edge);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.1;
}

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

ul {
  list-style: none;
}

/* Background Shapes for 'Fun' vibe */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 20s infinite alternate;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--color-gold);
  top: 40%;
  left: 10%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.2rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(0, 86, 179, 0.05);
}

header .container {
  max-width: 100%;
  padding: 0 4rem;
}

header.scrolled {
  padding: 0.1rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 1.0rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.hero .accent {
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
}

.hero .accent::before {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--color-secondary);
  opacity: 0.2;
  z-index: -1;
}

.hero p {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-spring);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 15px 35px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
  background: var(--color-secondary);
  color: var(--color-text);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(241, 196, 15, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  margin-left: 1.5rem;
}

.btn-outline:hover {
  background: rgba(0, 86, 179, 0.05);
  transform: translateY(-5px);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  transition: var(--transition-spring);
}

.about-img-wrapper:hover {
  transform: rotate(-2deg) scale(1.02);
}

.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--color-gold);
  border-radius: 30px;
  z-index: -1;
}

.about-img-wrapper img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

/* Books Grid */
.section-title {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 5rem;
  color: var(--color-primary);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.book-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 40px;
  border: 1px solid rgba(0, 86, 179, 0.05);
  transition: var(--transition-spring);
  text-align: center;
}

.book-card:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: 0 40px 80px rgba(0, 86, 179, 0.1);
  border-color: var(--color-secondary);
}

.book-cover {
  margin-bottom: 2rem;
  border-radius: 25px;
  overflow: hidden;
  aspect-ratio: 2/3;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.book-card p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Newsletter */
.newsletter {
  background: var(--color-primary);
  color: #fff;
  border-radius: 60px;
  padding: 6rem 2rem;
  margin: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter h2 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.newsletter p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 3.5rem;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 2rem;
  color: #fff;
  font-size: 1.1rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form .btn {
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 1rem 2.5rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition-spring);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  width: 100%;
}

.section-header h2 {
  text-align: center !important;
  display: block !important;
}

/* Responsive */
@media (max-width: 992px) {

  .hero h1 { font-size: 3.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-text { text-align: center; }
  .section-title { font-size: 3rem; }
  .section-header { text-align: center; }
  .section-header h2 { text-align: center !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { text-align: center; }
  .hero-btns { justify-content: center; display: flex; flex-direction: column; gap: 1rem; }
  .btn-outline { margin-left: 0; }
  .newsletter-form { flex-direction: column; border-radius: 30px; padding: 2rem; }
}

/* Quick Facts Grid */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.fact-item {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 25px;
  border: 1px solid rgba(0, 86, 179, 0.05);
  transition: var(--transition-spring);
  text-align: left;
}

.fact-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.fact-item span {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.fact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.fact-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-text-muted);
}

/* Book Elements */
.book-card {
  position: relative; /* For absolute positioning of tags */
}

.book-tag {
  transition: var(--transition-spring);
}

.book-card:hover .book-tag {
  transform: scale(1.1) rotate(5deg);
}

.book-meta {
  letter-spacing: 2px;
}

.book-footer {
  transition: var(--transition-smooth);
}

.book-card:hover .book-footer {
  border-color: var(--color-secondary);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 4rem 0;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.stat-item p {
  font-weight: 800;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 0;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 350px;
  background: #fff;
  padding: 3rem;
  border-radius: 40px;
  border: 1px solid rgba(0, 86, 179, 0.05);
  scroll-snap-align: center;
  transition: var(--transition-spring);
}

@media (max-width: 480px) {
  .testimonial-card {
    min-width: calc(100vw - 3rem);
    padding: 2rem;
  }
}

.testimonial-card:hover {
  transform: scale(1.02);
  border-color: var(--color-secondary);
}

.testimonial-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.author-avatar {
  width: 55px;
  height: 55px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--color-text);
  box-shadow: 0 10px 20px rgba(241, 196, 15, 0.2);
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.blog-card {
  background: var(--color-surface);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition-spring);
  border: 1px solid rgba(0, 86, 179, 0.03);
}

.blog-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 86, 179, 0.08);
}

.blog-img {
  height: 250px;
  width: 100%;
}

.blog-content {
  padding: 2.5rem;
}

.blog-date {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.blog-content p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
}

[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-bg-center: #16161e;
    --color-bg-edge: #030305;
    --color-surface: #121212;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
}

[data-theme="dark"] header {
    background: rgba(10, 10, 10, 0.9);
}

[data-theme="dark"] .pillar-card,
[data-theme="dark"] .milestone,
[data-theme="dark"] .contact-form-container {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,0.05) !important;
    color: #fff !important;
}
/* Mobile Responsive Overrides */
@media (max-width: 992px) {
  /* Store & Products */
  .product-item {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .product-info h2 {
    font-size: 2.2rem;
  }
  
  .buy-action {
    align-items: center;
  }
  
  .paypal-button-container {
    max-width: 100%;
  }

  .store-hero h1 {
    font-size: 2.5rem;
  }

  /* Journey & Timeline */
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .artifact-viewer {
    position: relative;
    top: 0;
    height: 35vh;
    margin-bottom: 2rem;
  }

  .journey-timeline {
    padding-left: 2rem;
  }

  .milestone {
    margin-bottom: 5rem;
  }

  .milestone h3 {
    font-size: 1.8rem;
  }

  /* General Layout */
  .container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Biography Page Mobile */
  .biography-page {
    padding: 60px 0 !important;
  }

  .bio-header-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    margin-bottom: 40px !important;
  }

  .bio-header-left h1 {
    font-size: 3.5rem !important;
    margin-bottom: 2rem !important;
  }

  .bio-intro-lead {
    font-size: 1.2rem !important;
    padding-left: 1.5rem !important;
  }

  .bio-pillars {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem !important;
  }

  .bio-footer-cta div {
    flex-direction: column;
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .side-tag {
    letter-spacing: 2px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Mobile Bottom Navigation (App-Style) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 992px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 50px;
    z-index: 99999;
    padding: 8px 0;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: rgba(5, 5, 5, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    width: 30%;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    stroke-width: 1.5;
    transition: var(--transition-smooth);
  }

  .mobile-nav-item span {
    font-size: 0.65rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .mobile-nav-item:active {
    transform: scale(0.9);
  }

  .mobile-nav-item.active {
    color: var(--color-gold);
  }
  
  .mobile-nav-item.active svg {
    stroke-width: 2.2;
    stroke: var(--color-gold);
  }
}


/* --- Extracted from index.php --- */

    /* Split Hero Redesign */
    .hero {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }

    .hero-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        min-height: 100vh;
    }

    .side {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10% 8%;
        position: relative;
        transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .book-side {
        background: var(--color-surface);
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 2;
    }

    .author-side {
        background: transparent;
        z-index: 1;
    }

    .book-visual {
        position: relative;
        margin-bottom: 3rem;
        transform: perspective(1000px);
        transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .book-visual:hover {
        transform: translateY(-5px);
    }

    .hero-book-img {
        width: 300px;
        height: auto;
        border-radius: 5px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    }

    .author-visual {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 80%;
        opacity: 0.15;
        pointer-events: none;
        mask-image: linear-gradient(to top, black 50%, transparent 100%);
    }

    .hero-author-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .side-tag {
        font-size: 0.85rem;
        font-weight: 800;
        color: var(--color-gold);
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
    }

    .side h1,
    .side h2 {
        font-size: clamp(2.5rem, 5vw, 4.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .side p {
        font-size: 1.1rem;
        color: var(--color-text-muted);
        max-width: 450px;
        margin-bottom: 2.5rem;
    }

    .floating-accent {
        position: absolute;
        font-size: 12rem;
        font-weight: 900;
        color: rgba(0, 0, 0, 0.03);
        z-index: -1;
        pointer-events: none;
        font-family: var(--font-serif);
    }

    .book-side .floating-accent {
        top: 10%;
        left: -5%;
    }

    .author-side .floating-accent {
        bottom: 10%;
        right: -5%;
    }

    /* Pillars Section */
    .about-pillars {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin: 8vh 0;
    }

    .pillar-card {
        background: white;
        padding: 3rem;
        border-radius: 20px;
        transition: var(--transition-smooth);
        border: 1px solid transparent;
        background-image: linear-gradient(white, white), linear-gradient(to right, var(--color-primary), var(--color-gold));
        background-origin: border-box;
        background-clip: padding-box, border-box;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .pillar-card:hover {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
    }

    .pillar-tag {
        font-size: 0.6rem;
        font-weight: 800;
        color: var(--color-gold);
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 1.5rem;
    }

    .pillar-card h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--color-primary);
    }

    .pillar-card p {
        font-size: 1rem;
        color: var(--color-text-muted);
        font-weight: 300;
    }

    .journey-section {
        padding: 15vh 0;
        position: relative;
    }

    .journey-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
        align-items: start;
    }

    .artifact-viewer {
        position: sticky;
        top: 150px;
        height: 60vh;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1000px;
    }

    .artifact-stack {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .artifact-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        opacity: 0;
        transform: translateZ(-100px);
        transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .artifact-image.active {
        opacity: 1;
        transform: translateZ(0);
    }

    .journey-timeline {
        position: relative;
        padding-left: 4rem;
    }

    .ink-trail {
        position: absolute;
        left: 0;
        top: 0;
        width: 2px;
        height: 100%;
        background: rgba(0, 0, 0, 0.05);
    }

    .ink-progress {
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 0%;
        background: var(--color-gold);
        transition: height 0.5s ease-out;
    }

    .milestone {
        margin-bottom: 30vh;
        position: relative;
    }

    .milestone-year {
        font-size: 1rem;
        font-weight: 800;
        color: var(--color-gold);
        letter-spacing: 4px;
        margin-bottom: 1.5rem;
    }

    .books-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5rem;
        padding-top: 10vh;
    }

    .book-card {
        position: relative;
        perspective: 1000px;
        width: 100%;
        aspect-ratio: 3/4.5;
    }

    .book-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.1s ease-out;
        transform-style: preserve-3d;
    }

    .book-info-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        transform: translateY(20px);
        opacity: 0;
        transition: 0.6s;
        border-radius: 0 0 5px 5px;
    }

    .book-card:hover .book-info-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    /* Custom Alert */
    .status-alert {
        padding: 1.5rem;
        border-radius: 5px;
        margin-bottom: 2rem;
        font-weight: 800;
        letter-spacing: 1px;
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .alert-success {
        background: rgba(197, 160, 89, 0.1);
        color: var(--color-gold);
        border: 1px solid var(--color-gold);
    }

    .alert-error {
        background: rgba(255, 0, 0, 0.05);
        color: #cc0000;
        border: 1px solid #cc0000;
    }

    /* ===== SPLIT HERO ===== */
    .hero {
        width: 100%;
        min-height: 100vh;
    }

    .hero-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 100vh;
    }

    .book-side {
        background: #fffff0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: clamp(1.5rem, 4vw, 5rem) clamp(1rem, 3vw, 4rem);
    }

    .author-side {
        background: #fffff0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: clamp(1.5rem, 4vw, 5rem) clamp(1rem, 3vw, 4rem);
    }

    /* Card Wrapper */
    .card-wrapper {
        width: min(90%, 55vh);
        height: auto;
        background: #fff;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
    }

    /* Flip Card */
    .flip-card {
        width: 100%;
        aspect-ratio: 440 / 620;
        perspective: 1200px;
        cursor: pointer;
        margin-bottom: 2rem;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.75s ease;
        transform-style: preserve-3d;
        border-radius: 12px;
    }

    .card-wrapper:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
        border-radius: 12px;
    }

    .flip-card-front {
        background: transparent;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        border: 2px solid var(--color-gold);
    }

    /* Standardized Hero Images */
    .hero-image-box {
        width: 320px !important;
        height: 450px !important;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 2rem;
        position: relative;
        flex-shrink: 0;
        /* Prevents shrinking if content exceeds card height */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    }

    .hero-image-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .book-side .flip-card-front {
        background: #fff;
    }



    .flip-card-back {
        background: #fff;
        transform: rotateY(180deg);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
        border: 2px solid var(--color-gold);
    }

    .author-simple-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        width: 100%;
    }

    .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .author-actions {
        display: flex;
        justify-content: center;
        gap: 2rem;
        align-items: center;
        width: 100%;
    }

    .about-pillars {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        margin-top: 5rem;
    }

    .pillar-card {
        padding: 3rem;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
        border-top: 6px solid;
    }

    .journey-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
        align-items: start;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8rem;
        align-items: start;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }

    @media (max-width: 992px) {
        .hero {
            height: auto !important;
            min-height: auto;
            padding: 0;
            display: block;
        }

        .hero-split {
            display: none !important;
        }

        .side {
            padding: 4rem 1.5rem !important;
            width: 100% !important;
            text-align: center;
        }

        .author-side {
            padding: 5rem 1.5rem !important;
        }

        .floating-accent {
            display: none !important;
        }

        .author-simple-stats {
            flex-direction: column;
            gap: 1.5rem;
        }

        .author-actions {
            flex-direction: column;
            gap: 1.5rem;
        }

        .author-actions .btn {
            width: 100%;
            text-align: center;
        }

        .about-pillars,
        .journey-grid,
        .contact-grid,
        .stats-grid {
            grid-template-columns: 1fr !important;
            gap: 2.5rem !important;
            width: 100% !important;
        }

        .pillar-card {
            padding: 2rem 1.5rem !important;
        }

        #contact,
        .stats-section {
            padding: 4rem 0 !important;
        }
        #about {
            display: none !important;
        }
        #journey {
            display: none !important;
        }

        .side-tag {
            text-align: center;
            margin: 0 auto 2rem auto;
        }

        h1 {
            font-size: 3rem !important;
            text-align: center;
        }

        h2 {
            font-size: 2.2rem !important;
            text-align: center;
        }

        .book-main-visual {
            width: 220px !important;
            margin: 0 auto;
        }

        .book-hero-info {
            text-align: center !important;
            max-height: none !important;
            opacity: 1 !important;
            margin-top: 2rem;
            pointer-events: auto !important;
        }

        .author-content-simple {
            max-height: none !important;
            opacity: 1 !important;
            margin-top: 2rem;
            pointer-events: auto !important;
        }

        .book-hero-info div {
            flex-direction: column !important;
            gap: 1rem !important;
        }

        .book-hero-info .btn {
            width: 100%;
        }

        .artifact-viewer {
            position: relative;
            top: 0;
            height: auto;
            margin-bottom: 2rem;
            overflow: hidden;
        }

        .artifact-stack {
            height: 35vh !important;
        }

        .journey-timeline {
            padding-left: 1.5rem !important;
            border-left: 1px solid #eee !important;
            text-align: left;
        }

        .milestone {
            margin-bottom: 4rem !important;
        }

        .contact-form-container {
            padding: 2.5rem 1.5rem !important;
            margin-top: 3rem;
        }
    }

    @keyframes shimmer {
        0% {
            background-position: -468px 0;
        }

        100% {
            background-position: 468px 0;
        }
    }

    .shimmer {
        position: relative;
        overflow: hidden;
    }

    .shimmer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
        background-size: 468px 100%;
        animation: shimmer 2s infinite linear;
        z-index: 1;
        pointer-events: none;
    }

    @keyframes breathe {

        0%,
        100% {
            transform: scale(1);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        }

        50% {
            transform: scale(1.02);
            box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
        }
    }

    @keyframes slideInUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .animate-up {
        animation: slideInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    }

    
        /* Minimal Mobile Home Page Redesign */
        .minimal-mobile-hero {
            display: none;
        }

        @media (max-width: 992px) {
            .minimal-mobile-hero {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 0 1.5rem 5rem;
                margin-top: -3vh;
                gap: 4rem;
                width: 100%;
                background: transparent;
            }

            .minimal-col {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
                width: 100%;
                max-width: 320px;
            }

            .minimal-img {
                width: 100%;
                aspect-ratio: 3/4;
                object-fit: cover;
                border-radius: 8px;
                border: 2px solid var(--gold);
                margin-bottom: 1.5rem;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            }

            .minimal-book-cover {
                aspect-ratio: auto !important;
                object-fit: contain !important;
                height: auto !important;
            }

            .minimal-name {
                font-family: 'Times New Roman', Times, serif;
                font-size: 1.4rem;
                font-weight: 800;
                color: #000 !important;
                line-height: 1.1;
                margin-bottom: 1.5rem;
                letter-spacing: -0.5px;
            }
            
            .minimal-book-title {
                font-family: 'Times New Roman', Times, serif !important;
                font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
                color: #000 !important;
                line-height: 1.1 !important;
                white-space: nowrap !important;
                letter-spacing: -1px !important;
                margin-bottom: 1.5rem !important;
            }

            .btn-minimal-tactile {
                background: #000;
                color: #fff;
                text-align: center;
                padding: 0.6rem 1.2rem;
                border-radius: 50px;
                font-size: 0.75rem;
                font-weight: 700;
                text-decoration: none;
                text-transform: uppercase;
                letter-spacing: 1px;
                border: 1px solid #333;
                display: inline-block;
                transition: transform 0.2s, background 0.2s;
            }

            .btn-minimal-tactile:active {
                transform: scale(0.95);
                background: #222;
            }
        }
    

        @media (max-width: 992px) {
            /* About section visibility restored for mobile */
        }
    

            .pillar-list {
                list-style: none;
                padding: 0;
                margin: 0;
                flex-grow: 1;
                display: flex;
                flex-direction: column;
                justify-content: space-evenly;
            }
            .pillar-list li {
                font-size: 0.95rem;
                color: var(--theme-color);
                line-height: 1.4;
                padding: 0.5rem 0 0.5rem 1.4rem;
                position: relative;
                border-bottom: 1px solid rgba(0,0,0,0.05);
                text-align: left;
            }
            .pillar-list li:last-child {
                border-bottom: none;
            }
            .pillar-list li::before {
                content: '❯';
                position: absolute;
                left: 0;
                top: 0.65rem;
                font-size: 0.75rem;
                font-weight: 800;
                color: var(--theme-color);
                transition: transform 0.3s ease;
            }
            .pillar-list li:hover::before {
                transform: translateX(4px);
            }
        

            .pillar-card svg {
                transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            }
            .pillar-card:hover svg {
                transform: translateX(5px);
            }

            .pillar-edu:hover {
                box-shadow: 0 30px 60px rgba(0, 71, 171, 0.1);
            }

            .pillar-prof:hover {
                box-shadow: 0 30px 60px rgba(196, 30, 58, 0.1);
            }

            .pillar-social:hover {
                box-shadow: 0 30px 60px rgba(46, 139, 87, 0.1);
            }

            @media (max-width: 992px) {
                .about-pillars {
                    display: flex !important;
                    flex-wrap: nowrap;
                    overflow-x: auto;
                    scroll-snap-type: x mandatory;
                    gap: 1.5rem !important;
                    padding-bottom: 2rem;
                    -webkit-overflow-scrolling: touch;
                    scrollbar-width: none;
                }

                .about-pillars::-webkit-scrollbar {
                    display: none;
                }

                .pillar-card {
                    min-width: 85vw;
                    scroll-snap-align: center;
                    margin: 0 !important;
                }
            }
        

            @media (max-width: 1024px) {
                #journey .journey-header {
                    padding: 1rem 1.5rem 0 !important;
                    background: transparent;
                }

                #journey .journey-header h2 {
                    color: var(--color-text) !important;
                }

                #journey .legacy-title-wrapper {
                    margin-bottom: 1rem !important;
                }
            }
        

            .timeline-container {
                position: relative;
                width: 100%;
                margin: 0 auto;
                display: flex;
                flex-direction: row;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                gap: 2rem;
                padding: 4rem calc(50% - 225px); /* Desktop card is 450px */
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
            }

            @media (max-width: 768px) {
                .timeline-container {
                    padding: 4rem calc(50% - 170px); /* Mobile card is 340px */
                }
            }

            .timeline-container::-webkit-scrollbar {
                display: none;
            }

            .timeline-line-horizontal {
                display: block;
                position: absolute;
                top: 2.2rem;
                height: 3px;
                background: rgba(0, 0, 0, 0.08);
                z-index: 1;
                border-radius: 2px;
            }

            .timeline-progress-horizontal {
                height: 100%;
                width: 0%;
                background: var(--gold);
                border-radius: 2px;
                transition: width 0.1s ease-out;
            }

            /* Milestone Card */
            .timeline-card {
                flex: 0 0 auto;
                width: 550px;
                scroll-snap-align: center;
                position: relative;
                opacity: 0.5;
                transform: scale(0.95);
                transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
                z-index: 2;
                margin-top: 2rem;
            }

            .timeline-card.active-mobile {
                opacity: 1;
                transform: scale(1);
            }

            /* The Dot on the Line */
            .timeline-dot {
                display: block;
                position: absolute;
                top: -2.35rem;
                left: 50%;
                width: 20px;
                height: 20px;
                background: #fff;
                border: 3px solid #ddd;
                border-radius: 50%;
                transform: translateX(-50%) scale(0.8);
                z-index: 3;
                transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            }

            .timeline-card.active-mobile .timeline-dot {
                border-color: var(--theme-color, var(--gold));
                background: var(--theme-color, var(--gold));
                box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.04);
                transform: translateX(-50%) scale(1.15);
            }

            /* Card Content Styling */
            .timeline-content {
                background: #fff;
                border: 1px solid var(--theme-color, var(--gold));
                border-bottom: 12px solid var(--theme-color, var(--gold));
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
                border-radius: 12px;
                overflow: hidden;
                cursor: grab;
                height: 100%;
                display: flex;
                flex-direction: column;
                transition: transform 0.5s ease, box-shadow 0.5s ease;
            }

            .timeline-content:active {
                cursor: grabbing;
            }

            .timeline-content:hover {
                transform: translateY(-5px);
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
            }

            .timeline-img {
                width: 100%;
                height: 300px;
                overflow: hidden;
                position: relative;
                background-color: #fff;
            }

            .timeline-img img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                transition: transform 0.8s ease;
            }

            .timeline-content:hover .timeline-img img {
                transform: scale(1.03);
            }

            /* Timeline Photo Slideshow Marquee */
            .timeline-marquee {
                width: 100%;
                height: 100%;
                overflow: hidden;
                position: relative;
            }

            .timeline-marquee-track {
                display: flex;
                flex-wrap: nowrap;
                width: 100%;
                height: 100%;
                will-change: transform;
                transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            }

            .timeline-marquee-track img {
                width: 100% !important;
                height: 100% !important;
                object-fit: contain !important; 
                flex: 0 0 100% !important; 
                transition: none !important;
                transform: none !important;
            }

            .marquee-nav-btn {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                background: rgba(0, 0, 0, 0.4);
                color: #fff;
                border: none;
                border-radius: 50%;
                width: 32px;
                height: 32px;
                cursor: pointer;
                z-index: 10;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.2rem;
                transition: background 0.3s ease, opacity 0.3s ease;
                opacity: 0;
            }
            .timeline-card:hover .marquee-nav-btn {
                opacity: 1;
            }
            .marquee-nav-btn:hover {
                background: rgba(0, 0, 0, 0.8);
            }
            .marquee-nav-prev {
                left: 10px;
            }
            .marquee-nav-next {
                right: 10px;
            }

            .timeline-text {
                padding: 2.5rem;
                flex-grow: 1;
                display: flex;
                flex-direction: column;
            }

            .timeline-year {
                font-size: 0.8rem;
                font-weight: 800;
                letter-spacing: 4px;
                text-transform: uppercase;
                color: var(--theme-color, var(--gold));
                margin-bottom: 1rem;
            }

            .timeline-text h4 {
                font-size: 1.8rem;
                color: #000;
                margin-bottom: 1.2rem;
                font-family: var(--font-serif);
                line-height: 1.3;
                text-align: center;
                text-decoration: underline;
                text-underline-offset: 4px;
                text-decoration-thickness: 1px;
                text-decoration-color: var(--theme-color);
            }

            .timeline-text p {
                font-size: 1.1rem;
                color: #666;
                line-height: 1.8;
                margin: 0 0 1.5rem 0;
            }

            .timeline-list {
                list-style: none;
                padding: 0;
                margin: 0;
                flex-grow: 1;
                display: flex;
                flex-direction: column;
            }

            .timeline-list li {
                font-size: 0.95rem;
                color: var(--theme-color, #555);
                line-height: 1.4;
                padding: 0.8rem 0 0.8rem 1.4rem;
                position: relative;
                border-bottom: 1px solid rgba(0,0,0,0.05);
                height: auto;
                flex-grow: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: left;
            }

            .timeline-list li:last-child {
                border-bottom: none;
            }

            .timeline-list li::before {
                content: '❯';
                position: absolute;
                left: 0;
                top: 0.95rem;
                font-size: 0.75rem;
                font-weight: 800;
                color: var(--theme-color, var(--gold));
                transition: transform 0.3s ease;
            }
            .timeline-list li:hover::before {
                transform: translateX(4px);
            }


            .numerology {
                font-size: 0.78rem;
                color: #000;
                font-weight: 700;
                letter-spacing: 1px;
                opacity: 0.85;
                margin-left: 2.5rem;
            }

            /* Responsive overrides for Timeline */
            @media (max-width: 992px) {
                .timeline-card {
                    width: 85vw;
                    max-width: 380px;
                }
                .timeline-img {
                    height: 260px;
                }
                .timeline-text {
                    padding: 1.5rem;
                }
                .timeline-text h4 {
                    font-size: 1.5rem;
                    margin-bottom: 0.8rem;
                }
                .timeline-year {
                    font-size: 0.75rem;
                    margin-bottom: 0.5rem;
                }
                .timeline-list li {
                    font-size: 0.95rem;
                    padding: 0.35rem 0 0.35rem 1.2rem;
                    height: auto;
                    text-align: left;
                }
                .timeline-list li::before {
                    top: 0.35rem;
                }
            }
        

        .contact-cta {
            padding: 8rem 0;
        }

        .contact-cta-inner {
            padding: 6rem 2rem;
        }

        @media (max-width: 768px) {
            .contact-cta {
                padding: 4rem 0;
            }

            .contact-cta-inner {
                padding: 3rem 1.5rem;
            }
        }
    

            @media (max-width: 992px) {
                .stats-section {
                    display: none !important;
                }
            }
        

        .stat-number.plus::after {
            content: '+';
            font-size: 3rem;
            vertical-align: top;
            margin-left: 5px;
            color: var(--gold);
        }
    


/* --- Extracted from header.php --- */

        :root {
            --blue: #003366;
            --gold: #c5a059;
            --yellow: #f4d03f;
            --white: #ffffff;
            --bg: #F8F6F0;
            --bg-gradient: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #F8F6F0 60%, #EFEBE0 100%);
            --text: #111111;
            --muted: #666666;
            --green: #2E8B57;
            --font-serif: 'Cormorant Garamond', serif;
            --font-sans: 'Plus Jakarta Sans', sans-serif;
            --transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
            --mood-bg: transparent;
        }

        /* Ambient Mood Engine */
        #ambient-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
            transition: background 2s ease;
            opacity: 0.15;
            filter: blur(100px);
        }

        [data-theme="dark"] #ambient-canvas {
            opacity: 0.1;
        }

        [data-theme="dark"] {
            --bg: #0A0F14;
            --bg-gradient: radial-gradient(circle at 50% 0%, #151A22 0%, #0A0F14 60%, #05080A 100%);
            --text: #F0F0F0;
            --surface: #12181F;
            --gold: #E5C07B;
        }

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


        body { 
            font-family: var(--font-sans); 
            background: var(--bg); 
            background-image: var(--bg-gradient);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
        }

        h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; }
        h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; }
        h3 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.5rem); }
        h4 { font-family: var(--font-serif); font-weight: 700; }



        .gradient-text-gold {
            background: linear-gradient(135deg, var(--gold) 0%, #F9E596 50%, #B6862C 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }

        /* Responsive Container */
        @media (max-width: 768px) {
            .container { padding: 0 1.5rem; }
        }

        /* Navigation */
        header {
            position: sticky; top: 0; z-index: 1000;
            background: #000000;
            border-bottom: 1px solid rgba(197, 160, 89, 0.2);
            padding: 0 !important;
        }
        nav { padding: 0.2rem 0; display: flex; justify-content: space-between; align-items: center; }

        /* Marquee style banner */
        .header-marquee {
            width: 100%;
            background: var(--gold);
            padding: 0.4rem 0;
            overflow: hidden;
            display: flex;
            align-items: center;
        }

        .header-marquee-inner {
            display: flex;
            width: max-content;
            animation: marquee-scroll 25s linear infinite;
        }

        .header-marquee-group {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: space-around;
            min-width: 100vw;
        }

        .header-marquee-group span {
            font-family: var(--font-sans);
            font-size: 0.7rem;
            font-weight: 700;
            color: #000000;
            text-transform: uppercase;
            letter-spacing: 2px;
            padding: 0 3rem;
            white-space: nowrap;
        }

        .header-marquee-group .separator {
            color: #000000;
            opacity: 0.5;
            padding: 0;
            font-size: inherit; /* Matches the 0.7rem of the span */
        }

        .header-marquee:hover .header-marquee-inner {
            animation-play-state: paused;
        }

        @keyframes marquee-scroll {
            0% {
                transform: translate3d(0, 0, 0);
            }
            100% {
                transform: translate3d(-50%, 0, 0);
            }
        }
        .logo { font-size: 3.2rem; font-weight: 900; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; text-decoration: none; transition: var(--transition); font-family: 'Times New Roman', Times, serif; line-height: 1; margin: 0; padding: 0; }
        .nav-book-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: #000;
            color: #fff !important;
            padding: 0.55rem 1.2rem;
            border-radius: 50px;
            font-weight: 800 !important;
            font-size: 0.75rem !important;
            letter-spacing: 1px;
            transition: all 0.25s ease !important;
            white-space: nowrap;
        }
        .nav-book-btn:hover {
            background: var(--gold) !important;
            color: #000 !important;
            transform: translateY(-1px);
        }
        [data-theme="dark"] .nav-book-btn {
            background: var(--gold);
            color: #000 !important;
        }
        [data-theme="dark"] .nav-book-btn:hover {
            background: #fff !important;
            color: #000 !important;
        }
        .logo:hover { color: var(--gold); }
        
        .nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
        .nav-links a { text-decoration: none; color: var(--gold); font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; position: relative; transition: color 0.3s ease; }
        .nav-links a:hover { color: var(--gold); }
        .show-on-mobile { display: none; }

        /* Dropdown Menu Styles */
        .nav-dropdown-wrapper {
            position: relative;
        }
        .nav-dropdown {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(15px);
            background: #000000;
            border: 1px solid rgba(197, 160, 89, 0.25);
            border-radius: 4px;
            padding: 0.8rem 0;
            list-style: none;
            min-width: 240px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
            z-index: 1000;
        }
        .nav-dropdown::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 50%;
            transform: translateX(-50%) rotate(45deg);
            width: 10px;
            height: 10px;
            background: #000000;
            border-top: 1px solid rgba(197, 160, 89, 0.25);
            border-left: 1px solid rgba(197, 160, 89, 0.25);
        }
        .nav-dropdown-wrapper:hover .nav-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        .nav-dropdown li {
            width: 100%;
            margin: 0 !important;
            padding: 0;
            opacity: 1 !important;
            transform: none !important;
        }
        .nav-dropdown a {
            display: block;
            padding: 0.6rem 1.5rem;
            color: var(--gold);
            font-size: 0.8rem !important;
            font-family: var(--font-sans) !important;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            transition: all 0.2s ease;
            text-decoration: none;
            white-space: nowrap;
        }
        .nav-dropdown a:hover {
            background: rgba(197, 160, 89, 0.1);
            color: #ffffff !important;
            padding-left: 1.8rem;
        }
        .dropdown-arrow {
            display: inline-block;
            margin-left: 6px;
            vertical-align: middle;
            transition: transform 0.3s ease;
            stroke-width: 2.5px;
        }
        .nav-dropdown-wrapper:hover .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        /* Neomorphic Embossed Social Links in Nav Bar */
        .nav-social-item {
            display: flex;
            gap: 0.8rem;
            align-items: center;
        }

        .nav-social-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #161616;
            color: var(--gold) !important;
            border: 1px solid rgba(197, 160, 89, 0.2);
            /* Enhanced 3D Embossed (tactile raised) look */
            box-shadow: -2px -2px 5px rgba(255, 255, 255, 0.06), 
                        2px 2px 5px rgba(0, 0, 0, 0.8), 
                        inset 1px 1px 0px rgba(255, 255, 255, 0.1);
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            cursor: pointer;
            text-decoration: none !important;
        }

        .nav-social-btn:hover {
            color: #ffffff !important;
            border-color: rgba(197, 160, 89, 0.4);
            transform: translateY(-2px);
            /* Stronger emboss on hover */
            box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.08), 
                        3px 3px 8px rgba(0, 0, 0, 0.9), 
                        inset 1px 1px 0px rgba(255, 255, 255, 0.15);
        }

        /* Footer Grid Layout */
        .footer-main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 4rem;
            margin-bottom: 3rem;
            align-items: start;
        }
        .footer-signature {
            grid-column: 1 / span 2;
            grid-row: 1;
        }
        .footer-explore {
            grid-column: 1;
            grid-row: 2;
        }
        .footer-based-in {
            grid-column: 2;
            grid-row: 2;
        }
        .footer-buttons {
            grid-column: 3;
            grid-row: 1 / span 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 1.5rem;
            height: 100%;
        }

        @media (max-width: 900px) {
            .footer-main-grid {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }
            .footer-signature, .footer-explore, .footer-based-in, .footer-buttons {
                grid-column: 1;
                grid-row: auto;
            }
        }

        .nav-social-btn:active {
            transform: translateY(0.5px);
            /* Tactile pressed (debossed/sunken) look */
            box-shadow: inset -2px -2px 5px rgba(255, 255, 255, 0.04), 
                        inset 2px 2px 5px rgba(0, 0, 0, 0.8);
        }

        .nav-social-btn svg {
            display: block;
            stroke-width: 2px;
        }

        /* Mobile Menu Toggle */
        .menu-toggle { 
            display: none; 
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #000000;
            color: var(--gold) !important;
            border: 1px solid var(--gold);
            box-shadow: -2px -2px 5px rgba(255, 255, 255, 0.05), 
                        2px 2px 5px rgba(0, 0, 0, 0.8), 
                        inset 1px 1px 0px rgba(255, 255, 255, 0.1);
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            cursor: pointer;
            padding: 6px;
        }
        .menu-toggle:active {
            transform: translateY(1px);
            box-shadow: inset -2px -2px 5px rgba(255, 255, 255, 0.04), 
                        inset 2px 2px 5px rgba(0, 0, 0, 0.8);
        }

        @media (max-width: 992px) {
            .nav-links { 
                display: none !important;
            }
            .nav-links.active { 
                opacity: 1;
                pointer-events: auto;
            }
            .nav-links > li {
                margin: 1.2rem 0;
                transform: translateY(20px);
                opacity: 0;
                transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            }
            .nav-links.active > li {
                transform: translateY(0);
                opacity: 1;
            }
            .nav-links.active > li:nth-child(1) { transition-delay: 0.1s; }
            .nav-links.active > li:nth-child(2) { transition-delay: 0.2s; }
            .nav-links.active > li:nth-child(3) { transition-delay: 0.3s; }
            .nav-links.active > li:nth-child(4) { transition-delay: 0.4s; }

            .nav-dropdown {
                position: static !important;
                transform: none !important;
                opacity: 1 !important;
                visibility: visible !important;
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                padding: 0.5rem 0 0 0 !important;
                min-width: auto !important;
                text-align: center !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 0.5rem !important;
            }
            .nav-dropdown::before { display: none !important; }
            .nav-dropdown li {
                margin: 0 !important;
                padding: 0 !important;
                opacity: 1 !important;
                transform: none !important;
            }
            .nav-dropdown a {
                font-size: 1.1rem !important;
                font-family: var(--font-sans) !important;
                text-transform: uppercase !important;
                letter-spacing: 2px !important;
                color: rgba(197, 160, 89, 0.7) !important;
                padding: 0.3rem 0 !important;
                transition: color 0.3s ease !important;
            }
            .nav-dropdown a:hover {
                color: #ffffff !important;
                background: transparent !important;
                padding-left: 0 !important;
            }
            .dropdown-arrow { display: none !important; }
            h2 a { color: inherit !important; text-decoration: none !important; }

            .menu-toggle { display: none !important; }
            .menu-toggle.active svg { stroke: #fff; }
            
            nav { padding: 0.2rem 0 !important; position: relative; justify-content: center !important; }
            .header-marquee { padding: 0.2rem 0 !important; }
            
            /* Make the horizontal navbar visible on mobile with limited items */
            .logo { font-size: 2.2rem; letter-spacing: 0px; white-space: nowrap; text-align: center; margin: 0 auto; z-index: 10; }
            .nav-links { display: flex !important; gap: 0.5rem; align-items: center; position: absolute; right: 15px; margin-left: 0; z-index: 5; }
            .nav-links a { font-size: 0.9rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0px; color: var(--gold); font-weight: 800; text-decoration: none; white-space: nowrap; }
            .nav-social-btn svg { width: 14px; height: 14px; }
            
            .hide-on-mobile { display: none !important; }
            .show-on-mobile { display: block !important; }
        }

        /* Common Book Components */
        .book-aura { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gold); filter: blur(80px); opacity: 0; transition: 0.8s; z-index: -1; }
        .book-cover-main { width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: 5px; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }
        .book-coming-soon { background: #111 !important; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gold); }
        .coming-soon-text { font-family: var(--font-serif); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 5px; transform: rotate(-15deg); border: 2px solid var(--gold); padding: 1rem; }
        
        .btn-text { font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 8px; transition: 0.3s; }
        .reveal { transition: none; }
        .reveal.active { }
        
        .quote-indent { padding-left: 5rem; }
        @media (max-width: 992px) {
            .quote-indent { padding-left: 0; }
            
            .bio-name-mobile-hide {
                display: none !important;
            }
            .bio-title-mobile {
                font-family: 'Times New Roman', Times, serif !important;
                font-size: 2rem !important;
                white-space: nowrap !important;
                color: #000 !important;
                font-weight: bold !important;
                letter-spacing: 0px !important;
                text-transform: uppercase !important;
                margin-bottom: 2rem !important;
                text-decoration: underline !important;
                text-underline-offset: 4px !important;
                text-decoration-thickness: 2px !important;
            }
        }

        /* Theme Toggle Fix */
        .theme-toggle {
            position: fixed !important;
            bottom: 20px !important;
            right: 20px !important;
            width: 44px !important;
            height: 44px !important;
            background: #000 !important;
            color: #fff !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            z-index: 9999 !important;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
            transition: all 0.3s ease !important;
            border: 1px solid rgba(255,255,255,0.1) !important;
        }

        @media (max-width: 768px) {
            .theme-toggle { bottom: 90px !important; right: 15px !important; width: 38px !important; height: 38px !important; }
            h1 { font-size: 2.5rem !important; }
            h2 { font-size: 2rem !important; }
        }

        .theme-toggle:hover {
            transform: scale(1.1) !important;
            background: var(--gold) !important;
        }

        .theme-toggle svg {
            width: 20px !important;
            height: 20px !important;
            display: block !important;
        }

        [data-theme="dark"] .theme-toggle {
            background: var(--gold) !important;
            color: #000 !important;
        }
    

        @keyframes mmLogoFade {
            0% { opacity: 0; transform: scale(0.95) translateY(10px); filter: blur(10px); }
            40% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
            80% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
            100% { opacity: 0; transform: scale(1.05) translateY(-5px); filter: blur(5px); }
        }
    


/* --- Extracted from footer.php --- */

                    .author-signature { font-family: 'Times New Roman', Times, serif; text-transform: uppercase; font-weight: 900; letter-spacing: 4px; font-size: 5.5rem; color: var(--gold); }
                    @media (max-width: 768px) { .author-signature { font-size: 2.2rem; text-align: center; } }
                
/* Horizontal Gallery Fix for 'Cut Assets' */
.about-pillars::after {
    content: '';
    flex: 0 0 1.5rem;
    display: block;
}

/* Mobile Heading Enhancements for Continuous Layout */
@media (max-width: 768px) {
    #about .section-header h2,
    #journey .legacy-title-wrapper h2 {
        font-size: clamp(3.8rem, 12vw, 4.6rem) !important;
        text-align: center !important;
        display: block !important;
        line-height: 1.05 !important;
    }
    
    /* Disable jumping hover effect on mobile for smooth horizontal scrolling */
    .pillar-card:hover,
    .pillar-prof:hover,
    .pillar-social:hover,
    .pillar-card:active,
    .pillar-prof:active,
    .pillar-social:active {
        transform: none !important;
    }
    
    /* Ensure no vertical diagonal scroll inside the horizontal container */
    .about-pillars {
        overflow-y: hidden !important;
        touch-action: pan-y pan-x;
    }

    /* Thumb-Zone Reading Experience */
    p, .pillar-list li {
        line-height: 1.8 !important;
        padding: 0 0.5rem;
    }
}

/* ============================================================
   FLOATING CONTACT BUTTON
============================================================ */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-contact-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: #222;
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    color: #fff;
}

[data-theme="dark"] .floating-contact-btn {
    background-color: var(--gold);
    color: #000;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

[data-theme="dark"] .floating-contact-btn:hover {
    background-color: #dfb664;
    color: #000;
}

@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .floating-contact-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   EDITORIAL FOOTER STYLES
============================================================ */

.editorial-email {
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-serif);
    display: inline-block;
    position: relative;
    transition: 0.3s ease;
}

.editorial-email::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transform: scaleX(1);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.editorial-email:hover::after {
    transform: scaleX(0);
    transform-origin: bottom left;
}

.editorial-social-link {
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 3px;
    font-weight: 800;
    opacity: 0.7;
    transition: 0.3s;
    text-decoration: none;
}

.editorial-social-link:hover {
    opacity: 1;
    color: var(--gold);
}

.btn-editorial-library {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    border: 1px solid var(--gold);
    padding: 1rem 3rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-editorial-library:hover {
    background: var(--gold);
    color: #fff;
}


/* ========================================= */
/* ULTRA-MODERN MOBILE INNER PAGES REDESIGN  */
/* ========================================= */
@media (max-width: 992px) {
    /* 1. Reset massive paddings and margins globally */
    .biography-page, 
    .pillar-detail-page, 
    .store-page, 
    .contact-cta, 
    .hero, 
    section {
        padding: 4rem 1.2rem 3rem 1.2rem !important;
    }
    
    .quotes-section {
        padding: 0 !important;
    }
    
    /* 2. Grid to Stacked Container overrides */
    .bio-header-grid, 
    .page-header-grid, 
    .store-layout, 
    .contact-grid, 
    .scheduler-grid,
    .product-item,
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
        padding: 1.5rem !important;
    }

    /* Override padding for bento grids specifically so they don't look boxed if they shouldn't be */
    .bento-grid {
        padding: 0 !important;
    }
    
    .bento-card {
        padding: 2rem !important;
    }

    /* 3. Typography normalization for small screens */
    h1 {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 1.5rem !important;
        white-space: normal !important;
    }
    
    .bio-intro-lead {
        padding-left: 1rem !important;
        font-size: 1.1rem !important;
        border-left-width: 3px !important;
    }
    
    .bio-intro-lead span {
        padding-left: 0 !important;
        display: inline !important;
    }

    /* 4. Full-width edge-to-edge images */
    .bio-portrait-frame, 
    .header-image-wrapper, 
    .book-cover-wrapper, 
    .contact-image-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/5 !important;
        border-width: 1px !important;
        border-radius: 8px !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    }

    /* 5. Tactile, thumb-friendly buttons */
    .btn-back, 
    .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1.2rem !important;
        border-radius: 50px !important;
        text-align: center !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }
    
    .join-waitlist-btn,
    .btn-buy {
        width: 100% !important;
        justify-content: center !important;
        padding: 1.2rem !important;
        border-radius: 0 !important;
        text-align: center !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }
    
    .cta-container {
        margin-top: 2rem !important;
        width: 100% !important;
    }

    /* 6. Contact page specific */
    .host-panel {
        padding: 1.5rem !important;
    }
    
    .host-profile {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .host-avatar {
        margin: 0 auto !important;
    }
    
    /* 7. Store page */
    .store-book-title {
        font-size: 2rem !important;
        margin-top: 1rem !important;
    }
    
    .book-spotlight {
        max-width: 100% !important;
    }

    /* 8. Misc overrides */
    .side-tag {
        margin-bottom: 1rem !important;
        font-size: 0.8rem !important;
    }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}


/* Global Black Footer */
footer {
    background-color: #000 !important;
}
footer .author-signature, 
footer h4, 
footer p, 
footer .editorial-email, 
footer .editorial-social-link,
footer a {
    color: #fff !important;
}
footer .author-signature {
    color: var(--gold) !important;
}
footer .btn-editorial-library {
    background-color: var(--gold) !important;
    color: #000 !important;
}
