/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink:    #ffd6e7;
  --peach:   #ffe5cc;
  --mint:    #c8f0e0;
  --lavender:#e0d4f7;
  --sky:     #c8e6ff;
  --text:    #5a4a6a;
  --text-light: #9a88aa;
  --white:   #fff;
  --radius:  20px;
  --shadow:  0 8px 24px rgba(150, 120, 170, 0.18);
}

body {
  font-family: 'Nunito', 'Apple SD Gothic Neo', sans-serif;
  background: linear-gradient(135deg, #fff0f8 0%, #f0f8ff 50%, #f8fff0 100%);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* ─── Floating Decorations ──────────────────────────────────── */
.deco {
  position: fixed;
  font-size: 1.8rem;
  pointer-events: none;
  user-select: none;
  animation: float 6s ease-in-out infinite;
  opacity: 0.5;
  z-index: 0;
}

.deco1 { top: 8%;  left: 5%;  animation-delay: 0s;    font-size: 2rem; }
.deco2 { top: 15%; right: 8%; animation-delay: 1s;    font-size: 1.5rem; }
.deco3 { top: 55%; left: 4%;  animation-delay: 2s;    font-size: 1.6rem; }
.deco4 { top: 70%; right: 5%; animation-delay: 0.5s;  font-size: 1.8rem; }
.deco5 { top: 35%; right: 3%; animation-delay: 3s;    font-size: 1.4rem; }
.deco6 { top: 85%; left: 7%;  animation-delay: 1.5s;  font-size: 1.7rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(8deg); }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 40px;
  gap: 56px;
}

/* ─── Header ─────────────────────────────────────────────────── */
.hero__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__greeting {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #e88fb7 0%, #a77fda 60%, #7fbde8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ─── Cards Grid ─────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 820px;
}

/* ─── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  box-shadow: var(--shadow);
  cursor: default;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  border: 2.5px solid transparent;
  outline: none;
  position: relative;
  overflow: hidden;
}

.card--work {
  grid-column: 1 / -1;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: calc(var(--radius) - 2px);
}

.card--work { border-color: #ffc6d8; }
.card--work::before { background: linear-gradient(145deg, #fff0f5, #ffd6e7); }

.card--like { border-color: #f4bbee; }
.card--like::before { background: linear-gradient(145deg, #fff0ff, #f8d4f8); }

.card--link { border-color: #b9d9ff; }
.card--link::before { background: linear-gradient(145deg, #f0f6ff, #d4e8ff); }

/* Hover / Focus states */
.card:hover,
.card:focus-visible {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 40px rgba(150, 120, 170, 0.26);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card__icon {
  font-size: 2.8rem;
  line-height: 1;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 1;
}

.card__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.card:hover .card__icon,
.card:focus-visible .card__icon {
  transform: scale(1.2) rotate(-6deg);
}

.card__label {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.card--work  .card__label { color: #d46090; }
.card--like  .card__label { color: #b05cb0; }
.card--link  .card__label { color: #4880c8; }

.card__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 600;
  text-align: left;
  position: relative;
  z-index: 1;
}

/* ─── Category items ────────────────────────────────────────── */
.item-list {
  display: grid;
  gap: 10px;
  list-style: none;
  position: relative;
  z-index: 1;
}

.card--work .item-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid rgba(166, 135, 180, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.item--link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.item--link:hover,
.item--link:focus-visible {
  transform: translateY(-2px);
  background: var(--white);
  border-color: rgba(190, 100, 145, 0.38);
  outline: none;
}

.item__title,
.item__meta {
  display: block;
}

.item__title {
  font-size: 0.98rem;
  line-height: 1.35;
}

.item__meta {
  margin-top: 5px;
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.item__arrow {
  flex: 0 0 auto;
  color: #c45789;
  font-size: 1.15rem;
  font-weight: 800;
}

.item__status {
  flex: 0 0 auto;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.card__badge {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  position: relative;
  z-index: 1;
}

.card--work  .card__badge { background: #ffd6e7; color: #c04070; }
.card--like  .card__badge { background: #f4d0f4; color: #8040a0; }
.card--link  .card__badge { background: #d4e8ff; color: #2060a8; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 40px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .card--work .item-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 16px 32px;
    gap: 40px;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .card--work {
    grid-column: auto;
  }

  .card {
    padding: 32px 20px 24px;
  }
}
