:root {
  --ink: #6a2f6d;
  --pink: #ff73bb;
  --rose: #ff9fce;
  --lavender: #bea6ff;
  --sky: #9dd8ff;
  --mint: #99e5cc;
  --gold: #ffe08d;
  --card: #fffffff1;
  --line: #f3d5eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: linear-gradient(-45deg, #ffd6e7, #d6f0ff, #e6ffd6, #fff3c6);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
}

.cursor-sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.34;
  animation: blobFloat 16s ease-in-out infinite;
}

.blob-a {
  width: 260px;
  height: 260px;
  background: #ff9ecf;
  left: -40px;
  top: 15%;
}

.blob-b {
  width: 300px;
  height: 300px;
  background: #a9dcff;
  right: -60px;
  top: 35%;
  animation-delay: 2.2s;
}

.blob-c {
  width: 240px;
  height: 240px;
  background: #c9b2ff;
  left: 35%;
  bottom: -60px;
  animation-delay: 1.2s;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem 5rem;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, #ffcde865 0%, #fed8ba4d 50%, #88d6957e 100%),
    url("files/hero-bg.jpg"),
    url("https://wallpapercave.com/wp/wp5325485.jpg");
  background-size: cover;
  background-position: center 30%;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffa8cc33 0%, #c9b7ff2a 55%, #baffdc33 100%);
  backdrop-filter: blur(1px);
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: #ffffffa6;
  filter: blur(1px);
  z-index: 1;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #ffffffb8;
  border-radius: 999px;
}

.cloud-a {
  width: 180px;
  height: 52px;
  top: 13%;
  left: -220px;
  animation: cloudDrift 30s linear infinite;
}

.cloud-a::before {
  width: 70px;
  height: 70px;
  left: 26px;
  top: -30px;
}

.cloud-a::after {
  width: 58px;
  height: 58px;
  left: 90px;
  top: -25px;
}

.cloud-b {
  width: 130px;
  height: 44px;
  top: 24%;
  left: -170px;
  opacity: 0.8;
  animation: cloudDrift 40s linear infinite 8s;
}

.cloud-b::before {
  width: 56px;
  height: 56px;
  left: 18px;
  top: -24px;
}

.cloud-b::after {
  width: 46px;
  height: 46px;
  left: 70px;
  top: -20px;
}

.floating-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.top-nav {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 6;
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  text-decoration: none;
  color: #8b3f7f;
  font-weight: 700;
  background: #fff5fccc;
  border: 1px solid #f0cbe8;
  border-radius: 999px;
  padding: 0.36rem 0.64rem;
  box-shadow: 0 4px 12px #6d2d6322;
}

.floating-orbs span {
  position: absolute;
  width: 16px;
  height: 16px;
  rotate: 45deg;
  background: #fff7cf;
  box-shadow: 0 0 18px #fff4a8;
  clip-path: polygon(50% 0%, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0% 50%, 34% 34%);
  animation: drift 7s ease-in-out infinite, twinkle 1.7s ease-in-out infinite;
}

.floating-orbs span:nth-child(1) {
  left: 12%;
  top: 20%;
}

.floating-orbs span:nth-child(2) {
  left: 80%;
  top: 30%;
  animation-delay: 1.5s;
}

.floating-orbs span:nth-child(3) {
  left: 65%;
  top: 14%;
  animation-delay: 2.2s;
}

.floating-orbs span:nth-child(4) {
  left: 26%;
  top: 34%;
  width: 11px;
  height: 11px;
  animation-delay: 0.9s;
}

.floating-orbs span:nth-child(5) {
  left: 56%;
  top: 39%;
  width: 12px;
  height: 12px;
  animation-delay: 1.3s;
}

.floating-orbs span:nth-child(6) {
  left: 88%;
  top: 18%;
  width: 10px;
  height: 10px;
  animation-delay: 2.8s;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 95%);
  background: #fff9ffd8;
  border: 1px solid #ffffff;
  border-radius: 24px;
  padding: 1.9rem;
  box-shadow: 0 24px 40px #5f24522e;
  backdrop-filter: blur(4px);
}

