:root {
  --yellow: #f5c842;
}

body {
  font-family: 'Google Sans Flex', sans-serif;
  font-size: 1.1rem;
  background-color: #0c0c0c;
  color: #e8e8e8;
  overflow-x: hidden;
  --bs-secondary-color: rgba(255,255,255,.82);
}

h1 { font-size: clamp(2rem, 8vw, 3.5rem); }

.photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1);
}

.subtitle {
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.4s ease-in-out infinite;
}
@keyframes wave {
  0%,100% { transform: rotate(0deg); }
  20%     { transform: rotate(20deg); }
  60%     { transform: rotate(-8deg); }
}

.btn-ia {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: #111;
  background: var(--yellow);
  border-radius: 6px;
  padding: .42rem 1.05rem;
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn-ia:hover {
  background: #e0b530;
  color: #111;
  transform: translateY(-1px);
}

footer {
  border-top: 1px solid rgba(255,255,255,.07);
}


/* ==============================================
   Bio page extras
   ============================================== */

/* Navbar */
.navbar {
  background: rgba(12, 12, 12, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff !important;
}
.nav-link {
  font-size: .85rem;
  color: rgba(255,255,255,.45) !important;
  transition: color .2s;
}
.nav-link:hover,
.nav-link.active { color: #fff !important; }

/* Section headings */
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 1rem;
}

/* Inline links */
.link-ia {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.25);
  text-underline-offset: 3px;
  transition: color .2s;
}
.link-ia:hover { color: #fff; text-decoration-color: rgba(255,255,255,.6); }

/* Skills tags */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.skill-tag {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: .28rem .8rem;
  white-space: nowrap;
}

/* Certification badges */
.cert-badge img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: .5rem;
}

.cert-badge p {
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  margin: 0 auto;
}

/* Articles table */
.bio-table {
  background-color: #0c0c0c;
  font-size: .9rem;
  --bs-table-bg: #0c0c0c;
  --bs-table-color: rgba(255,255,255,.82);
}
.bio-table thead th {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  padding-bottom: .6rem;
}
.bio-table td {
  color: rgba(255,255,255,.82);
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
  padding: .65rem .5rem;
}

.cert-badge p {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  max-width: 100px;
  margin: 0 auto;
}


/* ==============================================
   Experiments page
   ============================================== */

.exp-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  text-decoration: none;
  color: #e8e8e8;
  transition: background .2s, border-color .2s, transform .15s;
}
.exp-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
  color: #fff;
  transform: translateX(4px);
}

.exp-icon {
  font-size: 1.2rem;
  color: var(--yellow);
  width: 2.2rem;
  text-align: center;
  flex-shrink: 0;
}

.exp-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .15rem;
}

.exp-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

.exp-arrow {
  margin-left: auto;
  color: rgba(255,255,255,.2);
  font-size: .8rem;
  flex-shrink: 0;
  transition: color .2s;
}
.exp-card:hover .exp-arrow {
  color: rgba(255,255,255,.5);
}
