/* Portfolio-specific styles migrated from `hyde.css` */

/* Utility & shared components
   - .card: shared panel/card look used across projects, experience, skills
   - .section-title: unified section headings
   - .pill / .tag: small inline badges
   - .circle: circular media container with size modifiers
   - .media-cover: utility for object-fit cover images
   - .grid utilities: small grid helpers
*/
.card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.card--pad { padding: 1.5rem 1.75rem; }
.card--pad-sm { padding: 1.25rem 1.5rem; }

.card--project {
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}
.card--project:hover { transform: scale(1.1); }

.part-dark {
    background: #0F172A
}

.part-light {
    background: #1E293B
}

.section-title { margin: 0; color: #F1F5F9; }
.section-title--lg { font-size: 1.25rem; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.1;
  color: #E5E7EB;
  background: rgba(15, 23, 42, 0.95);
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.95);
  color: #E5E7EB;
}

.circle { border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.circle--lg { width: 200px; height: 200px; }
.circle--sm { width: 1.75rem; height: 1.75rem; }

.media-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-cover--fixed-h { height: 140px; }
@media (max-width: 480px) { .media-cover--fixed-h { height: 120px; } }

.grid { display: grid; gap: 1.5rem; }
.grid--auto-fit { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--3cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--1col { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 48em) { .grid--responsive-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  margin-bottom: 2rem;
}

.hero-content h1 {
  margin: 0 0 0.75rem;
}

.hero-bio {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-avatar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-avatar-frame {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

.hero-avatar-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.hero-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 72px;
  height: 72px;
}

@media (min-width: 48em) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-content {
    max-width: 60%;
  }

  .hero-avatar {
    width: auto;
    margin-left: 2rem;
  }
}

/* Experience section */
.experience {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-title {
  margin: 0;
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
}

.experience-company {
  margin: 0;
  font-size: 1.05rem;
  color: #F1F5F9;
}

.experience-role {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  color: #CBD5F5;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.experience-pill {
  display: inline-flex;
  font-size: 0.75rem;
  line-height: 1.1;
  color: #E5E7EB;
  width: 100%;
}

.experience-icon {
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.35rem;
}

.experience-pill-text {
  white-space: nowrap;
  margin-left: 0.25rem;
  text-align: right;
  flex: 1;
}

.experience-info {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.experience-info li {
  margin-bottom: 0.25rem;
}

@media (min-width: 48em) {
  .experience-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .experience-main {
    flex: 1;
  }

  .experience-meta {
    align-items: flex-end;
  }
}

/* Skills section */
.skills {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skills-title {
  margin: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.skills-column {
  padding: 1.25rem 1.5rem;
}

.skills-group-name {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #F1F5F9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-icon-wrap {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 64, 175, 0.35);
  color: #E5E7EB;
}

.skills-icon {
  width: 1rem;
  height: 1rem;
}

.skills-group-label {
  flex: 1;
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills-list-item {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.95);
  color: #E5E7EB;
}

@media (min-width: 48em) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Projects section - styled to match existing card materials */
.projects {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projects-title {
  margin: 0;
  color: #F1F5F9;
  font-size: 1.25rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.project-link:hover { text-decoration: none; }

.project-image img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-body {
  padding: 1rem 1.25rem;
  flex: 1 1 auto;
}

.project-title { color: #F1F5F9; margin: 0 0 0.25rem 0; font-size: 1.05rem; }
.project-pitch { color: #CBD5F5; margin: 0 0 0.5rem 0; font-size: 0.95rem; }
.project-meta { color: #94A3B8; margin: 0 0 0.5rem 0; font-size: 0.7rem; }

.project-card:hover { transform: scale(1.1); }

/* Ensure hover works on animated cards */
.project-card.animate-item.is-visible:hover {
  transform: scale(1.1) translateY(0);
}

@media (max-width: 480px) {
  .project-image img { height: 120px; }
}

/* Project page pills (release date, target, role, status) */
.project-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem 0;
  align-items: center;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #E5E7EB;
  background: rgba(15,23,42,0.95);
}

.project-pill i { font-size: 0.95rem; opacity: 0.95; }

.project-pill .pill-text { display: inline-block; }

.pitch { margin: 0.25rem 0 0.75rem 0; color: #CBD5F5; font-style: italic; }

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  align-items: start;
}

.project-action-buttons {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.project-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Fredoka", sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background-color: rgba(15, 55, 155, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0.85;
  transition: all 0.25s;
  text-decoration: none;
}

.project-action-button:hover {
  background-color: rgba(15, 55, 155, 1);
  opacity: 1;
  transform: scale(1.05);
  text-decoration: none;
}

.project-action-button i {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
}

.project-action-button:hover i {
  color: #fff;
}

/* Carousel styles */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.36s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.carousel-image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s;
}

.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

.carousel-btn:hover { transform: translateY(-50%) scale(1.06); background: rgba(255,255,255,0.12); }

.carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.5rem;
  display: flex;
  gap: 0.4rem;
}

.carousel-indicator {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: none;
  padding: 0;
  cursor: pointer;
}

.carousel-indicator.active { background: rgba(255,255,255,0.95); }

.carousel-btn i { font-size: 0.95rem; }

/* Entrance animation utilities (mirrors _sass/_base.scss additions)
   Added here so the site works immediately with the served CSS bundle
*/
.animate-item {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  transition: opacity 600ms cubic-bezier(.2,.9,.2,1), transform 600ms cubic-bezier(.2,.9,.2,1);
  transition-delay: calc(var(--i, 0) * 0.08s);
}

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

.animate-item--fast {
  transition-delay: calc(var(--i, 0) * 0.06s);
}

/* Scale overshoot animation for avatar and badge */
.animate-scale {
  opacity: 0;
  transform: scale(0.8) translateY(8px);
}

.animate-scale.is-visible {
  opacity: 1;
  animation: overshootIn 640ms cubic-bezier(.175,.885,.32,1.275) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

@keyframes overshootIn {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(12px);
  }

  60% {
    opacity: 1;
    transform: scale(1.08) translateY(0);
  }

  85% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}