:root {
  --color-primary-light: #d9b2b4;
  --color-primary-main: #be879b;
  --color-primary-dark: #a07eda;
  --color-secondary-light: #fffdf9;
  --color-secondary-main: #f0efeb;
  --color-secondary-dark: #dfe7fd;
  --color-text-dark: #5c5c5c;
  --color-text-light: #a19696;
  --color-accent: #87adcf;
  --color-shadow-light: rgba(197, 163, 255, 0.15);
  --color-shadow-dark: rgba(189, 224, 254, 0.4);
  --color-bg-main: #faf9f6;
  --color-bg-card: #ffffff;
  --font-heading: "Caveat", cursive;
  --font-body: "Nunito", sans-serif;
  --radius-small: 12px;
  --radius-medium: 24px;
  --radius-large: 40px;
  --radius-round: 50%;
  --transition-fast: 0.3s ease-in-out;
  --transition-medium: 0.5s ease-in-out;
  --transition-slow: 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
[data-theme="dark"] {
  --color-primary-light: #4a4e69;
  --color-primary-main: #9a8c98;
  --color-primary-dark: #c9ada7;
  --color-secondary-light: #22223b;
  --color-secondary-main: #2b2d42;
  --color-secondary-dark: #1a1a2e;
  --color-text-dark: #f2e9e4;
  --color-text-light: #22223b;
  --color-accent: #f2e9e4;
  --color-shadow-light: rgba(0, 0, 0, 0.3);
  --color-shadow-dark: rgba(0, 0, 0, 0.6);
  --color-bg-main: #1a1a2e;
  --color-bg-card: #22223b;
}
* {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  width: 100vw;
  cursor: none;
  transition-property: background-color, color;
  transition-duration: var(--transition-medium);
  transition-timing-function: ease-in-out;
}
a,
button {
  cursor: none;
}
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: var(--color-primary-dark);
  border-top-left-radius: var(--radius-round);
  border-top-right-radius: var(--radius-round);
  border-bottom-right-radius: var(--radius-round);
  border-bottom-left-radius: var(--radius-round);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition-property: width, height, background-color, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease;
  opacity: 0.8;
}
#custom-cursor.hovered {
  width: 45px;
  height: 45px;
  background-color: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 0.5;
}
#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-primary-main);
  border-right-color: var(--color-primary-main);
  border-bottom-color: var(--color-primary-main);
  border-left-color: var(--color-primary-main);
  border-top-left-radius: var(--radius-round);
  border-top-right-radius: var(--radius-round);
  border-bottom-right-radius: var(--radius-round);
  border-bottom-left-radius: var(--radius-round);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition-property: top, left, width, height;
  transition-duration: 0.18s;
  transition-timing-function: ease-out;
  opacity: 0.6;
}
#particle-canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
#theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background-color: var(--color-bg-card);
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-primary-dark);
  border-right-color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
  border-left-color: var(--color-primary-dark);
  border-top-left-radius: var(--radius-round);
  border-top-right-radius: var(--radius-round);
  border-bottom-right-radius: var(--radius-round);
  border-bottom-left-radius: var(--radius-round);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 15px var(--color-shadow-light);
  transition-property: transform, box-shadow, background-color;
  transition-duration: var(--transition-fast);
  transition-timing-function: ease;
  outline-width: 0;
}
#theme-toggle:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px var(--color-shadow-dark);
  background-color: var(--color-primary-light);
}
.sun-icon,
.moon-icon {
  font-size: 22px;
  position: absolute;
  transition-property: opacity, transform;
  transition-duration: var(--transition-medium);
  transition-timing-function: ease;
}
[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}
[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}
[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}
[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-right: 6vw;
  padding-bottom: 0;
  padding-left: 6vw;
  z-index: 1000;
  transition-property: height, background-color, box-shadow;
  transition-duration: var(--transition-medium);
  transition-timing-function: ease;
}
#main-nav.scrolled {
  height: 70px;
  background-color: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0px 4px 20px var(--color-shadow-light);
}
[data-theme="dark"] #main-nav.scrolled {
  background-color: rgba(34, 34, 59, 0.85);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  flex-direction: row;
  align-items: center;
}
.brand-letter {
  display: inline-block;
  animation-name: floatAnimation;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.brand-ampersand {
  display: inline-block;
  color: var(--color-accent);
  margin-top: 0;
  margin-right: 6px;
  margin-bottom: 0;
  margin-left: 6px;
  animation-name: floatAnimation;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-delay: 0.6s;
}
.nav-links {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  gap: 35px;
}
.nav-item {
  position: relative;
}
.nav-link {
  text-decoration-line: none;
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  padding-top: 8px;
  padding-right: 12px;
  padding-bottom: 8px;
  padding-left: 12px;
  display: block;
  transition-property: color;
  transition-duration: var(--transition-fast);
  transition-timing-function: ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 4px;
  background-color: var(--color-primary-dark);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  transform: translateX(-50%);
  transition-property: width;
  transition-duration: var(--transition-fast);
  transition-timing-function: ease;
}
.nav-link:hover {
  color: var(--color-primary-dark);
}
.nav-link:hover::after {
  width: 80%;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.bar {
  width: 28px;
  height: 3px;
  background-color: var(--color-text-dark);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  transition-property: all;
  transition-duration: var(--transition-fast);
  transition-timing-function: ease;
}
.section {
  min-height: 100vh;
  width: 100vw;
  padding-top: 120px;
  padding-right: 20px;
  padding-bottom: 120px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-section {
  background-image: radial-gradient(
    circle at top right,
    var(--color-secondary-main) 0%,
    var(--color-bg-main) 70%
  );
  text-align: center;
}
.hero-content {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 7.5rem;
  line-height: 1.05;
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 25px;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  text-shadow: 2px 2px 8px var(--color-shadow-light);
}
.title-word {
  display: block;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
}
.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 50px;
  margin-left: 0;
  opacity: 0;
  transform: translateY(20px);
  max-width: 600px;
  line-height: 1.5;
}
.cta-button {
  display: inline-block;
  background-color: var(--color-bg-card);
  color: var(--color-primary-dark);
  text-decoration-line: none;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-top: 18px;
  padding-right: 45px;
  padding-bottom: 18px;
  padding-left: 45px;
  border-top-left-radius: var(--radius-large);
  border-top-right-radius: var(--radius-large);
  border-bottom-right-radius: var(--radius-large);
  border-bottom-left-radius: var(--radius-large);
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-primary-dark);
  border-right-color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
  border-left-color: var(--color-primary-dark);
  box-shadow: 0px 10px 25px var(--color-shadow-light);
  opacity: 0;
  transform: translateY(20px);
  transition-property: transform, box-shadow, background-color, color;
  transition-duration: var(--transition-fast);
  transition-timing-function: ease;
  outline-width: 0;
}
.cta-button:hover {
  transform: translateY(-6px);
  box-shadow: 0px 15px 35px var(--color-shadow-dark);
  background-color: var(--color-primary-light);
}
.cta-button:active {
  transform: translateY(1px);
}
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}
.mouse-shape {
  width: 28px;
  height: 46px;
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-text-dark);
  border-right-color: var(--color-text-dark);
  border-bottom-color: var(--color-text-dark);
  border-left-color: var(--color-text-dark);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  position: relative;
  opacity: 0.6;
}
.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-text-dark);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  border-bottom-left-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation-name: wheelScroll;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.15, 0.41, 0.69, 0.94);
}
.arrow-shape {
  width: 12px;
  height: 12px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-right-style: solid;
  border-bottom-style: solid;
  border-right-color: var(--color-text-dark);
  border-bottom-color: var(--color-text-dark);
  transform: rotate(45deg);
  margin-top: 12px;
  opacity: 0.6;
  animation-name: arrowBounce;
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-primary-dark);
  text-align: center;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 70px;
  margin-left: 0;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background-color: var(--color-accent);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}
