/* ------------------------------
   🌸 Muted Rose & Slate Theme
--------------------------------*/

:root {
  --bg-color-start: #f8eae9;
  --bg-color-end: #fdecef;
  --text-color: #2b2b2b;
  --card-bg: #ffffff;
  --primary-color: #e5989b;
  --primary-hover: #b5838d;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --gap: 20px;
  --max-width: 1200px;
}

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

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(160deg, var(--bg-color-start) 0%, var(--bg-color-end) 100%);
  color: var(--text-color);
  margin: 40px;
  line-height: 1.6;
}

/* -------------------------------------
   🌸 Vertical Sticky Social Sidebar
-------------------------------------- */
.social-header {
  position: fixed;
  top: 50%;
  left: 32px;
  transform: translateY(-50%);
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(247, 238, 242, 0.85),
    rgba(245, 242, 248, 0.85)
  );
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 20px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Label */
.social-container h1 {
  writing-mode: sideways-lr;
  transform: rotate(180deg);
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* Social links */
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--card-bg);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 2px 6px var(--shadow-light);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  box-shadow: 0 6px 12px var(--shadow-dark);
  transform: translateY(-2px);
}

.social-links img {
  width: 22px;
  height: 22px;
  filter: invert(35%) sepia(12%) saturate(350%) hue-rotate(320deg) brightness(95%) contrast(90%);
  transition: filter 0.3s ease;
}

.social-links a:hover img {
  filter: brightness(0) invert(1);
}

/* Animation */
.social-links a {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.social-links a:nth-child(1) { animation-delay: 0.1s; }
.social-links a:nth-child(2) { animation-delay: 0.2s; }
.social-links a:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* -------------------------------------
   🌸 Scroll Down Indicator (Right Side)
-------------------------------------- */
.scroll-indicator {
  position: fixed;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(247, 238, 242, 0.85),
    rgba(245, 242, 248, 0.85)
  );
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 20px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: default;
  animation: fadeInRight 0.8s ease forwards;
}

/* Text (vertical writing) */
.scroll-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Animated arrow */
.scroll-arrow {
  width: 18px;
  height: 28px;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.4s ease-in-out infinite;
}

/* Animations */
@keyframes scrollDown {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 18px); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translate(20px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}


/* -------------------------------------
   🌸 Main Content Styles */

h1, h2 {
  text-align: center;
  color: var(--text-color);
}
h1 { margin-bottom: 10px; font-size: 2rem; }
h2 { margin-bottom: 40px; font-weight: 400; }

a {
  text-decoration: none;
  color: var(--primary-hover);
  transition: color 0.3s ease;
}
a:hover { color: var(--primary-color); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 10px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px var(--shadow-dark);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover img { transform: scale(1.05); }

.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h2 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 12px;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.buttons a {
  flex: 1;
  text-align: center;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 0;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.buttons a:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  body { margin: 20px; }

  h1 { font-size: 1.6rem; }
  .card img { height: 140px; }

  .social-header {
    top: auto;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 10px 18px;
    border-radius: 18px;
  }

  .social-container h1 {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 0;
    margin-right: 12px;
    font-size: 0.95rem;
  }

  .social-links {
    flex-direction: row;
    gap: 12px;
  }

  .scroll-indicator { display: none; }
}
