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

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

:root {
  --blue: #4CC9F0;
  --blue-dark: #4361EE;
  --purple: #9B5DE5;
  --purple-dark: #7209B7;
  --pink: #F15BB5;
  --pink-light: #FF9ECC;
  --white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0527 0%, #0a0f52 50%, #1a0533 100%);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* ── Kibble background ── */
.kibble-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.kibble {
  position: absolute;
  border-radius: 45% 55% 55% 45% / 60% 60% 40% 40%;
  animation: float-up linear infinite;
  opacity: 0;
  top: 100%;
}

.kibble-emoji {
  position: absolute;
  animation: float-up linear infinite;
  opacity: 0;
  top: 100%;
  line-height: 1;
}

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.55; }
  50% {
    transform: translateY(-55vh) translateX(30px) rotate(360deg);
  }
  92% { opacity: 0.55; }
  100% {
    transform: translateY(-115vh) translateX(50px) rotate(720deg);
    opacity: 0;
  }
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10, 4, 30, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* ── Main layout ── */
main {
  position: relative;
  z-index: 1;
  padding-top: 76px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 600;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Cats grid ── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* ── Cat card ── */
.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.cat-photo-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}

.neige-bg {
  background: linear-gradient(135deg, #102550, #4361EE, #9B5DE5);
}

.beige-bg {
  background: linear-gradient(135deg, #4a0d3a, #F15BB5, #FF9ECC);
}

.cat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.cat-card-info {
  padding: 1.5rem;
  text-align: center;
}

.cat-card-info h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.cat-card-info p {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border-radius: 2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white;
}

.btn-pink {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #075e54, #25D366);
  color: white;
}

.btn-email {
  background: linear-gradient(135deg, var(--blue-dark), var(--purple));
  color: white;
}

.btn-sms {
  background: linear-gradient(135deg, #0070c9, #34aadc);
  color: white;
}

.btn-back {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
}

.btn-back:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* ── Cat Profile Page ── */
.profile-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

.profile-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 91, 181, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(241, 91, 181, 0); }
}

.profile-title {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 900;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.profile-photo-wrapper {
  width: min(280px, 78vw);
  height: min(280px, 78vw);
  margin: 0 auto 2rem;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.profile-photo.neige-face {
  object-position: 22% 28%;
}

.profile-photo.beige-face {
  object-position: center 18%;
}

/* ── Cards (profile pages) ── */
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 1.75rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

.info-card h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.contact-detail:last-of-type {
  border-bottom: none;
}

.contact-detail strong {
  color: white;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.25s;
}

.back-link:hover {
  color: white;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .nav-logo { font-size: 1.1rem; }
  .nav-links a { font-size: 0.85rem; padding: 0.25rem 0.6rem; }
  .hero { padding: 3rem 1.5rem 1.5rem; }
  .cats-grid { padding: 0 1.2rem; gap: 1.2rem; }
  .profile-container { padding: 1.5rem 1.2rem 4rem; }
}
