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

body {
  /* Sunset gradient: beige at top → light orange at bottom */
  background: linear-gradient(
    170deg,
    #faf3e8 0%,
    #f7e6cc 25%,
    #f5d5a8 55%,
    #f0c088 80%,
    #eaad6e 100%
  );
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: #333;
  position: relative;
}

/* Background Blobs (Warm sunset tones) */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.7;
  transition: transform 10s ease-in-out;
}

.shape-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #f5c89a, #f0a86e);
  top: -250px;
  left: -200px;
}

.shape-2 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, #f8d4a0, #e8a45e);
  bottom: -350px;
  right: -250px;
}

.shape-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #fce0c0, #f2c68a);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Background Bubbles ───────────────────────────────────────── */
#bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  animation: bubbleDrift linear infinite;
  will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@keyframes bubbleDrift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.7;
  }
  15% {
    transform: translate(60px, -80px) scale(1.12) rotate(20deg);
    opacity: 0.85;
  }
  30% {
    transform: translate(-40px, -160px) scale(0.9) rotate(-15deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(90px, -100px) scale(1.15) rotate(35deg);
    opacity: 0.9;
  }
  65% {
    transform: translate(-70px, -180px) scale(0.85) rotate(-25deg);
    opacity: 0.55;
  }
  80% {
    transform: translate(50px, -50px) scale(1.08) rotate(10deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.7;
  }
}

/* Title Overlay */
.title-overlay {
  position: absolute;
  top: 40px;
  left: 50px;
  z-index: 10;
  pointer-events: none;
}

.title-overlay h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #3d1f00;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  text-shadow: 0 1px 3px rgba(255, 200, 120, 0.3);
}

.title-overlay p {
  font-weight: 300;
  color: #5a3210;
  font-size: 1.1rem;
}

/* ── Controls Row ──────────────────────────────────────────────── */
.controls-row {
  position: absolute;
  top: 40px;
  right: 50px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Shared style for control buttons */
.control-btn,
.classic-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 245, 230, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 220, 180, 0.6);
  border-radius: 30px;
  color: #3d1f00;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(180, 100, 30, 0.08);
}

.control-btn:hover,
.classic-toggle:hover {
  background: rgba(255, 240, 220, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(180, 100, 30, 0.15);
}

/* Interactive SVG Canvas */
#mobius-container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  touch-action: none; 
}

#mobius-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Text on Path Formatting */
.mobius-text {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  fill: #3d1f00;
  cursor: grab;
  user-select: none;
  font-weight: 600;
}

.mobius-text:active {
  cursor: grabbing;
}

/* ── Clickable Title Links on the path ─────────────────────────── */
.title-link {
  cursor: pointer;
  transition: fill 0.2s ease, font-size 0.2s ease;
  pointer-events: all;
}

.title-link:hover {
  fill: #a0440a;
  filter: url(#glow);
}

/* Media Queries */
@media (max-width: 768px) {
  .title-overlay {
    top: 20px;
    left: 20px;
  }
  .title-overlay h1 {
    font-size: 2rem;
  }
  .controls-row {
    top: auto;
    bottom: 30px;
    right: 20px;
  }
  .mobius-text {
    font-size: 12px;
  }
}
