/* ============================================
   KENDIRO.COM - MASTER STYLESHEET
   Consolidated & Optimized - February 2026
   ============================================ */

/* ============================================
   1. CSS VARIABLES (ROOT)
   ============================================ */
:root {
  /* Color Palette: Ancient Gold */
  --primary-color: #0f0f0f;
  --secondary-color: #c9a227;
  --tertiary-color: #3d3428;
  --info-color: #e8d5a3;
  --accent-color: #d4a84b;
  --text-color: #f5f0e6;
  --background-color: #0f0f0f;
  
  /* Derived Colors */
  --card-bg: rgba(20, 18, 15, 0.95);
  --glow-color: rgba(201, 162, 39, 0.3);
  --overlay-dark: rgba(15, 12, 8, 0.85);
  --overlay-medium: rgba(20, 15, 10, 0.80);
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  
  /* Borders */
  --border-radius: 4px;
  --border-radius-lg: 8px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* Warm overlay effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--overlay-dark) 0%,
    var(--overlay-medium) 50%,
    var(--overlay-dark) 100%
  );
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  color: var(--text-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
}

/* Special text styles */
.biopunk-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.biopunk-pulse-z {
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--accent-color);
  display: inline-block;
  animation: gentle-glow 3s ease-in-out infinite;
}

.small-h1 {
  font-size: 1.17em !important;
  font-weight: normal;
  animation: none !important;
}

/* ============================================
   4. LAYOUT COMPONENTS
   ============================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xs) var(--spacing-md);
  background: linear-gradient(var(--overlay-dark), var(--overlay-medium));
  border-radius: var(--spacing-xs);
  border: 1px solid var(--tertiary-color);
}

#top .container {
  padding-bottom: var(--spacing-md);
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  padding: 12px 28px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: var(--border-radius);
  color: var(--secondary-color);
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--tertiary-color);
  color: var(--info-color);
}

.btn-secondary:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  background-color: transparent;
}

.borderWow {
  border: 1px solid var(--secondary-color) !important;
  background-color: var(--tertiary-color);
}

.submit-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--glow-color);
}

/* ============================================
   6. HEADER & NAVIGATION
   ============================================ */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
  background: linear-gradient(var(--overlay-dark), var(--overlay-medium));
  border-bottom: 1px solid var(--tertiary-color);
}

#headerFront {
  border: none !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo-image {
  height: 40px;
  margin-top: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 10px;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--info-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  left: 0;
  background: var(--secondary-color);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  cursor: pointer;
  z-index: 1002;
  font-size: 1.5rem;
  color: var(--secondary-color);
  position: relative;
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 50px;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-logo {
  margin-bottom: 30px;
  animation: fadeInUp 1s ease;
}

.hero-title-image {
  max-width: 80%;
  max-height: 200px;
  object-fit: contain;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
  margin: 0 auto;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

/* Hero Newsletter */
.hero-newsletter {
  padding: 15px;
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-newsletter:hover {
  transform: translateY(-5px);
}

.hero-newsletter h3 {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* ============================================
   8. ABOUT SECTION
   ============================================ */
.about {
  padding: var(--spacing-lg) 0;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.about-img {
  flex: 1;
  text-align: center;
}

.about-img img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: box-shadow var(--transition-fast);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--secondary-color);
}

.about-text p {
  margin-bottom: var(--spacing-md);
}

/* ============================================
   9. BOOKS SECTION
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.book-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  border-bottom: 3px solid var(--secondary-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--card-bg);
  max-width: 300px;
  flex: 1 1 300px;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-color);
}

.book-img {
  height: 400px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.05), transparent);
}

.book-img img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.book-card:hover .book-img img {
  transform: scale(1.05);
}

.book-info {
  padding: var(--spacing-md);
}

.book-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.book-info p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  opacity: 0.9;
  text-align: justify;
}

.book-info .genre {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* ============================================
   10. NOVELLA / READER MAGNET SECTION
   ============================================ */
.free-novella {
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-lg) 0;
  background: linear-gradient(rgba(35, 45, 25, 0.9), rgba(30, 40, 20, 0.95));
  border-top: 1px solid var(--tertiary-color);
  border-bottom: 1px solid var(--tertiary-color);
}

.novella-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.novella-img {
  flex: 1;
  text-align: center;
  position: relative;
}

.novella-img img {
  max-width: 300px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast);
}

.novella-text {
  flex: 2;
  text-align: left;
}

.novella-text h2,
.novella-text h3 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 10px;
}

