/* Google Fonts: Limelight for retro cartoon headers, Cinzel Decorative for magic headings, Inter for body copy */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Inter:wght@400;500;700&family=Limelight&display=swap');

:root {
  /* Color Palette: 1930s ink-and-paper meets cosmic wizardry */
  --bg-color: #0b0813;
  --bg-paper: #f4ebd0;
  /* Vintage creamy paper color */
  --ink-black: #1a1625;
  --magic-purple: #976dc8;
  --magic-gold: #ffef5c;
  --accent-blue: #5ce6ff;
  --card-border: 4px solid #1a1625;

  /* Fonts */
  --font-magic: 'Cinzel Decorative', serif;
  --font-retro: 'Limelight', cursive;
  --font-body: 'Inter', sans-serif;

  /* Shadow */
  --shadow-retro: 6px 6px 0px #1a1625;
  --shadow-retro-hover: 12px 12px 0px #1a1625;
  --shadow-glow: 0 0 15px rgba(151, 109, 200, 0.6);
  --shadow-glow-gold: 0 0 15px rgba(255, 239, 92, 0.8);
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: #ffffff;
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* Vintage Film Grain and Scanlines Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg,
      rgba(255, 0, 0, 0.03),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
  animation: bg-drift 20s linear infinite;
}

@keyframes bg-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 40px 40px;
  }
}

/* Typography elements */
h1,
h2,
h3 {
  text-transform: uppercase;
}

.retro-heading {
  font-family: var(--font-retro);
  letter-spacing: 2px;
}

.magic-heading {
  font-family: var(--font-magic);
  color: var(--magic-gold);
  text-shadow: var(--shadow-glow-gold);
}

/* Glassmorphic floating nav bar with retro vibe */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  background: rgba(18, 12, 33, 0.85);
  border: 3px solid var(--ink-black);
  border-radius: 50px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), var(--shadow-glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--magic-purple));
  animation: logo-wiggle 3s ease-in-out infinite;
}

@keyframes logo-wiggle {

  0%,
  100% {
    transform: rotate(-5deg) scale(1);
  }

  50% {
    transform: rotate(5deg) scale(1.1);
  }
}

.logo-text {
  font-family: var(--font-retro);
  font-size: 1.5rem;
  color: var(--magic-gold);
  text-shadow: 2px 2px 0px var(--ink-black);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-retro);
  font-size: 0.95rem;
  transition: color 0.3s, transform 0.2s;
  letter-spacing: 1px;
}

nav a:hover {
  color: var(--magic-gold);
  transform: scale(1.1);
}

.nav-cta {
  background: var(--magic-purple);
  color: var(--ink-black);
  border: 2px solid var(--ink-black);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-retro);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink-black);
  transition: all 0.2s;
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink-black);
  background: var(--magic-gold);
}

.nav-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink-black);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(rgba(11, 8, 19, 0.82), rgba(11, 8, 19, 0.92)), url('assets/trash-cleanup-banner.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */
  border-bottom: 4px solid var(--ink-black);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  background-color: var(--magic-purple);
  color: var(--ink-black);
  border: 3px solid var(--ink-black);
  padding: 8px 16px;
  width: fit-content;
  border-radius: 30px;
  font-family: var(--font-retro);
  font-size: 0.9rem;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-retro);
  animation: bounce-rubber 2.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-retro);
  font-size: 3.8rem;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 4px 4px 0px var(--ink-black), 0 0 20px rgba(151, 109, 200, 0.4);
}

.hero-title span {
  color: var(--magic-gold);
  display: inline-block;
  animation: letter-wiggle 1.5s ease-in-out infinite alternate;
}

.hero-desc {
  font-size: 1.1rem;
  color: #cfc9e2;
  line-height: 1.6;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

/* Rubber Hose Style Buttons */
.btn-rubber {
  font-family: var(--font-retro);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 32px;
  border: var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.btn-primary {
  background-color: var(--magic-gold);
  color: var(--ink-black);
  box-shadow: var(--shadow-retro);
}

.btn-primary:hover {
  transform: translate(-3px, -3px) scale(1.02);
  box-shadow: var(--shadow-retro-hover);
  background-color: #fff48f;
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0px var(--ink-black);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: var(--card-border);
  box-shadow: var(--shadow-retro);
}

.btn-secondary:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-retro-hover);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-secondary:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0px var(--ink-black);
}

