/* 🌸 GENERAL STYLES */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* full screen hero */
  width: 100%;
  text-align: center;
  color: #e681c4;
  background-image: url('posty_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

/* Soft gradient overlay for dreamy pink effect */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 182, 193, 0.1),
    rgba(255, 255, 255, 0.6)
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  backdrop-filter: blur(2px); /* subtle frosted look */
}

/* 🌸 LOGO */
.logo {
  width: 17rem;
  max-width: 80%;
  margin: 1rem 0;
  animation: float 6s ease-in-out infinite;
}

/* Floating animation for logo */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-0.625rem); } /* 10px / 16 */
  100% { transform: translateY(0); }
}

/* 🌸 TEXT */
h1, .logo-text {
  font-family: 'Chewy', cursive;
  font-size: 3.2rem; /* 51.2px / 16 */
  color: #EF92D2;
  letter-spacing: 0.0625rem; /* 1px / 16 */
}

.hero h1 {
  font-family: 'Chewy', cursive;
  font-size: 2.8rem;
  color: #EF92D2;
  margin-bottom: 0.5rem;
}
.subtitle, h2, p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.hero .subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
  color: #6b3f5a;
}

/* Scroll arrow animation */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  width: 50px;
  opacity: 0.8;
  animation: bounce 1.5s infinite ease-in-out;
  z-index: 1;
}

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

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

/* 🌸 MAIN CONTENT */
.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.25rem; /* 40px 20px / 16 */
  background-color: #fde7f5; /* soft pastel pink matching brand colours */
  border-radius: 1rem; /* optional: soft corners for style */
}

.main-image {
  max-width: 80%;
  height: auto;
  margin: 1.25rem 0; /* 20px / 16 */
  border-radius: 1.25rem; /* 20px / 16 */
  box-shadow: 0 0.1875rem 0.5rem rgba(0,0,0,0.05); /* 3px 8px / 16 */
}

/* 🌸 BUTTONS */
.buttons {
  margin-top: 1.25rem; /* 20px / 16 */
}

button {
  background-color: #EF92D2;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px; /* smaller size */
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s;
  margin: 6px;
}

button:hover {
  background-color: #fde7f5;
  color: #EF92D2;
  border-color: #EF92D2;
  transform: scale(1.05);
}

/* Button group layout */
.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Align buttons side by side */
.button-row {
  display: flex;
  gap: 1rem; /* space between buttons */
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap; /* keeps it responsive on smaller screens */
}

/* Optional: make buttons consistent size */
.button-row button {
  min-width: 150px;
}

.button-row button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(239, 146, 210, 0.3);
}

/* 🌸 FOOTER */
footer {
  font-size: 0.5625rem; /* 9px / 16 */
  color: #666;
  margin-top: 3.75rem; /* 60px / 16 */
  padding-bottom: 1.25rem; /* 20px / 16 */
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero .subtitle {
    font-size: 1.1rem; /* slightly smaller on tablets */
  }
}

@media (max-width: 480px) {
  .hero .subtitle {
    font-size: 0.95rem; /* smaller on phones */
    margin-top: 0.5rem;
    padding: 0 10px;    /* prevents touching edges */
  }
}

/* Fade-in animation for cats and facts */
#catImage, #catFact {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#catImage.visible, #catFact.visible {
  opacity: 1;
}

/* Optional: style the fact box */
#catFact {
  margin-top: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #6b3f5a;
  background-color: #fde7f5;
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-block;
}

/* Floating heart animation */
#heart-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 999; /* ensures it's above the cat image */
}

.heart {
  position: absolute;
  font-size: 1.5rem;
  animation: floatUp 2s ease-in-out forwards;
  opacity: 0.9;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(1.5);
    opacity: 0;
  }
}

/* === FLOATING HEARTS BEHIND ABOUT SECTION === */
.main-content.about {
  position: relative;
  overflow: hidden;
  z-index: 1; /* keeps text above hearts */
}

.bg-heart {
  position: absolute;
  color: rgba(255, 182, 193, 0.25);
  pointer-events: none;
  z-index: 0; /* behind text */
  opacity: 0;
  animation: floatDreamy 8s ease-in-out infinite;
}

@keyframes floatDreamy {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40px) scale(1.1) rotate(10deg);
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-80px) scale(1) rotate(0deg);
    opacity: 0;
  }
}
