/* Portfolio enhancements — featured DME, chips, lightbox, case study tabs */

/* Featured project card */
.project-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-grid-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media screen and (min-width: 640px) {
  .project-grid-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1100px) {
  .project-grid-secondary {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* All secondary-grid cards: flex column so CTA pins to bottom */
.project-grid-secondary .project-card {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--first-color-lighter);
  transition: border-top-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.project-grid-secondary .project-card:hover {
  border-top-color: var(--first-color);
}

/* New-style cards body */
.project-grid-secondary .project-card .project-card__body {
  flex: 1;
}

/* Old-style fallback */
.project-grid-secondary .project-card > p.testimonial__description {
  flex: 1;
}

.project-grid-secondary .project-card .project-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Thumbnail — fixed height, cover crop, no blank gap */
.project-grid-secondary .project-card .project-img--ui {
  height: 160px;
  max-height: 160px;
  object-fit: cover;
  object-position: top;
  margin-bottom: 0.85rem;
  border-radius: 6px;
}

.project-grid-secondary .project-card--no-image {
  padding-top: 0.15rem;
}

.project-card--featured {
  grid-column: 1 / -1;
  border: 2px solid var(--first-color-lighter);
  padding: 1.75rem;
}

.project-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.dark-theme .project-card--featured:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.project-card__headline {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin: 0.4rem 0 0.6rem;
  line-height: 1.4;
}

.project-card__body {
  text-align: left;
  color: var(--text-color);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-card__body ul {
  margin: 0.35rem 0 0 1.1rem;
  padding: 0;
}

.project-card__body li {
  margin-bottom: 0.3rem;
  font-size: var(--small-font-size);
  line-height: 1.55;
}

/* Tighten title & subtitle line inside project cards */
.project-grid-secondary .project-card .testimonial__name,
.project-grid-secondary .project-card h3 {
  font-size: var(--h3-font-size);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.project-grid-secondary .project-card .testimonial__description {
  font-size: var(--small-font-size);
  margin: 0 0 0.4rem;
}

.project-metrics,
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.metric-chip {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--first-color-lighter);
  color: var(--title-color);
}

body.dark-theme .metric-chip {
  background: hsl(var(--hue-color), 30%, 22%);
  color: var(--title-color);
}

.tech-chip {
  font-size: var(--smaller-font-size);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--first-color);
  color: var(--first-color);
  background: transparent;
}

body.dark-theme .tech-chip {
  border-color: var(--first-color);
  color: var(--first-color-lighter);
}

.project-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.home__highlight {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
}

.home__hero-animation {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
  clear: both;
}

.home__hero-animation .lottie-slot--hero {
  margin: 0 auto;
}

.about__highlights {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.7;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.about__highlights li {
  margin-bottom: 0.4rem;
}

/* LinkedIn-style About: cover banner + overlapping avatar */
.about__linkedin-card {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.about__cover-wrap {
  width: 100%;
  height: clamp(140px, 18vw, 200px);
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: hsl(var(--hue-color), 28%, 18%);
}

.about__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor top: on wide desktop, cover scales by width and must not crop the head */
  object-position: center top;
  display: block;
}

@media screen and (min-width: 768px) {
  .about__cover-wrap {
    height: clamp(170px, 14vw, 220px);
  }

  .about__cover-img {
    object-position: 68% 6%;
  }
}

.about__profile-header {
  padding: 0 1.25rem;
  margin-top: clamp(-3.5rem, -8vw, -4.5rem);
  margin-bottom: 0.75rem;
}

.about__avatar {
  width: clamp(110px, 18vw, 148px);
  height: clamp(110px, 18vw, 148px);
  border-radius: 50%;
  border: 4px solid hsl(var(--hue-color), 28%, 12%);
  object-fit: cover;
  object-position: center 12%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  display: block;
  background: var(--container-color);
}

body:not(.dark-theme) .about__avatar {
  border-color: hsl(var(--hue-color), 60%, 99%);
}

.about__linkedin-card .about__data {
  padding: 0 0.25rem 0.5rem;
}

@media screen and (min-width: 768px) {
  .about__linkedin-card .about__data {
    padding: 0 1rem 0.5rem 1.25rem;
  }
}

/* UI screenshots — no crop */
.project-img--ui,
.project-card--featured .project-img--ui {
  object-fit: contain;
  max-height: 280px;
  width: 100%;
  background: var(--container-color);
  border-radius: 12px;
  border: 1px solid hsl(var(--hue-color), 12%, 88%);
  cursor: zoom-in;
  margin-bottom: 1rem;
}

body.dark-theme .project-img--ui {
  border-color: hsl(var(--hue-color), 12%, 28%);
}

.case-study .project-img--ui {
  max-height: none;
}

/* Lightbox */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.portfolio-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.portfolio-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.portfolio-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--container-color);
  color: var(--title-color);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Case study sticky tabs */
.case-study-tabs-wrap {
  position: relative;
}

.tabs-sticky {
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-fixed);
  background: var(--body-color);
  padding: 0.5rem 0 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.dark-theme .tabs-sticky {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.case-study-hero-bullets {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.case-study-hero-bullets li {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.case-study-hero-bullets li::before {
  content: "• ";
  color: var(--first-color);
}

.case-study-tagline {
  font-size: 1.15rem;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: 0.75rem;
}

.arch-details {
  margin: 1rem 0 2rem;
  border: 1px solid hsl(var(--hue-color), 12%, 88%);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  background: var(--container-color);
}

body.dark-theme .arch-details {
  border-color: hsl(var(--hue-color), 12%, 28%);
}

.arch-details summary {
  cursor: pointer;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  padding: 0.5rem 0;
}

/* Case study — architecture & flow diagrams */
.flow-section {
  margin-bottom: 3rem;
}

.flow-section__intro {
  text-align: left;
  color: var(--text-color);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media screen and (min-width: 768px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flow-card {
  margin: 0;
  background: var(--container-color);
  border: 1px solid hsl(var(--hue-color), 12%, 88%);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

body.dark-theme .flow-card {
  border-color: hsl(var(--hue-color), 12%, 28%);
}

.flow-card--wide {
  grid-column: 1 / -1;
}

.flow-card img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  cursor: zoom-in;
}

.flow-card figcaption {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.5;
  margin-top: 0.75rem;
  text-align: left;
}

.flow-card figcaption strong {
  color: var(--title-color);
  display: block;
  margin-bottom: 0.25rem;
}

.flow-jump {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
}

/* Index.html — featured project flows (compact) */
.project-flows {
  margin: 1.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--hue-color), 12%, 88%);
}

body.dark-theme .project-flows {
  border-top-color: hsl(var(--hue-color), 12%, 28%);
}

.project-flows__title {
  font-size: var(--h3-font-size);
  font-family: "DM Sans", var(--body-font), sans-serif;
  color: var(--title-color);
  margin: 0 0 0.5rem;
}

.project-flows__intro {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.project-flow-preview {
  position: relative;
  display: block;
  margin-bottom: 1.25rem;
  border: 1px solid hsl(var(--hue-color), 18%, 82%);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.98), rgba(30, 41, 59, 0.94));
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.dark-theme .project-flow-preview {
  border-color: hsl(var(--hue-color), 18%, 26%);
}

.project-flow-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--first-color);
}

.project-flow-preview__badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
}

.project-flow-preview__viewport {
  height: 520px;
  overflow: hidden;
}

.project-flow-preview__frame {
  width: 172%;
  height: 1180px;
  border: 0;
  display: block;
  margin-top: -210px;
  transform: scale(0.58);
  transform-origin: top left;
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  .project-flow-preview__viewport {
    height: 320px;
  }

  .project-flow-preview__frame {
    width: 240%;
    height: 1120px;
    margin-top: -220px;
    transform: scale(0.42);
  }
}

.flow-grid--index .flow-card img {
  max-height: 220px;
}

@media screen and (min-width: 968px) {
  .flow-grid--index {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-grid--index .flow-card--wide {
    grid-column: 1 / -1;
  }

  .flow-grid--index .flow-card--wide img {
    max-height: 320px;
  }
}

.qualification__note {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.5;
}

.qual-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
}

.qual-badge--full {
  background: var(--first-color);
  color: #fff;
}

.qual-badge--intern {
  background: var(--first-color-lighter);
  color: var(--title-color);
}

body.dark-theme .qual-badge--intern {
  background: hsla(var(--hue-color), 70%, 34%, 0.72);
  color: var(--title-color);
}

.qualification__tabs {
  width: fit-content;
  margin: 0 auto 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--hue-color), 18%, 30%);
  background: linear-gradient(
    140deg,
    hsl(var(--hue-color), 27%, 14%),
    hsl(var(--hue-color), 20%, 11%)
  );
  gap: 0.35rem;
}

