/* =========================================
   MELANIE PETKINS — FULL SITE STYLES (FIXED)
   Replace entire css/styles.css with this
   ========================================= */

/* ====== Base ====== */
:root {
  --bg: #05060a;
  --bg-alt: #111120;
  --fg: #fdfaff;
  --muted: #b9b4c9;
  --accent: #ff82c6;        /* soft kawaii pink */
  --accent-soft: rgba(255, 130, 198, 0.16);
  --border-subtle: #26263a;

  --font-body: "Yomogi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #262648 0, #05060a 55%);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ====== Layout helpers ====== */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: linear-gradient(to bottom, #0d0d1a, #070712);
}

.kawaii-title {
  position: relative;
  display: inline-block;
  padding-right: 0.6rem;
  text-shadow: 0 0 10px rgba(255, 130, 198, 0.55);
}

.kawaii-title::after {
  content: " ♡";
  color: var(--accent);
  margin-left: 0.1em;
  text-shadow: 0 0 12px rgba(255, 130, 198, 0.85);
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--muted);
  max-width: 480px;
}

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 12, 0.96),
    rgba(5, 6, 12, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.13em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap; /* allow wrapping */
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--fg);
}

.nav a:hover::after {
  width: 100%;
}

/* ====== Nav Instagram link ====== */
.nav-ig {
  color: var(--accent);
  font-weight: 600;
}

.nav-ig:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 130, 198, 0.8);
}

/* ====== Hero ====== */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin: 0;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  color: var(--muted);
}

.hero-description {
  margin-top: 1.5rem;
  max-width: 420px;
  color: #e3deff;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  border-radius: 1.7rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
  object-fit: cover;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.7rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
  margin-top: 2rem;
}

.btn.primary::after {
  content: " ♡";
  font-size: 0.95em;
}

.btn.primary {
  background: var(--accent);
  color: #260917;
  box-shadow: 0 16px 45px rgba(255, 130, 198, 0.55);
}

.btn.primary:hover {
  background: #ff9ad1;
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(255, 130, 198, 0.7);
}

/* ====== Hero CTA buttons row ====== */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* reuse base .btn, just tweak IG look */
.ig-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.ig-btn:hover {
  background: var(--accent-soft);
  color: #ffdff4;
  transform: translateY(-1px);
}

/* ====== About ====== */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-top: 1rem;
  color: #e3deff;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about-gallery img {
  width: 100%;
  border-radius: 1.4rem;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* ====== Portfolio ====== */
.portfolio-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.portfolio-card {
  background: rgba(9, 9, 22, 0.95);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}

.portfolio-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.portfolio-card-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 260px;
}

.zoom-on-hover img {
  transition: transform 0.4s ease;
}

.portfolio-card:hover .zoom-on-hover img {
  transform: scale(1.06);
}

.portfolio-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.portfolio-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.portfolio-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.8);
  border-color: var(--accent-soft);
  background: radial-gradient(circle at top left, rgba(255, 130, 198, 0.15), rgba(9, 9, 22, 0.96));
}

/* ====== Soft Kawaii Section (sparkles) ====== */
.section-soft-kawaii {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, #ffb6e9 0, #0b0715 55%);
}

.section-soft-kawaii::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.25) 0, transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 211, 248, 0.26) 0, transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(190, 239, 255, 0.24) 0, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
  animation: kawaiiSparkles 18s linear infinite alternate;
}

.section-soft-kawaii::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0, transparent 30%),
    radial-gradient(circle at 30% 70%, rgba(255, 182, 233, 0.2) 0, transparent 40%);
  opacity: 0.4;
  pointer-events: none;
  animation: kawaiiSparkles 22s linear infinite reverse;
}

@keyframes kawaiiSparkles {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-20px, 10px, 0) scale(1.05); }
}

/* ====== Cute & Candid ====== */
.candid-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.kawaii-bubbles {
  position: relative;
  z-index: 1;
}

.candid-item {
  position: relative;
  border-radius: 1.8rem;
  padding: 0.35rem;
  background: radial-gradient(circle at top left, rgba(255, 130, 198, 0.28), rgba(6, 5, 18, 0.95));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.candid-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 1px solid var(--accent-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: zoom-in;
}

.candid-heart {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  font-size: 1.3rem;
  color: #ffd4f0;
  text-shadow: 0 0 12px rgba(255, 130, 198, 1);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.candid-item:hover .candid-img {
  transform: scale(1.06);
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 130, 198, 0.7);
}

.candid-item:hover .candid-heart {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* watermark on candid tiles */
.candid-item::after {
  content: "melaniepetkins.com";
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: rgba(255, 130, 198, 0.85);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* ====== Image Modal (centered, fixed, consistent) ====== */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.image-modal.open {
  display: flex;
}

.image-modal-img-wrapper {
  position: relative;
  display: grid;
  place-items: center;
}

.image-modal-content {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  animation: popIn 0.22s ease-out;
}

/* Watermark anchored to the enlarged image (bottom-right of the image) */
.image-modal-img-wrapper {
  position: relative;
  display: grid;
  place-items: center;
}

.image-modal-img-wrapper::after {
  content: "melaniepetkins.com";
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(255, 130, 198, 0.9);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  user-select: none;
  z-index: 5;
}

.image-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--fg);
}

.image-modal-close:hover {
  transform: scale(1.1);
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ====== Horizontal candid strip on homepage ====== */
.candid-strip.candid-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-top: 2.5rem;
  scroll-snap-type: x mandatory;
}

.candid-strip .candid-item {
  flex: 0 0 240px;
  scroll-snap-align: center;
}

.candid-strip .candid-img {
  height: 320px;
}

/* scrollbar */
.candid-strip::-webkit-scrollbar { height: 8px; }
.candid-strip::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
}
.candid-strip::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 999px;
}

