/* Cinematic showcase system — final visual authority */
:root {
  --sc-bg: #050816;
  --sc-panel: #0d1428;
  --sc-panel-2: #121c35;
  --sc-text: #f7f8ff;
  --sc-muted: #a7b1c7;
  --sc-blue: #5577ff;
  --sc-cyan: #2ee7df;
  --sc-violet: #9b6cff;
  --sc-coral: #ff6f61;
  --sc-gold: #ffc857;
  --sc-line: rgba(255, 255, 255, 0.11);
  --sc-radius: 26px;
  --sc-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}
html {
  background: var(--sc-bg);
}
body,
body.light,
body:not(.light) {
  background: var(--sc-bg) !important;
  color: var(--sc-text) !important;
}
.showcase-ambient {
  position: fixed;
  inset: 0;
  z-index: -8;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #050816 0%, #071022 45%, #060913 100%);
}
.showcase-ambient::before,
.showcase-ambient::after {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
  animation: scAurora 16s ease-in-out infinite alternate;
}
.showcase-ambient::before {
  left: -18vw;
  top: -18vw;
  background: linear-gradient(135deg, var(--sc-violet), var(--sc-blue));
}
.showcase-ambient::after {
  right: -22vw;
  top: 32vh;
  background: linear-gradient(135deg, var(--sc-cyan), var(--sc-coral));
  animation-delay: -7s;
}
.showcase-grid {
  position: fixed;
  inset: 0;
  z-index: -7;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
@keyframes scAurora {
  to {
    transform: translate3d(8vw, 8vh, 0) scale(1.14) rotate(8deg);
  }
}
nav,
body.light nav,
body:not(.light) nav {
  background: rgba(7, 11, 27, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(24px) saturate(135%) !important;
}
.logo {
  font-size: 1rem !important;
  letter-spacing: -0.03em !important;
}
.logo::after {
  background: linear-gradient(
    135deg,
    var(--sc-cyan),
    var(--sc-gold)
  ) !important;
  box-shadow: 0 0 16px var(--sc-cyan);
}
.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(
    135deg,
    rgba(85, 119, 255, 0.2),
    rgba(155, 108, 255, 0.14)
  ) !important;
  color: #fff !important;
}
.theme-toggle,
.menu-toggle {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  ) !important;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh !important;
  padding-top: 10rem !important;
}
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  right: -140px;
  top: 12%;
  border-radius: 50%;
  border: 1px solid rgba(85, 119, 255, 0.16);
  box-shadow:
    0 0 0 70px rgba(85, 119, 255, 0.025),
    0 0 0 140px rgba(46, 231, 223, 0.018);
  animation: scOrbit 24s linear infinite;
  pointer-events: none;
}
@keyframes scOrbit {
  to {
    transform: rotate(360deg);
  }
}
.hero-container {
  max-width: 1240px !important;
  gap: clamp(3rem, 7vw, 7.5rem) !important;
}
.hero-label,
.section-label {
  border-color: rgba(255, 200, 87, 0.28) !important;
  background: rgba(255, 200, 87, 0.08) !important;
  color: #ffd989 !important;
  box-shadow: inset 0 0 20px rgba(255, 200, 87, 0.03);
}
.hero-content h1 {
  font-size: clamp(4rem, 7.7vw, 7.7rem) !important;
  letter-spacing: -0.085em !important;
  line-height: 0.84 !important;
  text-wrap: balance;
}
.hero-content h1 span {
  background: linear-gradient(
    100deg,
    #6b8cff 5%,
    #a270ff 48%,
    #2ee7df 95%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-size: 200% 100% !important;
  animation: scTextFlow 7s ease infinite;
}
@keyframes scTextFlow {
  50% {
    background-position: 100% 0;
  }
}
.hero-content p {
  font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
  color: #b6c1d6 !important;
  max-width: 720px !important;
}
.hero-stats {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}
.stat-number {
  color: #fff !important;
}
.stat:nth-child(1) .stat-number {
  color: var(--sc-gold) !important;
}
.stat:nth-child(2) .stat-number {
  color: var(--sc-cyan) !important;
}
.stat:nth-child(3) .stat-number {
  color: #a88bff !important;
}
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 14px !important;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--sc-blue),
    var(--sc-violet)
  ) !important;
  border: 0 !important;
  box-shadow: 0 15px 35px rgba(85, 119, 255, 0.25) !important;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.055) !important;
  color: #fff !important;
  border: 1px solid var(--sc-line) !important;
}
.btn-warning {
  background: linear-gradient(135deg, var(--sc-gold), #ff8f5b) !important;
  color: #101626 !important;
  border: 0 !important;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 70%
  );
  transform: translateX(-130%);
  animation: scButtonShine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scButtonShine {
  0%,
  68% {
    transform: translateX(-130%);
  }
  90%,
  100% {
    transform: translateX(130%);
  }
}
.profile-card {
  position: relative !important;
  padding: 12px !important;
  background: linear-gradient(
    145deg,
    rgba(22, 36, 69, 0.9),
    rgba(10, 17, 35, 0.9)
  ) !important;
  border: 1px solid rgba(135, 157, 255, 0.25) !important;
  border-radius: 30px !important;
  box-shadow:
    0 35px 120px rgba(19, 45, 115, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.1) !important;
  animation: scProfileFloat 6s ease-in-out infinite !important;
}
.profile-card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -2px !important;
  z-index: -1 !important;
  border-radius: 32px !important;
  background: conic-gradient(
    from var(--sc-angle, 0deg),
    var(--sc-blue),
    var(--sc-cyan),
    var(--sc-coral),
    var(--sc-violet),
    var(--sc-blue)
  ) !important;
  opacity: 0.5 !important;
  filter: blur(12px) !important;
  animation: scSpinGlow 9s linear infinite !important;
}
@property --sc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes scSpinGlow {
  to {
    --sc-angle: 360deg;
  }
}
@keyframes scProfileFloat {
  50% {
    transform: translateY(-12px) !important;
  }
}
.profile-img {
  border-radius: 21px !important;
}
.contact-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.035)
  ) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.contact-item:hover {
  background: rgba(85, 119, 255, 0.12) !important;
  border-color: rgba(85, 119, 255, 0.35) !important;
}
.contact-item i {
  color: var(--sc-gold) !important;
}
.showcase-ribbon {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px 0;
}
.showcase-ribbon::before,
.showcase-ribbon::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 120px;
}
.showcase-ribbon::before {
  left: 0;
  background: linear-gradient(90deg, var(--sc-bg), transparent);
}
.showcase-ribbon::after {
  right: 0;
  background: linear-gradient(-90deg, var(--sc-bg), transparent);
}
.showcase-ribbon-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: scMarquee 30s linear infinite;
}
.showcase-ribbon span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #c5cee0;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.showcase-ribbon span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--sc-cyan));
  box-shadow: 0 0 12px var(--dot, var(--sc-cyan));
}
@keyframes scMarquee {
  to {
    transform: translateX(-50%);
  }
}
section:not(.hero) {
  position: relative;
}
section:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 5% 0 auto;
  height: 60%;
  pointer-events: none;
  background: radial-gradient(
    circle at 15% 15%,
    rgba(85, 119, 255, 0.07),
    transparent 28rem
  );
  opacity: 0.8;
}
.section-container {
  position: relative;
}
.section-container[data-showcase-index]::before {
  content: attr(data-showcase-index);
  position: absolute;
  right: 0;
  top: -1.4rem;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.1em;
  pointer-events: none;
}
.section-header h2 {
  font-size: clamp(3rem, 5.7vw, 5.8rem) !important;
  letter-spacing: -0.065em !important;
  text-wrap: balance;
}
.section-header p,
.small-note {
  color: var(--sc-muted) !important;
}
.highlight-card,
.skill-card,
.project-card,
.education-item,
.cert-item,
.form-card,
.projects-toolbar,
.experience-card,
.game-shell,
.memory-shell {
  position: relative !important;
  background: linear-gradient(
    145deg,
    rgba(18, 29, 54, 0.82),
    rgba(9, 15, 31, 0.9)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.105) !important;
  border-radius: var(--sc-radius) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden;
}
.highlight-card::after,
.skill-card::after,
.project-card::after,
.cert-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    280px circle at var(--sc-x, 50%) var(--sc-y, 0%),
    rgba(91, 127, 255, 0.16),
    transparent 55%
  );
  opacity: 0.8;
}
.highlight-card:hover,
.skill-card:hover,
.project-card:hover,
.education-item:hover,
.cert-item:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(112, 143, 255, 0.42) !important;
  box-shadow: 0 28px 80px rgba(22, 48, 120, 0.24) !important;
}
.highlight-icon,
.skill-icon {
  background: linear-gradient(
    145deg,
    rgba(85, 119, 255, 0.2),
    rgba(46, 231, 223, 0.09)
  ) !important;
  border: 1px solid rgba(100, 137, 255, 0.25) !important;
}
.highlight-card:nth-child(2n) .highlight-icon,
.skill-card:nth-child(2n) .skill-icon {
  background: linear-gradient(
    145deg,
    rgba(155, 108, 255, 0.2),
    rgba(255, 111, 97, 0.08)
  ) !important;
}
.project-card {
  min-height: 350px !important;
}
.project-card::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 3px !important;
  background: linear-gradient(
    90deg,
    var(--sc-blue),
    var(--sc-cyan),
    var(--sc-violet)
  ) !important;
}
.project-number {
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
}
.project-tech,
.project-link {
  color: #7be8e3 !important;
}
.skill-name {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.timeline::before {
  background: linear-gradient(
    var(--sc-blue),
    var(--sc-cyan),
    var(--sc-violet)
  ) !important;
}
.timeline-dot {
  background: #fff !important;
  border: 4px solid var(--sc-blue) !important;
  box-shadow: 0 0 25px rgba(85, 119, 255, 0.8) !important;
}
.experience-logo {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.cert-icon {
  color: var(--sc-gold) !important;
  filter: drop-shadow(0 0 12px rgba(255, 200, 87, 0.25));
}
.showcase-reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
  transition-delay: var(--sc-delay, 0ms);
}
.showcase-reveal.is-shown {
  opacity: 1;
  transform: none;
}
.showcase-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5000;
  width: var(--sc-progress, 0%);
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sc-blue),
    var(--sc-cyan),
    var(--sc-gold),
    var(--sc-coral)
  );
  box-shadow: 0 0 18px rgba(46, 231, 223, 0.6);
  transition: width 0.1s linear;
}
footer {
  position: relative !important;
  background: rgba(3, 5, 13, 0.92) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
}
footer::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sc-cyan),
    var(--sc-violet),
    transparent
  );
}
@media (max-width: 900px) {
  .hero {
    padding-top: 7rem !important;
  }
  .hero::before {
    width: 390px;
    height: 390px;
    right: -210px;
    top: 22%;
  }
  .hero-container {
    gap: 2.7rem !important;
  }
  .hero-content h1 {
    font-size: clamp(3.25rem, 14.5vw, 5.5rem) !important;
  }
  .profile-card {
    animation: none !important;
  }
  .section-container[data-showcase-index]::before {
    font-size: 7rem;
    top: -0.6rem;
  }
  .showcase-ribbon::before,
  .showcase-ribbon::after {
    width: 45px;
  }
  .highlight-card,
  .skill-card,
  .project-card,
  .education-item,
  .cert-item,
  .form-card,
  .experience-card,
  .game-shell,
  .memory-shell {
    border-radius: 20px !important;
  }
  .project-card {
    min-height: auto !important;
  }
}
@media (max-width: 560px) {
  .showcase-ambient::before,
  .showcase-ambient::after {
    width: 110vw;
    height: 110vw;
    filter: blur(65px);
  }
  .hero-content h1 {
    font-size: clamp(3rem, 15vw, 4.4rem) !important;
  }
  .hero-content p {
    font-size: 0.98rem !important;
  }
  .section-header h2 {
    font-size: clamp(2.65rem, 12vw, 3.8rem) !important;
  }
  .showcase-ribbon {
    padding: 10px 0;
  }
  .showcase-ribbon span {
    font-size: 0.64rem;
    padding: 7px 11px;
  }
  .section-container[data-showcase-index]::before {
    font-size: 5rem;
  }
  .hero-buttons {
    gap: 0.65rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-ambient::before,
  .showcase-ambient::after,
  .profile-card,
  .hero-content h1 span,
  .showcase-ribbon-track,
  .btn::after {
    animation: none !important;
  }
  .showcase-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Animated technology constellation */
.showcase-codefield {
  position: fixed;
  inset: 0;
  z-index: -6;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.showcase-codeword {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(92, 168, 207, 0.075);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  white-space: nowrap;
  filter: blur(0.15px);
  transform: rotate(var(--r));
  animation: scCodeDrift var(--speed) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  user-select: none;
}
.showcase-codeword:nth-child(3n + 2) {
  color: rgba(135, 104, 255, 0.07);
}
.showcase-codeword:nth-child(3n) {
  color: rgba(46, 231, 223, 0.06);
}
.showcase-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border: 1px solid var(--node);
  border-radius: 50%;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--node) 70%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--node) 28%, transparent);
  animation: scNodeTravel var(--speed) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.showcase-node::after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--node);
  box-shadow: 0 0 18px var(--node);
  animation: scNodePulse 2.4s ease-in-out infinite;
}
.showcase-orbit {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 180px;
  height: 180px;
  border: 1px solid rgba(85, 119, 255, 0.09);
  border-radius: 50%;
  animation: scOrbit 18s linear infinite;
}
.showcase-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-cyan);
  box-shadow: 0 0 18px var(--sc-cyan);
}
@keyframes scCodeDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--r)) scale(0.94);
    opacity: 0.48;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0)
      rotate(calc(var(--r) + 7deg)) scale(1.08);
    opacity: 0.62;
  }
}
@keyframes scNodeTravel {
  0% {
    transform: translate3d(0, 0, 0) scale(0.82);
  }
  50% {
    filter: brightness(1.5);
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0) scale(1.28);
  }
}
@keyframes scNodePulse {
  50% {
    transform: scale(1.7);
    opacity: 0.45;
  }
}
@media (max-width: 900px) {
  .showcase-codeword {
    font-size: clamp(3rem, 16vw, 5.2rem);
    opacity: 0.7;
  }
  .showcase-codeword:nth-child(n + 7),
  .showcase-node:nth-of-type(n + 5),
  .showcase-orbit {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-codeword,
  .showcase-node,
  .showcase-node::after,
  .showcase-orbit {
    animation: none !important;
  }
}
/* Visible background plane and colorful marquee treatment */
.showcase-codefield {
  z-index: 0 !important;
  opacity: 1;
}
.showcase-ambient,
.showcase-grid {
  z-index: -1 !important;
}
body > nav,
body > section,
body > footer,
.showcase-ribbon {
  position: relative;
  z-index: 2;
}
.showcase-ribbon {
  isolation: isolate;
  padding: 16px 0 !important;
  background: linear-gradient(
    90deg,
    rgba(85, 119, 255, 0.08),
    rgba(155, 108, 255, 0.08),
    rgba(46, 231, 223, 0.07),
    rgba(255, 111, 97, 0.07)
  ) !important;
  background-size: 300% 100% !important;
  animation: scRibbonHue 9s ease infinite;
}
.showcase-ribbon-track {
  animation-duration: 22s !important;
}
.showcase-ribbon span {
  border-color: color-mix(
    in srgb,
    var(--dot) 34%,
    rgba(255, 255, 255, 0.1)
  ) !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--dot) 14%, rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035)
  ) !important;
  color: #eef2ff !important;
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--dot) 7%, transparent),
    0 7px 22px rgba(0, 0, 0, 0.16);
}
@keyframes scRibbonHue {
  50% {
    background-position: 100% 0;
  }
}
.showcase-diagonal {
  position: absolute;
  left: -22vw;
  width: 144vw;
  padding: 11px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    90deg,
    rgba(85, 119, 255, 0.11),
    rgba(155, 108, 255, 0.12),
    rgba(46, 231, 223, 0.1),
    rgba(255, 111, 97, 0.1)
  );
  backdrop-filter: blur(3px);
  opacity: 0.42;
  transform: rotate(var(--angle));
  transform-origin: center;
  overflow: hidden;
}
.showcase-diagonal.one {
  top: 31%;
  --angle: -11deg;
}
.showcase-diagonal.two {
  top: 72%;
  --angle: 9deg;
}
.showcase-diagonal-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: scDiagonal 18s linear infinite;
}
.showcase-diagonal.two .showcase-diagonal-track {
  animation-direction: reverse;
  animation-duration: 22s;
}
.showcase-diagonal span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(225, 235, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.showcase-diagonal span::before {
  content: "◆";
  color: var(--band-color);
  text-shadow: 0 0 12px var(--band-color);
  font-size: 0.55rem;
}
@keyframes scDiagonal {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
/* Footer repair and visual finish */
footer#contact {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 5.5rem 2rem 8rem !important;
  overflow: hidden !important;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 22, 0.96),
    #03050c
  ) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  clear: both;
}
footer#contact::before {
  content: "" !important;
  position: absolute !important;
  left: 8% !important;
  right: 8% !important;
  top: 0 !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sc-cyan),
    var(--sc-blue),
    var(--sc-violet),
    var(--sc-coral),
    transparent
  ) !important;
  box-shadow: 0 0 22px rgba(85, 119, 255, 0.55);
}
footer#contact::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  bottom: -440px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 119, 255, 0.2), transparent 68%);
  pointer-events: none;
}
.footer-content {
  position: relative;
  z-index: 1;
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 32px !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(18, 29, 54, 0.72),
    rgba(8, 13, 27, 0.84)
  );
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.social-links {
  margin: 0 0 1.8rem !important;
  gap: 0.75rem !important;
}
.social-link {
  width: 52px !important;
  height: 52px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: #fff !important;
}
.social-link:hover {
  background: linear-gradient(
    135deg,
    var(--sc-blue),
    var(--sc-violet)
  ) !important;
  border-color: transparent !important;
  transform: translateY(-6px) rotate(-3deg) !important;
}
.footer-content p {
  color: #aab5c9 !important;
  line-height: 1.7 !important;
  overflow-wrap: anywhere;
}
.footer-content p a {
  color: #72e7e2 !important;
}
@media (max-width: 900px) {
  body > section,
  body > footer,
  .showcase-ribbon {
    z-index: 2;
  }
  .showcase-codeword {
    opacity: 0.66;
  }
  .showcase-diagonal {
    left: -45vw;
    width: 190vw;
    opacity: 0.28;
  }
  .showcase-diagonal.one {
    top: 34%;
  }
  .showcase-diagonal.two {
    top: 76%;
  }
  footer#contact {
    padding: 4rem 1rem 8rem !important;
  }
  .footer-content {
    padding: 24px 18px !important;
    border-radius: 22px;
  }
  .social-link {
    width: 46px !important;
    height: 46px !important;
  }
}
@media (max-width: 560px) {
  .showcase-ribbon {
    padding: 12px 0 !important;
  }
  .showcase-ribbon-track {
    animation-duration: 18s !important;
  }
  .showcase-diagonal {
    opacity: 0.2;
  }
  .showcase-diagonal span {
    font-size: 0.6rem;
  }
  .showcase-codeword {
    opacity: 0.5;
  }
  .footer-content p {
    font-size: 0.82rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-ribbon,
  .showcase-diagonal-track {
    animation: none !important;
  }
}
.showcase-diagonal {
  animation: scBandFloat 6s ease-in-out infinite alternate;
}
.showcase-diagonal.two {
  animation-delay: -3s;
}
@keyframes scBandFloat {
  to {
    margin-top: 22px;
    filter: hue-rotate(28deg) brightness(1.18);
  }
}

/* Explicitly requested continuous motion; kept after reduced-motion fallbacks. */
.showcase-codeword {
  animation-name: scCodeDrift !important;
  animation-duration: var(--speed) !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
  animation-play-state: running !important;
}
.showcase-node {
  animation-name: scNodeTravel !important;
  animation-duration: var(--speed) !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
  animation-play-state: running !important;
}
.showcase-node::after {
  animation: scNodePulse 2.4s ease-in-out infinite !important;
}
.showcase-orbit {
  animation: scOrbit 12s linear infinite !important;
}
.showcase-ribbon-track {
  animation: scMarquee 16s linear infinite !important;
  animation-play-state: running !important;
}
.showcase-diagonal-track {
  animation: scDiagonal 14s linear infinite !important;
  animation-play-state: running !important;
}
.showcase-diagonal.two .showcase-diagonal-track {
  animation-direction: reverse !important;
  animation-duration: 18s !important;
}
.showcase-diagonal {
  animation: scBandFloat 5s ease-in-out infinite alternate !important;
}
/* Compact footer: prevent the footer from behaving like an extra scroll page. */
footer#contact {
  min-height: 0 !important;
  height: auto !important;
  padding: 2.75rem 2rem 3.25rem !important;
}
.footer-content {
  padding: 24px !important;
}
.footer-content p:last-child {
  margin-bottom: 0 !important;
}
@media (max-width: 900px) {
  footer#contact {
    min-height: 0 !important;
    height: auto !important;
    padding: 2.5rem 1rem 6rem !important;
  }
  .footer-content {
    padding: 21px 16px !important;
  }
}
/* Premium chromatic navigation */
nav,
body.light nav,
body:not(.light) nav {
  isolation: isolate;
  overflow: hidden !important;
  background: linear-gradient(
    135deg,
    rgba(10, 17, 40, 0.9),
    rgba(7, 11, 27, 0.78)
  ) !important;
  border-color: rgba(143, 161, 255, 0.2) !important;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.08) !important;
}
nav::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--sc-blue),
    var(--sc-cyan),
    var(--sc-gold),
    var(--sc-coral),
    var(--sc-violet),
    var(--sc-blue)
  );
  background-size: 260% 100%;
  animation: scNavColor 7s linear infinite;
  box-shadow: 0 0 18px rgba(85, 119, 255, 0.6);
}
nav::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0, rgba(46, 231, 223, 0.1), transparent 30%),
    radial-gradient(
      circle at 88% 100%,
      rgba(155, 108, 255, 0.1),
      transparent 30%
    );
  pointer-events: none;
}
@keyframes scNavColor {
  to {
    background-position: 260% 0;
  }
}
.logo {
  position: relative !important;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem !important;
  border-radius: 11px !important;
  background: linear-gradient(
    135deg,
    rgba(85, 119, 255, 0.13),
    rgba(46, 231, 223, 0.06)
  ) !important;
  border: 1px solid rgba(117, 146, 255, 0.15) !important;
}
.logo::after {
  animation: scLogoPulse 1.8s ease-in-out infinite;
}
@keyframes scLogoPulse {
  50% {
    transform: scale(1.45);
    box-shadow: 0 0 24px var(--sc-cyan);
  }
}
.nav-links a {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s,
    transform 0.25s !important;
}
.nav-links a:hover {
  border-color: rgba(124, 151, 255, 0.18) !important;
  transform: translateY(-2px);
}
.nav-links a.active {
  background: linear-gradient(
    135deg,
    rgba(85, 119, 255, 0.28),
    rgba(155, 108, 255, 0.2)
  ) !important;
  border-color: rgba(120, 147, 255, 0.32) !important;
  box-shadow:
    0 8px 22px rgba(53, 80, 174, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.08) !important;
}
.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 3px;
  height: 2px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--sc-cyan), var(--sc-violet));
  box-shadow: 0 0 9px var(--sc-cyan);
}
.theme-toggle,
.menu-toggle,
.nav-quick {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.18) !important;
}
/* Color-coded skill cards */
.skills-grid .skill-card {
  --card-accent: #5577ff;
  --card-soft: rgba(85, 119, 255, 0.13);
  background:
    radial-gradient(circle at 100% 0, var(--card-soft), transparent 46%),
    linear-gradient(145deg, rgba(20, 31, 58, 0.92), rgba(8, 14, 29, 0.94)) !important;
  border-color: color-mix(
    in srgb,
    var(--card-accent) 28%,
    rgba(255, 255, 255, 0.1)
  ) !important;
  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.06) !important;
}
.skills-grid .skill-card:nth-child(2) {
  --card-accent: #9b6cff;
  --card-soft: rgba(155, 108, 255, 0.14);
}
.skills-grid .skill-card:nth-child(3) {
  --card-accent: #2ee7df;
  --card-soft: rgba(46, 231, 223, 0.12);
}
.skills-grid .skill-card:nth-child(4) {
  --card-accent: #ff6f61;
  --card-soft: rgba(255, 111, 97, 0.12);
}
.skills-grid .skill-card:nth-child(5) {
  --card-accent: #ffc857;
  --card-soft: rgba(255, 200, 87, 0.12);
}
.skills-grid .skill-card:nth-child(6) {
  --card-accent: #5ee092;
  --card-soft: rgba(94, 224, 146, 0.12);
}
.skills-grid .skill-card:nth-child(7) {
  --card-accent: #55b8ff;
  --card-soft: rgba(85, 184, 255, 0.13);
}
.skills-grid .skill-card:nth-child(8) {
  --card-accent: #f18cff;
  --card-soft: rgba(241, 140, 255, 0.12);
}
.skills-grid .skill-card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 3px !important;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-accent),
    transparent
  ) !important;
  box-shadow: 0 0 18px var(--card-accent) !important;
}
.skills-grid .skill-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 55%, white 5%) !important;
  box-shadow: 0 30px 85px
    color-mix(in srgb, var(--card-accent) 18%, transparent) !important;
}
.skills-grid .skill-icon,
.skills-grid .skill-card h3 i {
  color: var(--card-accent) !important;
  filter: drop-shadow(
    0 0 10px color-mix(in srgb, var(--card-accent) 42%, transparent)
  );
}
.skills-grid .skill-name {
  background: color-mix(
    in srgb,
    var(--card-accent) 7%,
    rgba(255, 255, 255, 0.045)
  ) !important;
  border-color: color-mix(
    in srgb,
    var(--card-accent) 20%,
    rgba(255, 255, 255, 0.1)
  ) !important;
}
.skills-grid .skill-name:hover {
  background: var(--card-accent) !important;
  border-color: var(--card-accent) !important;
  color: #07101d !important;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--card-accent) 26%, transparent) !important;
}
/* Carry controlled color into other content boxes */
.highlights-grid > *:nth-child(4n + 1),
.projects-grid > *:nth-child(4n + 1),
.cert-grid > *:nth-child(4n + 1) {
  --box-accent: #5577ff;
}
.highlights-grid > *:nth-child(4n + 2),
.projects-grid > *:nth-child(4n + 2),
.cert-grid > *:nth-child(4n + 2) {
  --box-accent: #2ee7df;
}
.highlights-grid > *:nth-child(4n + 3),
.projects-grid > *:nth-child(4n + 3),
.cert-grid > *:nth-child(4n + 3) {
  --box-accent: #9b6cff;
}
.highlights-grid > *:nth-child(4n),
.projects-grid > *:nth-child(4n),
.cert-grid > *:nth-child(4n) {
  --box-accent: #ff8a62;
}
.highlight-card,
.project-card,
.cert-item {
  border-color: color-mix(
    in srgb,
    var(--box-accent, #5577ff) 24%,
    rgba(255, 255, 255, 0.1)
  ) !important;
  background:
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--box-accent, #5577ff) 10%, transparent),
      transparent 42%
    ),
    linear-gradient(145deg, rgba(18, 29, 54, 0.84), rgba(9, 15, 31, 0.92)) !important;
}
@media (max-width: 900px) {
  nav,
  body.light nav,
  body:not(.light) nav {
    overflow: visible !important;
  }
  .logo {
    padding: 0.4rem 0.5rem !important;
  }
  .nav-links {
    overflow-y: auto !important;
  }
  .nav-links a.active::before {
    left: 12px;
    right: auto;
    top: 25%;
    bottom: 25%;
    width: 2px;
    height: auto;
  }
}
/* Footer must be the final scrolling content; all UI after it is an overlay. */
html,
body {
  padding-bottom: 0 !important;
}
footer#contact {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin-bottom: 0 !important;
}
.modal,
.backtop,
.toast,
.mobile-cta,
.ai-launcher,
section.ai-panel {
  position: fixed !important;
}
/* Profile view counter */
.stat:nth-child(4) .stat-number {
  color: #ff7b70 !important;
  text-shadow: 0 0 24px rgba(255, 123, 112, 0.22);
}
.stat-views .stat-number {
  min-width: 2ch;
}
.stat-unavailable {
  opacity: 0.55;
}