.qualification__button {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  color: var(--text-color);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.qualification__button .qualification__icon {
  margin-right: 0.4rem;
}

.qualification__button.qualification__active {
  background: linear-gradient(120deg, hsl(var(--hue-color), 80%, 58%), hsl(var(--hue-color), 90%, 64%));
  color: #fff;
  border-color: hsla(var(--hue-color), 95%, 90%, 0.3);
  box-shadow: 0 0 0 1px hsla(var(--hue-color), 100%, 92%, 0.18) inset;
}

.qualification__button:not(.qualification__active):hover {
  border-color: hsla(var(--hue-color), 88%, 68%, 0.28);
  background: hsla(var(--hue-color), 88%, 62%, 0.08);
}

.qualification__switch-hint {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  margin: 0 0 1rem;
}

.qualification__switch-hint i {
  margin-right: 0.3rem;
}

/* Mobile timeline stability: keep one clear rail + card column */
@media screen and (max-width: 767px) {
  .qualification__tabs {
    width: fit-content;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .qualification__button {
    font-size: 0.98rem;
    padding: 0.42rem 0.82rem;
  }

  .qualification__data {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 0.9rem;
    row-gap: 0;
    align-items: stretch;
    margin-bottom: 1rem;
  }

  .qualification__data > div:nth-child(2),
  .qualification__time {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: flex-start;
  }

  .qualification__data > div:first-child:not(:empty),
  .qualification__data > div:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding: 0.8rem 0.9rem;
  }

  .qualification__line {
    min-height: 92px;
    height: calc(100% - 16px);
  }

  .qualification__switch-hint {
    display: block;
  }
}

@media screen and (min-width: 768px) {
  .qualification__switch-hint {
    margin-bottom: 1.2rem;
  }
}

/* Certification slider polish */
.portfolio__container {
  padding: 0.5rem 0 1.25rem;
}

.portfolio__content {
  border-radius: 18px;
  border: 1px solid hsl(var(--hue-color), 16%, 86%);
  background: linear-gradient(
    145deg,
    hsl(var(--hue-color), 100%, 99%),
    hsl(var(--hue-color), 80%, 97%)
  );
  box-shadow: 0 14px 32px hsla(var(--hue-color), 70%, 54%, 0.16);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio__content:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px hsla(var(--hue-color), 72%, 54%, 0.24);
}

.portfolio__img {
  border-radius: 14px;
}

.portfolio__title {
  position: relative;
}

.portfolio__title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 0.5rem;
  background: var(--first-color);
  box-shadow: 0 0 0 6px hsla(var(--hue-color), 89%, 56%, 0.15);
}

