/* ===== Cynthia's Corner - Shared Styles with Animated Background ===== */

/* ==== COLOR PALETTE ==== */
:root {
  --bg-home: #f9f3ef;   /* soft cream pink */
  --bg-blog: #e6f0fa;   /* pastel blue */
  --bg-art: #f4e6fa;    /* lavender */
  --bg-misc: #eaf8ef;   /* mint green */
  --text-main: #4b4b4b; /* neutral gray */
  --accent: #c9b7f2;    /* soft purple accent */
}

/* ==== GENERAL RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  color: var(--text-main);
  text-align: center;
  overflow-x: hidden;
  animation: fadeIn 1s ease;
  position: relative;
}

/* ==== FLOATING PASTEL BACKGROUND ==== */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Use multiple pseudo-elements for variety */
body::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 220, 240, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(220, 255, 240, 0.5) 0%, transparent 70%),
    radial-gradient(circle at 40% 80%, rgba(240, 230, 255, 0.4) 0%, transparent 70%);
  animation: floatBubbles 25s infinite alternate ease-in-out;
}

body::after {
  background:
    radial-gradient(circle at 70% 70%, rgba(255, 245, 220, 0.4) 0%, transparent 70%),
    radial-gradient(circle at 30% 40%, rgba(230, 255, 255, 0.4) 0%, transparent 60%);
  animation: floatBubbles 35s infinite alternate-reverse ease-in-out;
  opacity: 0.8;
}

/* Soft floating animation */
@keyframes floatBubbles {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.05); }
  100% { transform: translate(20px, -20px) scale(1); }
}

/* ==== NAVIGATION ==== */
nav {
  display: flex;
  justify-content: center;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* ==== MAIN CONTENT ==== */
main {
  padding: 4rem 1rem;
  min-height: 80vh;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(0.3px);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==== BLOG POSTS ==== */
article {
  margin: 2rem auto;
  max-width: 600px;
  text-align: left;
  background: rgba(255, 255, 255, 0.85);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
}

/* ==== GALLERY ==== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.gallery img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ==== MISC BOXES ==== */
section.box {
  margin: 2rem auto;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
}

/* ==== FOOTER WITH GRADIENT FADE ==== */
footer {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  font-size: 0.9rem;
  color: #777;
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 40%,
    transparent 100%
  );
  backdrop-filter: blur(3px);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* Optional subtle top fade-in effect for footer */
footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.5)
  );
  z-index: -1;
}


/* ==== ANIMATIONS ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  nav ul { gap: 1rem; }
}