.novella-text h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.novella-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Free Badge */
.free-badge {
  position: absolute;
  top: 35px;
  right: 1px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* ============================================
   11. WORLD BUILDING SECTION
   ============================================ */
.world-building {
  padding: 80px 0;
  margin: var(--spacing-xl) 0;
}

.world-building-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.world-building-text {
  flex: 1;
  min-width: 300px;
}

.world-building-text h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.world-building-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.world-building-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   12. TIMELINE SECTION
   ============================================ */
.timeline-section {
  padding: var(--spacing-lg) 0;
}

.timeline {
  margin: 80px auto;
  position: relative;
  max-width: 1000px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary-color);
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 30px;
}

.timeline-item:nth-child(odd) {
  margin-right: 50%;
  padding-right: 30px;
  text-align: right;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  top: 15px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-date {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.timeline-item h3 {
  color: var(--text-color);
}

.timeline-item p {
  color: var(--info-color);
}

/* ============================================
   13. SERIES LOGO
   ============================================ */
.series-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.series-logo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================
   14. PROFESSION SURVEY SECTION
   ============================================ */
.profession-survey {
  padding: 80px 0 0 0;
  margin: var(--spacing-xl) 0;
}

.tagline-container {
  text-align: center;
  margin: var(--spacing-xl) auto;
  width: 100%;
}

.tagline {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--secondary-color);
  margin: 0 auto;
  max-width: 800px;
}

.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: var(--spacing-lg) 0;
}

.profession-card {
  display: block;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
  height: 100%;
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--border-radius-lg);
  background: var(--card-bg);
}

.profession-card:hover,
.profession-card.selected {
  transform: translateY(-5px);
}

.profession-card.selected {
  border-color: var(--secondary-color);
  box-shadow: 0 0 20px var(--glow-color);
}

.card-with-image {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profession-img {
  position: relative;
  width: 50%;
  height: 150px;
  overflow: hidden;
  border-radius: 10%;
  border: 3px solid transparent;
  transition: var(--transition-fast);
  margin: 15px auto;
  max-width: 100%;
}

.profession-img img {
  width: 100%;
  height: 160%;
  object-fit: scale-down;
  transition: transform var(--transition-medium);
}

.profession-card:hover .profession-img img,
.profession-card.selected .profession-img img {
  transform: scale(1.05);
}

.profession-content {
  padding: 0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.profession-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--secondary-color);
  margin: 0 auto;
}

.profession-desc {
  font-size: 1rem;
  color: var(--info-color);
  line-height: 1.5;
  text-align: justify;
}

/* Selection indicator */
.selection-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 10;
}

.checkmark {
  font-size: 1.5rem;
  color: var(--secondary-color);
  filter: drop-shadow(0 0 5px var(--glow-color));
  display: none;
}

.profession-card.selected .selection-indicator {
  opacity: 1;
  animation: pulse 2s infinite;
}

/* Selection instructions */
.selection-instruction {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-top: 10px;
  opacity: 0.8;
  font-style: italic;
}

/* Button container with instructions */
.button-container {
  text-align: center;
  margin-top: 30px;
}

.button-instruction {
  margin-bottom: 15px;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

/* Results display */
.results-container {
  margin: 0 0 50px 0;
  padding: 30px;
  animation: fadeIn 0.5s ease forwards;
}

.results-summary {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--secondary-color);
}

