/* ═══════════════════════════════════════════════════════════════
   Sophie's Portfolio — style.css
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --pink:      #f5c2d4;
  --pink-deep: #e8a0ba;
  --blue:      #b8d8f0;
  --blue-deep: #8ab8e0;
  --white:     #fffaf8;
  --lavender:  #ddd0f0;
  --cream:     #fdf4ee;
  --text:      #3a3340;
  --text-soft: #7a6e82;
  --card-bg:   rgba(255,250,248,0.85);
  --shadow:    0 8px 40px rgba(180,140,160,0.13);
  --shadow-sm: 0 3px 16px rgba(180,140,160,0.10);
  --radius:    18px;
  --radius-sm: 10px;
  --trans: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ─────────────────────────────────────────
   CUSTOM CURSOR
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* hide default cursor site-wide */
  cursor: none !important;
}

/* The small dot that follows exactly */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--pink-deep);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: multiply;
}

/* The larger ring that trails behind */
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--pink-deep);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.25s ease,
              opacity 0.2s ease;
  opacity: 0.6;
}

/* ── Hover states ── */
/* When hovering clickable elements, grow the ring & fill a soft tint */
body.cursor-hover #cursor-dot {
  width: 12px; height: 12px;
  background: var(--pink-deep);
}

body.cursor-hover #cursor-ring {
  width: 48px; height: 48px;
  border-color: var(--pink-deep);
  background: rgba(245,194,212,0.12);
  opacity: 1;
}

/* When clicking, briefly squish the dot */
body.cursor-click #cursor-dot {
  width: 6px; height: 6px;
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--pink-deep); border-radius: 99px; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

section { padding: 100px 24px; }

.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   BACKGROUND BLOBS
───────────────────────────────────────── */
.blob-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 {
  width: 520px; height: 520px;
  background: var(--pink);
  top: -120px; left: -120px;
  animation-duration: 22s;
}
.blob-2 {
  width: 420px; height: 420px;
  background: var(--blue);
  top: 30%; right: -100px;
  animation-duration: 18s;
  animation-delay: -6s;
}
.blob-3 {
  width: 360px; height: 360px;
  background: var(--lavender);
  bottom: 10%; left: 20%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255,250,248,0.75);
  border-bottom: 1px solid rgba(245,194,212,0.2);
  transition: var(--trans);
}

nav.scrolled {
  box-shadow: 0 2px 24px rgba(180,140,160,0.12);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-logo span { color: var(--pink-deep); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  border-radius: 99px;
  background: var(--pink-deep);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  border-radius: 99px;
  background: var(--text);
  transition: var(--trans);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-text { animation: fadeUp 0.9s ease both; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink-deep);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}

.hero-name em {
  font-style: italic;
  color: var(--pink-deep);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-soft);
  margin-bottom: 32px;
  margin-top: 10px;
  line-height: 1.5;
}

.hero-tagline strong { color: var(--text); font-weight: 600; }

.hero-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid rgba(245,194,212,0.4);
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.hero-age-badge .heart { color: var(--pink-deep); }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--trans);
  border: none;
}

.btn-primary {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: 0 4px 18px rgba(232,160,186,0.4);
}

.btn-primary:hover {
  background: #d88aaa;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,160,186,0.5);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1.5px solid rgba(245,194,212,0.5);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Hero photo ── */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  animation: fadeUp 1.1s ease both;
}

.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  border: 2px dashed rgba(245,194,212,0.5);
  animation: spin 20s linear infinite;
  pointer-events: none;
}

.hero-photo-ring-2 {
  inset: -24px;
  border-color: rgba(184,216,240,0.35);
  animation-duration: 28s;
  animation-direction: reverse;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 15%;
  box-shadow: 0 16px 60px rgba(180,140,160,0.35);
  border: 4px solid rgba(255,250,248,0.9);
  display: block;
}