/* Hero digital profile */
.profile-card-v2 {
  padding: 1rem !important;
  border-radius: 34px !important;
  overflow: visible !important;
  background: linear-gradient(
    155deg,
    rgba(23, 37, 72, 0.94),
    rgba(8, 14, 31, 0.96)
  ) !important;
}
.profile-card-v2::after {
  display: none !important;
}
.profile-visual {
  position: relative;
  padding: 0.35rem;
}
.profile-card-v2 .profile-img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 952/1048;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 25px !important;
  background: linear-gradient(145deg, #111c38, #0b1022) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    0 24px 60px rgba(0, 0, 0, 0.34) !important;
}
.profile-card-v2 .profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scaleX(-1) !important;
}
.availability-badge {
  position: absolute;
  right: -0.25rem;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(126, 246, 170, 0.22);
  border-radius: 999px;
  background: rgba(11, 37, 28, 0.9);
  color: #87f2ad;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(15px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}
.availability-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60ed94;
  box-shadow: 0 0 0 5px rgba(96, 237, 148, 0.12);
  animation: profileReady 1.7s ease-in-out infinite;
}
@keyframes profileReady {
  50% {
    box-shadow: 0 0 0 9px rgba(96, 237, 148, 0);
  }
}
.profile-intro {
  padding: 1.15rem 0.55rem 0.85rem;
}
.profile-eyebrow {
  display: block;
  color: #6de8e1;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
}
.profile-intro h2 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}
.profile-intro p {
  font-size: 0.82rem;
  color: #9daac0;
  margin: 0.4rem 0 0;
}
.profile-card-v2 .contact-grid {
  gap: 0.65rem;
}
.profile-card-v2 .contact-primary {
  position: relative;
  padding: 0.82rem 0.9rem;
  border-radius: 17px !important;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(85, 119, 255, 0.14),
    rgba(46, 231, 223, 0.055)
  ) !important;
}
.profile-card-v2 .contact-primary > i:first-child {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: rgba(255, 200, 87, 0.12);
  color: #ffc857 !important;
}
.profile-card-v2 .contact-primary span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 0.83rem !important;
  line-height: 1.35;
}
.profile-card-v2 .contact-primary small {
  font-size: 0.62rem;
  color: #7f8ca4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.12rem;
}
.profile-card-v2 .contact-arrow {
  margin-left: auto;
  width: auto !important;
  color: #6de8e1 !important;
  font-size: 0.68rem;
  opacity: 0.65;
}
.contact-location {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 0.1rem 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  color: #dce4ef;
  background: rgba(255, 255, 255, 0.025);
}
.contact-location i {
  grid-row: 1/3;
  color: #ff8a62;
}
.contact-location span {
  font-size: 0.79rem;
}
.contact-location strong {
  grid-column: 2;
  color: #6de8e1;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.contact-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.contact-socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.72rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: #aeb9cc;
  text-decoration: none;
  font-size: 0.58rem;
  transition: 0.25s;
}
.contact-socials a i {
  font-size: 1rem;
  color: #fff;
}
.contact-socials a:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(89, 222, 218, 0.38);
  background: rgba(46, 231, 223, 0.08);
}
.profile-copy {
  min-height: 46px !important;
  border-radius: 15px !important;
  background: linear-gradient(
    135deg,
    rgba(85, 119, 255, 0.22),
    rgba(155, 108, 255, 0.16)
  ) !important;
}
.profile-copy:hover {
  border-color: rgba(135, 157, 255, 0.42) !important;
}
@media (max-width: 900px) {
  .profile-card-v2 {
    max-width: 460px;
    margin: auto;
  }
  .profile-card-v2 .profile-img {
    aspect-ratio: 952/1048;
  }
  .availability-badge {
    right: 0.15rem;
  }
  .profile-intro h2 {
    font-size: 1.3rem;
  }
}
@media (max-width: 380px) {
  .contact-socials span {
    display: none;
  }
  .contact-socials a {
    padding: 0.75rem;
  }
  .contact-socials a i {
    font-size: 1.08rem;
  }
}

