:root {
  --pink: #ff3cac;
  --orange: #ff8a00;
  --yellow: #ffe156;
  --green: #2ee59d;
  --cyan: #00d4ff;
  --blue: #4361ee;
  --purple: #9b5de5;
  --ink: #211a3a;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(33, 26, 58, 0.18);
  --border: 4px solid var(--ink);
  --radius-lg: 32px;
  --radius-md: 22px;
  --hero-pad-top: 132px;
  --hero-pad-bottom: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 225, 86, 0.45) 0 10px, transparent 11px),
    radial-gradient(circle at 88% 18%, rgba(0, 212, 255, 0.35) 0 13px, transparent 14px),
    radial-gradient(circle at 22% 86%, rgba(255, 60, 172, 0.30) 0 12px, transparent 13px),
    linear-gradient(135deg, #fffaf0 0%, #fff2ff 34%, #e9fbff 68%, #fff8d4 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 18px;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, 0.78);
  border-bottom: 3px solid rgba(33, 26, 58, 0.12);
}

.navbar {
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Bungee", cursive;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--orange), var(--blue));
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
}

.brand-name {
  font-family: "Bungee", cursive;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.menu-toggle {
  display: none;
  font-family: "Bungee", cursive;
  border: var(--border);
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background: var(--yellow);
  transform: translateY(-3px) rotate(-1deg);
}

.hero-section {
  min-height: 780px;
  padding: var(--hero-pad-top) 20px var(--hero-pad-bottom);
  background:
    linear-gradient(90deg, rgba(33, 26, 58, 0.66), rgba(67, 97, 238, 0.22)),
    url("images/image_10.jpg") center/cover no-repeat;
  position: relative;
  color: var(--white);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 2px, transparent 2px);
  background-size: 86px 86px;
  border-radius: 36px;
}

.hero-overlay-grid {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.35fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: center;
}

.hero-copy {
  grid-column: 1 / 3;
  background: rgba(33, 26, 58, 0.72);
  border: 5px solid rgba(255, 255, 255, 0.85);
  border-radius: 42px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.eyebrow,
.section-kicker,
.badge {
  display: inline-flex;
  width: fit-content;
  font-family: "Bungee", cursive;
  letter-spacing: 0.02em;
  font-size: 0.84rem;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

h1,
h2,
h3,
.caption-title {
  font-family: "Bungee", cursive;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 950px;
  margin: 18px 0 20px;
  font-size: clamp(2.8rem, 7vw, 6.3rem);
  text-shadow: 5px 5px 0 rgba(255, 60, 172, 0.85);
}

.hero-copy p:not(.eyebrow) {
  max-width: 840px;
  color: #fff8d8;
}

.hero-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 14px 20px;
  border: var(--border);
  border-radius: 18px;
  text-decoration: none;
  font-family: "Bungee", cursive;
  font-size: 0.9rem;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.button-link:hover,
.button-link:focus {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 9px 9px 0 var(--ink);
  filter: saturate(1.15);
}

.primary-link {
  background: var(--green);
  color: var(--ink);
}

.secondary-link {
  background: var(--pink);
  color: var(--white);
}

.tertiary-link {
  background: var(--cyan);
  color: var(--ink);
}

.hero-card {
  grid-column: 2 / 4;
  grid-row: 2;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 11px 11px 0 var(--ink);
  transform: rotate(2.4deg);
}

.hero-stat {
  margin: 12px 0 0;
  font-family: "Bungee", cursive;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--pink);
}

.hero-sticker {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  display: grid;
  gap: 10px;
  transform: rotate(8deg);
}

.hero-sticker span {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  border: var(--border);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-family: "Bungee", cursive;
  box-shadow: 5px 5px 0 var(--ink);
}

.hero-sticker span:nth-child(2) {
  background: var(--orange);
}

.hero-sticker span:nth-child(3) {
  background: var(--green);
}

.content-section {
  width: min(1180px, calc(100% - 34px));
  margin: 80px auto;
  padding: clamp(30px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.82);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.content-section::before {
  content: "";
  position: absolute;
  inset: -14px auto auto 42px;
  width: 120px;
  height: 28px;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-5deg);
}

h2 {
  margin: 18px 0 22px;
  font-size: clamp(2rem, 4.6vw, 4rem);
}

.two-column-copy,
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stats-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stats-grid {
  margin-top: 26px;
}

.mini-stat,
.process-card,
.service-card,
.case-card,
.testimonial-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: 8px 8px 0 var(--ink);
}

.mini-stat {
  padding: 22px;
}

.mini-stat strong {
  display: block;
  font-family: "Bungee", cursive;
  font-size: 1.45rem;
  color: var(--blue);
}

.process-grid,
.services-grid,
.case-grid,
.testimonial-grid {
  margin-top: 32px;
}

.process-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.process-card:nth-child(1) {
  background: #fff0f7;
}

.process-card:nth-child(2) {
  background: #effaff;
}

