/* ========= components.css ========= */
/* reusable UI: headings, buttons, cards, media blocks, text styles */

.section-title{
  text-align:center; margin-bottom:28px;
  color:var(--brand-cyan); font-weight:600; letter-spacing:.5px;
  font-size: clamp(28px, 3.4vw, 44px);
}

h1{
  font-weight:700; letter-spacing:.5px; line-height:.95;
  font-size: clamp(40px, 6.2vw, 96px);
}

.sub{ font: Rajdhani; ;font-size: clamp(18px, 1.6vw, 22px); color:var(--ink-dim); max-width:50ch; margin:0 0 28px }

.btn{
  --padY:14px; --padX:35px;
  display:inline-flex; align-items:center; gap:12px;
  padding:var(--padY) var(--padX);
  border-radius:var(--r-xl);
  font-weight:700; letter-spacing:.3px; white-space:nowrap;
  color:#fff; text-decoration:none;

  box-shadow:var(--shadow-soft);
  transition: transform .15s ease, filter .15s ease;
  min-width: 250px;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  padding: 2px; /* border thickness */
  background: linear-gradient(90deg, #35E2FF, #A855F7);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}


.btn:hover{ t transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff; /* stays bright */
  text-shadow: 0 0 6px rgba(53, 226, 255, 0.7); /* subtle glow to ensure visibility */ }
.btn:active{ transform:translateY(0) }
.btn svg{ flex:0 0 auto }

.btn--journey{ background:var(--grad-journey) }
.btn--teacher{ background:var(--grad-teacher) }

.ctas{ position: relative; display:flex; flex-wrap:wrap; gap:18px}


/* glow pad behind both buttons */
.ctas::before{
  content:"";
  position:absolute;
  left:-80px; right: px; top:-10px; bottom:-10px;
  background:
    radial-gradient(220px 90px at 18% 55%, rgba(168,85,247,.24), transparent 60%),
    radial-gradient(240px 100px at 52% 60%, rgba(52,211,153,.22), transparent 65%),
    radial-gradient(220px 90px at 82% 55%, rgba(37,99,235,.20), transparent 65%);
  filter: blur(6px);
  z-index: 0;
  pointer-events:none;
}
.btn{ position: relative; z-index: 1; }



.card{
  background:#0f1423; border:1px solid rgba(255,255,255,.08);
  border-radius:18px; padding:24px; box-shadow:var(--shadow-soft);
}

.img-card{
  border-radius:18px; overflow:hidden; background:#0f1423;
  border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow-soft);
}
.img-card img{ width:100%; height:auto }

/* text blocks used in Learn More */
.prose h3{
  color:#9bd8e6; font-weight:600;
  font-size: clamp(20px, 2.2vw, 28px);
  margin:0 0 8px;
}
.prose p{ color:var(--ink-dim); margin:0 0 14px }



.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-width: 100%;
}

.pill-label {
  flex-basis: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-subtle, #9ab);
  margin-bottom: 4px;
}


/* keep pill text together and restore spacing/size */
.pill-group .pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;      /* 👈 prevents "Visual / storytelling" splitting */
  line-height: 1.2;
  font-size: 0.95rem;       /* match your original pill size */
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.pill-group { gap: 12px; }   /* a touch more breathing room */


/* Make the host containers flexible and non-clipping */
#csSkills, #bioSkills {
  overflow: visible;
  display: block;        /* or flex; the inner .pill-group handles layout */
  line-height: normal;   /* prevent inherited tight line-height from trimming */
}

/* Pill row layout */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  max-width: 100%;
  min-width: 0;          /* allow flexbox to shrink without clipping */
}

/* Label */
.pill-label {
  flex-basis: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-subtle, #9ab);
  margin-bottom: 4px;
}

/* Chip styling (stronger specificity than a global .pill) */
.pill-group .pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;         /* keep the whole phrase in one chip */
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: 0.95rem;
  line-height: 1.35;           /* a bit taller to avoid text clipping */
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  max-width: 100%;
}

/* Safety on very small screens: allow wrapping *inside* the pill if needed */
@media (max-width: 420px) {
  .pill-group .pill {
    white-space: normal;
  }
}