/* Bar chart styles */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.bar-item {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

.bar-header {
  font-size: 14px;
}

.bar-label {
  width: 150px;
  text-align: right;
  font-weight: 600;
}

.bar-outer {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  height: 25px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.bar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transition: width var(--transition-medium);
  background: var(--secondary-color);
}

.bar-percent {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.low-percentage {
  background-color: var(--accent-color);
}

/* ============================================
   15. CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--spacing-lg) 0;
}

.contact-container {
  display: flex;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: 30px;
}

.contact-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--tertiary-color);
  color: var(--secondary-color);
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.contact-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
}

/* ============================================
   16. FOOTER
   ============================================ */
footer {
  padding: var(--spacing-md) 0;
  text-align: center;
}

.footer-content {
  margin: 0 auto;
}

.footer-social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-social a {
  color: var(--secondary-color);
  font-size: 24px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--accent-color);
}

.copyright {
  font-size: 0.9rem;
  margin-top: var(--spacing-md);
  color: var(--info-color);
}

/* ============================================
   17. SCROLL TO TOP BUTTON
   ============================================ */
#scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  transition: var(--transition-fast);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
}

#scroll-top-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--glow-color);
}

/* ============================================
   18. UTILITY CLASSES
   ============================================ */
.medimRa {
  width: 50%;
  margin: 0 auto 15px;
  border-radius: 50%;
  border: none;
  border-top: 1px solid var(--tertiary-color);
}

#navigate {
  display: none;
}

/* ============================================
   19. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes pulseLuminoso {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 0px var(--glow-color));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 15px var(--glow-color));
  }
}

@keyframes gentle-glow {
  0%, 100% { opacity: 0.8; }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px var(--glow-color);
  }
}

.logoH {
  animation: pulseLuminoso 5s ease-in-out infinite;
  padding-left: 0;
}

/* ============================================
   20. RESPONSIVE - TABLET (max 992px)
   ============================================ */
@media screen and (max-width: 992px) {
  .about-content,
  .world-building-content,
  .contact-container {
    flex-direction: column;
  }
}

