/* =============================================================
   PORTFOLIO — styles.css
   Cherry Blossom × Dark Glass aesthetic
   ============================================================= */

/* ── ComicShannsMono — loaded from jsDelivr CDN ───────────────
   Falls back to DM Mono if the CDN is unreachable.
   ============================================================= */
@font-face {
  font-family: 'ComicShannsMono';
  src: url('https://cdn.jsdelivr.net/gh/shannpersand/comic-shanns@master/v2/comic%20shanns%202.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Sky gradient colours */
  --sky-top:    #fce4ec;   /* soft blush at horizon */
  --sky-mid:    #f8bbd9;   /* warm pink */
  --sky-bottom: #e8a0bf;   /* deeper mauve at base */

  /* Glass card palette (dark side) */
  --card-bg:       rgba(12, 10, 14, 0.82);
  --card-border:   rgba(255, 255, 255, 0.07);
  --card-shadow:   0 8px 40px rgba(0,0,0,0.55);
  --card-glow:     rgba(232, 132, 154, 0.18);

  /* Text */
  --text-primary:   #f0eaf4;
  --text-secondary: #e8dff0;
  --text-muted:     #c4b8d0;

  /* Blossom accent */
  --blossom:      #f4a7b9;
  --blossom-deep: #e8849a;

  /* Section label */
  --label-color: rgba(244, 167, 185, 0.55);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-med:  400ms var(--ease-out-expo);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'ComicShannsMono', 'DM Mono', monospace;
  color: var(--text-primary);
  /* Full sky gradient on body itself as guaranteed fallback —
     fixes white background issue on file:// protocol */
  background: linear-gradient(180deg, #fce4ec 0%, #f8bbd9 40%, #e8a0bf 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blossom-deep); border-radius: 99px; }


/* =============================================================
   PARALLAX SCENE
   Fixed full-viewport background that holds the sky,
   trees, and falling petals.
   ============================================================= */
.parallax-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Force GPU layer to fix stacking on file:// protocol */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Sky gradient ─ the literal sky */
.sky-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #fce4ec 0%,
    #f8bbd9 40%,
    #e8a0bf 100%
  );
}

/* Each parallax layer positions trees as absolute inside the scene */
.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform; /* GPU-composited — smooth parallax */
}

/* ── BLOSSOM TREES ──────────────────────────────────────────── */
/*
   Far trees: smaller, more transparent — sense of depth
   Close trees: larger, more opaque — foreground framing
*/
.blossom-tree {
  position: absolute;
  bottom: 0;
}

/* Far layer */
.tree-layer-far .tree-left-far  { left: -2%; width: clamp(160px, 18vw, 280px); opacity: 0.55; }
.tree-layer-far .tree-right-far { right: -2%; width: clamp(160px, 18vw, 280px); opacity: 0.55; }

/* Close layer */
.tree-layer-close .tree-left-close  { left: -3%; width: clamp(200px, 24vw, 360px); opacity: 0.9; }
.tree-layer-close .tree-right-close { right: -3%; width: clamp(200px, 24vw, 360px); opacity: 0.9; }


/* =============================================================
   FALLING PETALS
   Each petal is a tiny SVG div injected by JS.
   We use ONLY transform + opacity for GPU-friendly animation.

   Two keyframe animations are combined:
     - petalFall:  vertical drop + subtle horizontal sway
     - petalSpin:  continuous rotation (gives 3D tumbling feel)

   JS randomises:
     - horizontal start position (left %)
     - animation duration (speed)
     - animation delay (stagger)
     - petal size (width)
     - which of 3 sway variants is used
   ============================================================= */
.petals-container {
  position: absolute;
  inset: 0;
  /* overflow:hidden on parent scene keeps them contained */
}

.petal {
  position: absolute;
  top: -40px;       /* start just above viewport */
  will-change: transform, opacity;
  pointer-events: none;
}

/* The SVG inside .petal */
.petal svg {
  width: 100%;
  height: auto;
}

/* ─── KEYFRAME: Petal falling + swaying left/right ─── */
/*
   We define three sway variants (A, B, C) so petals
   don't all drift the same direction. JS picks one at random.
*/

/* Variant A: drifts right */
@keyframes petalFallA {
  0%   { transform: translateY(0)   translateX(0)    rotate(0deg);   opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(110vh) translateX(80px)  rotate(360deg); opacity: 0; }
}

/* Variant B: drifts left */
@keyframes petalFallB {
  0%   { transform: translateY(0)   translateX(0)    rotate(0deg);   opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(110vh) translateX(-80px) rotate(-270deg); opacity: 0; }
}

/* Variant C: gentle S-curve (both directions) */
@keyframes petalFallC {
  0%   { transform: translateY(0)     translateX(0)    rotate(0deg);   opacity: 0; }
  5%   { opacity: 1; }
  30%  { transform: translateY(30vh)  translateX(40px) rotate(90deg);  opacity: 0.9; }
  60%  { transform: translateY(65vh)  translateX(-30px) rotate(200deg); opacity: 0.9; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(110vh) translateX(20px) rotate(360deg); opacity: 0; }
}

