/* Custom System Variables - Dark Cinematic Office Palette */
:root {
    --deep-black: #050505;
    --dark-charcoal: #121212;
    --warm-cream: #f4ebd9;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --old-paper: #e6dfcb;
    --deep-brown: #2b1d0c;
    --dark-red: #5c1111;
    --white: #ffffff;
    --glass-bg: rgba(18, 18, 18, 0.75);
    --font-serif: 'Cinzel', Georgia, serif;
    --font-mono: 'Special Elite', monospace;
    --font-sans: 'Inter', sans-serif;
    --transition-premium: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Configuration & Layout Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--deep-black);
    color: var(--warm-cream);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

body.intro-active {
    overflow: hidden;
    height: 100vh;
}

/* Typography Overrides */
h1, h2, h3, .case-number {
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

/* PREMIUM CINEMATIC INTRO CONTAINER */
.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--deep-black);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.skip-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: 1px solid rgba(244, 235, 217, 0.3);
    color: var(--warm-cream);
    padding: 10px 20px;
    font-family: var(--font-mono);
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: var(--warm-cream);
    color: var(--deep-black);
}

/* Atmosphere Layer Dynamics */
.dust-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--deep-black) 80%), 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.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    pointer-events: none;
}

.spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 45%;
    left: 50%;
    mix-blend-mode: screen;
}

/* Luxury Theater Curtains */
.theater-curtain {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    background: linear-gradient(90deg, #1f0404, var(--dark-red), #1f0404);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.6) inset;
    z-index: 10000;
}
.left-curtain { left: 0; }
.right-curtain { right: 0;  }

/* Intro Core Stage Layout */
.intro-stage {
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

#canvas-container-intro {
    width: 300px;
    height: 400px;
    margin-bottom: 20px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.intro-typography {
    opacity: 0;
    transform: translateY(20px);
}

.case-number {
    font-family: var(--font-mono);
    color: #000000;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.main-title {
    font-size: 2.5rem;
    color: var(--warm-cream);
    text-shadow: 0 0 20px rgba(244, 235, 217, 0.2);
}

.case-sub {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 5px;
}

/* Biometric Scanner Interface */
.biometric-scanner-wrap {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.scanner-fingerprint {
    position: relative;
    width: 100px;
    height: 100px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(214, 175, 55, 0.2);
    border-radius: 50%;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: border-color 0.3s ease;
}

.fingerprint-svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s var(--transition-premium);
}

.scan-line {
    position: absolute;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    top: 10%;
    animation: scanPulse 2s infinite ease-in-out;
    pointer-events: none;
}

.progress-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring__circle {
    stroke-dasharray: 339.29;
    stroke-dashoffset: 339.29;
    transition: stroke-dashoffset 0.1s linear;
}

.scanner-instruction {
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 1px;
}

@keyframes scanPulse {
    0%, 100% { top: 15%; opacity: 0.3; }
    50% { top: 85%; opacity: 1; }
}

/* GLASSMORPHISM NAV BAR */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 999;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(244, 235, 217, 0.08);
}

.nav-logo {
    font-family: var(--font-serif);
    color: var(--gold);
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
border-bottom: 1px solid #222;
padding: 20px 5%; 
}

.nav-links a {
    text-decoration: none;
    color: var(--warm-cream);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--gold);
}

.cta-nav {
    border: 1px solid var(--gold);
    padding: 8px 16px;
    border-radius: 2px;
    background: rgba(212, 175, 55, 0.05);
}

.mobile-toggle { display: none; background: transparent; border: none; cursor: pointer; }

/* IMMERSIVE LANDING PAGE HERO */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

#hero-3d-book-container {
    width: 100%;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 65%);
}
/* Container holding the logo and text together */
.brand-link {
  display: flex;
  align-items: center; /* Crucial: Aligns logo and text perfectly straight in the center */
  gap: 12px;           /* Adjusts the space/gap between the logo image and the text */
  text-decoration: none;
}

