﻿:root {
  --pink-deep: #e05585;
  --pink-mid: #f07aaa;
  --pink-light: #fbc8dc;
  --pink-pale: #fde8f0;
  --pink-white: #fff5f9;
  --bg: #fff5f9;
  --surface: rgba(255, 245, 249, .85);
  --surface-strong: #ffffff;
  --surface-border: #fbc8dc;
  --text-dark: #6b2343;
  --text-mid: #a0406a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  background: var(--pink-white);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom cursor ── */
#cursor {
  position: fixed;
  width: 56px;
  height: 56px;
  background: url('bloemata.png') center/contain no-repeat transparent;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .12s ease;
}

#cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid var(--pink-mid);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left .18s ease, top .18s ease;
}

/* cursor spin animation (keeps translate offset) */
@keyframes cursor-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#cursor.spin {
  animation: cursor-spin 0.9s linear;
}

/* ── Canvas ── */
#petal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  background: rgba(240, 122, 170, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 209, 221, .6);
  z-index: 100;
  flex-wrap: wrap;
  transition: transform .32s ease, opacity .28s ease;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo-box {
  width: 30px;
  height: 40px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(224, 85, 133, .20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-img {

  transform: scale(0.035);
  transform-origin: center center;
  object-fit: none;
  object-position: center;
  display: block;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.38rem;
  color: var(--text-dark);
  letter-spacing: .04em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  align-items: center;
}

.nav-links a,
.nav-links button {
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  position: relative;
  transition: color .3s, background .3s, border-color .3s;
  background: transparent;
  border: none;
  cursor: pointer;
  /* allow hiding only the links area while brand stays clickable */
  transition: transform .28s ease, opacity .28s ease;
  will-change: transform, opacity;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--pink-deep);
  transition: width .3s;
}

.nav-links a:hover,
.nav-links button:hover {
  color: var(--pink-deep);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links button {
  padding: .6rem 1rem;
  border: 1px solid var(--pink-mid);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
}

.nav-links.hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.nav-links button:hover {
  background: var(--pink-light);
}

body.dark nav {
  background: rgba(18, 12, 24, .94);
  border-color: rgba(244, 194, 216, .18);
}

body.dark {
  background: #1b101f;
  color: #f7e4f4;
}

body.dark .nav-links a,
body.dark .nav-links button {
  color: #f4d2f0;
}

body.dark .nav-links a:hover,
body.dark .nav-links button:hover {
  color: #fff;
}

body.dark .nav-links button {
  border-color: rgba(244, 210, 240, .45);
  background: rgba(255, 255, 255, .05);
}

body.dark .nav-logo {
  color: #f7d2ec;
}

body.dark .work-card {
  background: rgba(38, 18, 34, .88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

body.dark .card-thumb {
  background: linear-gradient(135deg, #8a2d5d, #5b1630);
}

body.dark .tag {
  background: rgba(244, 210, 240, .15);
  color: #f7d2ec;
  border-color: rgba(244, 210, 240, .3);
}

body.dark #about,
body.dark #work,
body.dark #contact {
  background: rgba(18, 10, 23, .95);
}

body.dark #about .about-text h2,
body.dark #work h2,
body.dark #contact h2,
body.dark .card-body h3 {
  color: #d44a82;
}

body.dark #about .about-text p,
body.dark .card-body p,
body.dark #contact p {
  color: #f2c0e2;
}

body.dark footer {
  background: #2c0b25;
  color: #f6d6ea;
}

/* hide the entire nav bar and add a small restore button */
nav.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.nav-restore {
  position: fixed;
  top: 10px;
  left: 12px;
  width: 48px;
  height: 48px;
  z-index: 2000;
  background: url('planenene.png') center/contain no-repeat;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  background-color: rgba(255, 255, 255, .9);
  display: none;
}

.nav-restore:active {
  transform: translateY(1px);
}

/* ── Sections ── */
section { position: relative; z-index: 1; }

.project-page {
  min-height: calc(100vh - 5rem);
  padding: 6rem 4rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
}
.project-detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 80px rgba(224,85,133,.08);
  background: rgba(255,255,255,.95);
}
.project-detail h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  color: var(--pink-deep);
  margin-bottom: 1.5rem;
}
.project-detail p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}
.project-hero {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(224,85,133,.16);
}

/* ── HERO ── */
#hero {
  position: sticky;
  top: 0;
  min-height: 110vh;
  width: 100%;
  overflow: hidden;
  background: none;
  z-index: 1;
}
#hero .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  transition: transform .15s ease-out, opacity .15s ease-out;
  pointer-events: none;
}

