:root {
  --bg-paper: #F8F5F2;
  --text-ink: #1F2937;
  --text-hand: #1E3A8A; /* Dark blue ink */
  
  --yellow-highlighter: #FEF08A;
  --pink-note: #FBCFE8;
  --blue-note: #BFDBFE;
  
  --card-shadow: 0 10px 25px rgba(0,0,0,0.1);
  --drop-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-ink);
  background-color: var(--bg-paper);
  overflow-x: hidden;
}

/* Background Texture: Dot Grid */
.notebook-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background-image: radial-gradient(#D1D5DB 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.7;
}

.handwriting {
  font-family: 'Caveat', cursive;
  color: var(--text-hand);
}

.desk-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 40px 20px;
}

/* -----------------------------------
   DECORATIVE ELEMENTS (Tape & Pins)
------------------------------------ */
.tape {
  position: absolute;
  width: 100px;
  height: 30px;
  background-color: rgba(255, 255, 240, 0.85); /* Masking tape color */
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 10;
}

.tape-top { top: -15px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.tape-angle { top: -15px; right: -20px; transform: rotate(45deg); width: 80px; }
.tape-side { top: 50%; left: -20px; transform: translateY(-50%) rotate(90deg); width: 80px; }

.pin {
  position: absolute;
  top: 15px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E2E8F0, #94A3B8);
  box-shadow: 2px 5px 5px rgba(0,0,0,0.2), inset -2px -2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}
.red-pin { background: radial-gradient(circle at 30% 30%, #FCA5A5, #EF4444); }

/* -----------------------------------
   HEADER / STAMP
------------------------------------ */
.paper-stamp {
  margin-bottom: 60px;
  transform: rotate(-3deg);
  display: inline-block;
}

.paper-stamp h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  letter-spacing: -1px;
}

.paper-stamp p {
  font-size: 1.8rem;
  margin-top: -5px;
}

/* -----------------------------------
   INTRO (Torn Page)
------------------------------------ */
.intro-page {
  position: relative;
  background: #FFF;
  padding: 50px;
  max-width: 600px;
  box-shadow: var(--card-shadow);
  transform: rotate(1deg);
  margin-bottom: 80px;
}

/* Torn paper edge effect at the bottom */
.intro-page::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, #FFF 10px, #FFF 20px);
}

.hero-text {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.highlight-yellow {
  background-image: linear-gradient(transparent 60%, var(--yellow-highlighter) 60%);
  padding: 0 5px;
}

.body-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #4B5563;
  margin-bottom: 40px;
}

.call-to-action {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.handwritten-btn {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: #DC2626; /* Red pen */
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
}

.scribble {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 140%;
  pointer-events: none;
  animation: draw 2s ease forwards;
}

@keyframes draw {
  from { stroke-dasharray: 600; stroke-dashoffset: 600; }
  to { stroke-dasharray: 600; stroke-dashoffset: 0; }
}

.rating-doodle {
  margin-top: 20px;
  transform: rotate(-2deg);
}

.stars {
  color: #FBBF24;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.rating-doodle .handwriting {
  font-size: 1.5rem;
  margin-left: 10px;
}

/* -----------------------------------
   MAIN PHOTO (Polaroid)
------------------------------------ */
.main-photo {
  position: absolute;
  top: 40px;
  right: 50px;
  transform: rotate(5deg);
  z-index: 5;
}

.polaroid {
  background: #FFF;
  padding: 15px 15px 50px 15px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.polaroid:hover {
  transform: scale(1.05) rotate(0deg);
  z-index: 20;
}

.polaroid img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.polaroid .caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  width: 100%;
  text-align: center;
}

/* -----------------------------------
   SCATTER CARDS (Index Cards)
------------------------------------ */
.scatter-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 100px;
  justify-content: center;
  position: relative;
}

.index-card {
  background-color: #FFF;
  width: 300px;
  padding: 40px 30px 30px 30px; /* space for pin */
  box-shadow: var(--drop-shadow);
  position: relative;
  /* Lined paper effect */
  background-image: repeating-linear-gradient(transparent, transparent 29px, #93C5FD 29px, #93C5FD 30px);
  background-position: 0 40px;
}

.index-card::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 20px;
  width: 2px;
  background-color: #FCA5A5; /* Red margin line */
}

.index-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  margin-left: 10px;
  background: #FFF; /* Cover the line behind text */
  display: inline-block;
  padding-right: 10px;
}

.index-card p {
  margin-left: 10px;
  line-height: 30px; /* Match lined paper */
  font-size: 1rem;
}

.card-1 { transform: rotate(-3deg); }
.card-2 { transform: rotate(2deg); margin-top: 30px; }
.card-3 { transform: rotate(-1deg); margin-top: 10px; }

.index-card .note {
  position: absolute;
  bottom: -15px;
  right: -10px;
  font-size: 1.8rem;
  color: #DC2626;
  transform: rotate(-10deg);
}

/* -----------------------------------
   STICKY NOTES (Curriculum)
------------------------------------ */
.sticky-notes-board {
  margin-bottom: 100px;
}

.board-title {
  font-family: 'Caveat', cursive;
  font-size: 3.5rem;
  color: var(--text-ink);
  text-align: center;
  margin-bottom: 40px;
}

.notes-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sticky-note {
  width: 250px;
  min-height: 250px;
  padding: 25px;
  box-shadow: 2px 8px 15px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.sticky-note:hover {
  transform: scale(1.1) rotate(0deg);
  z-index: 10;
}

.yellow-note { background-color: var(--yellow-highlighter); transform: rotate(-3deg); }
.pink-note { background-color: var(--pink-note); transform: rotate(4deg); }
.blue-note { background-color: var(--blue-note); transform: rotate(-2deg); }

.sticky-note h4 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.sticky-note p {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  line-height: 1.3;
}

/* -----------------------------------
   TESTIMONIALS (Polaroid Scatter)
------------------------------------ */
.testimonials-scatter {
  padding-bottom: 100px;
}

.polaroid-deck {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.test-p {
  width: 320px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-p .quote {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.test-p .signature {
  font-size: 2rem;
  text-align: right;
  display: block;
}

.p1 { transform: rotate(-5deg); }
.p2 { transform: rotate(2deg); margin-top: 20px; }
.p3 { transform: rotate(6deg); }

/* -----------------------------------
   RESPONSIVENESS
------------------------------------ */
@media (max-width: 1024px) {
  .main-photo {
    position: relative;
    top: 0; right: 0;
    margin: 40px auto;
    display: block;
    max-width: 90%;
  }
  .polaroid img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .intro-page {
    padding: 30px;
    max-width: 100%;
    transform: none;
  }
  .hero-text { font-size: 2.5rem; }
  .scatter-cards { flex-direction: column; align-items: center; gap: 40px; }
  .index-card { transform: none !important; width: 100%; max-width: 350px; }
  .notes-grid { flex-direction: column; align-items: center; gap: 30px; }
  .sticky-note { transform: none !important; width: 100%; max-width: 300px; }
  .polaroid-deck { flex-direction: column; align-items: center; }
  .test-p { transform: none !important; width: 100%; max-width: 350px; margin: 0; }
  .paper-stamp { transform: none; text-align: center; display: block; margin-bottom: 40px; }
}