/* ============================================
   21. RESPONSIVE - MOBILE (max 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  /* Hide logo on mobile */
  .logo-image {
    display: none;
  }
  
  /* Header transparent on mobile */
  header {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    padding: 0 !important;
  }
  
  .header-content {
    padding: 0 !important;
  }
  
  /* Mobile navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-medium);
    z-index: 1000;
    background: linear-gradient(var(--overlay-dark), var(--overlay-medium));
  }
  
  .nav-links.active {
    right: 0;
    border-left: 1px solid var(--tertiary-color);
  }
  
  .nav-links li {
    margin: var(--spacing-md) 0;
  }
  
  .menu-btn {
    display: flex !important;
    position: fixed !important;
    top: 5px;
    right: 5px;
    background-image: linear-gradient(15deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
    aspect-ratio: 1 / 1 !important;
    width: 12vw !important;
    max-width: 60px !important;
    min-width: 36px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5em !important;
    padding: 0 !important;
    z-index: 1003 !important;
    border-radius: 20%;
    overflow: hidden !important;
  }
  
  #navigate {
    display: flex;
  }
  
  /* Hero adjustments */
  .hero {
    padding: 20px 0 50px 0 !important;
  }
  
  .hero .container {
    padding-top: 10px;
  }
  
  #top.hero {
    padding: 40px 0 30px 0;
  }
  
  #top .container {
    padding-top: 60px;
    padding-bottom: 20px;
  }
  
  .hero-title-image {
    max-width: 100%;
  }
  
  /* Section adjustments */
  .about,
  .books,
  .world-building,
  .contact {
    padding: 30px 0 !important;
  }
  
  .timeline-section,
  .profession-survey {
    padding: 30px 0 !important;
    margin: 30px 0 !important;
  }
  
  .section-title {
    margin-bottom: 30px !important;
    font-size: 1.8rem !important;
  }
  
  /* Timeline mobile */
  .timeline::before {
    display: none;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  .timeline {
    margin: 40px auto !important;
  }
  
  .timeline-item {
    margin-bottom: 40px !important;
  }
  
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    margin-left: 60px;
    padding-left: 20px;
    margin-right: 0;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(even)::before,
  .timeline-item:nth-child(odd)::before {
    left: 20px;
    right: auto;
  }
  
  /* Novella mobile */
  .novella-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .novella-img img {
    max-width: 250px;
  }
  
  /* Profession survey mobile */
  .tagline-container {
    margin: 40px auto !important;
  }
  
  .tagline {
    font-size: 2rem !important;
    margin-bottom: 20px;
  }
  
  .professions-grid {
    gap: 20px !important;
    margin: 30px 0 !important;
  }
  
  .profession-img {
    height: 120px !important;
    margin: 10px auto !important;
  }
  
  /* Bar chart mobile */
  .bar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .bar-label {
    width: 100%;
    text-align: left;
  }
  
  .selection-instruction,
  .button-instruction {
    font-size: 1rem;
  }
  
  /* Books grid mobile */
  .books-grid {
    gap: 20px !important;
  }
  
  /* About mobile */
  .about-content {
    gap: 20px;
  }
  
  /* Contact mobile */
  .contact-container {
    gap: 30px;
  }
  
  .contact-info h3 {
    font-size: 1.6rem !important;
    margin-bottom: 20px !important;
  }
  
  .contact-info p {
    margin-bottom: 20px !important;
  }
  
  /* Footer mobile */
  footer {
    padding: 15px 0 !important;
  }
  
  /* Scroll button mobile */
  #scroll-top-btn {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    bottom: 15px !important;
    right: 15px !important;
    font-size: 14px !important;
  }
  
  /* Floating subscribe mobile */
  #floating-subscribe {
    bottom: 10px;
  }

    #floating-subscribe p {
    margin-right: 5px;
  }
}

/* ============================================
   22. RESPONSIVE - SMALL MOBILE (max 576px)
   ============================================ */
@media screen and (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  #scroll-top-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
  }
  
  .hero-newsletter h3 {
    font-size: 1.2rem;
  }
  
  .biopunk-text {
    font-size: 1.5rem;
  }
  
  .tagline {
    font-size: 1.8rem;
  }
}

/* ============================================
   23. FLOATING BRAND BADGE (Mobile)
   ============================================ */
.floating-brand-badge {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 18, 15, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 10px 18px;
  z-index: 999;
  display: none;
  border: none;
  box-shadow:
    0 0 8px 2px var(--glow-color),
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(201, 162, 39, 0.1);
  transition: all 0.4s ease;
  animation: badgeEntrance 0.6s ease-out;
  max-width: 280px;
}

.floating-brand-badge.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-15px) scale(0.95);
  pointer-events: none;
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 600;
  white-space: nowrap;
}

.badge-logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: bold;
  box-shadow: 0 0 8px var(--glow-color);
  flex-shrink: 0;
}

.badge-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.badge-text-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.badge-text {
  color: var(--secondary-color);
  letter-spacing: 1.5px;
  font-size: 1.15rem;
  line-height: 1.1;
}

.badge-subtitle {
  font-size: 0.7rem;
  color: var(--info-color);
  opacity: 0.9;
  font-weight: 500;
}

@keyframes badgeEntrance {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(201, 162, 39, 0.1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(201, 162, 39, 0.2);
  }
}

.floating-brand-badge.pulse {
  animation: badgeEntrance 0.6s ease-out, subtlePulse 4s ease-in-out infinite 1s;
}

@media screen and (max-width: 768px) {
  .floating-brand-badge {
    display: flex;
  }
}

