/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #fdf6f0;
  color: #333;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Fredoka One', cursive;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #ff8c42;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.25);
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
  background: linear-gradient(135deg, #ffe5d4 0%, #ffd4ba 100%);
  text-align: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #d35400;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.hero-cat {
  font-size: 10rem;
  animation: float 3s ease-in-out infinite;
}

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

.btn-primary {
  background: #ff8c42;
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,140,66,0.4);
}

.btn-secondary {
  background: #6c5ce7;
  color: #fff;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108,92,231,0.4);
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 4rem 2rem;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2.5rem;
  color: #d35400;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.cat-card .emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.5rem;
}

.cat-card .name {
  font-weight: 700;
  color: #555;
  font-size: 1.1rem;
}

/* ===== FACTS ===== */
.facts-section {
  padding: 4rem 2rem;
  text-align: center;
  background: #fff5f0;
}

.facts-section h2 {
  font-size: 2.5rem;
  color: #d35400;
  margin-bottom: 2rem;
}

.facts-container {
  max-width: 700px;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fact-item {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.7;
}

.fact-item .fact-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== PURR GENERATOR ===== */
.purr-section {
  padding: 4rem 2rem;
  text-align: center;
}

.purr-section h2 {
  font-size: 2.5rem;
  color: #d35400;
  margin-bottom: 2rem;
}

.purr-box {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cat-avatar {
  font-size: 6rem;
  cursor: pointer;
  transition: transform 0.2s;
  user-select: none;
  display: inline-block;
}

.cat-avatar:hover {
  transform: scale(1.1);
}

.cat-avatar.purring {
  animation: purrShake 0.15s linear infinite;
}

@keyframes purrShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(1px, 1px) rotate(1deg); }
  50% { transform: translate(-1px, -1px) rotate(-1deg); }
  75% { transform: translate(-1px, 1px) rotate(1deg); }
  100% { transform: translate(1px, -1px) rotate(-1deg); }
}

.purr-bar-container {
  width: 100%;
  height: 12px;
  background: #eee;
  border-radius: 10px;
  margin: 1.5rem 0 1rem;
  overflow: hidden;
}

.purr-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff8c42, #ff6b6b);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.purr-status {
  color: #888;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: #ff8c42;
  color: #fff;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-cat {
    font-size: 6rem;
  }
  .nav-links {
    gap: 0.5rem;
  }
  .nav-links a {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
}
