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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #3a1f24;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 214, 120, 0.65), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 112, 198, 0.45), transparent 25%),
    radial-gradient(circle at 50% 85%, rgba(139, 107, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #fff7ea 0%, #fff1f7 45%, #f7e8ff 100%);
}

a {
  color: inherit;
}

.background-3d {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb,
.shape {
  position: absolute;
  filter: drop-shadow(0 20px 25px rgba(96, 36, 74, 0.18));
  animation: floatAround 10s ease-in-out infinite;
}

.orb {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  opacity: 0.55;
  transform-style: preserve-3d;
}

.orb-one {
  left: 4%;
  top: 18%;
  background: linear-gradient(145deg, #ff935c, #ff57c8);
}

.orb-two {
  right: 6%;
  top: 34%;
  background: linear-gradient(145deg, #74e6ff, #bb7dff);
  animation-delay: -3s;
}

.orb-three {
  left: 42%;
  bottom: 3%;
  background: linear-gradient(145deg, #fff06d, #ff88c8);
  animation-delay: -6s;
}

.shape {
  font-size: 54px;
  opacity: 0.75;
  text-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.heart { left: 10%; top: 72%; color: #ff4f8b; animation-delay: -1s; }
.star { right: 18%; top: 18%; color: #ffb23f; animation-delay: -4s; }
.flower { left: 75%; bottom: 12%; color: #fa74c9; animation-delay: -7s; }
.butterfly { left: 22%; top: 34%; animation-delay: -5s; }

@keyframes floatAround {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(24px, -32px, 60px) rotate(8deg) scale(1.08); }
}

.site-header {
  width: min(1200px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 16px;
  z-index: 20;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px rgba(122, 46, 82, 0.16);
}

.logo {
  width: 108px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.12));
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
  transition: 0.25s ease;
}

.nav a:hover {
  color: #ff5b91;
  transform: translateY(-2px);
}

.top-actions,
.social-links,
.hero-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.enroll-btn,
.primary-btn,
.secondary-btn,
.social-toggle {
  border: none;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  box-shadow: 0 12px 25px rgba(255, 91, 145, 0.25);
}

.enroll-btn,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff7b6f, #ee55c8);
}

.secondary-btn {
  color: #4b2630;
  background: rgba(255,255,255,.9);
}

.social-toggle {
  padding: 10px 16px;
  color: #fff;
  font-size: 0.9rem;
}

.social-toggle.fb {
  background: linear-gradient(135deg, #3f7cff, #6a9bff);
}

.social-toggle.ig {
  background: linear-gradient(135deg, #ff9c38, #ff4fb8, #8b5cff);
}

.enroll-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.social-toggle:hover {
  transform: translateY(-4px) scale(1.03);
}

.hero {
  width: min(1200px, calc(100% - 32px));
  margin: 42px auto 28px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
  perspective: 1000px;
}

.glass-card {
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.72);
  backdrop-filter: blur(18px);
  box-shadow:
    0 26px 60px rgba(115, 46, 88, 0.18),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.hero-content {
  padding: 42px;
  border-radius: 38px;
  transform: rotateY(2deg);
}

.eyebrow,
.section-label {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: #a24436;
  font-weight: 800;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ff58a1, #ff8b31 42%, #27aeea 68%, #a84be7);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 10px 0 rgba(255,255,255,0.35);
}

.hero-text,
.section-intro,
.section-card p,
.program-card p,
.testimonial-card p,
.faq-list p,
.contact-card p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 520px;
  margin: 24px 0;
}

.floating-card {
  animation: heroFloat 5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.hero-image img {
  width: 100%;
  display: block;
  border-radius: 44px;
  filter: drop-shadow(0 30px 45px rgba(106, 43, 86, .22));
}

@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotateY(-4deg) rotateX(2deg); }
  50% { transform: translateY(-18px) rotateY(4deg) rotateX(-1deg); }
}

.features {
  width: min(980px, calc(100% - 32px));
  margin: -60px auto 70px;
  border-radius: 34px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 5;
}

.feature {
  text-align: center;
  padding: 18px;
}

.icon,
.program-icon {
  font-size: 44px;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.13));
}

.section {
  width: min(1100px, calc(100% - 32px));
  margin: 76px auto;
  text-align: center;
}

.section-card,
.contact-card {
  padding: 42px;
  border-radius: 36px;
  text-align: left;
}

.section h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 4px 14px rgba(87, 34, 77, .25);
}

.section-card h2,
.contact-card h2,
.faq-section h2,
.testimonials-section h2,
.programs-section h2 {
  color: #ff5c92;
  text-shadow: 0 4px 0 rgba(255,255,255,.7);
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 28px;
}

.program-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.program-card,
.testimonial-card {
  border-radius: 32px;
  padding: 30px;
  min-height: 230px;
  transform-style: preserve-3d;
  transition: 0.25s ease;
}

.tilt-card:hover {
  transform: rotateX(6deg) rotateY(-6deg) translateY(-8px);
}

.inquiry-box {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 30px;
  border-radius: 30px;
}

.inquiry-box p {
  margin: 10px 0 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.gallery-tile {
  min-height: 180px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: white;
  background: linear-gradient(145deg, rgba(255,120,138,.92), rgba(244,84,203,.78));
  box-shadow: 0 22px 45px rgba(112, 47, 89, .18);
  animation: softPulse 4s ease-in-out infinite;
}

.gallery-tile:nth-child(2) { animation-delay: -1s; }
.gallery-tile:nth-child(3) { animation-delay: -2s; }
.gallery-tile:nth-child(4) { animation-delay: -3s; }

@keyframes softPulse {
  50% { transform: translateY(-10px) scale(1.03); }
}

.testimonial-card {
  text-align: left;
}

.testimonial-card h4 {
  margin-top: 18px;
  color: #ff5c92;
}

.faq-list {
  display: grid;
  gap: 16px;
  text-align: left;
  margin-top: 28px;
}

details {
  padding: 22px 26px;
  border-radius: 24px;
}

summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  color: #4b2630;
}

details p {
  margin-top: 12px;
}

.contact-card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.contact-card a {
  color: #ff4f91;
  font-weight: 800;
}

footer {
  text-align: center;
  padding: 34px 16px 46px;
  color: #6b4351;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 32px;
    flex-direction: column;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .features,
  .program-grid,
  .testimonial-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-actions {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .features {
    width: min(100% - 20px, 1200px);
  }

  .hero-content,
  .section-card,
  .contact-card {
    padding: 26px;
  }

  .features,
  .program-grid,
  .testimonial-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .features {
    margin-top: 20px;
  }

  .top-actions,
  .hero-buttons,
  .social-links {
    flex-direction: column;
    width: 100%;
  }

  .enroll-btn,
  .primary-btn,
  .secondary-btn,
  .social-toggle {
    width: 100%;
  }
}


/* 3D animated logo */
.logo-wrap.logo-3d {
  position: relative;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  perspective: 900px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.logo-wrap.logo-3d::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.9), rgba(255,132,201,.36) 42%, rgba(119,211,255,.25));
  box-shadow:
    0 18px 35px rgba(255, 91, 145, .25),
    inset 0 5px 18px rgba(255,255,255,.75),
    inset 0 -10px 20px rgba(181, 68, 179, .16);
  animation: logoBubbleSpin 7s ease-in-out infinite;
  z-index: -2;
}

.logo-wrap.logo-3d .logo {
  width: 108px;
  height: auto;
  transform-style: preserve-3d;
  animation: logo3dFloat 4.5s ease-in-out infinite;
  filter:
    drop-shadow(0 7px 0 rgba(255,255,255,.7))
    drop-shadow(0 18px 20px rgba(82, 35, 65, .25));
}

.logo-orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 18px rgba(255, 86, 184, .26);
  z-index: -1;
  transform-style: preserve-3d;
}

.orbit-one {
  width: 132px;
  height: 48px;
  transform: rotateX(64deg) rotateZ(0deg);
  animation: logoOrbitOne 4.2s linear infinite;
}

.orbit-two {
  width: 48px;
  height: 132px;
  transform: rotateY(62deg) rotateZ(0deg);
  animation: logoOrbitTwo 5s linear infinite;
}

.logo-spark {
  position: absolute;
  font-size: 20px;
  text-shadow: 0 8px 14px rgba(0,0,0,.18);
  animation: sparkleMove 3.8s ease-in-out infinite;
  z-index: 2;
}

.spark-one {
  top: 3px;
  right: 8px;
  color: #ffb33f;
}

.spark-two {
  left: 0;
  bottom: 12px;
  color: #ff4f91;
  animation-delay: -1.8s;
}

@keyframes logo3dFloat {
  0%, 100% {
    transform: translateY(0) rotateX(0deg) rotateY(-8deg) scale(1);
  }
  50% {
    transform: translateY(-9px) rotateX(8deg) rotateY(10deg) scale(1.06);
  }
}

@keyframes logoBubbleSpin {
  0%, 100% {
    transform: rotateX(0deg) rotateY(0deg) translateZ(-8px);
  }
  50% {
    transform: rotateX(10deg) rotateY(16deg) translateZ(12px);
  }
}

@keyframes logoOrbitOne {
  from { transform: rotateX(64deg) rotateZ(0deg); }
  to { transform: rotateX(64deg) rotateZ(360deg); }
}

@keyframes logoOrbitTwo {
  from { transform: rotateY(62deg) rotateZ(0deg); }
  to { transform: rotateY(62deg) rotateZ(-360deg); }
}

@keyframes sparkleMove {
  0%, 100% {
    transform: translate3d(0,0,18px) rotate(0deg) scale(1);
    opacity: .75;
  }
  50% {
    transform: translate3d(7px,-8px,40px) rotate(18deg) scale(1.32);
    opacity: 1;
  }
}

.logo-wrap.logo-3d:hover .logo {
  animation-duration: 1.4s;
}

@media (max-width: 620px) {
  .logo-wrap.logo-3d {
    width: 112px;
    height: 112px;
  }

  .orbit-one {
    width: 120px;
  }

  .orbit-two {
    height: 120px;
  }
}

/* Modern mobile + touch-friendly 3D upgrade */
.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,225,241,.95));
  box-shadow: 0 14px 28px rgba(122, 46, 82, .18), inset 0 1px 0 rgba(255,255,255,.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: #ff5c92;
  transition: .25s ease;
}