/* Controls the size of your logo image */
.header-logo {
  height: 40px;        /* Set this to match the height of your navbar font beautifully */
  width: auto;         /* Keeps the original shape aspect ratio intact */
  display: block;
}

/* Style for the text typography next to it */
.brand-text {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 22px;
  color: #c5a880;      /* Your premium gold theme accent color */
  letter-spacing: 1px;
}

/* 📱 Mobile Safety: Prevents clipping on narrow phone screens */
@media (max-width: 480px) {
  .header-logo {
    height: 32px;      /* Scales down slightly on smaller phones */
  }
  .brand-text {
    font-size: 18px;
  }
}

.hero-headline {
     font-family: 'Special ELite', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #e3ede9; /* Crisp light grey/white */
  margin-bottom: 20px;
}

.hero-subheading {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 35px;
    color: var(--white);
    opacity: 0.8;
}

.highlight-gold {
      color: #df9e28; /* Warm golden color */
  font-style: italic; 
}
}

.gold-divider {
    border: none;
  border-top: 3px solid #df9e28;
  width: 60px;
  margin: 0 0 40px 0;
}

.hook-paragraph-top {
    font-family: 'Lora', serif;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #d1dcd8;   /* Soft, pale sage green */
  opacity: 0.9;     /* Slightly see-through for a premium feel */
  margin-bottom: 20px;
}

.hook-paragraph-bottom {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ffffff;
}
.hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
/* Styling for the Book Specs Dossier */
.book-specs-dossier {
  background: #151515;
  border: 1px solid #222222;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
  text-align: left;
  font-family: monospace;
}
.spec-tag {
  font-size: 13px;
  color: #cccccc;
  margin-bottom: 8px;
  line-height: 1.4;
}
.spec-tag:last-child { margin-bottom: 0; }
.spec-label {
  color: #c5a880;
  font-weight: bold;
}
/* Master Button Architectures */
.btn {
    padding: 14px 28px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.4s var(--transition-premium);
    text-align: center;
}