.candid-more-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.candid-more-btn {
  background: var(--accent);
  color: #260917;
  border-radius: 999px;
  padding: 0.75rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 40px rgba(255, 130, 198, 0.6);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.candid-more-btn::after { content: " ♡"; }

.candid-more-btn:hover {
  background: #ff9ad1;
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(255, 130, 198, 0.8);
}

/* ====== Circle Moments (preview + shared styles) ====== */
.circle-preview {
  margin-top: 2rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.circle-video-wrapper {
  width: 150px;   /* slightly smaller than old 160 */
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  padding: 4px;
  background: radial-gradient(circle at top, rgba(255, 130, 198, 0.6), rgba(6, 5, 18, 0.98));
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(255, 130, 198, 0.6);
  overflow: hidden;
  position: relative;
}

.circle-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.circle-video-wrapper:hover .circle-video {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 130, 198, 0.9);
}

.circle-label {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #ffe9fa;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .circle-video-wrapper {
    width: 140px;
    height: 140px;
  }
}

/* ====== Contact ====== */
.contact-inner {
  max-width: 640px;
}

.contact-text p {
  margin-top: 1rem;
}

.contact-email a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.contact-email a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--fg);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.social-links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ====== Project Pages (kept for subpages) ====== */
.project-inner {
  max-width: 860px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.project-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.project-nav a:hover {
  color: var(--accent);
}

.project-description p {
  margin-top: 0.9rem;
}

.project-gallery {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-gallery img {
  width: 100%;
  border-radius: 1.4rem;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.project-video-wrapper {
  width: 100%;
}

.project-video {
  width: 100%;
  display: block;
  border-radius: 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  background: #000;
}

/* ====== Scroll reveal animation ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.5rem 0 2rem;
  background: rgba(4, 4, 10, 0.96);
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ====== Floating Particles (FIXED syntax) ====== */
.heart-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.heart-particles .heart {
  position: absolute;
  bottom: -10vh;
  font-size: 12px;
  text-shadow: 0 0 8px currentColor;
  opacity: 0;
  animation: floatHearts 12s linear infinite;
}

@keyframes floatHearts {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--drift, 0px), -50vh, 0) rotate(180deg) scale(1);
  }
  100% {
    transform: translate3d(calc(var(--drift, 0px) * -1), -110vh, 0) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* make sure main content is above the hearts, but allow overlays like the modal */
body > :not(.heart-particles):not(#imageModal) {
  position: relative;
  z-index: 1;
}

/* ====== Heart Divider ====== */
.heart-divider {
  position: relative;
  height: 40px;
  margin: -1rem auto 1rem;
  max-width: 460px;
}

.heart-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 130, 198, 0),
    rgba(255, 130, 198, 0.9),
    rgba(255, 130, 198, 0)
  );
  opacity: 0.85;
}

.heart-divider::after {
  content: "♥   ♥   ♥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffd4f0;
  font-size: 1rem;
  letter-spacing: 0.8rem;
  text-shadow: 0 0 10px rgba(255, 130, 198, 0.9);
  animation: heartDance 3.2s ease-in-out infinite;
}

@keyframes heartDance {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -60%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
}

/* ====== Watch Me Live Section ====== */
.live-inner {
  text-align: center;
  max-width: 700px;
}

.live-cta-wrapper {
  margin-top: 2.5rem;
}

.live-btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #ff82c6, #ffb6e9);
  color: #3f0030;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(255, 130, 198, 0.55),
              0 0 20px rgba(255, 167, 223, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.live-btn::after { content: " ♡"; }

.live-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 55px rgba(255, 130, 198, 0.75),
              0 0 30px rgba(255, 180, 235, 0.7);
}

.live-note {
  margin-top: 1.5rem;
  color: #ffdffd;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Live Chibi Mascot */
.live-chibi-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.live-chibi {
  max-width: 180px;
  width: 45vw;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.65));
  animation: chibiFloat 4.5s ease-in-out infinite;
}

@keyframes chibiFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* ====== Responsive ====== */
@media (max-width: 800px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
  }
}

/* slightly larger close button on mobile */
@media (max-width: 600px) {
  .image-modal-close {
    font-size: 2.8rem;
    top: 1rem;
    right: 1rem;
  }

  .live-chibi {
    max-width: 160px;
  }
}

/* ====== Consistent Centering (desktop) ====== */
@media (min-width: 900px) {
  #candid,
  #circle-moments,
  #live,
  #shop {
    text-align: center;
  }

  #candid .section-intro,
  #circle-moments .section-intro,
  #live .section-intro,
  #shop .section-intro {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  #candid .container,
  #circle-moments .container,
  #live .container,
  #shop .container {
    text-align: center;
  }

  #candid .candid-more-wrapper,
  #circle-moments .circle-preview-cta,
  #live .live-cta-wrapper,
  #shop .shop-cta {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #live .live-inner {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ====== Contact booking button ====== */
.contact-booking-cta {
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

#contact .contact-booking-cta .btn {
  margin-top: 0; /* override global .btn margin-top */
}