body.dark-theme .portfolio__content {
  border-color: hsl(var(--hue-color), 22%, 28%);
  background: linear-gradient(
    145deg,
    hsl(var(--hue-color), 24%, 14%),
    hsl(var(--hue-color), 20%, 12%)
  );
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

body.dark-theme .portfolio__content:hover {
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.5);
}

.certifications--scifi {
  position: relative;
}

.certifications--scifi::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, hsla(var(--hue-color), 89%, 56%, 0.12), transparent 35%),
    radial-gradient(circle at 80% 30%, hsla(var(--hue-color), 95%, 70%, 0.1), transparent 30%),
    linear-gradient(transparent 97%, hsla(var(--hue-color), 89%, 56%, 0.12) 100%);
}

.certifications--scifi .portfolio__container {
  position: relative;
  z-index: 1;
}

.certifications--scifi .portfolio__content {
  backdrop-filter: blur(3px);
}

.certifications--scifi .portfolio__description {
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 36ch;
}

.certifications--scifi .portfolio__title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.certifications--scifi .portfolio__data {
  padding: 0.35rem 0.15rem;
}

body.dark-theme .certifications--scifi .portfolio__description,
body.dark-theme .certifications--scifi .portfolio__title {
  color: var(--text-color);
}

.certifications--scifi .lottie-slot--certs {
  pointer-events: none;
  filter: saturate(0.85);
}

.certifications--scifi .swiper-button-next,
.certifications--scifi .swiper-button-prev {
  background: hsla(var(--hue-color), 89%, 56%, 0.16);
  border: 1px solid hsla(var(--hue-color), 89%, 56%, 0.35);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease;
}

.certifications--scifi .swiper-button-next:hover,
.certifications--scifi .swiper-button-prev:hover {
  transform: scale(1.06);
  background: hsla(var(--hue-color), 89%, 56%, 0.26);
}

.portfolio__img-wrap {
  display: block;
  justify-self: center;
}

.credly-badge-host {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  min-height: 150px;
}

.cert-slide--azure .portfolio__img-wrap--decorative {
  display: block;
}

@media screen and (max-width: 767px) {
  .cert-slide--azure .portfolio__img-wrap--decorative {
    display: none;
  }

  .cert-slide--azure .credly-badge-host {
    min-height: 200px;
    margin-bottom: 0.5rem;
  }

  .certifications--scifi .portfolio__title {
    font-size: 1rem;
  }

  .certifications--scifi .swiper-button-next,
  .certifications--scifi .swiper-button-prev {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* Transition motifs: GitOps/API/K3s themed micro effects */
.section-theme {
  position: relative;
  isolation: isolate;
}

.section-theme::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(circle at 10% 15%, hsla(var(--hue-color), 95%, 62%, 0.18), transparent 30%),
    linear-gradient(120deg, transparent 0%, hsla(var(--hue-color), 92%, 62%, 0.12) 50%, transparent 100%);
}

.section-theme--skills::after {
  background:
    radial-gradient(circle at 14% 20%, hsla(205, 95%, 62%, 0.18), transparent 34%),
    linear-gradient(115deg, transparent 5%, hsla(205, 92%, 58%, 0.14) 52%, transparent 92%);
}

.section-theme--projects::after {
  background:
    radial-gradient(circle at 12% 16%, hsla(168, 88%, 46%, 0.16), transparent 30%),
    linear-gradient(125deg, transparent 6%, hsla(168, 88%, 42%, 0.14) 52%, transparent 94%);
}

.section-theme--certifications::after {
  background:
    radial-gradient(circle at 82% 18%, hsla(272, 88%, 64%, 0.18), transparent 34%),
    linear-gradient(135deg, transparent 6%, hsla(272, 86%, 62%, 0.14) 50%, transparent 95%);
}

.section-theme--contact::after {
  background:
    radial-gradient(circle at 85% 22%, hsla(30, 92%, 62%, 0.15), transparent 35%),
    linear-gradient(130deg, transparent 8%, hsla(30, 88%, 58%, 0.12) 50%, transparent 96%);
}

.section-theme.section-theme--active::after {
  opacity: 1;
  animation: sectionPipelineSweep 0.9s ease;
}

.section-theme--skills.section-theme--active .skills__container,
.section-theme--projects.section-theme--active .project-container,
.section-theme--certifications.section-theme--active .portfolio__container,
.section-theme--contact.section-theme--active .contact__container {
  animation: sectionLiftPulse 0.75s ease;
}

body.is-section-transitioning .nav__link.active-link,
body.is-skills-toggling .skills__title {
  text-shadow: 0 0 12px hsla(var(--hue-color), 90%, 60%, 0.36);
}

.skills__content {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skills__content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  opacity: 0.72;
  border-radius: 8px;
  background: hsla(var(--hue-color), 88%, 58%, 0.55);
  transform: scaleY(0.45);
  transform-origin: top;
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease;
}

.skills__content[data-skill-theme="ai"]::before {
  background: hsla(206, 95%, 56%, 0.62);
}

.skills__content[data-skill-theme="devops"]::before {
  background: hsla(163, 84%, 44%, 0.62);
}

.skills__content[data-skill-theme="k3s"]::before {
  background: hsla(34, 90%, 56%, 0.62);
}

.skills__content[data-skill-theme="data"]::before {
  background: hsla(274, 84%, 62%, 0.62);
}

.skills__content.skills__open {
  border-color: hsla(var(--hue-color), 88%, 57%, 0.45);
  box-shadow: 0 8px 22px hsla(var(--hue-color), 78%, 50%, 0.14);
}

.skills__content.skills__open::before {
  transform: scaleY(1);
  opacity: 1;
}

.skills__content.skills__open .skills__data {
  animation: skillItemReveal 0.45s ease both;
}

.skills__content.skills__open .skills__data:nth-child(2) { animation-delay: 0.04s; }
.skills__content.skills__open .skills__data:nth-child(3) { animation-delay: 0.08s; }
.skills__content.skills__open .skills__data:nth-child(4) { animation-delay: 0.12s; }
.skills__content.skills__open .skills__data:nth-child(5) { animation-delay: 0.16s; }
.skills__content.skills__open .skills__data:nth-child(6) { animation-delay: 0.20s; }

.skills__content.skills__content--pulse {
  animation: skillsPipelinePulse 0.65s ease;
}

body.skills-theme-ai .skills__content.skills__open {
  box-shadow: 0 10px 24px hsla(206, 95%, 56%, 0.22);
}

body.skills-theme-devops .skills__content.skills__open {
  box-shadow: 0 10px 24px hsla(163, 84%, 44%, 0.22);
}

body.skills-theme-k3s .skills__content.skills__open {
  box-shadow: 0 10px 24px hsla(34, 90%, 56%, 0.21);
}

body.skills-theme-data .skills__content.skills__open {
  box-shadow: 0 10px 24px hsla(274, 84%, 62%, 0.22);
}

@keyframes sectionPipelineSweep {
  0% {
    opacity: 0;
    transform: translateX(-12px);
  }
  35% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateX(12px);
  }
}