.eyebrow {
  font-family: "Caveat", cursive;
  color: #d24b9b;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

h1,
h2,
h3 {
  font-family: "Marcellus", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  margin: 0.35rem 0 0.8rem;
  color: #b23480;
}

.intro {
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: #8f4f90;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.76rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff78b8, #b077ff);
  border: 1px solid #ffffff70;
  box-shadow: 0 6px 16px #61245533;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px #61245540;
}

.btn-secondary {
  color: #5a347c;
  background: #ffeefe;
  border-color: #f5cbec;
}

.hero-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: 96px;
  background:
    radial-gradient(circle at 8% 100%, #89cb79 0 55%, transparent 56%),
    radial-gradient(circle at 20% 100%, #74be89 0 56%, transparent 57%),
    radial-gradient(circle at 34% 100%, #8fd57c 0 58%, transparent 59%),
    radial-gradient(circle at 47% 100%, #75b9b4 0 58%, transparent 59%),
    radial-gradient(circle at 62% 100%, #91c875 0 58%, transparent 59%),
    radial-gradient(circle at 77% 100%, #7ac28c 0 58%, transparent 59%),
    radial-gradient(circle at 92% 100%, #97d589 0 56%, transparent 57%);
}

main {
  width: min(1150px, 93%);
  margin: -2rem auto 3rem;
  position: relative;
  z-index: 4;
}

.section-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 16px 24px #672c681f;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}

.section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff75 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.25;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealIn 0.7s ease forwards;
}

.story-panel {
  display: block;
  background: linear-gradient(90deg, #fff6fd, #ffeefa 40%, #fff7e8);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mini-label {
  font-family: "Caveat", cursive;
  color: #d44f9f;
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}

.story-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
  color: #b13d87;
}

.story-panel p {
  line-height: 1.75;
  font-size: 1.06rem;
  color: #844f8f;
}

.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  background: linear-gradient(110deg, #ffeef8, #fff6ea 48%, #ebf8ff);
}

.featured-media-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 20px #71386722;
}

.featured-media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.featured-content {
  align-self: center;
}

.featured-content h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: #b23e8f;
  margin: 0.3rem 0;
}

.featured-date {
  font-weight: 700;
  color: #8f5fa9;
}

.featured-story {
  margin-top: 0.55rem;
  line-height: 1.7;
}

.color-diary {
  background: linear-gradient(90deg, #fff4fb, #f8edff, #edf8ff, #faffec);
}

.diary-head {
  margin-bottom: 0.8rem;
}

.diary-head h2 {
  color: #b33f91;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.diary-grid article {
  border: 1px solid #f0d8ea;
  border-radius: 14px;
  padding: 0.8rem;
  background: #ffffffcc;
}

.diary-grid h3 {
  color: #9f468d;
  margin: 0.45rem 0 0.22rem;
}

.diary-grid p {
  color: #85578c;
}

.color-lab-controls {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

#color-lab {
  text-align: center;
  background: linear-gradient(110deg, #fff7fd, #eef8ff, #fff7e8);
}

#color-lab label {
  color: #8d4f88;
  font-weight: 700;
}

#color-lab input {
  margin: 0.2rem;
  width: 50px;
  height: 40px;
  border: 1px solid #efcce9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

#resultBox {
  width: 170px;
  height: 170px;
  margin: 1rem auto 0.2rem;
  border-radius: 12px;
  border: 2px solid #e8cfe6;
  box-shadow: 0 10px 20px #65316522;
  transition: background 0.3s ease;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px #00000025;
}

.swatch-pink {
  background: #ff8ec7;
}

.swatch-blue {
  background: #9fdcff;
}

.swatch-mint {
  background: #94ebc3;
}

.swatch-gold {
  background: #ffdc7f;
}

.gallery-section {
  background: linear-gradient(115deg, #fff8ff, #fff7ef 46%, #eef9ff);
}

.gallery-head {
  margin-bottom: 0.9rem;
}

.gallery-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: #b33f91;
}

.subtext {
  margin-top: 0.35rem;
  color: #6b4d87;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1.1rem;
}

.chip {
  border: 1px solid #efccea;
  background: #fff2fa;
  color: #8b4c84;
  border-radius: 999px;
  padding: 0.44rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
}

.chip.active {
  background: linear-gradient(135deg, #ff7fbd, #b07aff);
  color: #fff;
  border-color: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.95rem;
}

.card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8ff, #fffef7);
  border: 1px solid #f0d8ea;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 0 0 1px #ffd3ef, 0 0 26px #ff96d666, 0 18px 26px #5f287033;
  border-color: #ffbde2;
}

.card img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.card:hover img {
  transform: scale(1.07);
}

#gallery .card img {
  transition: transform 0.3s ease;
}

#gallery .card img:hover {
  transform: scale(1.05);
}

.card.ratio-a img {
  aspect-ratio: 1 / 1;
}

.card.ratio-b img {
  aspect-ratio: 4 / 5;
}

.card.ratio-c img {
  aspect-ratio: 5 / 4;
}

.card .meta {
  padding: 0.82rem;
}

.card h3 {
  font-size: 1rem;
  color: #9c4b8f;
}

.card p {
  font-size: 0.89rem;
  color: #7c5c8f;
  margin-top: 0.2rem;
}

.card .story {
  margin-top: 0.45rem;
  font-size: 0.83rem;
  color: #8a5f80;
}

.videos {
  background: linear-gradient(115deg, #fff6fc, #eef2ff 45%, #eefeff);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.9rem;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #edd7ec;
  background: #fffdfd;
}

.video-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #f1eef5;
}

.video-meta {
  padding: 0.7rem;
}

.video-meta h3 {
  color: #9c4b8f;
  font-size: 1.02rem;
}

.video-meta p {
  color: #805d8a;
  font-size: 0.9rem;
}

.video-empty {
  border: 1px dashed #e9c9e2;
  border-radius: 12px;
  padding: 0.85rem;
  color: #8a5c86;
  background: #fff7fc;
}

.quote-strip {
  border-radius: 18px;
  padding: 1.3rem;
  background: linear-gradient(90deg, #ffe6f4, #ece4ff, #e4f8ff, #fef5cd);
  border: 1px solid #efd6ea;
  text-align: center;
  color: #6a3d78;
}

.quote-strip blockquote {
  font-family: "Caveat", cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #8f2f80;
}

.quote-strip cite {
  display: block;
  margin-top: 0.35rem;
  color: #7f5d8c;
  font-style: normal;
  font-weight: 700;
}

.color-scroll {
  border-radius: 16px;
  border: 1px solid #f1cce7;
  background: linear-gradient(90deg, #fff4fb, #ffe9f4, #f6e9ff);
  overflow: hidden;
  margin-top: -0.2rem;
}

.contact-panel {
  text-align: center;
  background: linear-gradient(100deg, #fff5fc, #f3ecff, #eefbff);
}

.contact-panel h2 {
  color: #b13d87;
  margin-bottom: 0.3rem;
}

.contact-panel p {
  color: #86558d;
}

.love-creating {
  margin-top: 0.25rem;
}

.love-creating h3 {
  color: #a93d84;
  margin-bottom: 0.45rem;
}

.love-creating p {
  margin: 0.25rem 0;
  color: #86558d;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.love-creating p span {
  background: #fff3fb;
  border: 1px solid #f0cbe8;
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
}

.contact-links {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  color: #8f4485;
  font-weight: 700;
  background: #fff3fc;
  border: 1px solid #f0cbe8;
  border-radius: 999px;
  padding: 0.5rem 0.88rem;
}

.connect-lab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.connect-lab-row .section-card {
  margin-bottom: 0;
}

.scroll-track {
  display: flex;
  width: 100%;
  justify-content: center;
  font-family: "Caveat", cursive;
  font-size: clamp(1.2rem, 2.7vw, 1.8rem);
  color: #ce3c98;
}

.scroll-track span {
  padding: 0.65rem 1.2rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: #1b0d1dd6;
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 99;
}

.lightbox img {
  width: min(92vw, 980px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 18px 36px #00000055;
}

.lightbox p {
  margin-top: 0.75rem;
  text-align: center;
  color: #fff;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #ffffffd7;
  color: #5f2f57;
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.hidden {
  display: none;
}

.sound-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 100;
  border: 1px solid #f6d0ea;
  background: linear-gradient(135deg, #fff2fb, #ffe4f4);
  color: #b53b87;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 18px #6b2e6b2b;
}

.sound-toggle[aria-pressed="false"] {
  opacity: 0.75;
}

.back-to-top {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 100;
  text-decoration: none;
  border: 1px solid #f1cde8;
  background: #fff4fb;
  color: #b14188;
  border-radius: 999px;
  padding: 0.56rem 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 16px #73386f24;
}

footer {
  text-align: center;
  padding: 1.2rem;
  color: #7a4f74;
}

.footer-socials {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quote-card {
  width: min(760px, 94%);
  margin: 0 auto 0.8rem;
  background: linear-gradient(110deg, #fff4fc, #f0e9ff, #edfaff);
  border: 1px solid #ecd0e8;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 20px #6a2b6720;
}

.quote-card p:first-child {
  color: #8a5b8d;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
}

.quote-card p:last-child {
  color: #7c5d87;
  font-weight: 700;
}

.social {
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.5rem 0.88rem;
  border: 1px solid #efcce9;
  background: #fff7fd;
  box-shadow: 0 6px 14px #66305f22;
}

.social.instagram {
  color: #b12b82;
}

.social.youtube {
  color: #c0324c;
}

.social.email {
  color: #8a4f9c;
}

.spark {
  position: absolute;
  width: 9px;
  height: 9px;
  rotate: 45deg;
  background: #fff6af;
  box-shadow: 0 0 10px #ffe788;
  clip-path: polygon(50% 0%, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0% 50%, 34% 34%);
  animation: sparkFade 0.75s ease-out forwards;
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-14px) scale(1.15);
    opacity: 0.5;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.8) rotate(45deg);
    filter: brightness(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
    filter: brightness(1.2);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes cloudDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(130vw);
  }
}

@keyframes sparkFade {
  0% {
    transform: scale(0.55) rotate(45deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: scale(1.6) rotate(45deg);
    opacity: 0;
  }
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) translateX(14px) scale(1.08);
  }
}

@media (max-width: 980px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .diary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connect-lab-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 76vh;
    padding-bottom: 4.8rem;
  }

  .hero-content {
    padding: 1.25rem;
  }

  .section-card {
    padding: 1rem;
  }

  .sound-toggle,
  .back-to-top {
    font-size: 0.84rem;
    padding: 0.5rem 0.7rem;
  }

  .top-nav {
    top: 10px;
    right: 10px;
    gap: 0.4rem;
  }

  .top-nav a {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
  }

  .color-lab-controls {
    gap: 0.45rem;
  }

  #resultBox {
    width: 145px;
    height: 145px;
  }
}