.timeline-section {
  background-color: var(--color-secondary-light);
}
.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  width: 100%;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  padding-top: 50px;
  padding-right: 0;
  padding-bottom: 50px;
  padding-left: 0;
}
.timeline-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--color-primary-main);
  transform: translateX(-50%);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  border-bottom-left-radius: 2px;
  z-index: 1;
  opacity: 0.5;
}
.timeline-block {
  position: relative;
  width: 50%;
  padding-top: 20px;
  padding-right: 0;
  padding-bottom: 20px;
  padding-left: 0;
  z-index: 2;
}
.timeline-block.left {
  left: 0;
  padding-right: 60px;
}
.timeline-block.right {
  left: 50%;
  padding-left: 60px;
}
.timeline-dot {
  position: absolute;
  top: 60px;
  width: 20px;
  height: 20px;
  background-color: var(--color-bg-card);
  border-top-width: 4px;
  border-right-width: 4px;
  border-bottom-width: 4px;
  border-left-width: 4px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-primary-dark);
  border-right-color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
  border-left-color: var(--color-primary-dark);
  border-top-left-radius: var(--radius-round);
  border-top-right-radius: var(--radius-round);
  border-bottom-right-radius: var(--radius-round);
  border-bottom-left-radius: var(--radius-round);
  z-index: 3;
  transition-property: transform, background-color, border-color;
  transition-duration: var(--transition-fast);
  transition-timing-function: ease;
  box-shadow: 0px 0px 15px var(--color-shadow-light);
}
.timeline-block.left .timeline-dot {
  right: -10px;
}
.timeline-block.right .timeline-dot {
  left: -10px;
}
.timeline-block:hover .timeline-dot {
  transform: scale(1.6);
  background-color: var(--color-accent);
  border-top-color: var(--color-accent);
  border-right-color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  border-left-color: var(--color-accent);
}
.timeline-card {
  background-color: var(--color-bg-card);
  padding-top: 35px;
  padding-right: 35px;
  padding-bottom: 35px;
  padding-left: 35px;
  border-top-left-radius: var(--radius-medium);
  border-top-right-radius: var(--radius-medium);
  border-bottom-right-radius: var(--radius-medium);
  border-bottom-left-radius: var(--radius-medium);
  box-shadow: 0px 12px 35px var(--color-shadow-light);
  position: relative;
  border-top-width: 6px;
  border-top-style: solid;
  border-top-color: var(--color-primary-light);
  transition-property: transform, box-shadow, border-color;
  transition-duration: var(--transition-medium);
  transition-timing-function: ease;
  opacity: 0;
}
.reveal-left {
  transform: translateX(-60px) rotate(-2deg);
}
.reveal-right {
  transform: translateX(60px) rotate(2deg);
}
.timeline-card.active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}
.timeline-card:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0px 20px 45px var(--color-shadow-dark);
  border-top-color: var(--color-primary-dark);
}
.card-date {
  position: absolute;
  top: -18px;
  right: 25px;
  background-color: var(--color-bg-main);
  color: var(--color-primary-dark);
  padding-top: 6px;
  padding-right: 18px;
  padding-bottom: 6px;
  padding-left: 18px;
  border-top-left-radius: var(--radius-large);
  border-top-right-radius: var(--radius-large);
  border-bottom-right-radius: var(--radius-large);
  border-bottom-left-radius: var(--radius-large);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0px 4px 12px var(--color-shadow-light);
  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-primary-light);
  border-right-color: var(--color-primary-light);
  border-bottom-color: var(--color-primary-light);
  border-left-color: var(--color-primary-light);
}
.card-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--color-text-dark);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 18px;
  margin-left: 0;
  line-height: 1.1;
}
.card-image-wrapper {
  width: 100%;
  height: 220px;
  border-top-left-radius: var(--radius-small);
  border-top-right-radius: var(--radius-small);
  border-bottom-right-radius: var(--radius-small);
  border-bottom-left-radius: var(--radius-small);
  overflow: hidden;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 20px;
  margin-left: 0;
  background-color: var(--color-secondary-main);
}
.placeholder-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition-property: transform;
  transition-duration: var(--transition-slow);
  transition-timing-function: ease;
}
.timeline-card:hover .placeholder-svg {
  transform: scale(1.08) rotate(1deg);
}
.card-description {
  font-size: 1.05rem;
  color: var(--color-text-dark);
  line-height: 1.8;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}