/* Hero Artwork: Hose character floating */
.hero-art-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.magic-portal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 450px;
  max-height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--magic-purple) 0%, rgba(11, 8, 19, 0) 70%);
  animation: rotate-portal 10s linear infinite;
  opacity: 0.6;
  z-index: 1;
}

.hero-wizard-img {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  animation: wizard-float 4s ease-in-out infinite alternate;
}

@keyframes wizard-float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-20px) rotate(3deg);
  }
}

@keyframes rotate-portal {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Rubber Hose animations for elements */
@keyframes bounce-rubber {

  0%,
  100% {
    transform: translateY(0) scaleY(1) rotate(-3deg);
  }

  50% {
    transform: translateY(-10px) scaleY(0.95) rotate(-3deg);
  }
}

@keyframes letter-wiggle {
  0% {
    transform: scale(1) rotate(-1deg);
  }

  100% {
    transform: scale(1.05) rotate(1deg);
  }
}

/* 1930s Retro Cartoon Card Panels (Ink & Paper styled) */
.cartoon-card {
  background-color: var(--bg-paper);
  color: var(--ink-black);
  border: var(--card-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-retro);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.cartoon-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: var(--shadow-retro-hover);
}

/* Magic Cauldron/Portal Interactive Section */
.interactive-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.interactive-title-block {
  text-align: center;
  margin-bottom: 50px;
}

.interactive-title-block h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

/* Cauldron side styling */
.cauldron-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(18, 12, 33, 0.4);
  border: 4px dashed rgba(151, 109, 200, 0.4);
  border-radius: 30px;
  padding: 40px 20px;
  min-height: 480px;
}

.magic-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.cauldron-bubble-zone {
  width: 250px;
  height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-swirl {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px dashed var(--magic-purple);
  box-shadow: var(--shadow-glow);
  animation: spin-clockwise 8s linear infinite;
}

.glow-swirl-inner {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 4px dashed var(--magic-gold);
  box-shadow: var(--shadow-glow-gold);
  animation: spin-counter 6s linear infinite;
}

.cauldron-artwork {
  width: 170px;
  height: auto;
  z-index: 3;
  position: absolute;
  bottom: 0;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
  animation: cauldron-breathe 2s ease-in-out infinite alternate;
}

@keyframes cauldron-breathe {
  0% {
    transform: scale(1) translateY(0);
  }

  100% {
    transform: scale(1.05) translateY(-5px);
  }
}

@keyframes spin-clockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-counter {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.cauldron-instructions {
  margin-top: 30px;
  text-align: center;
  z-index: 5;
}

.cauldron-instructions p {
  color: #cfc9e2;
  font-size: 1.1rem;
}

.btn-poof {
  margin-top: 15px;
  padding: 12px 28px;
  background-color: var(--magic-purple);
  color: var(--ink-black);
  font-family: var(--font-retro);
  font-size: 1.2rem;
  font-weight: bold;
  border: var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--ink-black);
  transition: all 0.2s;
  display: none;
  /* Shown dynamically via JS when items are added */
}

.btn-poof:hover {
  background-color: var(--magic-gold);
  box-shadow: var(--shadow-retro-hover);
  transform: translate(-3px, -3px);
}

.btn-poof:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--ink-black);
}

/* Junk Yard Inventory side styling */
.junkyard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.junkyard-desc {
  font-size: 1.1rem;
  line-height: 1.6;
}

.junk-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

/* Individual Junk Item widget */
.junk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 3px solid var(--ink-black);
  border-radius: 15px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--ink-black);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  user-select: none;
  position: relative;
}

.junk-item:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 0px var(--ink-black);
  background-color: #fffaed;
}

.junk-item.in-cauldron {
  opacity: 0.5;
  transform: scale(0.9);
  pointer-events: none;
  background-color: #eae5d7;
}

