/* =========================================================
   style.css — Luxury Portfolio Hero
   =========================================================
   Constraints honoured:
   - ZERO perspective / rotateX / rotateY on any element
   - ZERO CSS transforms that touch the character body
   - All 3-D visual depth is purely decorative (shadows, blur)
   ========================================================= */

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

html, body, #root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  /* Will be overridden dynamically once bg_color.txt is read */
  background: #540102;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Hide the native cursor; we supply a custom one */
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero root ──────────────────────────────────────────── */
.hero-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ── Canvas (full-screen, no 3-D transforms) ────────────── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* object-fit handled via JS drawImage scaling */
}

/* ── Loading overlay ────────────────────────────────────── */
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: inherit;
  z-index: 10;
  transition: opacity 0.6s ease;
}
.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-overlay p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}


/* ── Floating frosted-glass nav pill ───────────────────── */
.nav-pill {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;

  display: flex;
  align-items: center;
  gap: 0.25rem;

  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.45rem 0.6rem;
}

.nav-pill a {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-pill a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.nav-pill .nav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ── Hero text block (bottom-left) ─────────────────────── */
.hero-text {
  position: absolute;
  bottom: 4.5rem;
  left: 3.5rem;
  max-width: 340px;
  z-index: 20;
  /* Subtle entrance animation */
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-greeting {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.hero-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  /* Soft drop-shadow — purely 2-D, no 3-D transforms */
  text-shadow:
    0 4px 24px rgba(0,0,0,0.45),
    0 1px 4px  rgba(0,0,0,0.3);
  margin-bottom: 0.4rem;
}

.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 220, 160, 0.92);   /* warm golden-cream — matches bakery warmth */
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-bio {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
  margin-bottom: 1.4rem;
}

/* ── CTA Buttons ────────────────────────────────────────── */
.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.22s, box-shadow 0.22s, color 0.22s;
  white-space: nowrap;
}

/* Solid white */
.btn-solid {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 2px 16px rgba(255,255,255,0.18);
}
.btn-solid:hover {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 4px 28px rgba(255,255,255,0.28);
}
.btn-solid .btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}
.btn-solid:hover .btn-arrow {
  transform: translateX(3px);
}

/* Frosted-glass */
.btn-glass {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}

/* ── Custom magnetic cursor ─────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  /* Instant snap — JS lerp handles the smoothing */
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow:
    0 0 0 0 rgba(255,255,255,0.3),
    0 0 12px 3px rgba(255,255,255,0.55);
}
.cursor-dot.expanded {
  width: 14px;
  height: 14px;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  /* The ring trails slightly behind the dot */
  transition: width 0.25s, height 0.25s, border-color 0.25s;
  box-shadow: 0 0 10px 1px rgba(255,255,255,0.12);
}
.cursor-ring.expanded {
  width: 56px;
  height: 56px;
  border-color: rgba(255,255,255,0.8);
}

/* Disable cursor hiding on interactive elements — let custom cursor handle it */
a, button { cursor: none; }

/* ── Contact info strip (bottom-right) ──────────────────── */
.contact-strip {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0;

  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0.45rem 1rem;

  animation: slideUp 1.1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 0 0.6rem;
}
.contact-item:hover {
  color: #fff;
}

.contact-icon {
  font-size: 0.85rem;
  opacity: 0.75;
  flex-shrink: 0;
}

.contact-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* Responsive: hide contact strip on small screens */
@media (max-width: 640px) {
  .contact-strip {
    display: none;
  }
  .hero-text {
    left: 1.5rem;
    bottom: 3rem;
    max-width: calc(100vw - 3rem);
  }
}