/* JS adds one of these classes to each petal: */
.petal.fall-a { animation: petalFallA linear infinite; }
.petal.fall-b { animation: petalFallB linear infinite; }
.petal.fall-c { animation: petalFallC ease-in-out infinite; }


/* =============================================================
   CONTENT WRAPPER
   Sits above the fixed parallax scene via z-index.
   A semi-transparent backdrop gives the glass-over-sky effect.
   ============================================================= */
.content-wrapper {
  position: relative;
  z-index: 1;
  /* No solid background — lets the pink sky bleed through */
}


/* =============================================================
   HERO SECTION
   ============================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-inner {
  /* Frosted glass panel */
  background: rgba(10, 7, 14, 0.45);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 8vw, 6rem);
  max-width: 680px;
  box-shadow:
    0 0 0 1px rgba(244,167,185,0.12),
    0 24px 80px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);

  /* Entrance animation */
  animation: heroEntrance 1.2s var(--ease-out-expo) both;
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blossom);
  margin-bottom: 1rem;
  animation: heroEntrance 1.2s 0.1s var(--ease-out-expo) both;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  animation: heroEntrance 1.2s 0.2s var(--ease-out-expo) both;
}

.hero-dot {
  color: var(--blossom-deep);
}

.hero-tagline {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-secondary);
  margin-top: 1rem;
  margin-bottom: 2rem;
  animation: heroEntrance 1.2s 0.3s var(--ease-out-expo) both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blossom-deep);
  color: #fff;
  font-family: 'ComicShannsMono', 'DM Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  transition: var(--transition-fast);
  box-shadow: 0 0 24px rgba(232,132,154,0.4);
  animation: heroEntrance 1.2s 0.4s var(--ease-out-expo) both;
}

.hero-cta:hover {
  background: var(--blossom);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(232,132,154,0.6);
}

.hero-cta svg {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateY(3px);
}


/* =============================================================
   SHARED SECTION STYLES
   ============================================================= */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  margin-bottom: 3rem;
  /* Frosted glass pill behind the header text so it's readable against the pink sky */
  background: rgba(10, 7, 14, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: inline-block;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blossom);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.8),
    0 4px 24px rgba(0,0,0,0.5);
  line-height: 1.15;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}


/* =============================================================
   SECTION 1: REPOSITORY CARDS
   Black-on-black glass aesthetic with blossom glow accents
   ============================================================= */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

/* ── REPO CARD ──────────────────────────────────────────────── */
.repo-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: default;
  position: relative;
  overflow: hidden;

  /* Cards start invisible; JS adds .visible via IntersectionObserver */
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo),
    box-shadow var(--transition-med),
    border-color var(--transition-med);

  /* Subtle top-edge blossom shimmer */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Glow pseudo-element that brightens on hover */
.repo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--card-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

/* State: card is in viewport and should be visible */
.repo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover: scale up + stronger glow */
.repo-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 12px 60px rgba(0,0,0,0.65),
    0 0 0 1px rgba(244,167,185,0.2),
    0 0 40px rgba(244,167,185,0.08);
  border-color: rgba(255,255,255,0.12);
}

.repo-card:hover::before {
  opacity: 1;
}

/* Skeleton loading state */
.repo-card.skeleton {
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.repo-card.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  /* Shimmer sweep animation */
  animation: shimmer 1.8s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Fake content lines inside skeleton */
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 0.5rem;
}
.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long   { width: 90%; }

/* ── Card internals ─────────────────────────────────────────── */
.repo-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.repo-name {
  font-family: 'ComicShannsMono', 'DM Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  word-break: break-all;
  letter-spacing: -0.01em;
}

.repo-name a {
  color: inherit;
  transition: color var(--transition-fast);
}

.repo-name a:hover {
  color: var(--blossom);
}

/* Status badge */
.status-badge {
  flex-shrink: 0;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  white-space: nowrap;
}