@keyframes sectionLiftPulse {
  0% {
    transform: translateY(7px);
    opacity: 0.92;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes skillsPipelinePulse {
  0% {
    transform: scale(0.99);
  }
  45% {
    transform: scale(1.004);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes skillItemReveal {
  0% {
    opacity: 0;
    transform: translateX(-8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.tab-content.tab-content--animating {
  animation: tabPanelFadeIn 0.35s ease forwards;
}

@keyframes tabPanelFadeIn {
  from {
    opacity: 0.55;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tech-stack floating accents — contact section and shared motion */
@keyframes portfolioFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@keyframes techChipDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(10px, -16px, 0) rotate(2deg);
  }
}

@keyframes techOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes techNodePulse {
  0%,
  100% {
    box-shadow: 0 0 12px hsla(var(--hue-color), 90%, 62%, 0.18);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 24px hsla(var(--hue-color), 90%, 62%, 0.44);
    filter: brightness(1.16);
  }
}

@keyframes pipelineTravel {
  0% {
    opacity: 0;
    transform: translateX(-38px) scale(0.8);
  }
  18%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(132px) scale(1);
  }
}

@keyframes heroTechDrift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes techRainFall {
  0% {
    opacity: 0;
    transform: translate3d(var(--rain-x, 0), -18vh, 0) rotate(-8deg);
  }
  12%,
  82% {
    opacity: var(--rain-opacity, 0.72);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--rain-x, 0) + var(--rain-drift, 18px)), 112vh, 0) rotate(10deg);
  }
}

@keyframes techRainNodeFall {
  0% {
    opacity: 0;
    transform: translate3d(var(--rain-x, 0), -14vh, 0) scale(0.75);
  }
  20%,
  78% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--rain-x, 0) - 16px), 108vh, 0) scale(1.08);
  }
}

@keyframes techRainLinkFall {
  0% {
    opacity: 0;
    transform: translate3d(var(--rain-x, 0), -18vh, 0) rotate(34deg) scaleY(0.82);
  }
  22%,
  76% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--rain-x, 0) + 20px), 108vh, 0) rotate(34deg) scaleY(1.12);
  }
}

@keyframes jarvisScanSweep {
  0% {
    opacity: 0;
    transform: translateY(-26vh);
  }
  16%,
  72% {
    opacity: 0.38;
  }
  100% {
    opacity: 0;
    transform: translateY(112vh);
  }
}