.orb-pride {
  position: absolute;
  bottom: 12px; right: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.orb-pride span {
  display: block;
  width: 22px; height: 4px;
  border-radius: 99px;
}

@keyframes spin { to { transform: rotate(360deg); } }

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

/* ─────────────────────────────────────────
   TRANS FLAG STRIPE ACCENT
───────────────────────────────────────── */
.pride-stripe {
  display: flex;
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  width: 80px;
  margin-bottom: 24px;
}

.pride-stripe span { flex: 1; }

/* ─────────────────────────────────────────
   SECTION LABELS
───────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--pink-deep); }

.section-sub {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
#about { background: transparent; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid rgba(245,194,212,0.25);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--text);
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.about-card p + p { margin-top: 12px; }

.about-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(245,194,212,0.2) 0%, rgba(184,216,240,0.2) 100%);
  border: 1px solid rgba(245,194,212,0.3);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.about-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--pink), var(--white), var(--blue));
}

.about-highlight p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  padding-left: 20px;
}

/* ─────────────────────────────────────────
   SKILLS
───────────────────────────────────────── */
#skills { background: var(--cream); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.skill-category {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(245,194,212,0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.skill-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.skill-icon-wrap.pink  { background: rgba(245,194,212,0.35); }
.skill-icon-wrap.blue  { background: rgba(184,216,240,0.35); }

.skill-category-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.skill-pct {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 500;
}

.skill-bar-track {
  height: 6px;
  background: rgba(200,180,190,0.2);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.skill-bar-fill.pink-bar { background: linear-gradient(90deg, var(--pink), var(--pink-deep)); }
.skill-bar-fill.blue-bar { background: linear-gradient(90deg, var(--blue), var(--blue-deep)); }

.soft-skills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1px solid rgba(245,194,212,0.3);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.soft-tag:hover {
  background: rgba(245,194,212,0.2);
  border-color: var(--pink-deep);
  color: var(--text);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   PROJECTS
───────────────────────────────────────── */
#projects { background: transparent; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid rgba(245,194,212,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card:hover .project-arrow { transform: translate(3px, -3px); }

.project-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-banner-flux  { background: linear-gradient(135deg, #b8d8f0 0%, #d0c4f8 100%); }
.project-banner-voxel { background: linear-gradient(135deg, #c4eac4 0%, #a8d8b8 100%); }

.project-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(255,250,248,0.4));
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(200,180,190,0.15);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.75;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(245,194,212,0.2);
}

.project-techs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(200,180,190,0.15);
  border-radius: 6px;
  padding: 2px 8px;
}

.project-arrow {
  font-size: 1.2rem;
  color: var(--pink-deep);
  transition: transform 0.3s ease;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact { background: var(--cream); }

.contact-card {
  background: var(--card-bg);
  border: 1px solid rgba(245,194,212,0.25);
  border-radius: var(--radius);
  padding: 56px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(245,194,212,0.15);
}

.contact-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(184,216,240,0.15);
}

.contact-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--text-soft);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--card-bg);
  border: 1.5px solid rgba(245,194,212,0.4);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}

.contact-link:hover {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(232,160,186,0.4);
}

.contact-link svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  padding: 28px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  border-top: 1px solid rgba(245,194,212,0.2);
}

footer a { color: var(--pink-deep); transition: opacity 0.2s; }
footer a:hover { opacity: 0.7; }

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,250,248,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }

  .hamburger { display: flex; z-index: 100; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-photo      { width: 160px; height: 160px; }
  .hero-photo-wrap { margin: 0 auto; }
  .hero-cta        { justify-content: center; }
  .pride-stripe    { margin: 0 auto 24px; }

  .about-grid  { grid-template-columns: 1fr; }
  .about-highlight { grid-column: 1; }

  .skills-grid { grid-template-columns: 1fr; }
  .soft-skills { grid-column: 1; }

  .contact-card { padding: 36px 24px; }

  section { padding: 70px 20px; }

  /* On touch/mobile, show default cursor */
  #cursor-dot, #cursor-ring { display: none; }
  *, *::before, *::after { cursor: auto !important; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 3rem; }
  .contact-links { flex-direction: column; align-items: center; }
}