.junk-icon {
  font-size: 2.2rem;
  margin-bottom: 5px;
  transition: transform 0.3s;
}

.junk-item:hover .junk-icon {
  animation: bounce-item 0.5s ease-in-out infinite alternate;
}

.junk-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-black);
  text-transform: uppercase;
  text-align: center;
}

@keyframes bounce-item {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px) scaleY(0.95);
  }
}

/* Visual elements being sucked into portal */
.flying-junk {
  position: absolute;
  font-size: 2.5rem;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s;
}

.sucked-junk-animation {
  animation: suck-into-portal 0.8s forwards ease-in-out;
}

@keyframes suck-into-portal {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.1) rotate(720deg);
    opacity: 0;
  }
}

/* Services section */
.services-section {
  padding: 80px 20px;
  background-color: rgba(18, 12, 33, 0.5);
  border-top: 4px solid var(--ink-black);
  border-bottom: 4px solid var(--ink-black);
  position: relative;
  z-index: 2;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background-size: contain;
  opacity: 0.15;
  background-repeat: no-repeat;
  transition: transform 0.5s;
}

.service-card:hover::after {
  transform: rotate(15deg) scale(1.2);
}

.service-icon-wrapper {
  background: var(--magic-purple);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 3px solid var(--ink-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 3px 3px 0 var(--ink-black);
}

.service-title {
  font-family: var(--font-retro);
  font-size: 1.4rem;
  color: var(--ink-black);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Calculator Section */
.calc-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-artwork {
  display: flex;
  justify-content: center;
  position: relative;
}

.calc-trash-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
  animation: wobbly-dance 3s ease-in-out infinite;
}

@keyframes wobbly-dance {

  0%,
  100% {
    transform: rotate(0) scaleY(1);
  }

  25% {
    transform: rotate(-5deg) scaleY(0.95) skewX(-2deg);
  }

  75% {
    transform: rotate(5deg) scaleY(1.05) skewX(2deg);
  }
}

.calc-card {
  width: 100%;
}

.calc-slider-container {
  margin: 35px 0;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-retro);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Whimsical retro slider */
input[type=range].calc-slider {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range].calc-slider:focus {
  outline: none;
}

input[type=range].calc-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 14px;
  cursor: pointer;
  background: #ffffff;
  border-radius: 10px;
  border: 3px solid var(--ink-black);
}

input[type=range].calc-slider::-webkit-slider-thumb {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--magic-purple);
  border: 3px solid var(--ink-black);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -10px;
  box-shadow: 2px 2px 0 var(--ink-black);
  transition: background-color 0.2s, transform 0.1s;
}

input[type=range].calc-slider::-webkit-slider-thumb:hover {
  background: var(--magic-gold);
  transform: scale(1.1);
}

.calc-stages {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 5px;
}

.calc-stage-tick {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(26, 22, 37, 0.6);
  cursor: pointer;
  transition: color 0.2s;
}

.calc-stage-tick.active {
  color: var(--ink-black);
  font-weight: 800;
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: rgba(26, 22, 37, 0.05);
  border-radius: 15px;
  border: 2px dashed rgba(26, 22, 37, 0.2);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.calc-result-val {
  font-weight: 700;
}

.calc-price {
  font-family: var(--font-retro);
  font-size: 2rem;
  color: var(--magic-purple);
  text-shadow: 1px 1px 0 var(--ink-black);
}

/* Contact / Summoning Scroll Form Section */
.contact-section {
  padding: 100px 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.scroll-container {
  background: #fdf6e2;
  color: var(--ink-black);
  border: 4px solid var(--ink-black);
  border-radius: 8px;
  padding: 50px 40px;
  box-shadow: var(--shadow-retro), 0px 0px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Vintage paper scroll ends decoration */
.scroll-container::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 5%;
  width: 90%;
  height: 25px;
  background: #eddcb2;
  border: 4px solid var(--ink-black);
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.scroll-container::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 5%;
  width: 90%;
  height: 25px;
  background: #eddcb2;
  border: 4px solid var(--ink-black);
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.contact-title-block {
  text-align: center;
  margin-bottom: 40px;
}

.contact-title-block h2 {
  font-family: var(--font-retro);
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.contact-title-block p {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(26, 22, 37, 0.7);
}

/* Styled Scroll Form */
.scroll-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-family: var(--font-retro);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 3px solid var(--ink-black);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink-black);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
  transition: outline 0.1s, border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--magic-purple);
  box-shadow: 0 0 0 3px rgba(151, 109, 200, 0.25);
}

.btn-submit-scroll {
  align-self: center;
  margin-top: 15px;
  background-color: var(--magic-purple);
  color: #ffffff;
  box-shadow: var(--shadow-retro);
  padding: 15px 40px;
  border-radius: 30px;
  cursor: pointer;
  border: var(--card-border);
  font-family: var(--font-retro);
  font-size: 1.25rem;
  transition: all 0.2s;
}

.btn-submit-scroll:hover {
  background-color: var(--magic-gold);
  color: var(--ink-black);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-retro-hover);
}