.menu-open .mobile-menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .mobile-menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-3d-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: .88rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff7b6f, #ee55c8);
  box-shadow: 0 14px 30px rgba(238, 85, 200, .28);
  animation: badgePop 2.8s ease-in-out infinite;
}

@keyframes badgePop {
  50% { transform: translateY(-5px) rotate(-2deg) scale(1.04); }
}

.glass-card,
.gallery-tile {
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease;
}

.glass-card.is-visible,
.gallery-tile.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (hover: none) {
  .enroll-btn:active,
  .primary-btn:active,
  .secondary-btn:active,
  .social-toggle:active,
  .gallery-tile:active,
  details:active {
    transform: scale(.97) translateY(2px);
  }
}

@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 0% 7%, rgba(255, 214, 120, 0.78), transparent 32%),
      radial-gradient(circle at 100% 18%, rgba(255, 112, 198, 0.55), transparent 30%),
      radial-gradient(circle at 48% 92%, rgba(139, 107, 255, 0.45), transparent 34%),
      linear-gradient(145deg, #fff8eb 0%, #fff1f8 46%, #f4e9ff 100%);
  }

  .site-header {
    width: calc(100% - 22px);
    margin-top: 10px;
    top: 8px;
    padding: 10px 12px;
    border-radius: 26px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo-wrap.logo-3d {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
  }

  .logo-wrap.logo-3d .logo,
  .logo {
    width: 78px;
  }

  .logo-wrap.logo-3d::before { inset: 3px; }
  .orbit-one { width: 94px; height: 34px; }
  .orbit-two { width: 34px; height: 94px; }
  .logo-spark { font-size: 16px; }

  .mobile-menu-btn {
    display: inline-flex;
    order: 3;
  }

  .nav {
    position: fixed;
    left: 11px;
    right: 11px;
    top: 112px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255,255,255,.91);
    backdrop-filter: blur(22px);
    box-shadow: 0 26px 55px rgba(122, 46, 82, .22);
    transform: translateY(-16px) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }

  .menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    padding: 14px 10px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,247,250,.96), rgba(246,237,255,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 18px rgba(122, 46, 82, .08);
  }

  .nav a:active {
    transform: scale(.96);
  }

  .top-actions {
    position: fixed;
    left: 11px;
    right: 11px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 8px;
    padding: 9px;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(20px);
    box-shadow: 0 -12px 35px rgba(122, 46, 82, .16);
  }

  .top-actions .social-toggle,
  .top-actions .enroll-btn {
    width: 100%;
    padding: 12px 8px;
    font-size: .78rem;
    min-height: 44px;
  }

  main { padding-bottom: 86px; }

  .hero {
    width: calc(100% - 22px);
    margin: 18px auto 18px;
    min-height: unset;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-content {
    order: 2;
    padding: 24px 20px 22px;
    border-radius: 30px;
    text-align: left;
    transform: none;
  }

  .hero-image {
    order: 1;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
  }

  .hero-image img {
    border-radius: 30px;
    max-height: 380px;
    object-fit: cover;
    box-shadow: 0 20px 45px rgba(106, 43, 86, .22);
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4rem);
    line-height: .92;
    letter-spacing: -1.4px;
  }

  .eyebrow,
  .section-label {
    font-size: .88rem;
    padding: 9px 13px;
  }

  .hero-text,
  .section-intro,
  .section-card p,
  .program-card p,
  .testimonial-card p,
  .faq-list p,
  .contact-card p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-buttons a,
  .inquiry-box .primary-btn {
    min-height: 52px;
  }

  .features {
    width: calc(100% - 22px);
    margin: 16px auto 34px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px;
    border-radius: 28px;
    -webkit-overflow-scrolling: touch;
  }

  .features::-webkit-scrollbar { display: none; }

  .feature {
    min-width: 78%;
    scroll-snap-align: center;
    border-radius: 22px;
    background: rgba(255,255,255,.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  }

  .section {
    width: calc(100% - 22px);
    margin: 46px auto;
  }

  .section h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .section-card,
  .contact-card,
  .program-card,
  .testimonial-card,
  .inquiry-box,
  details {
    border-radius: 28px;
  }

  .section-card,
  .contact-card,
  .program-card,
  .testimonial-card,
  .inquiry-box {
    padding: 24px 20px;
  }

  .program-grid,
  .testimonial-grid,
  .gallery-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 18px;
    -webkit-overflow-scrolling: touch;
  }

  .program-grid::-webkit-scrollbar,
  .testimonial-grid::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar { display: none; }

  .program-card,
  .testimonial-card {
    min-width: 86%;
    scroll-snap-align: center;
  }

  .gallery-tile {
    min-width: 76%;
    min-height: 155px;
    scroll-snap-align: center;
    border-radius: 28px;
  }

  .faq-list {
    gap: 12px;
  }

  details {
    padding: 18px 20px;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  details[open] {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(115, 46, 88, .2), inset 0 1px 0 rgba(255,255,255,.9);
  }

  summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  summary::after {
    content: '+';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #ff7b6f, #ee55c8);
    flex: 0 0 auto;
  }

  details[open] summary::after { content: '–'; }

  .contact-card {
    text-align: left;
  }

  .social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .orb {
    width: 135px;
    height: 135px;
    opacity: .42;
    filter: blur(.2px) drop-shadow(0 18px 22px rgba(96, 36, 74, 0.13));
  }

  .shape {
    font-size: 38px;
    opacity: .55;
  }

  .butterfly { left: 70%; top: 30%; }
  .flower { left: 8%; bottom: 19%; }
}

@media (max-width: 380px) {
  .top-actions {
    grid-template-columns: 1fr;
  }

  main { padding-bottom: 180px; }

  .nav {
    grid-template-columns: 1fr;
    top: 104px;
  }

  .top-actions .social-toggle,
  .top-actions .enroll-btn {
    font-size: .86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