.status-badge.active {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.status-badge.inactive {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.repo-description {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.repo-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.repo-meta-item i {
  font-size: 0.7rem;
  color: var(--blossom-deep);
}

/* Language dot */
.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Error state */
.repos-error {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.repos-error i {
  font-size: 2rem;
  color: var(--blossom-deep);
}

.repos-error a {
  color: var(--blossom);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hidden { display: none !important; }


/* =============================================================
   SECTION 2: DEVELOPER STACK
   Staggered floating grid with icon tiles
   ============================================================= */
.stack-section {
  /* Subtle frosted panel for the whole section */
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stack-item {
  background: rgba(10, 7, 14, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  cursor: default;
  position: relative;
  overflow: hidden;

  /* Entry animation — JS adds .visible */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition:
    opacity 0.5s var(--ease-out-expo),
    transform 0.5s var(--ease-out-expo),
    box-shadow var(--transition-med),
    border-color var(--transition-med);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stack-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stack-item:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: rgba(244, 167, 185, 0.3);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 20px rgba(244, 167, 185, 0.12);
}

/* Icon sizing */
.stack-item i {
  font-size: 2.2rem;
  transition: filter var(--transition-fast);
}

/* For non-devicon custom icons */
.stack-item .custom-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}

.stack-item:hover i,
.stack-item:hover .custom-icon {
  filter: drop-shadow(0 0 8px var(--blossom));
}

.stack-item span {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: center;
  transition: color var(--transition-fast);
}

.stack-item:hover span {
  color: var(--text-secondary);
}

/* Devicon colored variants */
.devicon-python-plain.colored     { color: #3776AB; }
.devicon-javascript-plain.colored { color: #F7DF1E; }
.devicon-git-plain.colored        { color: #F05032; }
.devicon-html5-plain.colored      { color: #E34F26; }
.devicon-css3-plain.colored       { color: #1572B6; }
.devicon-vscode-plain.colored     { color: #007ACC; }
.devicon-archlinux-plain          { color: #1793D1; }


/* =============================================================
   SECTION 3: CONTACT / FOOTER
   ============================================================= */
.contact-section {
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ── Contact link card ──────────────────────────────────────── */
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
  background: rgba(10, 7, 14, 0.65);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

/* Animated gradient sweep on hover */
.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.instagram-link::before {
  background: linear-gradient(
    135deg,
    rgba(253, 29, 29, 0.08) 0%,
    rgba(214, 41, 118, 0.1) 50%,
    rgba(88, 81, 219, 0.08) 100%
  );
}

.github-link::before {
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.contact-link:hover::before {
  opacity: 1;
}

.contact-link:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.instagram-link:hover {
  border-color: rgba(214, 41, 118, 0.4);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 20px rgba(214, 41, 118, 0.15);
}

.github-link:hover {
  border-color: rgba(255,255,255,0.15);
}

.contact-link-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.instagram-link .contact-link-icon {
  background: linear-gradient(135deg, #fd1d1d 0%, #d62976 50%, #5851db 100%);
  color: #fff;
}

.github-link .contact-link-icon {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.contact-link:hover .contact-link-icon {
  transform: scale(1.1) rotate(-5deg);
}

.contact-link-text {
  flex: 1;
  text-align: left;
}

.contact-link-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.contact-link-handle {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Arrow that slides in on hover */
.contact-link-arrow {
  font-size: 1.1rem;
  color: var(--blossom);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.contact-link:hover .contact-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Footer credit line */
.footer-credit {
  margin-top: 3rem;
  padding-bottom: 2rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}


/* =============================================================
   HYPRLAND LOGO — slightly larger than standard custom-icon
   ============================================================= */
.stack-item--hyprland .custom-icon {
  width: 3.5rem;
  height:3.5rem; 
}


/* TypeScript devicon color */
.devicon-typescript-plain.colored { color: #3178C6; }

/* =============================================================
   ABOUT SECTION
   ============================================================= */
.about-body {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  max-width: 720px;
}

.about-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.about-body p:last-child { margin-bottom: 0; }

/* =============================================================
   SHOWCASE SECTION
   ============================================================= */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--card-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.showcase-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 12px 60px rgba(0,0,0,0.65),
    0 0 0 1px rgba(244,167,185,0.2);
  border-color: rgba(255,255,255,0.12);
}

.showcase-card:hover::before { opacity: 1; }

.showcase-card-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}

.showcase-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.showcase-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--blossom);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.showcase-card-link:hover { color: var(--blossom-deep); }

/* =============================================================
   CERTIFICATIONS SECTION
   ============================================================= */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
}

.cert-placeholder {
  background: var(--card-bg);
  border: 1px dashed rgba(244,167,185,0.2);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* =============================================================
   COMMISSIONS SECTION
   ============================================================= */
.commissions-body {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  max-width: 680px;
}

.commissions-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.commissions-body p:last-child { margin-bottom: 0; }

.commissions-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--blossom);
  transition: color var(--transition-fast);
}

.commissions-email:hover { color: var(--blossom-deep); }

/* =============================================================
   EMAIL CONTACT LINK
   ============================================================= */
.email-link::before {
  background: radial-gradient(ellipse at center, rgba(244,167,185,0.06) 0%, transparent 70%);
}

.email-link:hover {
  border-color: rgba(244,167,185,0.3);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 20px rgba(244,167,185,0.12);
}

.email-link .contact-link-icon {
  background: rgba(244,167,185,0.12);
  color: var(--blossom);
}


/* =============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================= */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  .repos-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hide far tree layer on small screens (performance) */
  .tree-layer-far { display: none; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-inner {
    border-radius: 1.2rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