.btn-submit-scroll:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink-black);
}

/* Success modal or overlay */
.magic-summon-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 8, 19, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.magic-summon-card {
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modal-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ritual-circle {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.ritual-circle-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate-portal 12s linear infinite;
  fill: none;
  stroke: var(--magic-gold);
  stroke-width: 3;
}

.ritual-icon {
  font-size: 3rem;
  animation: heartbeat 1.5s ease-in-out infinite alternate;
}

@keyframes heartbeat {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

/* Testimonials / Rave Scrawls */
.testimonials-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text::before {
  content: "“";
  font-size: 4rem;
  color: rgba(26, 22, 37, 0.1);
  position: absolute;
  top: -25px;
  left: -10px;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2.5px solid var(--ink-black);
  background: var(--magic-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 2px 2px 0 var(--ink-black);
}

.author-info h4 {
  font-family: var(--font-retro);
  font-size: 1rem;
  color: var(--ink-black);
}

.author-info p {
  font-size: 0.8rem;
  color: rgba(26, 22, 37, 0.7);
}

/* Footer style */
footer {
  background-color: var(--ink-black);
  border-top: 4px solid var(--ink-black);
  padding: 60px 20px 30px 20px;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-retro);
  font-size: 1.25rem;
  color: var(--magic-gold);
}

.footer-brand p {
  color: #cfc9e2;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column h5 {
  font-family: var(--font-retro);
  font-size: 1rem;
  color: var(--magic-gold);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  text-decoration: none;
  color: #cfc9e2;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--magic-gold);
}

.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: #8c84a5;
  font-size: 0.85rem;
}

.magic-mana-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--magic-purple);
  border: 1px solid rgba(151, 109, 200, 0.2);
}

.magic-mana-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #5ce6ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #5ce6ff;
  animation: pulse-light 1.5s ease-in-out infinite alternate;
}

@keyframes pulse-light {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* Brand Logo Elements & Spacing Updates */
.hero-arch-bg {
  position: absolute;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(151, 109, 200, 0.4));
  animation: arch-glow 4s ease-in-out infinite alternate;
  opacity: 0.85;
}

@keyframes arch-glow {
  0% {
    transform: scale(1) rotate(-1deg);
    filter: drop-shadow(0 0 10px rgba(151, 109, 200, 0.4));
  }

  100% {
    transform: scale(1.04) rotate(1deg);
    filter: drop-shadow(0 0 25px rgba(255, 239, 92, 0.6));
  }
}

.hero-tagline-img {
  max-width: 320px;
  height: auto;
  filter: invert(1) drop-shadow(2px 2px 0px var(--ink-black));
  align-self: flex-start;
  margin-bottom: 5px;
}

.logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 600px;
  margin: 60px auto 40px auto;
  gap: 20px;
  z-index: 2;
  position: relative;
}

.logo-divider .line {
  flex: 1;
  height: 4px;
  background-color: var(--ink-black);
  border-radius: 2px;
  position: relative;
}