.btn-primary { background: var(--warm-cream); color: var(--deep-black); }
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 1px solid rgba(244,235,217,0.3); color: var(--warm-cream); }
.btn-secondary:hover { border-color: var(--warm-cream); background: rgba(244,235,217,0.05); }
.btn-gold { background: var(--gold); color: var(--deep-black); box-shadow: 0 4px 15px var(--gold-glow); }
.btn-gold:hover { background: #e5be43; transform: translateY(-2px); box-shadow: 0 6px 20px var(--gold-glow); }

.sample-carousel-container {
  background-color: #161616;
  border: 1px solid #252525;
  padding: 40px 20px;
  border-radius: 8px;
  max-width: 650px;
  margin: 30px auto;
  text-align: center;
  box-sizing: border-box;
}

.carousel-intel-tag {
  font-family: monospace;
  color: #c5a880;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.carousel-headline {
  color: #ffffff;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 25px;
}

/* The Frame holding the book pages */
.carousel-viewscreen {
  position: relative;
  background-color: #0d0d0d;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

/* Slide configurations */
.book-slide {
  display: none;
  animation: slideFade 0.4s ease-in-out;
}

.book-slide.active {
  display: block;
}

.page-img {
  width: 100%;
  height: auto;
  display: block;
}

.page-caption {
  background-color: rgba(0, 0, 0, 0.85);
  color: #cccccc;
  font-size: 14px;
  padding: 12px;
  margin: 0;
  border-top: 1px solid #222;
  font-style: italic;
}

/* Custom Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(20, 20, 20, 0.75);
  color: #c5a880;
  border: 1px solid #444;
  font-size: 20px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background-color: #c5a880;
  color: #121212;
  border-color: #c5a880;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Dynamic Indicator Dots */
.carousel-dots {
  margin-top: 20px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #333333;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: #c5a880;
}

@keyframes slideFade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* 📱 Mobile optimizations */
@media (max-width: 600px) {
  .carousel-nav {
    padding: 8px 12px;
    font-size: 16px;
  }
  .page-caption {
    font-size: 12px;
  }
}

/* Container & Base Styles */
.parent-survival-kit {
  background-color: #121212; /* Matches your dark theme */
  color: #ffffff;
  padding: 60px 20px;
  font-family: sans-serif;
}
.kit-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.kit-sub {
  color: #c5a880; /* Gold accent color from your site */
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 10px;
}
.kit-title {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #f5f5f5;
}
.kit-intro {
  font-size: 16px;
  color: #b3b3b3;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Tab Layout Settings */
.tab-button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.tab-btn {
  background-color: #222222;
  color: #b3b3b3;
  border: 1px solid #333333;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn:hover, .tab-btn.active {
  background-color: #c5a880;
  color: #121212;
  border-color: #c5a880;
}

/* Content Pane States */
.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}
.tab-pane.active {
  display: block;
}

/* Card Styling */
.hack-card, .download-card {
  background-color: #1a1a1a;
  border-left: 4px solid #c5a880;
  padding: 25px;
  border-radius: 4px;
  text-align: left;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.hack-card h3, .download-card h3 {
  color: #c5a880;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}
.hack-card p, .download-card p {
  color: #cccccc;
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}
.download-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #c5a880;
  color: #121212;
  text-decoration: none;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.2s;
}
.download-btn:hover {
  background-color: #e2c499;
}
/* The Overall Card Canvas */
.case-file-card {
  background-color: #1a1a1a; /* Dark sleek background */
  border: 1px dashed #333333; /* Gives it a "classified document" file feel */
  border-left: 4px solid #c5a880; /* Your signature gold accent strip */
  padding: 35px 25px;
  max-width: 450px;
  margin: 20px auto;
  text-align: center;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Doodle Style */
.card-doodle {
  font-size: 32px;
  margin-bottom: 12px;
}

/* Headings */
.card-headline {
  font-family: monospace, sans-serif; /* Typewriter/Detective aesthetic */
  color: #c5a880;
  font-size: 20px;
  letter-spacing: 1.5px;
  margin: 0 0 4px 0;
}

.card-tagline {
  font-size: 14px;
  color: #888888;
  font-style: italic;
  margin: 0 0 20px 0;
}

/* Core Action Highlight */
.action-box {
  background-color: #111111;
  border: 1px solid #222222;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.action-box p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
.action-box strong {
  color: #c5a880; /* Highlights the main ingredient */
}

/* Clean Checkmark List */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 25px auto;
  max-width: 200px; /* Aligns them beautifully in the center */
  text-align: left;
}
.benefit-list li {
  color: #cccccc;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.check-icon {
  color: #c5a880;
  font-weight: bold;
  margin-right: 10px;
}

/* "Case Solved" Footer Stamp */
.card-footer {
  border-top: 1px solid #222222;
  padding-top: 15px;
}
.card-footer p {
  font-family: monospace, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c5a880;
  font-weight: bold;
  margin: 0;
}

/* 📱 Responsive Mobile Tuning */
@media (max-width: 480px) {
  .case-file-card {
    padding: 25px 15px;
    width: 100%;
  }
  .card-headline {
    font-size: 18px;
  }
  .action-box p {
    font-size: 15px;
  }
}

/* Additional styling for the rice card variations */
.use-case-box {
  background-color: #151515;
  border-top: 1px dashed #222222;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
}
.use-case-box p {
  font-size: 14px;
  color: #b3b3b3;
  margin: 0;
  line-height: 1.4;
}
.safety-note {
  font-size: 11px;
  color: #666666;
  font-style: italic;
  margin-bottom: 10px !important;
}


/* Keeps multiple cards organized inside the same tab */
#four-pm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Ensures cards behave beautifully on narrower screens */
@media (max-width: 768px) {
  #four-pm {
    flex-direction: column;
    align-items: center;
  }
}

#cheat-sheet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Styling for the Cheat Sheet Image Preview */
.cheat-sheet-preview-container {
  margin: 20px auto;
  max-width: 100%;
  border: 2px solid #222222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.cheat-sheet-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Subtle hover effect for desktop users */
.cheat-sheet-img:hover {
  transform: scale(1.02);
}
/* Micro-Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Styling for the Cheat Sheet Image Preview */
.cheat-sheet-preview-container {
  margin: 20px auto;
  max-width: 100%;
  border: 2px solid #222222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.cheat-sheet-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Subtle hover effect for desktop users */
.cheat-sheet-img:hover {
  transform: scale(1.02);
}
/* 📱 CRITICAL MOBILE RESPONSIVENESS FIXES */
@media (max-width: 768px) {
  .parent-survival-kit {
    padding: 40px 15px;
  }
  .kit-title {
    font-size: 22px;
  }
  .tab-button-container {
    flex-direction: column; /* Stacks buttons cleanly on tiny phone screens */
    gap: 10px;
    width: 100%;
  }
  .tab-btn {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
  .hack-card, .download-card {
    padding: 20px;
  }
}

/* EVIDENCE SECTION ARCHITECTURE */
.report-section {
    padding: 60px 5%;
    background: var(--dark-charcoal);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.stamp-badge {
    font-family: var(--font-mono);
    border: 2px dashed #FF0000; 
    color: #FF0000;            
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
    transform: rotate(-2deg);
}
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.evidence-card {
    background: var(--old-paper);
    color: var(--deep-black);
    padding: 40px 30px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transform-origin: top center;
}

.card-pin {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #cc3333 40%, #881111 90%);
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.evidence-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: rgba(0,0,0,0.5);
    margin-bottom: 15px;
}

.evidence-statement {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 25px;
}

.status-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 2px;
}
.status-tag.critical { background: rgba(92,17,17,0.15); color: var(--dark-red); border: 1px solid var(--dark-red); }
.status-tag.warning { background: rgba(43,29,12,0.15); color: var(--deep-brown); border: 1px solid var(--deep-brown); }

/* DETECTIVE INVESTIGATION BOARD */
.board-section {
    padding: 100px 2%;
    background: #181512 url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0V0zm20 20h20v20H20V20z" fill="%23000" fill-opacity=".03" fill-rule="evenodd"/%3E%3C/svg%3E');
    overflow: hidden;
}

.board-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 700px;
    margin: 0 auto;
    border: 12px solid var(--deep-brown);
    background: #261f18;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6) inset, 0 20px 40px rgba(0,0,0,0.5);
}

.board-overlay-text {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.4;
}

.string-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.board-node {
    position: absolute;
    z-index: 2;
    cursor: grab;
}

.element-photo {
    background: #fff;
    padding: 12px 12px 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transform: rotate(-4deg);
    max-width: 220px;
}

.element-photo img { width: 100%; height: auto; display: block; filter: sepia(0.3) contrast(1.1); }
.element-photo .caption { font-family: var(--font-mono); font-size: 0.7rem; color: #333; margin-top: 10px; text-align: center; }

.tape {
    position: absolute;
    top: -15px;
    left: 30%;
    width: 80px;
    height: 25px;
    background: rgba(226,211,173,0.5);
    transform: rotate(2deg);
    backdrop-filter: blur(1px);
}

.sticky-note {
    background: #e3d96d;
    color: #2b2502;
    padding: 20px;
    width: 180px;
    box-shadow: 5px 10px 15px rgba(0,0,0,0.2);
    transform: rotate(3deg);
    font-family: var(--font-mono);
}
.sticky-note h4 { font-size: 0.9rem; margin-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.15); }
.sticky-note p { font-size: 0.75rem; line-height: 1.3; }

.case-paper {
    background: #fdfbf7;
    color: #111;
    padding: 30px;
    width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.4;
}
.case-paper h3 { font-size: 1rem; margin-bottom: 10px; color: var(--dark-red); }

.marker-highlight {
    background: linear-gradient(180deg,transparent 60%, #ffe600 60%);
    padding: 2px 4px;
}

.detective-label {
    background: var(--dark-red);
    color: #fff;
    font-family: var(--font-mono);
    padding: 6px 12px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

/* BOOK INTERACTIVE SHOWCASE VIEWPORT */
.showcase-section {
    padding: 100px 5%;
    background: var(--deep-black);
}

.showcase-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: center;
}

.control-hints {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold);
}

#interactive-3d-book {
    width: 100%;
    height: 550px;
    background: radial-gradient(circle, rgba(244,235,217,0.03) 0%, transparent 70%);
    border: 1px solid rgba(244,235,217,0.05);
    border-radius: 4px;
}

/* NOTEBOOK CHAPTER PREVIEW READER */
.notebook-section {
    padding: 100px 5%;
    background: var(--dark-charcoal);
}

.notebook-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    background: var(--old-paper);
    color: #2b2013;
    min-height: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border-radius: 4px;
    position: relative;
}

.notebook-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.2), rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.2));
    z-index: 5;
}

