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

:root {
  --bg: #fff8f0;
  --bg-alt: #fff0e6;
  --surface: #ffffff;
  --text: #2d2a32;
  --text-muted: #6b6570;
  --primary: #ff8fab;
  --primary-dark: #e86b8f;
  --accent: #ffd166;
  --accent-2: #7ec8e3;
  --accent-3: #b8e986;
  --shadow: 0 8px 32px rgba(45, 42, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 42, 50, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(255, 143, 171, 0.25);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: var(--primary);
  top: -80px;
  right: -60px;
}

.shape-2 {
  width: 260px;
  height: 260px;
  background: var(--accent);
  bottom: 20%;
  left: -80px;
  animation-delay: -4s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-2);
  top: 40%;
  right: 10%;
  animation-delay: -8s;
}

.shape-4 {
  width: 180px;
  height: 180px;
  background: var(--accent-3);
  bottom: -40px;
  right: 30%;
  animation-delay: -2s;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 1.25rem 0;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 143, 171, 0.15);
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary-dark);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin-right: -10px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: calc(var(--header-h) + 2rem) 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ffeaa7);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1rem;
}

.hero-age {
  display: inline-block;
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(255, 143, 171, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 143, 171, 0.5);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
}

.avatar-ring {
  position: relative;
  width: min(320px, 78vw);
  height: min(320px, 78vw);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, var(--bg-alt));
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 143, 171, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid white;
  animation: pulse-soft 3s ease-in-out infinite;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-emoji {
  font-size: 7rem;
  line-height: 1;
}

.btn-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.35);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220, 39, 67, 0.45);
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ig-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.ig-link:hover {
  text-decoration: underline;
}

.ig-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ig-profile-pic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.ig-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ig-profile-info strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.ig-profile-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ig-stats {
  font-size: 0.8rem !important;
}

.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.gallery-item a {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

.gallery-item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item a:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-hero-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item .ig-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.gallery-fallback-note {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ig-fallback-tile {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ig-fallback-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-fallback-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  text-decoration: none;
  padding: 1rem;
  text-align: center;
}

.ig-fallback-label {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

.ig-fallback-label strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-ig {
  margin-top: 0.5rem;
}

.footer-ig .ig-link {
  font-size: 0.95rem;
}

.orbit {
  position: absolute;
  font-size: 1.75rem;
  animation: orbit 8s linear infinite;
}

.orbit-1 {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.orbit-2 {
  bottom: 20px;
  right: -10px;
  animation-delay: -2.5s;
}

.orbit-3 {
  bottom: 20px;
  left: -10px;
  animation-delay: -5s;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes orbit {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(5deg); }
  75% { transform: translateY(8px) rotate(-5deg); }
}

.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: max(2rem, calc((100vw - 1100px) / 2));
  padding-right: max(2rem, calc((100vw - 1100px) / 2));
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.section-desc {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-desc code {
  background: rgba(255, 143, 171, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p,
.likes-list,
.info-list {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.likes-list {
  list-style: none;
}

.likes-list li {
  padding: 0.35rem 0;
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  align-items: start;
}

.info-list div:last-child {
  border-bottom: none;
}

.info-list dt {
  font-weight: 700;
  color: var(--text);
}

.info-list dd {
  text-align: right;
  word-break: break-word;
}

.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent-2));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.timeline-card time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.35rem 0 0.5rem;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  margin: 0;
}

.gallery-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-alt), #ffe8f0);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px dashed rgba(255, 143, 171, 0.4);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item figcaption {
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-quote {
  text-align: center;
}

.quote-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  box-shadow: 0 12px 40px rgba(255, 143, 171, 0.35);
}

.quote-card p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  font-style: italic;
}

.quote-card footer {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.fun-facts h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.fact {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
}

.fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.fact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer {
  text-align: center;
  padding: 2.5rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid rgba(255, 143, 171, 0.15);
  position: relative;
  z-index: 1;
}

.footer p {
  font-weight: 600;
}

.footer-sub {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .shape-1 { width: 200px; height: 200px; }
  .shape-2 { width: 160px; height: 160px; }
  .shape-3 { width: 120px; height: 120px; }
  .shape-4 { width: 100px; height: 100px; }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    z-index: 99;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }

  .nav a:active {
    background: var(--bg-alt);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    gap: 2rem;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 1.25rem) 1.25rem 3rem;
  }

  .hero-tagline,
  .hero-age {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .ig-profile-card {
    flex-wrap: wrap;
    padding: 1rem;
    text-align: center;
    justify-content: center;
  }

  .ig-profile-info {
    align-items: center;
    width: 100%;
  }

  .ig-profile-card .btn-sm {
    width: 100%;
    max-width: 200px;
  }

  .hero-visual {
    order: -1;
  }

  .avatar-emoji {
    font-size: 4.5rem;
  }

  .avatar-ring {
    width: min(260px, 72vw);
    height: min(260px, 72vw);
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section-alt {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card:hover {
    transform: none;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .info-list dd {
    text-align: left;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -1.5rem;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .gallery-placeholder {
    font-size: 2.25rem;
  }

  .quote-card {
    padding: 2rem 1.25rem;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fact-num {
    font-size: 1.75rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.1rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shape,
  .avatar,
  .orbit {
    animation: none;
  }
}