.logo-divider .line::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 10px;
  border-top: 3px dotted var(--magic-purple);
}

.divider-cat {
  height: 60px;
  width: auto;
  filter: drop-shadow(2px 2px 0 var(--ink-black));
  animation: logo-wiggle 3s ease-in-out infinite;
}

.service-logo-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(1px 1px 0 var(--ink-black));
}

.form-seal-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 15px auto;
  display: block;
  filter: drop-shadow(3px 3px 0 var(--ink-black));
  animation: logo-wiggle 4s ease-in-out infinite;
}

/* Responsiveness adjustments */
@media (max-width: 992px) {

  .hero-grid,
  .portal-grid,
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-badge,
  .hero-buttons {
    align-self: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  header {
    padding: 10px 20px;
  }

  nav {
    display: none;
    /* Can be expanded to hamburger, but SPA keeps links simple */
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-rubber {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .scroll-container {
    padding: 35px 20px;
  }

  .cauldron-container {
    min-height: 400px;
  }
}

/* Quote Estimate Modal Custom Styles */
.quote-scroll-container {
  max-width: 650px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 30px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.close-quote-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--magic-purple);
  color: #ffffff;
  border: 3px solid var(--ink-black);
  font-family: var(--font-retro);
  font-size: 1.6rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--ink-black);
  transition: all 0.2s;
  z-index: 100;
}

.close-quote-btn:hover {
  background: var(--magic-gold);
  color: var(--ink-black);
  transform: scale(1.1);
}

.close-quote-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink-black);
}

.quote-breakdown-box {
  background: #ffffff;
  border: 3px solid var(--ink-black);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 25px;
  box-shadow: 4px 4px 0 var(--ink-black);
}

.quote-items-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
  border-bottom: 2px dashed rgba(26, 22, 37, 0.15);
  padding-bottom: 10px;
}

.quote-items-list::-webkit-scrollbar {
  width: 8px;
}

.quote-items-list::-webkit-scrollbar-track {
  background: #fdf6e2;
  border-radius: 4px;
}

.quote-items-list::-webkit-scrollbar-thumb {
  background: var(--magic-purple);
  border-radius: 4px;
  border: 2px solid var(--ink-black);
}

.quote-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--ink-black);
  margin-bottom: 8px;
}

.quote-item-emoji-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.quote-item-price {
  font-family: var(--font-retro);
  color: var(--magic-purple);
  font-weight: 700;
}

.quote-totals-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.quote-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-retro);
  font-size: 1.1rem;
  color: var(--ink-black);
}

.quote-accent-text {
  color: var(--magic-purple);
}

/* Image Upload Drag & Drop Styling */
.upload-dropzone {
  border: 3px dashed var(--magic-purple);
  border-radius: 12px;
  background: rgba(151, 109, 200, 0.05);
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.03);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  background: rgba(255, 239, 92, 0.08);
  border-color: var(--magic-gold);
  box-shadow: 0 0 10px rgba(255, 239, 92, 0.2);
}

.upload-icon {
  font-size: 2.2rem;
  display: inline-block;
  pointer-events: none;
}

.upload-dropzone:hover .upload-icon {
  animation: bounce-item 0.5s ease-in-out infinite alternate;
}

.upload-text {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  color: var(--ink-black);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.preview-thumbnail-wrapper {
  position: relative;
  aspect-ratio: 1;
  border: 3px solid var(--ink-black);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink-black);
  background: #ffffff;
  transform: rotate(calc(var(--rot, 0) * 1deg)) scale(0.95);
  transition: transform 0.2s, box-shadow 0.2s;
}

.preview-thumbnail-wrapper:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 4px 4px 0 var(--ink-black);
  z-index: 10;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.15) contrast(1.05);
}

.remove-preview-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff5c5c;
  color: #ffffff;
  border: 2px solid var(--ink-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 1px 1px 0 var(--ink-black);
  transition: all 0.1s;
  line-height: 1;
  z-index: 5;
}

.remove-preview-btn:hover {
  background: #ff3b3b;
  transform: scale(1.1);
}

.remove-preview-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0 var(--ink-black);
}