/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-pink);
  color: var(--white);
  box-shadow: var(--shadow-pink);
}

.btn--primary:hover { box-shadow: 0 12px 40px rgba(255,107,157,0.55); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.btn--teal {
  background: var(--grad-teal);
  color: var(--dark);
  box-shadow: var(--shadow-teal);
}

.btn--teal:hover { box-shadow: 0 12px 40px rgba(45,212,191,0.5); }

/* ─── Kawaii Card ────────────────────────────────────────── */
.card {
  background: var(--card-white);
  border: 1.5px solid rgba(255,107,157,0.15);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-pink);
  border-radius: var(--r-full);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ─── Glass card (dark bg) ───────────────────────────────── */
.glass-card {
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  backdrop-filter: var(--glass-blur);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(168,85,247,0.3);
}

/* ─── Service card ───────────────────────────────────────── */
.service-card {
  background: var(--card-white);
  border: 1.5px solid rgba(255,107,157,0.12);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base),
              border-color var(--dur-base);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-300);
}

.service-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto var(--sp-5);
  background: var(--grad-pink);
  box-shadow: var(--shadow-pink);
}

.service-icon--teal  { background: var(--grad-teal); box-shadow: var(--shadow-teal); }
.service-icon--purple { background: linear-gradient(135deg,#C084FC,#9333EA); box-shadow: 0 8px 24px rgba(168,85,247,.35); }

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--sp-3);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── Portfolio card ─────────────────────────────────────── */
.work-card {
  min-width: 340px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--card-white);
  border: 1.5px solid rgba(255,107,157,0.15);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base);
  cursor: none;
  flex-shrink: 0;
}

.work-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.work-card__img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}

.work-card__img-placeholder {
  width: 100%; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.work-card__body {
  padding: var(--sp-5) var(--sp-6);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.tag {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag--pink   { background: var(--pink-100);   color: var(--pink-700); }
.tag--teal   { background: var(--teal-100);   color: var(--teal-600); }
.tag--purple { background: var(--purple-100); color: var(--purple-600); }

.work-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--sp-2);
}

.work-card__desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Skill pill ─────────────────────────────────────────── */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--card-white);
  border: 1.5px solid rgba(255,107,157,0.2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast),
              border-color var(--dur-fast);
  color: var(--text-dark);
}

.skill-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pink);
  border-color: var(--pink-300);
}

.skill-pill__icon { font-size: 18px; }

/* ─── Pricing card ───────────────────────────────────────── */
.pricing-card {
  background: var(--card-white);
  border: 2px solid rgba(255,107,157,0.15);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base);
  overflow: hidden;
}

.pricing-card.featured {
  background: var(--grad-hero);
  border-color: var(--purple-300);
  color: var(--white);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  padding: var(--sp-1) var(--sp-4);
  background: var(--grad-pink);
  color: white;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-500);
  margin-bottom: var(--sp-3);
}

.pricing-card.featured .pricing-tier { color: var(--pink-300); }

.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--sp-2);
  color: var(--text-dark);
}

.pricing-card.featured .pricing-price { color: var(--white); }

.pricing-price sup { font-size: 0.45em; vertical-align: super; }
.pricing-per { font-size: var(--text-sm); color: var(--text-light); }
.pricing-card.featured .pricing-per { color: rgba(255,255,255,0.6); }

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.75); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-mid);
}

.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.85); }

.pricing-feature::before {
  content: '✦';
  color: var(--pink-500);
  font-size: 12px;
  flex-shrink: 0;
}