@media screen and (max-width: 380px) {
  .floating-brand-badge {
    padding: 8px 15px;
    border-radius: 20px;
    max-width: 250px;
  }
  
  .badge-content {
    font-size: 0.85rem;
    gap: 8px;
  }
  
  .badge-logo {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  
  .badge-text {
    font-size: 0.85rem;
  }
  
  .badge-subtitle {
    font-size: 0.65rem;
  }
}

/* Mobile/Desktop visibility helpers */
.mobile-only {
  display: inline-block;
}

.desktop-only {
  display: none;
}

@media screen and (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: inline-block;
  }
}

/* ============================================
   24. FLOATING SUBSCRIBE BUTTON
   ============================================ */
.floating-subscribe {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(38, 54, 37, 0.9);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 900;
  display: none;
  align-items: center;
  border: 1px solid var(--secondary-color);
  backdrop-filter: blur(5px);
  transition: var(--transition-fast);
}

.floating-subscribe p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.floating-btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.floating-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* =============================================================================
   BOOKS.HTML - REDIRECT/LANDING PAGE STYLES
   Add this to the end of styles.css
   ============================================================================= */

/* Redirect Loading State */
.books-redirect {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background, #1a1a1a);
}

.redirect-container {
    text-align: center;
    color: var(--color-text-muted, #999);
}

.redirect-spinner {
    border: 3px solid var(--color-border, #3a3a3a);
    border-top: 3px solid var(--color-gold, #c9a227);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Retailer Landing Page */
#retailer-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--color-background, #1a1a1a);
}

.book-card-landing {
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.book-card-landing .cover-image {
    width: 200px;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.book-card-landing .available-text {
    color: var(--color-text, #ccc);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Store Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 500px) {
    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.store-button {
    background: var(--color-surface, #2a2a2a);
    border: 2px solid var(--color-border, #3a3a3a);
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.store-button:hover {
    border-color: var(--color-gold, #c9a227);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.2);
}

.store-button:active {
    transform: translateY(0);
}

.store-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.store-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More Stores Toggle */
.more-stores-btn {
    background: transparent;
    border: 2px solid var(--color-gold, #c9a227);
    color: var(--color-gold, #c9a227);
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.more-stores-btn:hover {
    background: var(--color-gold, #c9a227);
    color: var(--color-background, #1a1a1a);
}

.secondary-stores {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, #3a3a3a);
}

.secondary-stores.visible {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        max-height: 0;
    }
    to { 
        opacity: 1; 
        max-height: 500px;
    }
}

/* Landing Page Footer */
.landing-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border, #3a3a3a);
    text-align: center;
    color: var(--color-text-muted, #999);
    font-size: 0.9rem;
}

.landing-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.landing-footer a {
    color: var(--color-gold, #c9a227);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer a:hover {
    color: var(--color-gold-light, #e0b840);
    text-decoration: underline;
}

.author-page-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--color-gold, #c9a227);
    color: var(--color-gold, #c9a227);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 10px;
}

.author-page-btn:hover {
    background: var(--color-gold, #c9a227);
    color: var(--color-background, #1a1a1a);
    text-decoration: none;
}

/* =============================================================================
   ABOUT PAGE - ADDITIONAL STYLES
   ============================================================================= */

.about-text {
    text-align: justify;
}

.standards-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.standards-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.standards-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-gold, #c9a227);
}

.about-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =============================================================================
   HOMEPAGE - CTA SECTIONS
   ============================================================================= */

.hero-cta {
    padding: 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.quick-nav {
    padding: 0;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* =============================================================================
   BOOKS PAGE - CATALOG MODE
   ============================================================================= */

.series-intro {
    text-align: justify;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.series-intro p {
    margin-bottom: 1rem;
}

.cta-inline {
    text-align: center;
    margin-top: 2rem;
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gold, #c9a227);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold, #c9a227);
    border: 2px solid var(--color-background, #1a1a1a);
}

.timeline-date {
    color: var(--color-gold, #c9a227);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--color-text-muted, #999);
    font-size: 0.95rem;
}