.notebook-page {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 100% 28px;
}

.left-page { border-right: 1px solid rgba(0,0,0,0.05); }

.page-content {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 28px;
}

.notebook-title {
    font-family: var(--font-serif);
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.2;
    color: var(--dark-red);
}

.page-number {
    position: absolute;
    bottom: 25px;
    font-size: 0.8rem;
    opacity: 0.6;
}
.left-page .page-number { left: 40px; }
.right-page .page-number { right: 40px; }

.notebook-turn-btn {
    margin-top: auto;
    align-self: flex-end;
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--dark-red);
    padding: 5px;
}

/* FIELD ACTIVITIES SECTIONS */
.activities-section {
    padding: 100px 5%;
    text-align: center;
}

.activities-section h2 { margin-bottom: 50px; }

.folders-wrap {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.folder-container {
    background: #c2b492;
    color: #38301b;
    width: 100%;
    max-width: 450px;
    border-radius: 0 4px 4px 4px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    text-align: left;
    transition: transform 0.3s ease;
}

.folder-tab {
    position: absolute;
    top: -28px;
    left: 0;
    background: #c2b492;
    padding: 5px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 6px 12px 0 0;
}

.folder-body { padding: 40px 30px; }
.folder-body h3 { font-family: var(--font-serif); margin-bottom: 15px; }
.folder-body p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 25px; opacity: 0.9; }

