/* ============================================
   COMPONENTS
   ============================================ */

/* --- Page header (like Mina's project pages) --- */
.page-header {
  padding-block: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}
.page-header__title {
  font-family: var(--font-mono);
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-block-end: var(--space-xs);
}
.page-header__desc {
  font-size: var(--step-1);
  color: var(--text-mid);
  max-width: 50ch;
}

/* --- Project list (Mina-inspired marquee hover) --- */
.project-list {
  list-style: none;
  border-top: 1px solid var(--glass-border);
}

.project-item {
  position: relative;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.project-item__link {
  display: block;
  padding: var(--space-m) var(--gutter);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
  position: relative;
  z-index: 2;
  transition: color var(--transition-base);
}
.project-item__link:hover {
  color: var(--bg);
}

.project-item__element {
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-inline-start: var(--space-xs);
}

/* Marquee hover effect */
.project-item__marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
  pointer-events: none;
}
.project-item:hover .project-item__marquee {
  opacity: 1;
}

.project-item__marquee-inner {
  display: flex;
  gap: var(--space-l);
  animation: marqueeScroll 8s linear infinite;
  white-space: nowrap;
}
.project-item__marquee-inner span {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--text-faint);
  color: transparent;
}

/* Element-specific hover backgrounds */
.project-item[data-element="air"]:hover    { background: var(--air); }
.project-item[data-element="fire"]:hover   { background: var(--fire); }
.project-item[data-element="earth"]:hover  { background: var(--earth); }
.project-item[data-element="water"]:hover  { background: var(--water); }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-m);
}

/* --- Element badge --- */
.element-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: var(--border-radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.element-badge--air   { color: var(--air); border-color: rgba(196, 181, 245, 0.2); }
.element-badge--fire  { color: var(--fire); border-color: rgba(240, 160, 200, 0.2); }
.element-badge--earth { color: var(--earth); border-color: rgba(126, 220, 170, 0.2); }
.element-badge--water { color: var(--water); border-color: rgba(136, 187, 240, 0.2); }

/* --- Tabs (pill container) --- */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0,0,0,0.15);
  border-radius: var(--border-radius-m);
}
.tab {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius-s);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab:hover {
  color: var(--text);
  background: rgba(126, 220, 170, 0.06);
}
.tab.active {
  color: var(--earth);
  background: rgba(126, 220, 170, 0.12);
  border-color: rgba(126, 220, 170, 0.25);
  box-shadow: 0 0 12px rgba(126, 220, 170, 0.15);
}

/* --- Organic blobs --- */
.organic-blob {
  position: absolute;
  border-radius: 50% 40% 60% 45% / 50% 55% 45% 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  animation: blobMorph 15s ease-in-out infinite alternate;
}
@keyframes blobMorph {
  0%   { border-radius: 50% 40% 60% 45% / 50% 55% 45% 50%; transform: scale(1) rotate(0deg); }
  33%  { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; transform: scale(1.05) rotate(5deg); }
  66%  { border-radius: 55% 45% 50% 50% / 45% 55% 50% 50%; transform: scale(0.97) rotate(-3deg); }
  100% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; transform: scale(1.02) rotate(2deg); }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(126, 220, 170, 0.08);
  background: rgba(10, 14, 8, 0.5);
  padding-block: var(--space-xl);
}
.site-footer__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-l);
}

.footer-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
  margin-block-end: var(--space-2xs);
}
.footer-text {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-links {
  list-style: none;
}
.footer-links a {
  font-size: var(--step--1);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--earth);
}

.footer-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-block-start: var(--space-xs);
}
.footer-dots div {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* --- Hero decorative rings --- */
.hero-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(126, 220, 170, 0.06);
  animation: ringPulse 8s ease-in-out infinite;
}
.hero-ring--lg {
  width: 700px;
  height: 700px;
  border-color: rgba(196, 181, 245, 0.04);
  animation-duration: 12s;
  animation-direction: reverse;
}
.hero-ring--md {
  width: 500px;
  height: 500px;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.5; }
}

/* --- ASCII art container --- */
.ascii-block {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.4;
  white-space: pre;
  overflow-x: auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-l);
  padding: var(--space-m);
  text-align: center;
}

/* --- Quote block (wellness style) --- */
.quote-block {
  background: rgba(30, 40, 20, 0.3);
  padding: var(--space-2xl) var(--space-l);
  position: relative;
  text-align: center;
}
.quote-block::before {
  content: '\201C';
  position: absolute;
  top: var(--space-s);
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(126, 220, 170, 0.12);
  line-height: 1;
  pointer-events: none;
}
.quote-block__text {
  font-size: var(--step-2);
  font-style: italic;
  color: var(--text-mid);
  max-width: 40ch;
  margin-inline: auto;
}

/* --- Bubbles --- */
.bubble-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