.gallery-section {
  background-color: var(--color-bg-main);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  max-width: 1200px;
  width: 100%;
}
.gallery-item {
  width: 100%;
  height: 320px;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(60px);
  transition-property: opacity, transform;
  transition-duration: var(--transition-slow);
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item.active {
  opacity: 1;
  transform: translateY(0);
}
.gallery-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition-property: transform;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}
.gallery-item:hover .gallery-inner {
  transform: rotateY(180deg);
}
.gallery-front,
.gallery-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top-left-radius: var(--radius-medium);
  border-top-right-radius: var(--radius-medium);
  border-bottom-right-radius: var(--radius-medium);
  border-bottom-left-radius: var(--radius-medium);
  box-shadow: 0px 12px 35px var(--color-shadow-light);
}
.gallery-front {
  background-image: linear-gradient(
    145deg,
    var(--color-primary-light),
    var(--color-accent)
  );
  color: var(--color-text-dark);
}
.gallery-number {
  font-family: var(--font-heading);
  font-size: 6.5rem;
  color: var(--color-bg-card);
  opacity: 0.8;
}
.gallery-back {
  background-color: var(--color-bg-card);
  color: var(--color-primary-dark);
  transform: rotateY(180deg);
  border-top-width: 3px;
  border-right-width: 3px;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-primary-light);
  border-right-color: var(--color-primary-light);
  border-bottom-color: var(--color-primary-light);
  border-left-color: var(--color-primary-light);
  padding-top: 30px;
  padding-right: 30px;
  padding-bottom: 30px;
  padding-left: 30px;
}
.gallery-text {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.3;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}
.quiz-section {
  background-color: var(--color-secondary-main);
}
.quiz-container {
  background-color: var(--color-bg-card);
  max-width: 750px;
  width: 100%;
  padding-top: 60px;
  padding-right: 60px;
  padding-bottom: 60px;
  padding-left: 60px;
  border-top-left-radius: var(--radius-large);
  border-top-right-radius: var(--radius-large);
  border-bottom-right-radius: var(--radius-large);
  border-bottom-left-radius: var(--radius-large);
  box-shadow: 0px 15px 45px var(--color-shadow-light);
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition-property: opacity, transform;
  transition-duration: var(--transition-slow);
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  border-top-width: 10px;
  border-top-style: solid;
  border-top-color: var(--color-primary-main);
}
.quiz-container.active {
  opacity: 1;
  transform: translateY(0);
}
#quiz-header {
  margin-bottom: 45px;
}
#question-text {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 10px;
  margin-left: 0;
  line-height: 1.2;
}
#quiz-progress {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.quiz-btn {
  background-color: var(--color-secondary-light);
  color: var(--color-text-dark);
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--color-primary-light);
  border-right-color: var(--color-primary-light);
  border-bottom-color: var(--color-primary-light);
  border-left-color: var(--color-primary-light);
  padding-top: 22px;
  padding-right: 22px;
  padding-bottom: 22px;
  padding-left: 22px;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-top-left-radius: var(--radius-medium);
  border-top-right-radius: var(--radius-medium);
  border-bottom-right-radius: var(--radius-medium);
  border-bottom-left-radius: var(--radius-medium);
  transition-property: all;
  transition-duration: var(--transition-fast);
  transition-timing-function: ease;
  outline-width: 0;
}
.quiz-btn:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: 0px 8px 20px var(--color-shadow-light);
}
.quiz-btn.correct {
  background-color: #b7e4c7;
  border-top-color: #95d5b2;
  border-right-color: #95d5b2;
  border-bottom-color: #95d5b2;
  border-left-color: #95d5b2;
  color: #1b4332;
}
.quiz-btn.wrong {
  background-color: #ffcad4;
  border-top-color: #ffb3c6;
  border-right-color: #ffb3c6;
  border-bottom-color: #ffb3c6;
  border-left-color: #ffb3c6;
  color: #590d22;
}
.feedback-text {
  margin-top: 35px;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  font-size: 1.4rem;
  font-weight: 800;
  min-height: 45px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}