@keyframes jarvisNodePulse {
  0%,
  100% {
    opacity: 0.45;
    box-shadow:
      0 0 8px rgba(94, 234, 212, 0.34),
      0 0 18px rgba(58, 140, 255, 0.14);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.92;
    box-shadow:
      0 0 14px rgba(94, 234, 212, 0.78),
      0 0 32px rgba(58, 140, 255, 0.34);
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes jarvisLinkScan {
  0% {
    opacity: 0.08;
    filter: brightness(0.8);
  }
  45% {
    opacity: 0.52;
    filter: brightness(1.6);
  }
  100% {
    opacity: 0.12;
    filter: brightness(0.9);
  }
}

@keyframes contactInfoReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  position: fixed;
  top: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  z-index: calc(var(--z-fixed) + 5);
  background-color: hsla(var(--hue-color), 28%, 12%, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

body:not(.dark-theme) .header {
  background-color: hsla(var(--hue-color), 60%, 99%, 0.94);
  box-shadow: 0 2px 16px rgba(58, 148, 255, 0.08);
}

.main,
.footer,
.scrollup {
  position: relative;
}

.main,
.footer {
  position: relative;
  z-index: 3;
  isolation: isolate;
}

/* Content panels float above ambient tech rain */
.main .about__container,
.main .qualification__container,
.main .skills__container,
.main .project-container,
.main .portfolio__container,
.main .contact__visual-wrap,
.main .contact__pitch,
.main .contact__container {
  position: relative;
  z-index: 1;
  background: hsla(var(--hue-color), 28%, 12%, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid hsla(var(--hue-color), 69%, 61%, 0.1);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
  padding: 1.25rem;
}

body:not(.dark-theme) .main .about__container,
body:not(.dark-theme) .main .qualification__container,
body:not(.dark-theme) .main .skills__container,
body:not(.dark-theme) .main .project-container,
body:not(.dark-theme) .main .portfolio__container,
body:not(.dark-theme) .main .contact__visual-wrap,
body:not(.dark-theme) .main .contact__pitch,
body:not(.dark-theme) .main .contact__container {
  background: hsla(var(--hue-color), 60%, 99%, 0.9);
  box-shadow: 0 10px 36px rgba(58, 148, 255, 0.08);
}

.main .section__title,
.main .section__subtitle,
.main .lottie-slot,
.main .lottie-experience-wrap,
.main .home__hero-animation,
.main .home__scroll {
  position: relative;
  z-index: 1;
}

/* Hero / experience gaps stay open so ambient rain flows through */
.main .home__hero-animation {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.qualification__container .lottie-experience-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 200px;
  margin: 0 auto 1.25rem;
}

.qualification__container .lottie-slot--experience {
  margin: 0 auto;
  width: min(100%, 400px);
  height: 200px;
}

@media screen and (max-width: 767px) {
  .header {
    top: auto;
    bottom: 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.18);
  }
}

@media screen and (min-width: 768px) {
  .main {
    padding-top: calc(var(--header-height) + 1.5rem);
  }
}

.tech-rain-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
}

/* Full-width ambient glow — no side column bands */
.tech-rain-layer::before,
.tech-rain-layer::after {
  display: none;
}

.tech-rain-lane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(18vw, 220px);
  opacity: 0.55;
  mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
}

.tech-rain-lane--left {
  left: 0;
}

.tech-rain-lane--right {
  right: 0;
  mask-image: linear-gradient(270deg, #000 30%, transparent 100%);
}

/* Sparse full-width rain for empty gaps between content panels */
.tech-rain-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-rain-ambient .tech-rain-chip--ambient {
  left: var(--rain-pos, 50%);
  --rain-opacity: 0.16;
  --rain-x: 0px;
  font-size: 0.58rem;
  padding: 0.18rem 0.42rem;
  color: rgba(200, 236, 255, 0.48);
  background: rgba(7, 15, 34, 0.12);
  border-color: rgba(123, 196, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(1) {
  --rain-pos: 22%;
  --rain-duration: 24s;
  --rain-delay: -3s;
  --rain-drift: 12px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(2) {
  --rain-pos: 34%;
  --rain-duration: 28s;
  --rain-delay: -11s;
  --rain-drift: -10px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(3) {
  --rain-pos: 48%;
  --rain-duration: 22s;
  --rain-delay: -6s;
  --rain-drift: 8px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(4) {
  --rain-pos: 56%;
  --rain-duration: 26s;
  --rain-delay: -16s;
  --rain-drift: -14px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(5) {
  --rain-pos: 64%;
  --rain-duration: 23s;
  --rain-delay: -9s;
  --rain-drift: 10px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(6) {
  --rain-pos: 40%;
  --rain-duration: 30s;
  --rain-delay: -20s;
  --rain-drift: -8px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(7) {
  --rain-pos: 72%;
  --rain-duration: 25s;
  --rain-delay: -13s;
  --rain-drift: 14px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(8) {
  --rain-pos: 28%;
  --rain-duration: 27s;
  --rain-delay: -18s;
  --rain-drift: -6px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(9) {
  --rain-pos: 52%;
  --rain-duration: 21s;
  --rain-delay: -7s;
  --rain-drift: 9px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(10) {
  --rain-pos: 78%;
  --rain-duration: 29s;
  --rain-delay: -22s;
  --rain-drift: -11px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(11) {
  --rain-pos: 44%;
  --rain-duration: 26s;
  --rain-delay: -14s;
  --rain-drift: 7px;
}

.tech-rain-ambient .tech-rain-chip--ambient:nth-child(12) {
  --rain-pos: 68%;
  --rain-duration: 24s;
  --rain-delay: -5s;
  --rain-drift: -9px;
}

.tech-rain-ambient .tech-rain-node--ambient {
  left: var(--rain-pos, 50%);
  --rain-opacity: 0.22;
  width: 0.34rem;
  height: 0.34rem;
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.35);
}

.tech-rain-ambient .tech-rain-node--amb-one {
  --rain-pos: 26%;
  --rain-duration: 19s;
  --rain-delay: -4s;
}

.tech-rain-ambient .tech-rain-node--amb-two {
  --rain-pos: 46%;
  --rain-duration: 22s;
  --rain-delay: -12s;
}

.tech-rain-ambient .tech-rain-node--amb-three {
  --rain-pos: 58%;
  --rain-duration: 17s;
  --rain-delay: -8s;
}

.tech-rain-ambient .tech-rain-node--amb-four {
  --rain-pos: 70%;
  --rain-duration: 24s;
  --rain-delay: -17s;
}

.tech-rain-ambient .tech-rain-node--amb-five {
  --rain-pos: 36%;
  --rain-duration: 20s;
  --rain-delay: -10s;
}

.jarvis-graph {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jarvis-graph {
  z-index: 0;
  opacity: 0.45;
}

.jarvis-node,
.jarvis-link {
  position: absolute;
}

.jarvis-node {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #5eead4;
  border: 1px solid rgba(200, 236, 255, 0.48);
  animation: jarvisNodePulse 4.6s ease-in-out infinite;
}

.jarvis-node::after {
  content: attr(data-label);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  color: rgba(216, 246, 255, 0.7);
  background: rgba(7, 15, 34, 0.3);
  border: 1px solid rgba(123, 196, 255, 0.12);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tech-rain-lane--right .jarvis-node::after {
  left: auto;
  right: 0.85rem;
}

.jarvis-node--1 {
  left: 23%;
  top: 16%;
  animation-delay: -0.4s;
}

.jarvis-node--2 {
  left: 61%;
  top: 29%;
  animation-delay: -1.2s;
}

.jarvis-node--3 {
  left: 34%;
  top: 48%;
  animation-delay: -2s;
}

.jarvis-node--4 {
  left: 70%;
  top: 67%;
  animation-delay: -2.8s;
}

.jarvis-node--5 {
  left: 27%;
  top: 84%;
  animation-delay: -3.6s;
}

.tech-rain-lane--right .jarvis-node--1 {
  left: 78%;
}

.tech-rain-lane--right .jarvis-node--2 {
  left: 39%;
}

.tech-rain-lane--right .jarvis-node--3 {
  left: 68%;
}

.tech-rain-lane--right .jarvis-node--4 {
  left: 29%;
}

.tech-rain-lane--right .jarvis-node--5 {
  left: 74%;
}

.jarvis-link {
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.5), transparent);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.2);
  animation: jarvisLinkScan 5.8s ease-in-out infinite;
}

.jarvis-link--1 {
  left: 24%;
  top: 22%;
  width: 8rem;
  transform: rotate(19deg);
}

.jarvis-link--2 {
  left: 35%;
  top: 49%;
  width: 7.2rem;
  transform: rotate(-31deg);
  animation-delay: -1.8s;
}

.jarvis-link--3 {
  left: 28%;
  top: 72%;
  width: 8.8rem;
  transform: rotate(28deg);
  animation-delay: -3.2s;
}

.tech-rain-lane--right .jarvis-link--1 {
  left: 22%;
  transform: rotate(161deg);
}

.tech-rain-lane--right .jarvis-link--2 {
  left: 31%;
  transform: rotate(211deg);
}

.tech-rain-lane--right .jarvis-link--3 {
  left: 22%;
  transform: rotate(151deg);
}

.tech-rain-chip,
.tech-rain-node,
.tech-rain-link {
  position: absolute;
  top: 0;
  left: 50%;
  will-change: transform, opacity;
}

.tech-rain-chip {
  --rain-opacity: 0.28;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: rgba(200, 236, 255, 0.62);
  background: rgba(7, 15, 34, 0.2);
  border: 1px solid rgba(123, 196, 255, 0.12);
  box-shadow: 0 0 10px rgba(58, 148, 255, 0.05);
  backdrop-filter: blur(4px);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: techRainFall var(--rain-duration, 16s) linear infinite;
  animation-delay: var(--rain-delay, 0s);
}

.tech-rain-chip i {
  color: #5eead4;
  font-size: 0.9rem;
}

.tech-rain-node {
  --rain-opacity: 0.58;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #5eead4;
  box-shadow:
    0 0 12px rgba(94, 234, 212, 0.75),
    28px 22px 0 -2px rgba(123, 196, 255, 0.48),
    -22px 42px 0 -3px rgba(58, 140, 255, 0.42);
  animation: techRainNodeFall var(--rain-duration, 13s) linear infinite;
  animation-delay: var(--rain-delay, 0s);
}

.tech-rain-link {
  width: 1px;
  height: 5.4rem;
  background: linear-gradient(180deg, transparent, rgba(94, 234, 212, 0.7), transparent);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.36);
  transform-origin: center;
  animation: techRainLinkFall var(--rain-duration, 18s) linear infinite;
  animation-delay: var(--rain-delay, 0s);
}

.tech-rain-lane--left .tech-rain-chip:nth-child(1) {
  --rain-x: -34px;
  --rain-drift: 24px;
  --rain-duration: 15s;
  --rain-delay: -2s;
}

.tech-rain-lane--left .tech-rain-chip:nth-child(2) {
  --rain-x: 72px;
  --rain-drift: -18px;
  --rain-duration: 19s;
  --rain-delay: -9s;
}

.tech-rain-lane--left .tech-rain-chip:nth-child(3) {
  --rain-x: 42px;
  --rain-drift: 28px;
  --rain-duration: 13s;
  --rain-delay: -5s;
}

.tech-rain-lane--left .tech-rain-chip:nth-child(4) {
  --rain-x: -44px;
  --rain-drift: 16px;
  --rain-duration: 21s;
  --rain-delay: -14s;
}

.tech-rain-lane--left .tech-rain-chip:nth-child(5) {
  --rain-x: 100px;
  --rain-drift: -22px;
  --rain-duration: 17s;
  --rain-delay: -11s;
}

.tech-rain-lane--left .tech-rain-chip:nth-child(6) {
  --rain-x: 0;
  --rain-drift: 34px;
  --rain-duration: 23s;
  --rain-delay: -17s;
}

.tech-rain-lane--left .tech-rain-chip:nth-child(7) {
  --rain-x: 72px;
  --rain-drift: -26px;
  --rain-duration: 16s;
  --rain-delay: -7s;
}

.tech-rain-lane--left .tech-rain-chip:nth-child(8) {
  --rain-x: -54px;
  --rain-drift: 22px;
  --rain-duration: 20s;
  --rain-delay: -19s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(1) {
  --rain-x: 18px;
  --rain-drift: -24px;
  --rain-duration: 15s;
  --rain-delay: -4s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(2) {
  --rain-x: -66px;
  --rain-drift: 20px;
  --rain-duration: 18s;
  --rain-delay: -10s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(3) {
  --rain-x: 32px;
  --rain-drift: -30px;
  --rain-duration: 22s;
  --rain-delay: -15s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(4) {
  --rain-x: -38px;
  --rain-drift: 18px;
  --rain-duration: 16s;
  --rain-delay: -7s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(5) {
  --rain-x: 48px;
  --rain-drift: -28px;
  --rain-duration: 19s;
  --rain-delay: -13s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(6) {
  --rain-x: -96px;
  --rain-drift: 30px;
  --rain-duration: 14s;
  --rain-delay: -2s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(7) {
  --rain-x: 12px;
  --rain-drift: -16px;
  --rain-duration: 24s;
  --rain-delay: -20s;
}

.tech-rain-lane--right .tech-rain-chip:nth-child(8) {
  --rain-x: -62px;
  --rain-drift: 22px;
  --rain-duration: 20s;
  --rain-delay: -17s;
}

.tech-rain-node--one {
  --rain-x: 36px;
  --rain-duration: 18s;
  --rain-delay: -3s;
}

.tech-rain-node--two {
  --rain-x: -88px;
  --rain-duration: 14s;
  --rain-delay: -12s;
}

.tech-rain-node--three {
  --rain-x: 96px;
  --rain-duration: 17s;
  --rain-delay: -8s;
}

.tech-rain-node--four {
  --rain-x: -42px;
  --rain-duration: 21s;
  --rain-delay: -16s;
}

.tech-rain-link--one {
  --rain-x: -16px;
  --rain-duration: 20s;
  --rain-delay: -6s;
}

.tech-rain-link--two {
  --rain-x: 42px;
  --rain-duration: 18s;
  --rain-delay: -14s;
}

.contact__visual-wrap {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto 1.2rem;
  min-height: 330px;
  overflow: visible;
}

.contact__float-layer {
  position: absolute;
  inset: -0.5rem -2rem;
  pointer-events: none;
  z-index: 2;
}

.contact__pitch {
  width: min(100%, 720px);
  margin: 0 auto 2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid hsla(var(--hue-color), 69%, 61%, 0.22);
  border-radius: 16px;
  color: var(--text-color);
  background:
    linear-gradient(135deg, hsla(var(--hue-color), 69%, 61%, 0.08), transparent 62%),
    hsla(var(--hue-color), 18%, 42%, 0.04);
  box-shadow: 0 12px 32px rgba(58, 148, 255, 0.08);
  font-size: var(--small-font-size);
  line-height: 1.7;
  text-align: center;
}

.tech-orbit {
  position: relative;
  z-index: 1;
  width: min(86vw, 360px);
  height: min(86vw, 360px);
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, hsla(var(--hue-color), 69%, 61%, 0.14), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(11, 34, 72, 0.72), rgba(4, 10, 24, 0.05) 70%);
}

.tech-orbit::before,
.tech-orbit::after {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px dashed hsla(var(--hue-color), 69%, 61%, 0.34);
  animation: techOrbitSpin 22s linear infinite;
}

.tech-orbit::after {
  inset: 26%;
  border-style: solid;
  border-color: rgba(94, 234, 212, 0.24);
  animation-duration: 16s;
  animation-direction: reverse;
}

.tech-orbit__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(123, 196, 255, 0.18);
  box-shadow: inset 0 0 26px rgba(58, 148, 255, 0.08);
}

.tech-orbit__ring--inner {
  inset: 34%;
  border-color: rgba(94, 234, 212, 0.2);
}

.tech-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 9.7rem;
  min-height: 9.7rem;
  padding: 1rem;
  border-radius: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  color: #d8f6ff;
  background:
    linear-gradient(160deg, rgba(7, 20, 40, 0.96), rgba(11, 34, 72, 0.92)),
    radial-gradient(circle at 50% 20%, rgba(94, 234, 212, 0.2), transparent 55%);
  border: 1px solid rgba(123, 196, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(64, 205, 255, 0.08) inset,
    0 18px 42px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(58, 148, 255, 0.22);
}

.tech-orbit__core strong {
  font-size: 1.15rem;
  color: #ffffff;
}

.tech-orbit__core span {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #a9c8d8;
}

.tech-orbit__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em !important;
  color: #5eead4 !important;
  font-weight: 700;
}

.tech-orbit__node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #d8f6ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(7, 15, 34, 0.78);
  border: 1px solid rgba(123, 196, 255, 0.32);
  animation: techNodePulse 4.2s ease-in-out infinite;
}

.tech-orbit__node--fastapi {
  transform: translate(-50%, -50%) translate(0, -142px);
  animation-delay: 0s;
}

.tech-orbit__node--redis {
  transform: translate(-50%, -50%) translate(122px, -72px);
  animation-delay: 0.4s;
}

.tech-orbit__node--numaflow {
  transform: translate(-50%, -50%) translate(130px, 56px);
  animation-delay: 0.8s;
}

.tech-orbit__node--terraform {
  transform: translate(-50%, -50%) translate(0, 142px);
  animation-delay: 1.2s;
}

.tech-orbit__node--rag {
  transform: translate(-50%, -50%) translate(-126px, 56px);
  animation-delay: 1.6s;
}

.tech-orbit__node--k3s {
  transform: translate(-50%, -50%) translate(-126px, -72px);
  animation-delay: 2s;
}

.tech-orbit__pipeline {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 10rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.42), transparent);
  overflow: hidden;
}

.tech-orbit__pipeline--one {
  top: 34%;
  transform: translateX(-50%) rotate(24deg);
}

.tech-orbit__pipeline--two {
  bottom: 31%;
  transform: translateX(-50%) rotate(-28deg);
}

.tech-orbit__pipeline span {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.78);
  animation: pipelineTravel 2.6s ease-in-out infinite;
}

.tech-orbit__pipeline span:nth-child(2) {
  animation-delay: 0.55s;
}

.tech-orbit__pipeline span:nth-child(3) {
  animation-delay: 1.1s;
}

.float-accent {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 4.5rem;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--first-color);
  background: hsla(var(--hue-color), 69%, 61%, 0.12);
  border: 1px solid hsla(var(--hue-color), 69%, 61%, 0.35);
  box-shadow: 0 0 14px hsla(var(--hue-color), 90%, 62%, 0.2);
  backdrop-filter: blur(8px);
  animation: techChipDrift 5.6s ease-in-out infinite;
}

.float-accent i {
  font-size: 1rem;
}

.float-accent--1 {
  top: 4%;
  left: -2%;
  animation-delay: 0s;
}

.float-accent--2 {
  top: 12%;
  right: 0;
  animation-delay: 0.4s;
}

.float-accent--3 {
  top: 37%;
  right: -5%;
  animation-delay: 0.8s;
}

.float-accent--4 {
  top: 37%;
  left: -5%;
  animation-delay: 1.2s;
}

.float-accent--5 {
  bottom: 13%;
  left: 4%;
  animation-delay: 1.6s;
}

.float-accent--6 {
  bottom: 13%;
  right: 4%;
  animation-delay: 2s;
}

.float-accent--7 {
  top: 62%;
  left: 9%;
  animation-delay: 2.4s;
}

.float-accent--8 {
  top: 61%;
  right: 8%;
  animation-delay: 2.8s;
}

.float-accent--9 {
  top: 25%;
  left: 13%;
  animation-delay: 3.2s;
}

.float-accent--10 {
  top: 25%;
  right: 14%;
  animation-delay: 3.6s;
}

.hero-tech-floats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
  max-width: 17rem;
  pointer-events: none;
}

.hero-tech-floats span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--first-color);
  border: 1px solid hsla(var(--hue-color), 69%, 61%, 0.28);
  background: hsla(var(--hue-color), 69%, 61%, 0.08);
  animation: heroTechDrift 4.6s ease-in-out infinite;
}

.hero-tech-floats span:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-tech-floats span:nth-child(3) {
  animation-delay: 1s;
}

.hero-tech-floats span:nth-child(4) {
  animation-delay: 1.5s;
}

.footer__social {
  animation: portfolioFloat 6.5s ease-in-out infinite;
}

.footer__social:nth-child(1) {
  animation-delay: 0s;
}

.footer__social:nth-child(2) {
  animation-delay: 0.8s;
}

.footer__social:nth-child(3) {
  animation-delay: 1.8s;
}

.footer__social:hover {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.08);
}

.contact__information {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.contact__information:hover {
  transform: translateY(-4px);
}

.contact__information:hover .contact__icon {
  text-shadow: 0 0 12px hsla(var(--hue-color), 90%, 62%, 0.55);
}

.section-theme--contact.section-theme--active .contact__information {
  animation: contactInfoReveal 0.5s ease forwards;
}

.section-theme--contact.section-theme--active .contact__information:nth-child(1) {
  animation-delay: 0.05s;
}

.section-theme--contact.section-theme--active .contact__information:nth-child(2) {
  animation-delay: 0.15s;
}

.section-theme--contact.section-theme--active .contact__information:nth-child(3) {
  animation-delay: 0.25s;
}

@media screen and (max-width: 767px) {
  .tech-rain-layer {
    display: none;
  }

  .float-accent--3,
  .float-accent--4,
  .float-accent--7,
  .float-accent--8,
  .float-accent--9,
  .float-accent--10 {
    display: none;
  }

  .contact__visual-wrap {
    min-height: 270px;
    width: min(100%, 360px);
  }

  .contact__float-layer {
    inset: 0;
  }

  .tech-orbit {
    width: min(84vw, 270px);
    height: min(84vw, 270px);
  }

  .tech-orbit__core {
    width: 7.6rem;
    min-height: 7.6rem;
  }

  .tech-orbit__core strong {
    font-size: 0.95rem;
  }

  .tech-orbit__node {
    min-width: 3.4rem;
    padding: 0.25rem 0.48rem;
    font-size: 0.58rem;
  }

  .tech-orbit__node--fastapi {
    transform: translate(-50%, -50%) translate(0, -108px);
  }

  .tech-orbit__node--redis {
    transform: translate(-50%, -50%) translate(91px, -53px);
  }

  .tech-orbit__node--numaflow {
    transform: translate(-50%, -50%) translate(91px, 49px);
  }

  .tech-orbit__node--terraform {
    transform: translate(-50%, -50%) translate(0, 108px);
  }

  .tech-orbit__node--rag {
    transform: translate(-50%, -50%) translate(-91px, 49px);
  }

  .tech-orbit__node--k3s {
    transform: translate(-50%, -50%) translate(-91px, -53px);
  }

  .tech-orbit__pipeline {
    width: 7.25rem;
  }

  .float-accent {
    min-width: auto;
    padding: 0.28rem 0.48rem;
    font-size: 0.62rem;
  }

  .float-accent i {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-theme::after,
  .section-theme.section-theme--active::after,
  .section-theme--skills.section-theme--active .skills__container,
  .section-theme--projects.section-theme--active .project-container,
  .section-theme--certifications.section-theme--active .portfolio__container,
  .section-theme--contact.section-theme--active .contact__container,
  .skills__content,
  .skills__content::before,
  .skills__content.skills__open .skills__data,
  .skills__content.skills__content--pulse {
    animation: none;
    transition: none;
    transform: none;
  }

  .tab-content.tab-content--animating {
    animation: none;
  }

  .float-accent,
  .hero-tech-floats span,
  .tech-rain-chip,
  .tech-rain-node,
  .tech-rain-link,
  .jarvis-node,
  .jarvis-link,
  .footer__social,
  .tech-orbit::before,
  .tech-orbit::after,
  .tech-orbit__node,
  .tech-orbit__pipeline span,
  .section-theme--contact.section-theme--active .contact__information {
    animation: none;
  }

  .tech-rain-layer::before,
  .tech-rain-layer::after {
    animation: none;
    opacity: 0.08;
  }

  .contact__information:hover,
  .footer__social:hover {
    transform: none;
  }
}

@media screen and (max-width: 767px) {
  .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    margin: 0 7px !important;
  }

  .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: -3rem;
  }
}
