@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --pink:       #B0E0E6;
  --pink-dark:  #87CEEB;
  --blue:       #87CEEB;
  --blue-dark:  #5FB6D1;
  --lavender:   #ADD8E6;
  --yellow:     #FFF0A0;
  --mint:       #B5EAD7;
  --peach:      #FFDAC1;
  --white:      #FFFFFF;
  --cream:      #F8FBFF;

  --bg:         #F0F8FF;
  --bg2:        #E0F2F7;
  --surface:    rgba(255,255,255,0.72);
  --text:       #3D2B4A;
  --text-muted: #7A6B8A;

  --shadow-soft: 0 8px 32px rgba(135, 206, 235, 0.15);
  --shadow-card: 0 4px 24px rgba(100, 180, 220, 0.18);
  --shadow-hover: 0 12px 40px rgba(100, 180, 220, 0.28);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --font-display: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

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

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(240, 248, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(135, 206, 235, 0.25);
  transition: var(--transition-fast);
}

.navbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 240, 160, 0.3);
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pink-dark);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--lavender)) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(135, 206, 235, 0.35);
  transition: var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(135, 206, 235, 0.45) !important;
}

.nav-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.6) saturate(1.2);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(210, 235, 248, 0.82) 0%,
    rgba(200, 240, 255, 0.80) 50%,
    rgba(220, 240, 255, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  gap: 20px;
}

.hero-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #FFD700, var(--yellow), #FFF8DC);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3), 0 12px 40px rgba(255, 215, 0, 0.25);
  animation: avatarFloat 4s ease-in-out infinite;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(1deg); }
}

.status-badge {
  background: rgba(255,255,255,0.9);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 50px;
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(135, 206, 235, 0); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: var(--text);
  text-shadow: 0 2px 12px rgba(255,255,255,0.8), 0 1px 3px rgba(0,0,0,0.06);
  letter-spacing: 1px;
}

.title-sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-muted);
  text-shadow: 0 1px 6px rgba(255,255,255,0.7);
  letter-spacing: 3px;
}

.hero-bio {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text);
  text-shadow: none;
  line-height: 1.7;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(195, 177, 225, 0.4);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(195, 177, 225, 0.5);
  color: var(--text);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  text-shadow: none;
  transition: var(--transition);
}

.tag:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-3px) scale(1.05);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4FA8D1, #87CEEB);
  color: white;
  box-shadow: 0 6px 24px rgba(135, 206, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(135, 206, 235, 0.55);
}

.btn-secondary {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border: 2px solid rgba(195, 177, 225, 0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-4px) scale(1.04);
  border-color: var(--lavender);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  font-size: 1.4rem;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.section-title span {
  display: inline-block;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50%       { transform: rotate(5deg) scale(1.15); }
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.36, 0.64, 1);
}

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

.about {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
  z-index: 2;
}

.about::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.about-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 179, 209, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--pink);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
  animation: iconBob 3s ease-in-out infinite;
}

.about-card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.about-card:nth-child(3) .card-icon { animation-delay: 1s; }
.about-card:nth-child(4) .card-icon { animation-delay: 1.5s; }

@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}

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

.work {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  position: relative;
  z-index: 2;
}

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

.work-card {
  perspective: 1000px;
  height: 260px;
  cursor: pointer;
}

.work-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--radius-lg);
}

.work-card:hover .work-card-inner,
.work-card.flipped .work-card-inner {
  transform: rotateY(180deg);
}

.work-card-front,
.work-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  gap: 12px;
}

.work-card-front {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(195, 177, 225, 0.35);
  box-shadow: var(--shadow-card);
}

.work-card-back {
  background: linear-gradient(135deg, var(--lavender), var(--blue));
  transform: rotateY(180deg);
  box-shadow: var(--shadow-hover);
}

.work-icon {
  font-size: 3rem;
  display: block;
}

.work-card-front h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}

.work-card-front p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.work-card-back h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
}

.work-card-back p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.btn-small {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.55);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  transition: var(--transition);
  margin-top: 6px;
}

.btn-small:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.06);
}

.links {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
  z-index: 2;
}

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

.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 179, 209, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--pink);
}

.link-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.link-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.link-info strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.link-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.link-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
  color: var(--pink-dark);
}

.age-notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(45, 90, 120, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 12px 20px 12px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
  border: 1.5px solid rgba(135, 206, 235, 0.3);
}

.age-notice.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(80px);
  pointer-events: none;
}

.age-notice button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.age-notice button:hover {
  background: rgba(255,255,255,0.3);
}

.footer {
  background: linear-gradient(135deg, #1e3a5f, #2c5364);
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
  border-top: 1.5px solid rgba(135, 206, 235, 0.2);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 240, 160, 0.2);
  margin-bottom: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: white;
}

.footer-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  margin-top: 8px;
}

.footer-paws {
  margin-top: 24px;
  font-size: 1.2rem;
  letter-spacing: 8px;
  opacity: 0.6;
  color: white;
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(240, 248, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1.5px solid rgba(135, 206, 235, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 999;
  }

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

  .hamburger {
    display: block;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .avatar-ring {
    width: 130px;
    height: 130px;
  }

  .title-main {
    font-size: 2.6rem;
  }

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

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

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

  .age-notice {
    white-space: normal;
    text-align: center;
    border-radius: var(--radius-md);
    max-width: 90vw;
  }
}

@media (max-width: 480px) {
  .about-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}