.btn-unlock {
    background: var(--dark-red);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.confidential-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--transition-premium);
    margin-top: 20px;
    background: #fff;
    border-left: 4px solid var(--dark-red);
}

.folder-container.open .confidential-content {
    max-height: 200px;
}

.classified-text {
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem !important;
    color: #111;
    line-height: 1.4 !important;
}

/* AUTHOR BRAND TIMELINE SECTION */
.author-section {
    padding: 120px 5%;
    background: var(--dark-charcoal);
}

.author-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.author-bio h2 { font-size: 2.5rem; margin: 10px 0 20px; color: var(--white); }
.author-lead { font-size: 1.15rem; font-weight: 300; margin-bottom: 40px; color: var(--warm-cream); opacity: 0.9; }

.timeline {
    position: relative;
    border-left: 2px solid rgba(212, 175, 55, 0.2);
    padding-left: 30px;
}

.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item:last-child { margin-bottom: 0; }

.time-marker {
    position: absolute;
    left: -42px;
    top: 0;
    background: var(--gold);
    color: var(--deep-black);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 2px;
}

.timeline-item p { font-size: 0.9rem; line-height: 1.5; opacity: 0.85; margin-top: 5px; }

.author-photo-frame {
    position: relative;
    border: 8px solid var(--dark-charcoal);
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
}

.author-photo-frame img {
    width: 100%;
    display: block;
    filter: grayscale(0.2) contrast(1.05);
}

/* HIGH-CONVERSION BIOMETRIC HQ FORM */
.hq-signup-section {
    padding: 100px 5%;
    background: var(--deep-black);
}

