/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(124, 77, 255, 0.14), transparent 65%),
    linear-gradient(115deg, rgba(18, 16, 20, 0.2) 0%, rgba(18, 16, 20, 0.55) 70%, rgba(18, 16, 20, 0.72) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 0.9fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
  }
}

.hero__content {
  max-width: 38rem;
  justify-self: center;
  width: 100%;
}

.hero__name {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extra);
  margin-bottom: 0.85rem;
  background: linear-gradient(120deg, #fff 20%, var(--color-accent-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-warm);
  margin-bottom: 1rem;
}

.hero__location {
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  margin-bottom: 1.25rem;
}

.hero__bio {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__media {
  justify-self: center;
  width: min(100%, 360px);
}

.hero__photo-wrap {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-accent);
  aspect-ratio: 1;
}

.hero__photo-wrap::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  z-index: 0;
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section backgrounds alternation — keep translucent so the hex grid shows through */
#skills,
#certifications,
#projects {
  background: linear-gradient(180deg, transparent, rgba(34, 28, 42, 0.22), transparent);
}

/* Education — compact collapsible courses */
.timeline-item__desc--compact {
  margin-bottom: 0.85rem;
}

.courses-fold {
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196, 168, 255, 0.14);
  background: rgba(18, 16, 20, 0.35);
  overflow: hidden;
}

.courses-fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-soft);
  user-select: none;
}

.courses-fold__summary::-webkit-details-marker {
  display: none;
}

.courses-fold__summary:hover {
  background: rgba(124, 77, 255, 0.08);
}

.courses-fold__chevron,
.course-item__chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  opacity: 0.75;
}

.courses-fold[open] > .courses-fold__summary .courses-fold__chevron,
.course-item[open] > .course-item__summary .course-item__chevron {
  transform: rotate(225deg);
}

.course-list {
  display: grid;
  gap: 0.4rem;
  padding: 0 0.65rem 0.65rem;
}

.course-item {
  border-radius: var(--radius-sm);
  background: rgba(26, 22, 32, 0.55);
  border: 1px solid rgba(196, 168, 255, 0.1);
}

.course-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.course-item__summary::-webkit-details-marker {
  display: none;
}

.course-item__summary:hover {
  background: rgba(124, 77, 255, 0.06);
}

.course-item__title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--color-text);
}

.course-item__body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid rgba(196, 168, 255, 0.08);
}

.course-item__desc {
  margin: 0.65rem 0 0.7rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