.process-card:nth-child(3) {
  background: #f2fff2;
}

.tilt-left {
  transform: rotate(-1.4deg);
}

.tilt-right {
  transform: rotate(1.4deg);
}

.process-mark {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: var(--border);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  font-family: "Bungee", cursive;
  font-size: 2rem;
  box-shadow: 6px 6px 0 var(--ink);
}

h3,
.caption-title {
  margin: 12px 0;
  font-size: 1.35rem;
}

.service-card,
.case-card {
  overflow: hidden;
}

.service-card img,
.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: var(--border);
}

.service-card h3,
.service-card p,
.service-card ul,
.case-card h3,
.case-card .before-after {
  margin-left: 22px;
  margin-right: 22px;
}

.service-card ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.service-card li {
  margin: 10px 0;
  line-height: 1.5;
  font-weight: 600;
}

.before-after {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.before-after p {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 225, 86, 0.38);
}

.slideshow {
  position: relative;
  margin-top: 30px;
  border: var(--border);
  border-radius: 34px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.slides {
  position: relative;
  min-height: 540px;
}

.slide {
  display: none;
  margin: 0;
  position: relative;
}

.slide.active {
  display: block;
  animation: bounceIn 0.6s ease both;
}

.slide img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 6px 6px 0 var(--ink);
}

.slide figcaption p {
  margin: 6px 0 0;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  border: var(--border);
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Bungee", cursive;
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
}

.prev-slide {
  left: 0;
}

.next-slide {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--paper);
}

.dot {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.dot.active {
  background: var(--green);
}

.testimonial-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 60, 172, 0.16), rgba(0, 212, 255, 0.14)),
    var(--white);
}

.testimonial-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 800;
}

.testimonial-topline span {
  padding: 8px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
}

blockquote {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 600;
}

.faq-tabs {
  margin-top: 28px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.tab-button,
.faq-question {
  border: var(--border);
  color: var(--ink);
  font-family: "Bungee", cursive;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.tab-button {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.tab-button.active {
  background: var(--orange);
  color: var(--white);
}

.tab-button:hover,
.tab-button:focus,
.faq-question:hover,
.faq-question:focus {
  transform: translateY(-3px);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.faq-item {
  margin: 14px 0;
  border: var(--border);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--cyan);
  padding: 18px 20px;
  font-size: 0.95rem;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
}

.faq-answer.is-open {
  grid-template-rows: 1fr;
}

.faq-answer.is-open p {
  padding: 18px 20px 22px;
}

.quick-connect {
  width: min(1040px, calc(100% - 34px));
  margin: 86px auto;
}

.quick-card {
  padding: clamp(30px, 5vw, 58px);
  border: var(--border);
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 225, 86, 0.85), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(0, 212, 255, 0.65), transparent 22%),
    linear-gradient(135deg, #ffffff, #ffeafa);
  box-shadow: 12px 12px 0 var(--ink);
  text-align: center;
}

.quick-card .section-kicker,
.quick-card h3 {
  margin-left: auto;
  margin-right: auto;
}

.quick-card h3 {
  max-width: 820px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.quick-card p {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.quick-actions {
  justify-content: center;
}

.site-footer {
  padding: 34px 20px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.site-footer p {
  max-width: 820px;
  margin: 0 auto 18px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

@keyframes bounceIn {
  0% {
    opacity: 1;
    transform: scale(0.96) translateY(16px);
  }

  70% {
    opacity: 1;
    transform: scale(1.02) translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--paper);
    border: var(--border);
    border-radius: 24px;
    box-shadow: 8px 8px 0 var(--ink);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero-overlay-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card,
  .hero-sticker {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-sticker {
    display: flex;
    flex-wrap: wrap;
    transform: none;
  }

  .two-column-copy,
  .section-intro,
  .stats-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .tilt-left,
  .tilt-right,
  .hero-copy,
  .hero-card {
    transform: none;
  }

  .slides {
    min-height: 470px;
  }

  .slide img {
    height: 470px;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-pad-top: 104px;
    --hero-pad-bottom: 62px;
  }

  .brand-name {
    display: none;
  }

  .site-header {
    padding: 10px 12px;
  }

  .hero-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy {
    padding: 24px;
    border-radius: 28px;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 3.65rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .content-section,
  .quick-connect {
    width: calc(100% - 22px);
    margin: 52px auto;
  }

  .content-section {
    padding: 24px;
  }

  .button-link {
    width: 100%;
  }

  .hero-actions,
  .quick-actions {
    width: 100%;
  }

  .service-card img,
  .case-card img {
    height: 190px;
  }

  .slides {
    min-height: 420px;
  }

  .slide img {
    height: 420px;
  }

  .slide figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .slider-control {
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .slider-dots {
    flex-direction: column;
  }

  .dot {
    width: 100%;
  }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Missing animation classes from JS */
.fade-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-progress {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-progress.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