.hq-box {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(145deg, #161616, #0d0d0d);
    border: 1px solid rgba(214,175,55,0.15);
    padding: 60px 40px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.hq-box h2 { font-size: 2rem; margin-bottom: 15px; color: var(--white); }
.hq-box p { font-size: 0.95rem; opacity: 0.7; margin-bottom: 35px; line-height: 1.5; }

.hq-form-element {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.hq-form-element input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(5,5,5,0.8);
    border: 1px solid rgba(244,235,217,0.15);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.hq-form-element input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212,175,55,0.1);
}

.btn-hq-submit {
    position: relative;
    background: var(--gold);
    color: var(--deep-black);
    border: none;
    padding: 16px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.btn-success-indicator {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #27ae60;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 0.4s var(--transition-premium);
}

.hq-form-element.success .btn-success-indicator { top: 0; }

/* THE DETECTIVE'S OFFICE DESK FOOTER */
.desk-footer {
    background: #120e0a;
    border-top: 4px solid var(--deep-brown);
    padding-top: 80px;
    position: relative;
}

.desk-surface {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 40px;
    position: relative;
}

.footer-content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.footer-stamp {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: #FF0000;
    border: 3px solid #FF0000;
    padding: 5px 15px;
    transform: rotate(-12deg);
    font-weight: 900;
}

.footer-links-grid {
    display: flex;
    gap: 60px;
}

.footer-links-grid h4 { font-size: 0.9rem; color: var(--gold); margin-bottom: 15px; text-transform: uppercase; }
.footer-links-grid a { display: block; text-decoration: none; color: var(--warm-cream); opacity: 0.6; font-size: 0.85rem; margin-bottom: 8px; transition: opacity 0.3s; }
.footer-links-grid a:hover { opacity: 1; }

.copyright-notice {
    width: 100%;
    margin-top: 60px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.4;
    text-align: center;
    border-top: 1px solid rgba(244,235,217,0.05);
    padding-top: 20px;
}

/* CONTEXTUAL RESPONSIVE OPTIMIZATION LAYERS (MOBILE FIRST) */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: left; gap: 40px; }
    #hero-3d-book-container { height: 350px; }
    .hero-headline { font-size: 1.2rem; }
    .hero-cta-group { justify-content: center; }
    
    .showcase-layout { grid-template-columns: 1fr; }
    #interactive-3d-book { height: 400px; }
    
    .notebook-container { flex-direction: column; }
    .left-page { border-right: none; border-bottom: 1px dashed rgba(0,0,0,0.1); }
    
    .author-grid { grid-template-columns: 1fr; gap: 40px; }
    .author-visual-wrapper { order: -1; max-width: 400px; margin: 0 auto; }
    
    .board-wrapper { height: auto; display: flex; flex-direction: column; gap: 20px; padding: 20px; border-width: 6px; }
    .board-node { position: static !important; transform: none !important; max-width: 100% !important; width: 100% !important; }
    .string-layer { display: none; }
    
    .main-nav { padding: 15px 5%; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column; background: var(--dark-charcoal); padding: 20px; gap: 15px; border-bottom: 1px solid rgba(244,235,217,0.1); }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    .mobile-toggle .bar { display: block; width: 22px; height: 2px; background: var(--warm-cream); margin: 4px auto; transition: all 0.3s; }
}


/* ==========================================================================
   CLEAN UNIFIED CSS 3D FLOATING BOOK SYSTEM (NO 360 SPIN)
   ========================================================================== */

#hero-3d-book-container {
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* Essential for deep 3D depth perception */
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 65%);
}

.css-book-vault {
    width: 280px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(8deg);
    animation: bookBreathe 5s infinite ease-in-out;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: transform 0.4s var(--transition-premium);
}

/* Dynamic Tilt Interaction on Hover (Replaces the spinning confusion) */
#hero-3d-book-container:hover .css-book-vault {
    transform: rotateY(-12deg) rotateX(5deg) scale(1.03);
    box-shadow: 0 40px 80px rgba(212, 175, 55, 0.15);
}