/* ─── Timeline ───────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--grad-pink);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-6);
  align-items: center;
  margin-bottom: var(--sp-8);
}

.timeline-item:nth-child(even) .timeline-content { grid-column: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-year    { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-empty   { grid-column: 1; }

.timeline-item:nth-child(odd) .timeline-content  { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-year     { grid-column: 2; }
.timeline-item:nth-child(odd) .timeline-empty    { grid-column: 3; }

.timeline-year {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-pink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 900;
  box-shadow: var(--shadow-pink);
  flex-shrink: 0;
}

.timeline-content {
  background: var(--card-white);
  border: 1.5px solid rgba(255,107,157,0.15);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* ─── Portfolio modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,10,46,0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--r-2xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--sp-10);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--dur-base) var(--ease-spring);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pink-50);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--pink-600);
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.modal-close:hover {
  background: var(--pink-100);
  transform: scale(1.1);
}

/* ─── Contact form ───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-group label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--sp-4) var(--sp-5);
  border: 2px solid rgba(255,107,157,0.2);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  background: var(--card-white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(255,107,157,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: var(--text-sm);
  color: #E53E3E;
  display: none;
}

/* ─── Stat counter ───────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: var(--sp-6);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  background: var(--grad-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-mid);
  font-weight: 600;
  margin-top: var(--sp-2);
}

/* ─── Portfolio filter ───────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-10);
}

.filter-btn {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--card-white);
  border: 2px solid rgba(255,107,157,0.2);
  color: var(--text-mid);
  transition: all var(--dur-fast) var(--ease-spring);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--grad-pink);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-pink);
}

/* ─── Service card BEM extensions ───────────────────────── */
.service-card--teal   .service-icon { background: var(--grad-teal);   box-shadow: var(--shadow-teal); }
.service-card--purple .service-icon { background: linear-gradient(135deg,#C084FC,#9333EA); box-shadow: 0 8px 24px rgba(168,85,247,.35); }

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--sp-3);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-mid);
  text-align: left;
}

.service-card__list li::before {
  content: '✦ ';
  color: var(--pink-500);
  font-size: 10px;
}

/* ─── Work card image wrap + positioned tag ──────────────── */
.work-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.work-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

/* ─── Pricing card BEM extensions ────────────────────────── */
.pricing-card--featured {
  background: var(--grad-hero);
  border-color: var(--purple-300);
  color: var(--white);
}

.pricing-card--featured .pricing-card__badge  { color: var(--pink-300); }
.pricing-card--featured .pricing-card__price  { color: var(--white); }
.pricing-card--featured .pricing-card__period { color: rgba(255,255,255,0.6); }
.pricing-card--featured .pricing-card__features li { color: rgba(255,255,255,0.85); }

.pricing-card__popular {
  position: absolute;
  top: var(--sp-5); right: var(--sp-5);
  padding: var(--sp-1) var(--sp-4);
  background: var(--grad-pink);
  color: white;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pricing-card__badge {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-500);
  margin-bottom: var(--sp-3);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--sp-1);
  color: var(--text-dark);
}

.pricing-card__currency { font-size: 0.4em; vertical-align: super; }

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--sp-6);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--text-mid);
}

/* ─── Timeline tags row ──────────────────────────────────── */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.timeline-content h3 {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--sp-2);
}

.timeline-content p {
  font-size: var(--text-sm);
  color: var(--text-mid);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: var(--sp-2);
}

/* ─── Modal content elements ─────────────────────────────── */
.modal__close {
  position: absolute;
  top: var(--sp-5); right: var(--sp-5);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pink-50);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--pink-600);
  transition: background var(--dur-fast), transform var(--dur-fast);
}

.modal__close:hover { background: var(--pink-100); transform: scale(1.1); }

.modal__img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-6);
}

.modal__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: var(--sp-3);
}

.modal__desc {
  font-size: var(--text-base);
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.modal__tools {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ─── Form row + status message ──────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-msg,
.form-status {
  font-size: var(--text-sm);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  margin-top: var(--sp-4);
  display: none;
}

.form-msg.is-success,
.form-status.is-success { display: block; background: var(--teal-100); color: var(--teal-600); }

.form-msg.is-error,
.form-status.is-error   { display: block; background: var(--pink-100); color: var(--pink-700); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Social link ────────────────────────────────────────── */
.social-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--card-white);
  border: 1.5px solid rgba(255,107,157,0.15);
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-dark);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast),
              border-color var(--dur-fast);
}

.social-link:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-pink);
  border-color: var(--pink-300);
  color: var(--pink-600);
}

.social-link__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