/* Standalone transparent portrait + separated contact dock */
.hero-portrait {
  align-self: end !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  min-height: 650px;
  overflow: visible !important;
}
.portrait-stage {
  position: relative;
  width: min(100%, 520px);
  height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}
.portrait-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  bottom: 1%;
  height: 35px;
  border-radius: 50%;
  background: rgba(1, 6, 18, 0.74);
  filter: blur(18px);
}
.portrait-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.48));
  animation: portraitBreathe 5.5s ease-in-out infinite;
  transform: scaleX(-1);
  transform-origin: center bottom;
}
@keyframes portraitBreathe {
  0%,
  100% {
    transform: translateY(0) scaleX(-1);
  }
  50% {
    transform: translateY(-8px) scaleX(-1);
  }
}
.portrait-caption {
  position: absolute;
  z-index: 2;
  left: 2%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid #2ee7df;
  background: linear-gradient(90deg, rgba(4, 10, 25, 0.78), transparent);
  text-shadow: 0 2px 8px #000;
}
.portrait-caption strong {
  font-size: 0.88rem;
  color: #fff;
}
.portrait-caption span {
  font-size: 0.65rem;
  color: #9eabc0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.12rem;
}
.quick-contact-section {
  padding: 0 2rem 5rem !important;
  background: transparent !important;
}
.quick-contact-shell {
  width: min(100%, 1475px);
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(17, 28, 54, 0.82),
    rgba(7, 13, 28, 0.88)
  );
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(550px, 1.8fr) auto;
  gap: 1.4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.quick-contact-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#5577ff, #2ee7df, #ffc857, #ff6f61);
}
.quick-contact-kicker {
  display: block;
  color: #ffc857;
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 0.45rem;
}
.quick-contact-heading h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
  margin: 0;
  color: #fff;
}
.quick-contact-heading p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #8f9bb0;
  margin: 0.45rem 0 0;
}
.quick-contact-cards {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr 1fr;
  gap: 0.65rem;
}
.quick-contact-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  text-decoration: none;
  transition: 0.25s;
}
.quick-contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(85, 184, 255, 0.35);
  background: rgba(85, 119, 255, 0.09);
}
.quick-contact-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quick-contact-card small {
  color: #76849d;
  font-size: 0.59rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.16rem;
}
.quick-contact-card strong {
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-icon {
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.quick-icon.phone {
  color: #ffc857;
  background: rgba(255, 200, 87, 0.11);
}
.quick-icon.mail {
  color: #2ee7df;
  background: rgba(46, 231, 223, 0.1);
}
.quick-icon.place {
  color: #ff806f;
  background: rgba(255, 111, 97, 0.1);
}
.quick-arrow {
  margin-left: auto;
  color: #71809a;
  font-size: 0.62rem;
}
.remote-dot {
  margin-left: auto !important;
  color: #75eaa0 !important;
  font-size: 0.55rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.quick-contact-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.quick-socials {
  display: flex;
  gap: 0.4rem;
}
.quick-socials a,
.quick-copy {
  display: grid;
  place-items: center;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce5f5;
  text-decoration: none;
  transition: 0.25s;
}
.quick-socials a {
  width: 42px;
}
.quick-socials a:hover {
  transform: translateY(-3px);
  color: #fff;
  background: linear-gradient(135deg, #5577ff, #9b6cff);
  border-color: transparent;
}
.quick-copy {
  display: flex;
  gap: 0.45rem;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.quick-copy:hover {
  color: #07101d;
  background: #ffc857;
  border-color: #ffc857;
}
@media (max-width: 1180px) {
  .quick-contact-shell {
    grid-template-columns: 1fr;
  }
  .quick-contact-heading {
    max-width: 620px;
  }
  .quick-contact-actions {
    justify-content: space-between;
  }
}
@media (max-width: 900px) {
  .hero-portrait {
    min-height: 470px !important;
  }
  .portrait-stage {
    height: min(125vw, 570px);
  }
  .quick-contact-section {
    padding: 0 1rem 4rem !important;
  }
  .quick-contact-shell {
    border-radius: 22px;
    gap: 1rem;
  }
  .quick-contact-cards {
    grid-template-columns: 1fr;
  }
  .quick-contact-card strong {
    font-size: 0.78rem;
  }
  .quick-contact-actions {
    flex-wrap: wrap;
  }
  .quick-copy {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .hero-portrait {
    min-height: 410px !important;
  }
  .portrait-stage {
    height: 440px;
  }
  .portrait-caption {
    bottom: 3%;
    left: 0;
  }
  .quick-contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .quick-socials {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .quick-socials a {
    width: 100%;
  }
  .quick-copy {
    width: 100%;
    justify-content: center;
  }
}
/* Hero portrait alignment refinement */
@media (min-width: 901px) {
  .hero-portrait {
    align-self: center !important;
    min-height: 600px !important;
    transform: translateY(-270px) !important;
  }
  .portrait-stage {
    width: min(112%, 600px) !important;
    height: 640px !important;
  }
}
@media (max-width: 900px) {
  .hero-portrait {
    transform: translateY(-24px) !important;
  }
}
/* Fixed navigation and animated chromatic name */
nav,
body.light nav,
body:not(.light) nav {
  position: fixed !important;
  z-index: 5000 !important;
}
.hero-content h1 span {
  display: block !important;
  background: linear-gradient(
    90deg,
    #ff5f6d 0%,
    #ff9a44 16%,
    #ffd84d 31%,
    #39e58c 46%,
    #35d9f2 61%,
    #5577ff 76%,
    #a96cff 89%,
    #ff65ba 100%
  ) !important;
  background-size: 100% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation:
    nameRainbowPulse 3.2s ease-in-out infinite,
    nameVisibleShake 1.8s ease-in-out infinite !important;
  will-change: transform, filter;
}
@keyframes nameRainbowPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.35) brightness(1.13) hue-rotate(18deg);
  }
}
@keyframes nameVisibleShake {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  20% {
    transform: translate3d(-2px, -1px, 0) rotate(-0.22deg);
  }
  40% {
    transform: translate3d(2px, 0, 0) rotate(0.2deg);
  }
  60% {
    transform: translate3d(-1px, 1px, 0) rotate(-0.12deg);
  }
  80% {
    transform: translate3d(2px, -0.5px, 0) rotate(0.14deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content h1 span {
    animation: none !important;
  }
}
/* Professional academic timeline */
.education-timeline-v2 {
  max-width: 1080px !important;
  padding-left: 82px !important;
  display: grid;
  gap: 20px;
  counter-reset: academic;
}
.education-timeline-v2::before {
  left: 31px !important;
  top: 30px !important;
  bottom: 30px !important;
  width: 2px !important;
  background: linear-gradient(
    180deg,
    #5577ff,
    #2ee7df 38%,
    #9b6cff 68%,
    #ff806f
  ) !important;
  box-shadow: 0 0 20px rgba(85, 119, 255, 0.3);
}
.education-timeline-v2 .education-item {
  --edu-accent: #5577ff;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 0 !important;
  padding: 24px 26px !important;
  overflow: visible !important;
  border-radius: 22px !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--edu-accent) 8%, rgba(18, 29, 54, 0.94)),
    rgba(8, 14, 29, 0.96)
  ) !important;
  border: 1px solid
    color-mix(in srgb, var(--edu-accent) 28%, rgba(255, 255, 255, 0.1)) !important;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.055) !important;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s !important;
}
.education-timeline-v2 .education-item:nth-child(2) {
  --edu-accent: #2ee7df;
}
.education-timeline-v2 .education-item:nth-child(3) {
  --edu-accent: #9b6cff;
}
.education-timeline-v2 .education-item:nth-child(4) {
  --edu-accent: #ff806f;
}
.education-timeline-v2 .education-item::before {
  content: attr(data-step) !important;
  display: grid !important;
  place-items: center !important;
  left: -74px !important;
  top: 50% !important;
  width: 48px !important;
  height: 48px !important;
  transform: translateY(-50%) !important;
  border-radius: 15px !important;
  background: #091124 !important;
  border: 1px solid color-mix(in srgb, var(--edu-accent) 55%, transparent) !important;
  color: var(--edu-accent) !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  box-shadow:
    0 0 0 7px #070d1b,
    0 0 25px color-mix(in srgb, var(--edu-accent) 25%, transparent) !important;
}
.education-timeline-v2 .education-item:hover {
  transform: translateY(-5px) !important;
  border-color: color-mix(in srgb, var(--edu-accent) 52%, white 4%) !important;
  box-shadow: 0 25px 70px
    color-mix(in srgb, var(--edu-accent) 15%, rgba(0, 0, 0, 0.3)) !important;
}
.education-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: color-mix(
    in srgb,
    var(--edu-accent) 12%,
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid color-mix(in srgb, var(--edu-accent) 28%, transparent);
  color: var(--edu-accent);
  font-size: 1.35rem;
  box-shadow: inset 0 0 22px
    color-mix(in srgb, var(--edu-accent) 7%, transparent);
}
.education-copy {
  min-width: 0;
}
.education-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.education-status {
  display: inline-flex;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--edu-accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--edu-accent) 22%, transparent);
  color: var(--edu-accent);
  font-size: 0.61rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.education-meta time {
  color: #8f9bb0;
  font-size: 0.7rem;
  font-weight: 700;
}
.education-meta time i {
  margin-right: 0.3rem;
  color: var(--edu-accent);
}
.education-timeline-v2 h3 {
  margin: 0 0 0.55rem !important;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
  letter-spacing: -0.025em;
}
.education-timeline-v2 h3 span {
  color: #9ba7bc;
  font-weight: 600;
}
.education-timeline-v2 .education-school {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  color: #d5ddec !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
}
.education-school i {
  color: var(--edu-accent);
}
.education-school span {
  color: #7f8ca3;
  font-weight: 550;
}
.education-result {
  display: flex;
  gap: 0.4rem;
}
.education-result b {
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e9edfa;
  font-size: 0.66rem;
}
@media (max-width: 700px) {
  .education-timeline-v2 {
    padding-left: 48px !important;
    gap: 14px;
  }
  .education-timeline-v2::before {
    left: 17px !important;
  }
  .education-timeline-v2 .education-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 16px !important;
  }
  .education-timeline-v2 .education-item::before {
    left: -48px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    box-shadow: 0 0 0 5px #070d1b !important;
  }
  .education-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1rem;
  }
  .education-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .education-timeline-v2 h3 {
    line-height: 1.25;
  }
  .education-timeline-v2 .education-school {
    align-items: flex-start;
    line-height: 1.45;
  }
  .education-school span {
    display: none;
  }
}
/* Scroll-revealed professional contact rail */
.contact-rail {
  position: fixed;
  z-index: 1550;
  left: 24px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: linear-gradient(
    160deg,
    rgba(17, 28, 52, 0.9),
    rgba(7, 12, 25, 0.92)
  );
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-140%, -50%, 0) scale(0.92);
  transition:
    opacity 0.35s,
    visibility 0.35s,
    transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1);
}
.contact-rail.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0) scale(1);
}
.contact-rail-label {
  padding: 4px 0 6px;
  color: #70809b;
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.rail-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #e7edf8;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.rail-link:hover {
  transform: translateX(5px);
  color: #fff;
  border-color: transparent;
}
.rail-link.linkedin:hover {
  background: #0a66c2;
  box-shadow: 0 10px 25px rgba(10, 102, 194, 0.3);
}
.rail-link.github:hover {
  background: #272c36;
}
.rail-link.email:hover {
  background: #5577ff;
}
.rail-link.whatsapp:hover,
.rail-link.phone {
  background: rgba(37, 211, 102, 0.12);
  color: #61e894;
  border-color: rgba(37, 211, 102, 0.2);
}
.rail-link.whatsapp:hover,
.rail-link.phone:hover {
  background: #22b95c;
  color: #fff;
  box-shadow: 0 10px 25px rgba(34, 185, 92, 0.25);
}
.rail-link.telegram:hover {
  background: #229ed9;
}
.rail-link.cv:hover {
  background: #ffc857;
  color: #101725;
}
.rail-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  padding: 0.46rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: #111a2c;
  color: #f4f7ff;
  font-size: 0.64rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translate(-5px, -50%);
  transition: 0.2s;
  pointer-events: none;
}
.rail-link:hover::after,
.rail-link:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.contact-rail-divider {
  width: 28px;
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
}
@media (max-width: 900px) {
  .contact-rail {
    left: 10px;
    top: auto;
    bottom: 14px;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 17px;
    transform: translate3d(-140%, 0, 0) scale(0.92);
  }
  .contact-rail.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }
  .contact-rail-label {
    display: none;
  }
  .rail-link {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 0.9rem;
  }
  .rail-link::after {
    display: none;
  }
  .contact-rail-divider {
    width: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-rail {
    transition:
      opacity 0.15s,
      visibility 0.15s !important;
  }
}
/* Right-side branded contact rail */
.contact-rail {
  left: auto !important;
  right: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: translate3d(145%, -50%, 0) scale(0.92) !important;
}
.contact-rail.is-visible {
  transform: translate3d(0, -50%, 0) scale(1) !important;
}
.contact-rail-label {
  color: #92a0b8 !important;
}
.rail-link {
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22) !important;
}
.rail-link.linkedin {
  background: #0a66c2 !important;
}
.rail-link.github {
  background: #24292f !important;
}
.rail-link.email {
  background: #ea5263 !important;
}
.rail-link.whatsapp {
  background: #25d366 !important;
}
.rail-link.telegram {
  background: #229ed9 !important;
}
.rail-link.cv {
  background: #fff !important;
  color: #111827 !important;
}
.rail-link.phone {
  background: #22c55e !important;
  color: #fff !important;
}
.rail-link:hover {
  transform: translateX(-5px) !important;
  filter: brightness(1.12);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.28) !important;
}
.rail-link::after {
  left: auto !important;
  right: calc(100% + 12px) !important;
  transform: translate(5px, -50%) !important;
}
.rail-link:hover::after,
.rail-link:focus-visible::after {
  transform: translate(0, -50%) !important;
}
.contact-rail-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(135, 150, 178, 0.5),
    transparent
  ) !important;
}
/* Brighter dark canvas */
body:not(.light) {
  background: #0b1224 !important;
  color: #f7f9ff !important;
}
body:not(.light) .showcase-ambient {
  background: linear-gradient(
    180deg,
    #0b1224 0%,
    #101a33 48%,
    #0b1428 100%
  ) !important;
}
body:not(.light)::before {
  opacity: 0.72;
}
body:not(.light) .showcase-grid {
  opacity: 0.24;
}
body:not(.light) .showcase-codeword {
  color: rgba(100, 186, 226, 0.095);
}
body:not(.light) .showcase-codeword:nth-child(3n + 2) {
  color: rgba(158, 123, 255, 0.09);
}
body:not(.light) .showcase-codeword:nth-child(3n) {
  color: rgba(46, 231, 223, 0.085);
}
/* Marquee bands orbiting the portrait instead of crossing the hero */
.portrait-stage {
  isolation: isolate !important;
}
.portrait-stage > img {
  position: relative;
  z-index: 2 !important;
}
.portrait-stage .showcase-diagonal {
  position: absolute !important;
  z-index: 1 !important;
  left: 50% !important;
  width: 128% !important;
  padding: 9px 0 !important;
  border: 1px solid rgba(126, 150, 255, 0.2) !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    rgba(85, 119, 255, 0.2),
    rgba(155, 108, 255, 0.22),
    rgba(46, 231, 223, 0.18),
    rgba(255, 111, 97, 0.18)
  ) !important;
  box-shadow: 0 0 35px rgba(85, 119, 255, 0.1) !important;
  backdrop-filter: blur(4px) !important;
  opacity: 0.68 !important;
  overflow: hidden !important;
  transform-origin: center !important;
}
.portrait-stage .showcase-diagonal.one {
  top: 38% !important;
  transform: translateX(-50%) rotate(-11deg) !important;
}
.portrait-stage .showcase-diagonal.two {
  top: 65% !important;
  transform: translateX(-50%) rotate(10deg) !important;
}
.portrait-stage .showcase-diagonal span {
  font-size: 0.62rem !important;
  letter-spacing: 0.13em !important;
  color: rgba(235, 241, 255, 0.84) !important;
}
.portrait-stage .showcase-diagonal-track {
  animation-play-state: running !important;
}
.portrait-caption {
  z-index: 3 !important;
}
/* Complete readable light theme */
body.light {
  --sc-bg: #f5f7fc;
  --sc-panel: #fff;
  --sc-panel-2: #eef2ff;
  --sc-text: #111827;
  --sc-muted: #5e6b82;
  --sc-line: rgba(17, 24, 39, 0.12);
  background: #f5f7fc !important;
  color: #111827 !important;
}
body.light .showcase-ambient {
  background: linear-gradient(
    180deg,
    #f8fbff 0%,
    #eef3ff 48%,
    #f8f5ff 100%
  ) !important;
}
body.light .showcase-ambient::before {
  background: linear-gradient(135deg, #bca8ff, #8eb8ff) !important;
  opacity: 0.22;
}
body.light .showcase-ambient::after {
  background: linear-gradient(135deg, #8de8df, #ffc2b9) !important;
  opacity: 0.2;
}
body.light .showcase-grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(47, 61, 94, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 61, 94, 0.07) 1px, transparent 1px);
}
body.light::before {
  background:
    radial-gradient(
      circle at 75% 15%,
      rgba(91, 124, 255, 0.13),
      transparent 34rem
    ),
    radial-gradient(
      circle at 8% 60%,
      rgba(255, 166, 77, 0.1),
      transparent 28rem
    ),
    #f5f7fc !important;
}
body.light .showcase-codeword {
  color: rgba(67, 93, 151, 0.07) !important;
}
body.light nav,
body.light nav.scrolled {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(45, 60, 96, 0.14) !important;
  box-shadow:
    0 18px 55px rgba(53, 69, 109, 0.14),
    inset 0 1px #fff !important;
}
body.light .logo {
  color: #172033 !important;
  background: linear-gradient(
    135deg,
    rgba(85, 119, 255, 0.1),
    rgba(46, 231, 223, 0.08)
  ) !important;
}
body.light .nav-links a {
  color: #5a6579 !important;
}
body.light .nav-links a:hover,
body.light .nav-links a.active {
  color: #111827 !important;
  background: linear-gradient(
    135deg,
    rgba(85, 119, 255, 0.13),
    rgba(155, 108, 255, 0.09)
  ) !important;
}
body.light .theme-toggle,
body.light .menu-toggle {
  background: #edf1f8 !important;
  border-color: rgba(17, 24, 39, 0.1) !important;
}
body.light .theme-toggle i,
body.light .menu-toggle i {
  color: #172033 !important;
}
body.light .hero-content h1 {
  color: #111827 !important;
}
body.light .hero-content p,
body.light .section-header p,
body.light .small-note {
  color: #58657a !important;
}
body.light .hero-label,
body.light .section-label {
  background: rgba(255, 166, 61, 0.12) !important;
  border-color: rgba(225, 132, 26, 0.25) !important;
  color: #a9590c !important;
}
body.light .highlight-card,
body.light .skill-card,
body.light .project-card,
body.light .education-item,
body.light .cert-item,
body.light .form-card,
body.light .projects-toolbar,
body.light .experience-card,
body.light .game-shell,
body.light .memory-shell {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(244, 247, 255, 0.96)
  ) !important;
  border-color: rgba(52, 72, 116, 0.14) !important;
  box-shadow: 0 16px 45px rgba(67, 82, 119, 0.1) !important;
}
body.light .highlight-card h3,
body.light .skill-card h3,
body.light .project-card h3,
body.light .education-item h3,
body.light .cert-content strong,
body.light .experience-card h3,
body.light .section-header h2 {
  color: #151d2d !important;
}
body.light .highlight-card p,
body.light .project-card ul,
body.light .education-school,
body.light .education-meta time,
body.light .cert-content,
body.light .experience-card p {
  color: #5d6a80 !important;
}
body.light .skill-name,
body.light .project-tech,
body.light .education-result b {
  background: #eef2f9 !important;
  border-color: rgba(46, 61, 93, 0.12) !important;
  color: #344057 !important;
}
body.light .form-group label {
  color: #47556c !important;
}
body.light .form-group input,
body.light .form-group textarea {
  background: #fff !important;
  color: #172033 !important;
  border-color: rgba(48, 65, 101, 0.18) !important;
}
body.light footer#contact {
  background: linear-gradient(180deg, #eef3fb, #e6edf8) !important;
  border-color: rgba(45, 62, 98, 0.13) !important;
}
body.light .footer-content {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(45, 62, 98, 0.13) !important;
  box-shadow: 0 20px 60px rgba(65, 81, 116, 0.12) !important;
}
body.light .footer-content p {
  color: #5a677d !important;
}
body.light .social-link {
  background: #fff !important;
  border-color: rgba(43, 59, 94, 0.14) !important;
  color: #273247 !important;
}
body.light .portrait-stage .showcase-diagonal {
  background: linear-gradient(
    90deg,
    rgba(85, 119, 255, 0.16),
    rgba(155, 108, 255, 0.15),
    rgba(46, 190, 184, 0.15),
    rgba(255, 111, 97, 0.14)
  ) !important;
  border-color: rgba(71, 93, 143, 0.16) !important;
}
body.light .portrait-stage .showcase-diagonal span {
  color: #39465c !important;
}
body.light .ai-launcher {
  box-shadow: 0 14px 38px rgba(36, 87, 255, 0.22) !important;
}
@media (max-width: 900px) {
  .contact-rail {
    left: auto !important;
    right: 10px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate3d(145%, -50%, 0) scale(0.92) !important;
  }
  .contact-rail.is-visible {
    transform: translate3d(0, -50%, 0) scale(1) !important;
  }
  .portrait-stage .showcase-diagonal {
    width: 120% !important;
    opacity: 0.52 !important;
  }
  .portrait-stage .showcase-diagonal.one {
    top: 38% !important;
  }
  .portrait-stage .showcase-diagonal.two {
    top: 66% !important;
  }
  body.light .nav-links {
    background: rgba(250, 252, 255, 0.98) !important;
    border-color: rgba(38, 55, 91, 0.12) !important;
  }
}
/* True circular technology marquees around portrait */
.portrait-stage .showcase-diagonal {
  display: none !important;
}
.portrait-orbit-ring {
  position: absolute;
  z-index: 1;
  inset: -7%;
  width: 114%;
  height: 114%;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 8px rgba(85, 119, 255, 0.25));
  animation: portraitOrbitSpin 24s linear infinite;
}
.portrait-orbit-ring.orbit-two {
  inset: 1%;
  width: 98%;
  height: 98%;
  animation-direction: reverse;
  animation-duration: 18s;
  opacity: 0.72;
}
.portrait-orbit-ring text {
  font-family: Manrope, Inter, sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 3px;
  fill: url(#portraitGradientOuter);
}
.portrait-orbit-ring.orbit-two text {
  font-size: 10px;
  letter-spacing: 2.5px;
  fill: url(#portraitGradientInner);
}
@keyframes portraitOrbitSpin {
  to {
    transform: rotate(360deg);
  }
}
body.light .portrait-orbit-ring {
  filter: drop-shadow(0 0 6px rgba(68, 92, 151, 0.18));
}
body.light .portrait-orbit-ring text {
  opacity: 0.88;
}
@media (max-width: 900px) {
  .portrait-orbit-ring {
    inset: -3%;
    width: 106%;
    height: 106%;
  }
  .portrait-orbit-ring.orbit-two {
    inset: 5%;
    width: 90%;
    height: 90%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-orbit-ring {
    animation: none !important;
  }
}
/* Refined single portrait orbit */
.portrait-orbit-ring {
  inset: auto !important;
  left: -2% !important;
  top: 10% !important;
  width: 104% !important;
  height: 104% !important;
  opacity: 0.9 !important;
  filter: drop-shadow(0 0 11px rgba(85, 119, 255, 0.3)) !important;
  animation-duration: 22s !important;
}
.portrait-orbit-ring.orbit-two {
  display: none !important;
}
.portrait-orbit-ring text {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
}
.portrait-stage > img {
  z-index: 2 !important;
}
@media (max-width: 900px) {
  .portrait-orbit-ring {
    left: 0 !important;
    top: 8% !important;
    width: 100% !important;
    height: 100% !important;
  }
  .portrait-orbit-ring text {
    font-size: 14px !important;
    letter-spacing: 1.1px !important;
  }
}
/* Full-body portrait orbit: spin the SVG group for reliable desktop animation. */
.portrait-orbit-ring {
  left: -12% !important;
  top: -5% !important;
  width: 124% !important;
  height: 124% !important;
  animation: none !important;
}
.portrait-orbit-spinner {
  transform-box: view-box;
  transform-origin: 300px 300px;
  animation: portraitOrbitSpin 20s linear infinite;
  will-change: transform;
}
.portrait-orbit-ring text {
  font-size: 17px !important;
  letter-spacing: 1.8px !important;
}
@media (max-width: 900px) {
  .portrait-orbit-ring {
    left: -7% !important;
    top: -2% !important;
    width: 114% !important;
    height: 114% !important;
  }
  .portrait-orbit-spinner {
    animation-duration: 17s;
  }
  .portrait-orbit-ring text {
    font-size: 15px !important;
    letter-spacing: 1.3px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-orbit-spinner {
    animation: none !important;
  }
}
/* Native SVG wheel motion and stronger name animation. */
.portrait-orbit-spinner {
  animation: none !important;
}
.portrait-orbit-guide {
  opacity: 0.48;
  filter: drop-shadow(0 0 5px rgba(85, 119, 255, 0.55));
}
.hero-content h1 span {
  animation:
    nameRainbowPulse 2.6s ease-in-out infinite,
    nameVisibleShakeStrong 1.15s ease-in-out infinite !important;
}
@keyframes nameVisibleShakeStrong {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  18% {
    transform: translate3d(-3px, -1px, 0) rotate(-0.32deg);
  }
  36% {
    transform: translate3d(3px, 1px, 0) rotate(0.3deg);
  }
  54% {
    transform: translate3d(-2px, 1px, 0) rotate(-0.24deg);
  }
  72% {
    transform: translate3d(3px, -1px, 0) rotate(0.26deg);
  }
  88% {
    transform: translate3d(-1px, 0, 0) rotate(-0.12deg);
  }
}
body.light .portrait-orbit-guide {
  opacity: 0.58;
  filter: drop-shadow(0 0 4px rgba(79, 110, 247, 0.38));
}
/* Tight text-only orbit around the complete portrait. */
.portrait-orbit-ring {
  left: -3% !important;
  top: 1% !important;
  width: 106% !important;
  height: 106% !important;
  overflow: visible !important;
}
.portrait-orbit-guide {
  stroke: none !important;
  opacity: 0 !important;
  filter: none !important;
}
.portrait-orbit-ring text {
  font-size: 16px !important;
  letter-spacing: 1.55px !important;
}
@media (max-width: 900px) {
  .portrait-orbit-ring {
    left: -3% !important;
    top: 1% !important;
    width: 106% !important;
    height: 106% !important;
  }
  .portrait-orbit-ring text {
    font-size: 14px !important;
    letter-spacing: 1.2px !important;
  }
}
/* Portrait orbit removed by request. */
.portrait-orbit-ring {
  display: none !important;
}

/* Professional internship opportunity card. */
.opportunity-card {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(126, 150, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(23, 35, 62, 0.92),
    rgba(10, 17, 33, 0.95)
  );
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.opportunity-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -90px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(85, 119, 255, 0.24),
    transparent 68%
  );
  pointer-events: none;
}
.opportunity-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #91e9b4;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opportunity-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #49db83;
  box-shadow:
    0 0 0 5px rgba(73, 219, 131, 0.11),
    0 0 16px rgba(73, 219, 131, 0.75);
  animation: opportunityPulse 1.8s ease-in-out infinite;
}
.opportunity-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
}
.opportunity-copy {
  max-width: 790px;
}
.opportunity-kicker {
  margin: 0 0 0.35rem !important;
  color: #70dcd9 !important;
  font-size: 0.62rem !important;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.opportunity-copy h3 {
  margin: 0 0 0.65rem;
  color: #f7f9ff !important;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.035em;
}
.opportunity-copy > p:not(.opportunity-kicker) {
  margin: 0;
  color: #aebbd0 !important;
  font-size: 0.9rem;
  line-height: 1.7;
}
.opportunity-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.opportunity-roles span {
  padding: 0.42rem 0.67rem;
  border: 1px solid rgba(135, 154, 201, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dbe4f4;
  font-size: 0.66rem;
  font-weight: 720;
}
.opportunity-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 190px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffc857, #ff9f43);
  color: #111827;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(255, 170, 65, 0.16);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.opportunity-action:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(255, 170, 65, 0.25);
}
@keyframes opportunityPulse {
  50% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}
body.light .opportunity-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(238, 243, 255, 0.98)
  );
  border-color: rgba(72, 94, 148, 0.16);
  box-shadow:
    0 22px 58px rgba(62, 78, 117, 0.12),
    inset 0 1px #fff;
}
body.light .opportunity-status {
  color: #167647;
}
body.light .opportunity-kicker {
  color: #2863ad !important;
}
body.light .opportunity-copy h3 {
  color: #152039 !important;
}
body.light .opportunity-copy > p:not(.opportunity-kicker) {
  color: #526178 !important;
}
body.light .opportunity-roles span {
  background: #fff;
  color: #35435b;
  border-color: rgba(51, 65, 85, 0.13);
  box-shadow: 0 5px 14px rgba(57, 72, 108, 0.05);
}
@media (max-width: 760px) {
  .opportunity-card {
    padding: 1.25rem;
    border-radius: 20px;
  }
  .opportunity-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .opportunity-action {
    width: 100%;
    min-width: 0;
  }
  .opportunity-copy > p:not(.opportunity-kicker) {
    font-size: 0.83rem;
  }
}
/* Section-by-section scroll transitions. */
.section-transition {
  --section-x: -42px;
  opacity: 0;
  transform: translate3d(var(--section-x), 54px, 0) scale(0.975);
  filter: blur(9px);
  transition:
    opacity 0.78s cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s ease;
  will-change: opacity, transform, filter;
}
.section-transition.section-from-right {
  --section-x: 42px;
}
.section-transition.is-section-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.section-transition > .section-header,
.section-transition > .highlights-grid,
.section-transition > .skills-grid,
.section-transition > .projects-grid,
.section-transition > .experience-card,
.section-transition > .education-timeline,
.section-transition > .certs-grid,
.section-transition > .form-wrap,
.section-transition > .opportunity-card {
  transition-delay: 0.08s;
}
.section-transition.is-section-visible > .section-header {
  animation: sectionHeaderRise 0.75s 0.08s cubic-bezier(0.16, 1, 0.3, 1)
    backwards;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ) {
  animation: sectionItemRise 0.68s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(2) {
  animation-delay: 0.06s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(3) {
  animation-delay: 0.12s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(4) {
  animation-delay: 0.18s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(n + 5) {
  animation-delay: 0.22s;
}
@keyframes sectionHeaderRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sectionItemRise {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .section-transition {
    --section-x: -22px;
    transform: translate3d(var(--section-x), 36px, 0) scale(0.985);
    filter: blur(5px);
  }
  .section-transition.section-from-right {
    --section-x: 22px;
  }
}
/* Explicit section motion requested: visible even when OS reduced-motion is enabled. */
.section-transition {
  --section-x: -68px !important;
  transform: translate3d(var(--section-x), 76px, 0) scale(0.955) !important;
  filter: blur(12px) !important;
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.82s ease !important;
}
.section-transition.section-from-right {
  --section-x: 68px !important;
}
.section-transition.is-section-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0) !important;
}
@media (max-width: 700px) {
  .section-transition {
    --section-x: -34px !important;
    transform: translate3d(var(--section-x), 48px, 0) scale(0.975) !important;
    filter: blur(7px) !important;
  }
  .section-transition.section-from-right {
    --section-x: 34px !important;
  }
  .section-transition.is-section-visible {
    transform: translate3d(0, 0, 0) scale(1) !important;
    filter: blur(0) !important;
  }
}
/* Slow four-direction waterfall transitions without blur. */
.section-transition {
  --section-x: 0 !important;
  --section-y: 0 !important;
  opacity: 0 !important;
  transform: translate3d(var(--section-x), var(--section-y), 0) scale(0.985) !important;
  filter: none !important;
  transition:
    opacity 1.05s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.section-transition.section-from-top {
  --section-y: -90px !important;
}
.section-transition.section-from-bottom {
  --section-y: 90px !important;
}
.section-transition.section-from-left {
  --section-x: -90px !important;
}
.section-transition.section-from-right {
  --section-x: 90px !important;
}
.section-transition.is-section-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: none !important;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ) {
  animation-duration: 0.95s !important;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(1) {
  animation-delay: 0.06s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(2) {
  animation-delay: 0.14s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(3) {
  animation-delay: 0.22s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(4) {
  animation-delay: 0.3s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(5) {
  animation-delay: 0.38s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(6) {
  animation-delay: 0.46s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(7) {
  animation-delay: 0.54s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(8) {
  animation-delay: 0.62s;
}
.section-transition.is-section-visible
  :is(
    .highlight-card,
    .skill-card,
    .project-card,
    .education-item,
    .cert-item
  ):nth-child(n + 9) {
  animation-delay: 0.7s;
}
@keyframes sectionItemRise {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .section-transition.section-from-top {
    --section-y: -54px !important;
  }
  .section-transition.section-from-bottom {
    --section-y: 54px !important;
  }
  .section-transition.section-from-left {
    --section-x: -42px !important;
  }
  .section-transition.section-from-right {
    --section-x: 42px !important;
  }
}
/* Academic Journey-style reveal applied consistently to every section. */
.section-transition {
  --section-x: 0 !important;
  --section-y: 82px !important;
  transform: translate3d(0, var(--section-y), 0) scale(0.985) !important;
  filter: none !important;
  transition:
    opacity 1.05s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.section-transition.is-section-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}
.section-transition.is-section-visible
  :is(
    .opportunity-card,
    .highlight-card,
    .skill-card,
    .project-card,
    .experience-card,
    .education-item,
    .cert-item,
    .form-card,
    .footer-content
  ) {
  animation: academicStyleReveal 0.95s var(--academic-delay, 0.08s)
    cubic-bezier(0.16, 1, 0.3, 1) backwards !important;
}
.section-transition.is-section-visible .section-header {
  animation: academicHeaderReveal 0.82s 0.04s cubic-bezier(0.16, 1, 0.3, 1)
    backwards;
}
@keyframes academicHeaderReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes academicStyleReveal {
  from {
    opacity: 0;
    transform: translateY(54px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .section-transition {
    --section-y: 52px !important;
  }
  .section-transition.is-section-visible
    :is(
      .opportunity-card,
      .highlight-card,
      .skill-card,
      .project-card,
      .experience-card,
      .education-item,
      .cert-item,
      .form-card,
      .footer-content
    ) {
    animation-duration: 0.82s;
  }
}
/* Fixed client-project call to action. */
.hire-me-fixed {
  position: fixed;
  z-index: 1540;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 52px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 200, 87, 0.34);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 200, 87, 0.98),
    rgba(255, 145, 77, 0.98)
  );
  color: #111827;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    0 0 0 0 rgba(255, 184, 77, 0.22);
  backdrop-filter: blur(16px);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  animation: hireMeAttention 3.2s ease-in-out infinite;
}
.hire-me-fixed:hover {
  transform: translateY(-5px) scale(1.025);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 0 7px rgba(255, 184, 77, 0.12);
}
.hire-me-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16894b;
  box-shadow: 0 0 0 4px rgba(22, 137, 75, 0.13);
  animation: hireMeDot 1.7s ease-in-out infinite;
}
.hire-me-arrow {
  margin-left: 0.18rem;
  transition: transform 0.25s;
}
.hire-me-fixed:hover .hire-me-arrow {
  transform: translateX(4px);
}
@keyframes hireMeAttention {
  0%,
  82%,
  100% {
    box-shadow:
      0 16px 42px rgba(0, 0, 0, 0.28),
      0 0 0 0 rgba(255, 184, 77, 0);
  }
  90% {
    box-shadow:
      0 16px 42px rgba(0, 0, 0, 0.28),
      0 0 0 9px rgba(255, 184, 77, 0.12);
  }
}
@keyframes hireMeDot {
  50% {
    transform: scale(1.25);
    opacity: 0.72;
  }
}
body.light .hire-me-fixed {
  border-color: rgba(196, 104, 24, 0.2);
  box-shadow:
    0 16px 40px rgba(131, 85, 42, 0.2),
    0 0 0 0 rgba(255, 162, 66, 0);
}
@media (max-width: 900px) {
  .hire-me-fixed {
    left: 12px;
    bottom: calc(78px + var(--safe-bottom));
    min-height: 46px;
    padding: 0.62rem 0.76rem;
    border-radius: 14px;
    font-size: 0.7rem;
  }
  .hire-me-fixed .hire-me-arrow {
    display: none;
  }
}
@media (max-width: 420px) {
  .hire-me-fixed {
    left: 10px;
  }
}
/* Hire Me CTA positioned at the page top. */
.hire-me-fixed {
  left: auto !important;
  right: 22px !important;
  top: 22px !important;
  bottom: auto !important;
  z-index: 5100 !important;
}
@media (max-width: 1500px) {
  .hire-me-fixed {
    top: 92px !important;
    right: 16px !important;
  }
}
@media (max-width: 900px) {
  .hire-me-fixed {
    top: 72px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
  }
}
@media (max-width: 480px) {
  .hire-me-fixed {
    top: 68px !important;
    right: 9px !important;
  }
}
/* Face the portrait toward the portfolio content. */
.portrait-stage > img {
  animation-name: portraitBreatheLeft !important;
  scale: -1 1 !important;
}
@keyframes portraitBreatheLeft {
  0%,
  100% {
    transform: scaleX(-1) translateY(0);
  }
  50% {
    transform: scaleX(-1) translateY(-8px);
  }
}
/* Final hero motion and mobile flow overrides. */
.hero-content h1 span {
  animation: nameRainbowPulse 2.6s ease-in-out infinite !important;
  transform: none !important;
}
.portrait-stage > img {
  animation: portraitGentleFloat 3.4s ease-in-out infinite !important;
  scale: -1 1 !important;
}
@keyframes portraitGentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@media (max-width: 900px) {
  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .hero-content {
    order: 1 !important;
  }
  .hero-portrait {
    order: 2 !important;
    margin-top: -3rem !important;
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content h1 span,
  .portrait-stage > img {
    animation: none !important;
  }
}

/* Stable one-owner scroll reveal. */
.section-transition.is-section-visible {
  will-change: auto !important;
}
.section-transition .showcase-reveal,
.section-transition .motion-item {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition-delay: 0ms !important;
}

/* Certificate gallery atmosphere. */
#certifications {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
}
#certifications > .section-container {
  position: relative !important;
  z-index: 3 !important;
}
.certificates-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.certificate-sheet {
  position: absolute;
  width: clamp(420px, 44vw, 740px);
  height: auto;
  border-radius: 18px;
  opacity: 0.46;
  filter: saturate(0.92) contrast(1.06) brightness(0.9);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.46);
  will-change: transform;
}
.certificate-sheet-solo {
  left: -7%;
  top: 10%;
  transform: rotate(-9deg);
}
.certificate-sheet-sql {
  right: -8%;
  bottom: 5%;
  transform: rotate(8deg);
}
.certificate-sheet-oracle {
  right: -7%;
  top: 10%;
  width: clamp(380px, 36vw, 610px);
  opacity: 0.4;
  transform: rotate(9deg);
}
.certificate-sheet-linkedin {
  left: -8%;
  bottom: 3%;
  width: clamp(390px, 38vw, 640px);
  opacity: 0.42;
  transform: rotate(-7deg);
}
.certificates-backdrop-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(18, 19, 16, 0.8) 8%,
      rgba(18, 19, 16, 0.57) 48%,
      rgba(18, 19, 16, 0.3) 100%
    ),
    linear-gradient(180deg, rgba(18, 19, 16, 0.46), rgba(18, 19, 16, 0.62));
}
#certifications .cert-item {
  background: linear-gradient(
    145deg,
    rgba(30, 32, 27, 0.8),
    rgba(20, 21, 18, 0.84)
  ) !important;
  backdrop-filter: blur(6px) saturate(1.05) !important;
}
body.light .certificate-sheet {
  opacity: 0.38;
  filter: saturate(0.86) contrast(0.98) brightness(1.08);
  box-shadow: 0 28px 75px rgba(64, 52, 41, 0.18);
}
body.light .certificates-backdrop-shade {
  background:
    radial-gradient(
      ellipse at center,
      rgba(247, 243, 236, 0.82) 10%,
      rgba(247, 243, 236, 0.6) 50%,
      rgba(247, 243, 236, 0.34) 100%
    ),
    linear-gradient(
      180deg,
      rgba(247, 243, 236, 0.48),
      rgba(247, 243, 236, 0.66)
    );
}
body.light #certifications .cert-item {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(6px) saturate(1.02) !important;
}
@media (max-width: 700px) {
  .certificate-sheet {
    width: 86vw;
    max-width: 500px;
    opacity: 0.32;
  }
  .certificate-sheet-solo {
    left: -32%;
    top: 5%;
    transform: rotate(-7deg);
  }
  .certificate-sheet-oracle {
    right: -32%;
    top: 5%;
    width: 80vw;
    opacity: 0.27;
    transform: rotate(7deg);
  }
  .certificate-sheet-linkedin {
    left: -31%;
    bottom: 2%;
    width: 82vw;
    opacity: 0.28;
    transform: rotate(-6deg);
  }
  .certificate-sheet-sql {
    left: 50%;
    right: auto;
    bottom: 3%;
    transform: translateX(-50%) rotate(2deg);
  }
  .certificates-backdrop-shade {
    background: linear-gradient(
      180deg,
      rgba(18, 19, 16, 0.68),
      rgba(18, 19, 16, 0.5) 45%,
      rgba(18, 19, 16, 0.72)
    );
  }
  body.light .certificate-sheet {
    opacity: 0.28;
  }
  body.light .certificate-sheet-oracle {
    opacity: 0.24;
  }
  body.light .certificates-backdrop-shade {
    background: linear-gradient(
      180deg,
      rgba(247, 243, 236, 0.72),
      rgba(247, 243, 236, 0.55) 45%,
      rgba(247, 243, 236, 0.76)
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .certificate-sheet {
    will-change: auto;
  }
}
/* Keep the quick-contact rail clear of the assistant launcher. */
body.contact-rail-active .ai-launcher {
  right: 105px !important;
}
body.ai-open .contact-rail {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(145%, -50%, 0) scale(0.92) !important;
}
@media (max-width: 900px) {
  body.contact-rail-active .ai-launcher {
    right: 78px !important;
  }
}
/* Hide the moving technology words only while the Hero is in view. */
.showcase-codefield {
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
body.hero-words-hidden .showcase-codefield {
  opacity: 0 !important;
  visibility: hidden !important;
}
body.hero-words-hidden .showcase-codeword {
  animation-play-state: paused !important;
}
/* Earlier, tighter scroll reveals with a short capped stagger. */
.section-transition {
  --section-x: 0 !important;
  --section-y: 25px !important;
  opacity: 0 !important;
  transform: translate3d(0, 25px, 0) !important;
  filter: blur(3px) !important;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.6s ease !important;
}
.section-transition.is-section-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  filter: blur(0) !important;
}
.section-transition.is-section-visible .section-header {
  animation: reviewHeaderReveal 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards !important;
}
.section-transition.is-section-visible
  :is(
    .opportunity-card,
    .highlight-card,
    .skill-card,
    .project-card,
    .experience-card,
    .education-item,
    .cert-item,
    .form-card,
    .footer-content
  ) {
  animation: reviewCardReveal 0.6s var(--academic-delay, 0ms)
    cubic-bezier(0.2, 0.7, 0.2, 1) backwards !important;
}
@keyframes reviewHeaderReveal {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes reviewCardReveal {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
/* Collapse the speech bubble while scrolling and after a short idle period. */
html.assistant-cloud-hidden .ai-cloud,
html.site-scrolling .ai-cloud {
  display: none !important;
}
html.assistant-cloud-hidden .ai-launcher,
html.site-scrolling .ai-launcher {
  width: 94px !important;
}
@media (max-width: 900px) {
  html.assistant-cloud-hidden .ai-launcher,
  html.site-scrolling .ai-launcher {
    width: 76px !important;
  }
}