/* fly-back state: image flies away (scales down, moves up and fades) */
.hero-image.fly-back {
  transform: scale(0.45) translateY(-240px) rotateX(8deg);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2,.9,.2,1), opacity .6s ease;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ── ABOUT ── */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding: 7rem 6rem;
  background: linear-gradient(135deg, rgba(251,200,220,.76), rgba(255,255,255,.86));
  border: 1px solid rgba(255,255,255,.72);
  backdrop-filter: blur(1000px);
  box-shadow: 0 24px 60px rgba(224,85,133,.08);
  border-radius: 28px;
}
.about-photo-wrap {
  position: relative; display: flex; justify-content: center;
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -8%;
  width: 420px;
  height: 420px;
  background: url('bloemata.png') center/contain no-repeat;
  opacity: .18;
  filter: saturate(1.1) brightness(1.1);
  transform: rotate(-8deg);
  z-index: 0;
}
@media (max-width: 600px) {
  .about-photo-wrap::before {
    width: 180px;
    height: 180px;
    left: 20%;
    top: 0;
     opacity: .18;
    transform: translateX(-50%) rotate(-8deg);

      background: url('bloemata.png') center/contain no-repeat;
  }
}
.photo-frame {
  position: relative;
  z-index: 1;
  width: 300px; height: 370px;
  border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
  overflow: hidden;
  border: 5px solid var(--pink-light);
  box-shadow: 0 20px 60px rgba(224,85,133,.25);
  animation: morphBlob 8s ease-in-out infinite;
}
.photo-frame img {
  width: 180%; height: 300%; object-fit: cover;object position center;
  top: 30%; left: 110%; transform: translate(-16%,-25%);
}
.photo-placeholder {
  width: 100%; height: 10%;
  background: linear-gradient(145deg, var(--pink-light), var(--pink-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: white;
}
@keyframes morphBlob {
  0%,100% { border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%; }
  33%      { border-radius: 40% 60% 45% 55% / 55% 50% 50% 45%; }
  66%      { border-radius: 50% 50% 60% 40% / 45% 55% 45% 55%; }
}
.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; color: var(--pink-deep);
  margin-bottom: 1.2rem;
}
.about-text p {
  font-size: 1.1rem; line-height: 1.85;
  color: var(--text-mid); margin-bottom: 1rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.tag {
  padding: .4rem 1rem; border-radius: 999px;
  background: var(--pink-light); color: var(--pink-deep);
  font-size: .85rem; letter-spacing: .06em;
  border: 1px solid var(--pink-mid);
  transition: background .25s, transform .25s;
}
.tag:hover { background: var(--pink-deep); color: rgb(137, 221, 166); transform: scale(1.05); }

/* ── WORK ── */
#work {
  position: relative;
  padding: 7rem 4rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 24px 60px rgba(255, 109, 160, 0.08);
  border-radius: 28px;
  overflow: hidden;
}
#work h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; text-align: center;
  color: var(--pink-deep); margin-bottom: 3.5rem;
}
.work-flowers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.work-flowers span {
  position: absolute;
  transform: translate(-50%, -50%);
  background: url('bloemata.png') center/contain no-repeat;
  opacity: .22;
  filter: saturate(1.1) brightness(1.05);
  transform-origin: center center;
  --init-rot: 0deg;
  animation: float-slow 18s ease-in-out infinite;
}

.work-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem; max-width: 1400px; margin: 0 auto;
      align-items: stretch;
}
.more-projects-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.more-projects-link {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  background: rgba(224,85,133,.12);
  color: var(--pink-deep);
  font-weight: 600;
  border: 1px solid rgba(224,85,133,.36);
  border-radius: 999px;
  text-decoration: none;
  transition: background .3s, transform .3s, box-shadow .3s;
}
.more-projects-link:hover {
  background: rgba(224,85,133,.18);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(224,85,133,.14);
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(calc(var(--init-rot) - 12deg)); }
  50% { transform: translateY(-26px) rotate(calc(var(--init-rot) + 12deg)); }
}

.work-link { display: flex; color: inherit; text-decoration: none; height: 100%; }

@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-card {
  position: relative; border-radius: 24px; overflow: hidden;
  background: var(--pink-pale);
  box-shadow: 0 8px 30px rgba(255, 95, 151, 0.12);
  transition: transform .35s, box-shadow .35s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(224,85,133,.28);
}
.card-thumb {
  height: 220px;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-mid));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .4s;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card:hover .card-thumb { transform: scale(1.06); }
.card-body {
  padding: 1.4rem 1.6rem 1.8rem;
  flex: 1;
}
.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--text-dark);
  margin-bottom: .4rem;
}
.card-body p { font-size: .95rem; color: var(--text-mid); line-height: 1.6; }
.card-tag {
  display: inline-block; margin-top: .8rem;
  padding: .25rem .8rem; border-radius: 999px;
  background: var(--pink-deep); color: white;
  font-size: .75rem; letter-spacing: .08em;
}

/* ── CONTACT ── */
#contact {
  padding: 7rem 4rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(1000Spx);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 24px 60px rgba(224,85,133,.08);
  border-radius: 28px;
  text-align: center;
}
#contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; color: var(--pink-deep);
  margin-bottom: 1rem;
}
#contact p { font-size: 1.1rem; color: var(--text-mid); margin-bottom: 2.5rem; }
.contact-form {
  max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: .95rem 1.3rem;
  border: 2px solid var(--pink-light);
  border-radius: 14px;
  background: #fbc8dc;
  (230, 162, 200, 0.95);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text-dark);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(224,85,133,.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.btn-send {
  padding: 1rem 2.5rem;
  background: var(--pink-deep); color: white;
  border: none; border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; letter-spacing: .1em;
  cursor: pointer;
  transition: background .3s, transform .3s, box-shadow .3s;
  align-self: center;
}
.btn-send:hover {
  background: var(--text-dark);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(224,85,133,.35);
}

/* ── Footer ── */
footer {
  background: var(--text-dark); color: var(--pink-light);
  text-align: center; padding: 2rem;
  font-size: .85rem; letter-spacing: .1em;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  #about { grid-template-columns: 1fr; padding: 5rem 2rem; text-align: center; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  #work, #contact { padding: 5rem 1.5rem; }
}