.letter-section {
  background-color: var(--color-bg-main);
}
.letter-container {
  width: 100%;
  max-width: 650px;
  height: 450px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(60px);
  transition-property: opacity, transform;
  transition-duration: var(--transition-slow);
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.letter-container.active {
  opacity: 1;
  transform: translateY(0);
}
.envelope {
  width: 450px;
  height: 280px;
  background-color: var(--color-primary-main);
  position: relative;
  border-top-left-radius: var(--radius-small);
  border-top-right-radius: var(--radius-small);
  border-bottom-right-radius: var(--radius-small);
  border-bottom-left-radius: var(--radius-small);
  box-shadow: 0px 25px 50px var(--color-shadow-light);
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 50px;
  margin-left: 0;
  display: flex;
  justify-content: center;
}
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left-width: 225px;
  border-right-width: 225px;
  border-top-width: 160px;
  border-bottom-width: 0px;
  border-left-style: solid;
  border-right-style: solid;
  border-top-style: solid;
  border-bottom-style: solid;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: var(--color-primary-dark);
  border-bottom-color: transparent;
  z-index: 3;
  transform-origin: top;
  transition-property: transform;
  transition-duration: 1.2s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.envelope.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}
.envelope-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-left-width: 225px;
  border-right-width: 225px;
  border-bottom-width: 140px;
  border-top-width: 140px;
  border-left-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-top-style: solid;
  border-left-color: var(--color-primary-light);
  border-right-color: var(--color-primary-light);
  border-bottom-color: var(--color-primary-main);
  border-top-color: transparent;
  z-index: 2;
  border-bottom-left-radius: var(--radius-small);
  border-bottom-right-radius: var(--radius-small);
}
.letter-paper {
  position: absolute;
  bottom: 15px;
  width: 410px;
  height: 230px;
  background-color: var(--color-bg-card);
  z-index: 1;
  transition-property: transform, height;
  transition-duration: 1.5s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  padding-top: 40px;
  padding-right: 40px;
  padding-bottom: 40px;
  padding-left: 40px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.05);
  border-top-left-radius: var(--radius-small);
  border-top-right-radius: var(--radius-small);
  overflow: hidden;
}
.envelope.open .letter-paper {
  transform: translateY(-200px);
  height: 550px;
  z-index: 4;
}
#typewriter-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  display: inline;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}
.cursor {
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  animation-name: blink;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}
.footer-section {
  background-color: var(--color-secondary-light);
  min-height: 40vh;
  padding-top: 60px;
  padding-bottom: 60px;
}
.footer-content {
  text-align: center;
  color: var(--color-text-dark);
  opacity: 0;
  transform: scale(0.95);
  transition-property: opacity, transform;
  transition-duration: var(--transition-slow);
  transition-timing-function: ease;
}
.footer-content.active {
  opacity: 1;
  transform: scale(1);
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 20px;
  margin-left: 0;
  color: var(--color-primary-dark);
}
.beating-heart-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  margin-right: 0;
  margin-bottom: 50px;
  margin-left: 0;
}
.heart {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary-main);
  position: relative;
  transform: rotate(-45deg);
  animation-name: heartBeatSoft;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