/* Universal dimensional setup for book sides */
.css-book-front, 
.css-book-back, 
.css-book-spine, 
.css-book-pages {
    position: absolute;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* FRONT COVER */
.css-book-front {
    width: 100%;
    top: 0;
    left: 0;
    background: #ffffff;
    border-radius: 0 4px 4px 0;
    transform: translateZ(20px); /* Pushed forward */
    overflow: hidden;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
    z-index: 2;
}

.css-book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
}

.fallback-cover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-serif);
    color: var(--gold);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1;
}

/* BOOK SPINE */
.css-book-spine {
    width: 40px; /* Thick book dimensionality */
    left: -20px;
    top: 0;
    background: linear-gradient(90deg, #3a0a0a, #5c1111, #2b0808);
    transform: rotateY(-90deg);
    border-radius: 4px 0 0 4px;
    border-left: 1px solid rgba(212,175,55,0.3);
}

/* CREAM PAGES INNER BLOCK */
.css-book-pages {
    width: 260px;
    height: 388px;
    right: -10px;
    top: 6px;
    background: #f4ebd9;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px);
    background-size: 3px 100%; /* Mimics real compressed text pages edge */
    transform: translateZ(-18px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    border-radius: 0 3px 3px 0;
}

/* BACK COVER */
.css-book-back {
    width: 100%;
    top: 0;
    left: 0;
    background: #ffffff;
    border-radius: 4px 0 0 4px;
    transform: translateZ(-20px) rotateY(180deg); 
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    z-index: 1;
}

.css-book-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
}

.fallback-back-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--dark-red);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    z-index: 1;
}

/* IDLE FLOATING MOTION LOOP */
@keyframes bookBreathe {
    0%, 100% { transform: rotateY(-22deg) rotateX(8deg) translateY(0); }
    50% { transform: rotateY(-19deg) rotateX(10deg) translateY(-12px); }
}

/* MOBILE-FIRST SCALER */
@media (max-width: 900px) {
    .css-book-vault { width: 210px; height: 300px; }
    .css-book-pages { width: 195px; height: 288px; }
}

/* Inspection Section Styling */
.inspection-section {
    background-color: #121212; /* Dark background to match the theme */
    padding: 60px 20px;
    font-family: 'Courier New', Courier, monospace; /* Authentic detective file font */
}

.inspection-container {
    max-width: 850px;
    margin: 0 auto;
}

.inspection-paper {
    background-color: #f4edd2; /* Aged manila folder/paper color */
    color: #2b261f;
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    border-left: 15px solid #2e251b; /* Clipboard/folder tab edge */
}

.inspection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #8c7b64;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.case-number {
    font-size: 0.9rem;
    font-weight: bold;
    color: #5a4f3f;
}

.secret-stamp {
    border: 3px solid #a63a3a;
    color: #a63a3a;
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(-5deg);
    border-radius: 4px;
}

.inspection-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-family: 'Georgia', serif;
}

.typewriter {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    background: #e6dcbc;
    padding: 2px 8px;
}

.inspection-body {
    font-size: 1.05rem;
    line-height: 1.6;
}

.log-entry {
    margin-bottom: 20px;
    text-align: justify;
}

.timestamp {
    color: #a63a3a;
    font-weight: bold;
    margin-right: 5px;
}

blockquote {
    border-left: 4px solid #a63a3a;
    margin: 25px 0;
    padding: 10px 20px;
    font-style: italic;
    background-color: rgba(166, 58, 58, 0.05);
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
}

.code-highlight {
    background-color: #2b261f;
    color: #f4edd2;
    padding: 2px 6px;
    font-weight: bold;
}

.inspection-footer {
    margin-top: 40px;
    border-top: 1px solid #8c7b64;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.signature-line {
    text-align: center;
    width: 250px;
}

.handwritten-name {
    display: block;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #2b261f;
    border-bottom: 1px solid #2b261f;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.signature-line label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #706250;
    letter-spacing: 1px;
}

/* Responsiveness */
@media (max-width: 600px) {
    .inspection-paper {
        padding: 30px 20px;
    }
    .inspection-title {
        font-size: 1.4rem;
    }
}