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

:root {
  --cream:   #fdf8f3;
  --sand:    #f0e8dc;
  --blush:   #f5c2c7;
  --mauve:   #d4879a;
  --caramel: #c68b5a;
  --mane:    #e8a030;
  --dark:    #2c1f14;
  --mid:     #7a5c4a;
  --light:   #c4a98a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
}

/* ─── CUSTOM CURSOR ─── */
.cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--mauve);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out-expo),
              width 0.3s var(--ease-spring),
              height 0.3s var(--ease-spring),
              border-color 0.3s ease;
  mix-blend-mode: multiply;
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--mauve);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor,
body:has(.skill-tag-el:hover) .cursor,
body:has(.project-card-el:hover) .cursor {
  width: 52px;
  height: 52px;
  border-color: var(--caramel);
  background: rgba(230, 160, 48, 0.06);
}

/* ─── BACKGROUND BLOBS ─── */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f5c2c7, #f0e8dc);
  top: -100px;
  right: -80px;
  animation: floatBlob1 14s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #e8c9a0, #fdf8f3);
  bottom: 0;
  left: -100px;
  animation: floatBlob2 18s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, 30px) scale(1.05); }
}
@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, -20px) scale(1.08); }
}

/* ─── PAGE LAYOUT ─── */
.page {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO ─── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 80px 0 60px;
}

.mascot-wrap {
  display: block;
  width: 180px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mauve);
  transition-delay: 0.1s;
}

.name {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 130px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 8px 0 20px;
  transition-delay: 0.2s;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 300;
  color: var(--mid);
  line-height: 1.4;
  transition-delay: 0.35s;
}

.tagline em {
  font-style: italic;
  color: var(--mauve);
}

/* ─── SECTION ─── */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--sand);
}

.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 36px;
}

/* ─── SKILLS ─── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ─── CONTACT ─── */
.contact-section {
  padding-bottom: 40px;
}

/* ─── FOOTER ─── */
.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 0 48px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--light);
  border-top: 1px solid var(--sand);
  transition-delay: 0.1s;
}

.footer-lion {
  font-size: 18px;
  animation: lionBob 2.5s ease-in-out infinite;
}

@keyframes lionBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-5px) rotate(3deg); }
}

/* ─── WEB COMPONENT STYLES (fallback/host) ─── */
lion-mascot,
skill-tag,
project-card,
contact-links {
  display: contents;
}

/* ─── SKILL TAG ELEMENT ─── */
.skill-tag-el {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border: 1px solid var(--sand);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid);
  background: rgba(253, 248, 243, 0.7);
  backdrop-filter: blur(4px);
  cursor: none;
  transition: border-color 0.25s ease,
              color 0.25s ease,
              transform 0.3s var(--ease-spring),
              background 0.25s ease;
  opacity: 0;
  transform: translateY(14px);
}

.skill-tag-el.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-tag-el:hover {
  border-color: var(--blush);
  color: var(--dark);
  background: rgba(245, 194, 199, 0.15);
  transform: translateY(-2px);
}

.skill-tag-el .tag-icon {
  color: var(--mauve);
  font-size: 10px;
}

/* ─── PROJECT CARD ELEMENT ─── */
.project-card-el {
  display: block;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(253, 248, 243, 0.6);
  border: 1px solid var(--sand);
  backdrop-filter: blur(8px);
  cursor: none;
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  opacity: 0;
  transform: translateY(18px);
}

.project-card-el.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card-el:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 20px 48px -8px rgba(44, 31, 20, 0.12);
  border-color: var(--blush);
}

.card-accent {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 18px;
  transition: width 0.3s var(--ease-spring);
}

.project-card-el:hover .card-accent {
  width: 56px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.card-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-tags {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
}

/* ─── CONTACT LINKS ─── */
.contact-links-el {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mid);
  border: 1px solid var(--sand);
  background: transparent;
  text-decoration: none;
  cursor: none;
  transition: background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              transform 0.3s var(--ease-spring);
}

.contact-link:hover {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
  transform: translateY(-3px);
}

.contact-link .link-icon {
  font-size: 14px;
}

/* ─── LION SVG ─── */
.lion-svg-wrap {
  opacity: 0;
  transform: scale(0.85) rotate(-5deg);
  transition: opacity 0.8s var(--ease-out-expo) 0.3s,
              transform 0.8s var(--ease-spring) 0.3s;
}

.lion-svg-wrap.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.lion-svg-wrap svg {
  filter: drop-shadow(0 8px 24px rgba(198, 139, 90, 0.18));
  animation: lionFloat 5s ease-in-out infinite;
}

@keyframes lionFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-8px) rotate(1.5deg); }
  70%       { transform: translateY(-4px) rotate(-1deg); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .page { padding: 0 20px; }

  .hero {
    gap: 32px;
    padding-top: 60px;
  }

  .mascot-wrap {
    width: 130px;
  }

  .name {
    font-size: 72px;
  }

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

  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}