.heart::before,
.heart::after {
  content: "";
  width: 80px;
  height: 80px;
  background-color: var(--color-primary-main);
  border-top-left-radius: var(--radius-round);
  border-top-right-radius: var(--radius-round);
  border-bottom-right-radius: var(--radius-round);
  border-bottom-left-radius: var(--radius-round);
  position: absolute;
}
.heart::before {
  top: -40px;
  left: 0;
}
.heart::after {
  top: 0;
  left: 40px;
}
.footer-subtext {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  opacity: 0.8;
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes wheelScroll {
  0% {
    top: 5px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}
@keyframes arrowBounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes heartBeatSoft {
  0% {
    transform: rotate(-45deg) scale(1);
  }
  15% {
    transform: rotate(-45deg) scale(1.15);
  }
  30% {
    transform: rotate(-45deg) scale(1);
  }
  45% {
    transform: rotate(-45deg) scale(1.15);
  }
  100% {
    transform: rotate(-45deg) scale(1);
  }
}
.animate-pop {
  animation-name: popIn;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation-fill-mode: forwards;
}
.animate-fade {
  animation-name: fadeInSlide;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.animate-slide {
  animation-name: fadeInSlide;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.animate-bounce {
  animation-name: fadeInSlide;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.delay-1 {
  animation-delay: 0.15s;
}
.delay-2 {
  animation-delay: 0.3s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.9s;
}
.delay-5 {
  animation-delay: 1.2s;
}
.delay-6 {
  animation-delay: 1.5s;
}
.delay-7 {
  animation-delay: 1.8s;
}
@media (max-width: 992px) {
  .timeline-center-line {
    left: 40px;
  }
  .timeline-block {
    width: 100%;
    left: 0;
    padding-left: 90px;
    padding-right: 20px;
  }
  .timeline-block.left,
  .timeline-block.right {
    left: 0;
  }
  .timeline-block.left .timeline-dot,
  .timeline-block.right .timeline-dot {
    left: 28px;
  }
  .reveal-left,
  .reveal-right {
    transform: translateX(40px);
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-card);
    padding-top: 25px;
    padding-bottom: 25px;
    box-shadow: 0px 15px 30px var(--color-shadow-light);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero-title {
    font-size: 5.5rem;
  }
  .section-title {
    font-size: 3.2rem;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .envelope {
    width: 320px;
    height: 200px;
  }
  .envelope-flap {
    border-left-width: 160px;
    border-right-width: 160px;
    border-top-width: 130px;
  }
  .envelope-body {
    border-left-width: 160px;
    border-right-width: 160px;
    border-bottom-width: 100px;
    border-top-width: 100px;
  }
  .letter-paper {
    width: 290px;
    height: 180px;
    padding-top: 25px;
    padding-right: 25px;
    padding-bottom: 25px;
    padding-left: 25px;
  }
  .envelope.open .letter-paper {
    transform: translateY(-160px);
    height: 450px;
  }
  #custom-cursor,
  #cursor-trail {
    display: none;
  }
  body {
    cursor: auto;
  }
  a,
  button {
    cursor: pointer;
  }
}

.gallery-front {
  overflow: hidden;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#chapter-3-box {
  height: 400px;
}

@media (max-width: 768px) {
  #chapter-3-box {
    height: 280px;
  }
}