/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
}


body {
    font-family: "Poppins", sans-serif;
    position: relative;
    isolation: isolate;
}

/*body,a,button,.icon,.logo, .gallery-item img {
    cursor: none !important;
}*/

html {
    scroll-behavior: smooth;
}

:root {
    --mouse-x: -9999px;
    --mouse-y: -9999px;
}

.mouse-dot-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(125, 125, 125, 0.72) 1px, transparent 1.7px);
    background-size: 18px 18px;
    opacity: 0;
    transition: opacity 180ms ease;
    -webkit-mask-image: radial-gradient(
        440px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.95) 28%,
        rgba(0, 0, 0, 0.58) 52%,
        rgba(0, 0, 0, 0) 78%
    );
    mask-image: radial-gradient(
        440px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.95) 28%,
        rgba(0, 0, 0, 0.58) 52%,
        rgba(0, 0, 0, 0) 78%
    );
}

.mouse-dot-glow.is-active {
    opacity: 0.6;
}

.mouse-dot-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        560px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.2) 0%,
        rgba(205, 205, 205, 0.16) 34%,
        rgba(135, 135, 135, 0.12) 56%,
        rgba(30, 30, 30, 0.08) 72%,
        transparent 82%
    );
}

p {
    color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */

nav, 
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: auto;
    padding: 4vh 5vh 4vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}
.nav-links li {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.nav-links a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: black;
  padding-bottom: 6px;
  transition: color 300ms ease;
}

.nav-links a:hover {
  color: rgba(0, 0, 0, 0.6);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #00FFAA;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}


#desktop-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.section-subtitle {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

body {
  scroll-padding-top: 80px;
  margin-top: 0;
}

/*
.nav-links a.active {
  color: #000;                        
  text-decoration: underline;
  text-decoration-color: #00FFAA;     
  text-underline-offset: 0.75rem;
}

.menu-links a.active {
  text-decoration: underline;
  text-decoration-color: #00FFAA;
  text-underline-offset: 0.5rem;
}*/

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    padding: 4vh 5vh 4vh;
}

#hamburger-nav .menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 3100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  
  max-height: 0;
  overflow: hidden;

  transition: max-height 0.3s ease;
}

#hamburger-nav .menu-links.open {
  max-height: 80vh;
  overflow-y: auto;
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links a:hover {
    text-decoration: underline;
    text-decoration-color: #00FFAA;
    text-underline-offset: 0.5rem;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(46deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-46deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* SECTIONS */

section {
    padding-top: 16vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}


.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
    margin-top: 8.2rem;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__pic-container img{
    border-radius: 50px;
    object-fit: cover;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Animated gradient section headers */
section:not(#profile) .title {
    color: #0b0b0b; /* fallback */
    background: repeating-linear-gradient(
      120deg,
      #0a0a0a 0%,
      #0a0a0a 30%,
      #132a78 38%,
      #7f2bff 50%,
      #c329b8 62%,
      #0f4ca7 70%,
      #0a0a0a 78%,
      #0a0a0a 100%
    );
    background-size: 200% auto;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sectionHeaderGradientShift 20s linear infinite;
    animation-delay: 3s;
}

#jason-mode .title .title-emoji {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #0b0b0b;
    color: #0b0b0b;
}

@keyframes sectionHeaderGradientShift {
    0%,
    20% {
        background-position: 0% 50%;
    }
    80%,
    100% {
        background-position: 200% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    section:not(#profile) .title {
        animation: none;
    }
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

#socials-container .icon {
    border-radius: 50%;
}

#socials-container .icon:hover {
    outline: 3px solid #00FFAA;
    outline-offset: 2px;
    opacity: 0.6;
}

#companies-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.companies-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.38);
  margin: 0;
}

.companies-logos {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.company-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.company-item:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.company-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.company-name {
  font-weight: 700;
  font-size: 1rem;
}


/* ICONS*/

.icon {
    cursor: pointer;
    height: 2rem;
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-weight: 600;
    transition: all 0.3 ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}

.btn-color-1, .btn-color-2 {
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover, .btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1, .btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover {
    background: rgb(0, 0, 0);
    color: white;
}

.btn-color-2 {
    background: none;
}

.btn-color-2:hover {
    border: rgb(255, 255, 255)  0.1rem solid;
}

.btn-container {
    gap: 1rem;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed !important;
}


/* ===== What I'm Building Now ===== */
#building-now {
  position: relative;
  min-height: fit-content;
}

.building-now-subtitle {
  max-width: 760px;
  margin: 0 auto 2.25rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.62);
}

.building-now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.building-now-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,248,0.96));
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1.75rem;
  padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.building-now-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.09);
  border-color: rgba(0, 255, 170, 0.45);
}

.building-now-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(0, 255, 170, 0.10);
  color: #0b7d5d;
  border: 1px solid rgba(0, 255, 170, 0.22);
}

.building-now-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d084;
  box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.4);
  animation: building-pulse 1.8s infinite;
}

@keyframes building-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(0, 208, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 208, 132, 0); }
}

.building-now-name {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.building-now-description {
  margin: 0 0 1rem;
  color: rgba(0,0,0,0.68);
  line-height: 1.65;
  font-size: 0.98rem;
}

.building-now-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.building-now-tag {
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0,0,0,0.045);
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.66);
}

.building-now-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
}

.building-now-link:hover {
  color: #00b67a;
}

.building-now-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(0,0,0,0.55);
  padding: 1rem 0;
}

@media (max-width: 1000px) {
  .building-now-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .building-now-grid {
    grid-template-columns: 1fr;
  }

  .building-now-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.6rem;
  }
}

/* BUILDING NOW */
/* ===== RIGHT MAC-SIDECAR STYLE PANEL ===== */
:root {
  --rsc-width: 420px;
  --rsc-radius: 26px;
  --rsc-gap: 18px;
  --rsc-peek-width: 4px; /* only a tiny sliver visible */
  --rsc-peek-reveal: 20px; /* subtle visible strip on edge hover */
  --rsc-z: 5000;
}

#right-sidecar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: calc(var(--rsc-z) - 1);
}

#right-sidecar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#right-sidecar {
  position: fixed;
  top: 50%;
  right: var(--rsc-gap);
  width: var(--rsc-width);
  max-width: calc(100vw - 2rem);
  transform: translate(calc(100% - var(--rsc-peek-width)), -50%);
  transition:
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
  z-index: var(--rsc-z);
  pointer-events: none;
  opacity: 0;
}

#right-sidecar.peeking {
  transform: translate(calc(100% - var(--rsc-peek-reveal)), -50%);
  pointer-events: auto;
  opacity: 1;
}

#right-sidecar.open {
  right: 50%;
  transform: translate(50%, -50%);
  pointer-events: auto;
  opacity: 1;
}

.right-sidecar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: min(76vh, 720px);
  border-radius: var(--rsc-radius);
  background: rgba(248, 248, 250, 0.82);
  backdrop-filter: blur(34px) saturate(1.8);
  -webkit-backdrop-filter: blur(34px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.14),
    0 10px 30px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#right-sidecar.peeking .right-sidecar-card,
#right-sidecar.open .right-sidecar-card {
  opacity: 1;
}

#right-sidecar.peeking .right-sidecar-card {
  pointer-events: auto;
  cursor: pointer;
}

#right-sidecar.open .right-sidecar-card {
  pointer-events: auto;
  cursor: default;
}

#right-sidecar-peek {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-8%, -50%);
  width: 14px;
  height: 110px;
  border: none;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.22s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#right-sidecar.peeking #right-sidecar-peek,
#right-sidecar.open #right-sidecar-peek {
  opacity: 1;
  pointer-events: auto;
}

#right-sidecar.peeking #right-sidecar-peek {
  opacity: 0.75;
}

#right-sidecar-peek:hover {
  transform: translate(-24%, -50%);
}

.right-sidecar-peek-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.85),
    rgba(225,225,230,0.72)
  );
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.right-sidecar-peek-line {
  position: relative;
  width: 3px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34C759, #00C7BE);
  box-shadow: 0 0 16px rgba(52,199,89,0.35);
}

.right-sidecar-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.2rem 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.right-sidecar-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.44);
}

.right-sidecar-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.9);
}

.right-sidecar-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(0,0,0,0.62);
  max-width: 280px;
}

.right-sidecar-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.right-sidecar-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.045);
  border: 1px solid rgba(0,0,0,0.07);
  color: rgba(0,0,0,0.72);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.right-sidecar-updated::before {
  content: "⏺";
  color: #34C759;
}

#right-sidecar-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.72);
  color: rgba(0,0,0,0.66);
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

#right-sidecar-close:hover {
  transform: scale(1.06);
  background: rgba(255,255,255,0.95);
}

.right-sidecar-list {
  flex: 1;
  min-height: 0;
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.right-sidecar-list::-webkit-scrollbar {
  width: 8px;
}

.right-sidecar-list::-webkit-scrollbar-track {
  background: transparent;
}

.right-sidecar-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.14);
  border-radius: 999px;
}

.right-sidecar-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.78rem;
  align-items: start;
  padding: 0.92rem 0.95rem;
  border-radius: 17px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.right-sidecar-live-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.32rem;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 rgba(52,199,89,0.35);
  animation: rightSidecarPulse 1.8s infinite;
}

@keyframes rightSidecarPulse {
  0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.35); }
  70% { box-shadow: 0 0 0 10px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

.right-sidecar-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.22rem;
}

.right-sidecar-item-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #000;
}

.right-sidecar-status {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.right-sidecar-status--shipping {
  background: rgba(0,122,255,0.10);
  color: #0066d6;
  border-color: rgba(0,122,255,0.18);
}

.right-sidecar-status--in-progress {
  background: rgba(255,159,28,0.12);
  color: #b86600;
  border-color: rgba(255,159,28,0.20);
}

.right-sidecar-status--exploring {
  background: rgba(140,82,255,0.12);
  color: #6f42d9;
  border-color: rgba(140,82,255,0.18);
}

.right-sidecar-status--default {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.68);
  border-color: rgba(0,0,0,0.08);
}

.right-sidecar-item-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(0,0,0,0.64);
}

@media (max-width: 700px) {
  :root {
    --rsc-width: calc(100vw - 1rem);
    --rsc-gap: 8px;
    --rsc-peek-width: 6px;
  }

  .right-sidecar-header {
    flex-direction: column;
  }

  .right-sidecar-header-actions {
    align-items: flex-start;
  }
}

/* ABOUT SECTION */
#about {
    position: relative;
}

#about .section-container {
    display: grid;
    grid-template-columns: minmax(260px, 24vw) minmax(0, 1fr);
    align-items: center;
    gap: 3.5rem;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 0.2rem;
}

.about-details-container {
    justify-content: flex-start;
    flex-direction: column;
}

.about-containers, .about-details-container {
    display: flex;
}

.about-pic {
    border-radius: 2rem;
}

#about .section-container > .section__pic-container {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(78vh, 760px);
    margin: -4rem 0 0 -2.4rem;
    justify-self: start;
}

.about-phone-3d {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 2rem;
    overflow: hidden;
    touch-action: none;
}

.about-phone-3d canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
}

.about-phone-3d.is-dragging canvas {
    cursor: grabbing;
}

.about-phone-fallback {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4e4e4e;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: transparent;
    opacity: 1;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.about-phone-3d.is-loaded .about-phone-fallback {
    opacity: 0;
}

.about-phone-3d.model-unavailable .about-phone-fallback {
    opacity: 1;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.arrow:hover {
  transform: translateY(2px);
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.italic-text {
  font-style: italic;
}

#leadership,
#education {
  position: relative;
}

/* SKILL SECTION */

#skills {
    position: relative;
}

#skills .skills-section-container {
  display: grid;
  grid-template-columns: repeat(2, 520px); 
  justify-content: center;
  gap: 3rem;
  margin: 0 auto;
}

#skills .skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3.5rem;
}

#skills .skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  #skills .skills-section-container {
    grid-template-columns: 1fr;
  }
}
/* stack on smaller screens */
@media (max-width: 1200px) {
  .experience-section-container {
    grid-template-columns: 1fr;
  }
}

#skills .skill-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
}

#skills .skill-icon i {
  font-size: 26px;       /* tweak */
  line-height: 1;
  display: block;
}

#skills .skill-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

#skills .skill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1.2rem;
}

#skills .details-container {
  padding: 2rem 2.5rem;
}

#skills .skills-card {
  padding: 2rem 2.5rem;
}

/* Title (Python, Java, etc.) */
.skill-text .skill-name {
  font-weight: 700;

}

/* Level (Experienced/Intermediate) */
.skill-text .skill-level {
  color: rgba(0,0,0,0.75);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}


.article-container { display: flex; text-align: initial; flex-wrap: wrap; flex-direction: row; gap: 2.5rem; justify-content: space-around; }

article.icon {
    cursor: default;
}

article .skill-text {
  text-align: left;
  line-height: 1.15;
}

article .skill-text h3,
article .skill-text p {
  margin: 0;
}

.skill-cursor-icon {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 11000;
  opacity: 0;
  transform: translate3d(14px, 14px, 0) scale(0.85);
  transition: opacity 120ms ease, transform 120ms ease;
}

.skill-cursor-icon.is-visible {
  opacity: 1;
  transform: translate3d(14px, 14px, 0) scale(1);
}

.skill-cursor-icon .skill-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.skill-cursor-icon .skill-icon i {
  font-size: 34px;
  line-height: 1;
}

.skill-cursor-icon .skill-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ===== Nav Contact Icon ===== */
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
}

/* prevent underline animation on icon */
.nav-links .nav-icon-link::after {
  display: none !important;
}

.nav-icon {
  height: 1.65rem;
  width: 1.65rem;
  display: block;
  border-radius: 999px;
}

/* active state for icon */
.nav-links .nav-icon-link.active {
  outline: 2px solid #00FFAA;
  outline-offset: 3px;
}

/* hover feel matches your icons */
.nav-links .nav-icon-link:hover .nav-icon {
  opacity: 0.7;
}



/* PROJECTS SECTION */

#projects {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.project-title {
    margin: 1rem;
    margin-top: -1.08rem;
    color: black;
}

/* Project title marquee */
.project-title {
  position: relative;
  overflow: hidden;
  white-space: nowrap;   /* keep it on one line */
  text-align: center;
}

/* Container controls overflow */
.project-title {
  position: relative;
  overflow: hidden;
}

/* Track that scrolls */
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 12s linear infinite;
}

.marquee-text {
  padding-right: 4.5rem;
}

/* Hover to pause */
.project-title:hover .marquee-track {
  animation-play-state: paused;
}

/* Scroll keyframes: seamless because track is 2× width */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* max 3 per row */
  gap: 1.5rem 1.5rem;                               /* vertical / horizontal spacing */
  max-width: 1200px;
  margin: 0 auto 3rem;                              /* center the whole grid */
}

/* Responsive: 2 columns on medium screens, 1 on small */
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* === Project card media === */
.project-card .article-container {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
}

.project-card .article-container::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.project-card .project-img {
  position: absolute;
  width: 90%;
  height: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2rem;
}

/* === Floating hover preview (image/video) === */
.project-card {
  isolation: isolate;
}

.project-card.is-preview-active {
  transform: translateY(-2px);
}

#project-hover-preview {
  --preview-tilt: 0deg;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 210px;
  max-width: min(360px, 30vw);
  max-height: min(300px, 38vh);
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(145, 145, 155, 0.22);
  background: #060607;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: perspective(1400px) rotateY(var(--preview-tilt)) scale(0.96);
  transform-origin: center center;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
  z-index: 1400;
}

#project-hover-preview::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -16px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}

#project-hover-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: perspective(1400px) rotateY(var(--preview-tilt)) scale(1);
}

#project-hover-preview.is-right-side {
  --preview-tilt: -14deg;
}

#project-hover-preview.is-left-side {
  --preview-tilt: 14deg;
}

.project-hover-preview__media {
  width: 100%;
  height: 100%;
}

.project-hover-preview__image,
.project-hover-preview__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-hover-preview__video[hidden],
.project-hover-preview__image[hidden] {
  display: none;
}

.project-hover-preview__title {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f1f3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

#project-hover-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  pointer-events: none;
}

@media (max-width: 1000px), (hover: none), (pointer: coarse) {
  #project-hover-preview {
    display: none;
  }
}


/* ===== Certifications (Education section) ===== */

.certs-wrap {
  max-width: 900px;
  margin: 2.25rem auto 0;
}

.certs-title {
  margin: 0 0 1rem 0;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading-black, #000);
}

/* List container (not cards) */
.certs-list {
  display: grid;
  gap: 0.9rem;
}

/* Row layout */
.cert-row {
  --cert-color: #13294B; /* fallback */
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.9rem;

  /* “not cards”: no box shadow, no big rounded card background */
  border-top: 1px solid rgba(0,0,0,0.08);
}

.certs-list .cert-row:first-child {
  border-top: 1px solid rgba(0,0,0,0.12);
}

.cert-logo {
  width: 44px;
  aspect-ratio: 1 / 1; /* guarantees square */
  height: auto;
  object-fit: contain;
  display: block;
}

.cert-meta {
  min-width: 0;
}

.cert-name {
  font-weight: 700;
  color: rgba(0,0,0,0.88);
  line-height: 1.2;
}

.cert-issuer {
  margin-top: 0.15rem;
  font-weight: 400;
  color: rgba(0,0,0,0.55);
  font-size: 0.95rem;
}

/* LinkedIn-style rounded button */
.cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;

  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.75);
  text-decoration: none;

  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cert-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--cert-color) 55%, rgba(0,0,0,0.18));
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* subtle brand tint on hover */
.cert-row:hover .cert-btn {
  background: color-mix(in oklab, var(--cert-color) 10%, #fff);
}

/* Credential ID line */
.cert-id {
  margin-top: 0.15rem;
  font-weight: 200;
  color: rgba(0,0,0,0.48);
  font-size: 0.9rem;
}
.cert-id span {
  font-weight: 700;
  color: rgba(0,0,0,0.62);
}

/* Button icon + prevent underline on hover */
.cert-btn {
  text-decoration: none !important;
  gap: 0.45rem;
}

.cert-btn:hover,
.cert-btn:focus,
.cert-btn:active {
  text-decoration: none !important;
}

.cert-btn-icon {
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.cert-btn:hover .cert-btn-icon {
  transform: translate(1px, -1px);
}

/* Hide extra certifications by default */
.cert-hidden { display: none; }

/* Show more / less button */
.certs-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.certs-toggle-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.certs-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}



/* Mobile stacking */
@media (max-width: 650px) {
  .cert-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.65rem;
  }

  .cert-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


/* CONTACT */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
    margin-bottom: -2.38rem;
}

footer p {
    text-align: center;
}




/* ADDITIONAL */

/* Hover box */
.details-container:not(.experience-card):hover,
.color-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Keep transitions defined on the base elements (cleaner + consistent) */
.details-container:not(.experience-card),
.color-container {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#experience .experience-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

#experience .experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 2;
}

.experience-logo {
    border-radius: 10px;
    object-fit: cover;
}

/* Typewriter Effect */
#typewriter {
  display: inline-block;
  border-right: 2px solid #13294B; /* Carolina Blue accent */
  white-space: nowrap;
  overflow: hidden;
  font-weight: 600;
  animation: blink 0.7s steps(2, start) infinite;
  vertical-align: bottom;
  padding-left: 0;     /* no extra space on the left */
  padding-right: 3px;  /* tiny gap before the blinking cursor */
  margin-left: 0;
  margin-right: 0;
}

@keyframes blink {
  to {
    border-color: transparent;
  }
}

/* Filter Buttons */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgb(163,163,163);
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.filter-btn.active {
  background: rgb(53,53,53);
  color: white;
  border-color: rgb(53,53,53);
  transform: translateY(-1px);
}

/* Hide filtered cards smoothly */
/* Card base (keep hover/other effects separate if you like) */
.project-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* When filtered out: remove from layout so others move up/left */
.project-card.is-hidden {
  display: none;
}

/* Winner ribbon for Case Closed */
.project-card {
  position: relative; /* allows absolute-positioned ribbon */
}

/* === Pin project buttons to bottom of card === */
.project-card{
  display: flex;
  flex-direction: column;
}

.project-card .article-container{
  flex-shrink: 0;
}

.project-card .btn-container{
  margin-top: auto;
}

.project-card--winner .project-ribbon {
  position: absolute;
  top: 16px;
  left: 18px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFCF33, #FF9F1C);
  color: #3b2a00;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none; /* don't block clicks on buttons below */
  text-transform: uppercase;
  white-space: nowrap;
}

/* Optional: tiny trophy emoji on the left */
.project-card--winner .project-ribbon::before {
  content: "🏆";
  margin-right: 0.35rem;
}

.project-ribbon {
  position: absolute;
  top: 0.75rem;
  left: -0.6rem;
  background: linear-gradient(135deg, #FFCF33, #FF9F1C);
  color: #222;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  padding: 0.4rem 1.2rem;
  border-radius: 0 0.4rem 0.4rem 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  overflow: hidden;
}

/* ⚡ Reflection animation */
.project-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: skewX(-25deg);
  animation: shine 4s ease-in-out infinite;
}

.project-meta {
  margin: -0.85rem 1.25rem 1rem;  
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.25;
  text-align: center;
}

.project-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ✨ Keyframes for shimmer */
@keyframes shine {
  0% {
    left: -75%;
  }
  50% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

/* Optional: subtle gradient movement for realism */
@keyframes subtleGlow {
  0% {
    background: linear-gradient(135deg, #FFCF33, #FF9F1C);
  }
  50% {
    background: linear-gradient(135deg, #FFCF33, #FF9F1C);
  }
  100% {
    background: linear-gradient(135deg, #FFCF33, #FF9F1C);
  }
}

.project-ribbon {
  animation: subtleGlow 6s ease-in-out infinite alternate;
}


/* Optional: grid feel when many cards */
.experience-details-container .about-containers {
  flex-wrap: wrap;
  gap: 1.5rem;
}



/* ====== Education Timeline ====== */
:root{
  /* Feel free to tweak to your palette */
  --edu-accent: #4B9CD3;         /* Carolina blue-ish */
  --edu-accent-dark: #13294B;    /* Deep navy */
  --edu-line: rgba(0,0,0,0.12);  /* Timeline line color */
  --edu-card-bg: #ffffff;        /* Card background */
  --edu-text: #222;              /* Primary text */
  --edu-muted: #545454;          /* Secondary text */
  --edu-radius: 16px;
  --edu-shadow: 0 8px 24px rgba(0,0,0,0.08);
}


#education .title{
  margin-bottom: 2rem;
}

.edu-timeline{
  position: relative;
  margin: 2rem auto 0;
  padding: 0;
  max-width: 900px;
  list-style: none;
}

/* Vertical center line */
.edu-timeline::before{
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--edu-line);
}

/* Each item row */
.edu-item{
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Marker (dot) */
.edu-marker{
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--edu-accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--edu-accent) 25%, transparent);
  margin-left: 16px; /* centers over line */
  margin-top: 0.4rem;
  flex: 0 0 16px;
}

/* Card */
.edu-card{
  background: var(--edu-card-bg);
  border-radius: var(--edu-radius);
  box-shadow: var(--edu-shadow);
  padding: 1.25rem 1.25rem 1rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163, 0.35);

}



.edu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.edu-school{
  margin: 0 0 .25rem 0;
  color: var(--edu-accent-dark);
  font-size: 1.05rem;
  line-height: 1.35;
}

.edu-honors{
  margin: 0 0 .25rem 0;
  color: var(--edu-accent-dark);
  font-size: 1.05rem;
  line-height: 1.35;
}

.edu-degree{
  margin: 0;
  color: var(--edu-text);
  font-weight: 500;
}

.edu-years{
  margin: .4rem 0 .6rem 0;
  color: var(--edu-muted);
  font-size: .95rem;
}

.edu-highlights{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}

.edu-highlights li{
  position: relative;
  padding-left: 1.05rem;
  color: var(--edu-muted);
  font-size: .95rem;
}
.edu-highlights li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--edu-accent);
}

/* ====== Larger screens: shift line to middle and alternate cards ====== */
@media (min-width: 800px){
  .edu-timeline{
    padding-left: 0; 
  }
  .edu-timeline::before{
    left: 50%;
    transform: translateX(-1px);
  }
  .edu-item{
    grid-template-columns: 1fr 56px 1fr; /* left card / marker / right card space */
    align-items: start;
  }
  .edu-marker{
    grid-column: 2;
    margin: 0 auto;
  }
  /* Alternate cards left/right */
  .edu-item:nth-child(odd) .edu-card{
    grid-column: 1;
    margin-right: 2rem;
  }
  .edu-item:nth-child(even) .edu-card{
    grid-column: 3;
    margin-left: 2rem;
  }
}

/* ====== Print-friendly ====== */
@media print{
  .edu-card{
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  .edu-timeline::before,
  .edu-marker{
    background: #000 !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* === Animated Skill Bars === */
.skills-grid {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 1.5rem auto 0;
}

.skill {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-num {
  font-weight: 700;
  color: #13294B; /* deep navy from your palette */
  font-size: 0.95rem;
}

.skill-bar {
  height: 10px;
  background: rgb(240,240,240);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00FFAA, #13294B);
  transition: width 1.2s ease; /* JS sets width, CSS animates it */
}

/* ===== Nav Contact Icon ===== */
.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
}

/* prevent underline animation on icon */
.nav-links .nav-icon-link::after {
  display: none !important;
}

.nav-icon {
  height: 1.65rem;
  width: 1.65rem;
  display: block;
  border-radius: 999px;
}

/* active state for icon */
.nav-links .nav-icon-link.active {
  outline: 2px solid #00FFAA;
  outline-offset: 3px;
}

/* hover feel matches your icons */
.nav-links .nav-icon-link:hover .nav-icon {
  opacity: 0.7;
}

/* ===== Experience Section ===== */
#experience {
  position: relative;
}

.experience-section-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .experience-section-container {
    grid-template-columns: 1fr;
  }
}

.experience-card {
  text-align: left; /* override your default centered cards */
}

/* ===== Experience Top Layout ===== */

.experience-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.experience-card-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.experience-role {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
}

/* Company name matches logo color */
.experience-org {
  margin: 0;
  font-weight: 700;
  color: var(--org-color, #13294B);
}

/* Dates under company */
.experience-dates {
  margin: 0.05rem 0 0;
  color: rgba(0,0,0,0.55);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Pure 1:1 logo image (no card, no background, no border) */
.experience-logo {
  width: 64px;
  aspect-ratio: 1 / 1;   /* 🔒 guarantees square */
  height: auto;          /* height derives from width */
  object-fit: contain;   /* never stretches logo */
  display: block;

  /* no card styling */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}


.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.exp-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(250,250,250,0.9);
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(0,0,0,0.72);
}

.experience-bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: rgb(85, 85, 85);
  display: grid;
  gap: 0.4rem;
}

.exp-btn-row {
  margin-top: 1rem;
  justify-content: flex-start; /* left align buttons */
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .skill-fill { transition: none; }
}

a[target="_blank"]:hover {
  color: #13294B;
  text-decoration: underline;
  text-decoration-color: #00FFAA; 
  text-underline-offset: 0.4rem;
}


/* ===== Work Ticker Banner (Bottom, Collapsible) ===== */

:root {
  --ticker-height: 2.4rem;
  --ticker-tab-height: 1.1rem;
}

#work-ticker {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--ticker-height) + var(--ticker-tab-height));
  z-index: 5000;
  overflow: visible;
  background: transparent;
}


.work-ticker__body {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--ticker-height);
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.32s ease;
}

#work-ticker.work-ticker--hidden {
  transform: translateY(var(--ticker-height));
}

.work-ticker__toggle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: var(--ticker-tab-height);
  min-width: 11rem;
  padding: 0 1rem;
  border: none;
  border-left: 1px solid rgba(0,0,0,0.12);
  border-right: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  border-radius: 0 0 0.85rem 0.85rem;
  background: rgba(255,255,255,0.98);
  color: #111111;
  font-family: "Poppins", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.work-ticker__toggle:hover {
  transform: translateX(-50%) translateY(-2px);
  background: #f5f5f5;
}

.work-ticker__toggle-label {
  pointer-events: none;
}

.work-ticker__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.work-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: workTickerScroll 32s linear infinite;
  will-change: transform;
}

.work-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.work-ticker__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 1.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.01em;
}

.work-ticker__divider {
  width: 1px;
  height: 0.9rem;
  background: rgba(0,0,0,0.16);
  flex-shrink: 0;
}

.work-ticker__fade {
  position: absolute;
  top: 0;
  width: 3rem;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.work-ticker__fade--left {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.work-ticker__fade--right {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}

#work-ticker:hover .work-ticker__track {
  animation-play-state: paused;
}

@keyframes workTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body {
  padding-bottom: var(--ticker-height);
}

@media (max-width: 768px) {
  :root {
    --ticker-height: 2.1rem;
    --ticker-tab-height: 1rem;
  }

  .work-ticker__item {
    font-size: 0.74rem;
    padding: 0 0.9rem;
  }

  .work-ticker__fade {
    width: 2rem;
  }

  .work-ticker__toggle {
    width: 10rem;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #work-ticker {
    transition: none;
  }

  .work-ticker__track {
    animation: none;
  }
}

#work-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.4rem;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.12);
  z-index: 5000;
  overflow: hidden;
  transition: transform 0.35s ease;
}

#work-ticker.hide {
  transform: translateY(100%);
}

body {
  padding-bottom: 2.4rem;
}

/* Rotating Circle 
.section__pic-container {
    position: relative;
    width: 300px; 
    height: 300px;
    margin: auto;
}

.profile-photo {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.circle-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%; 
    height: 120%;
    border-radius: 50%;
    border: 4px dashed #00FFAA;
    animation: rotate 30s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.8;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}*/

/*
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #4B9CD3;
  border-radius: 50%;
  background-color: rgba(75, 156, 211, 0.15);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.15s ease, background-color 0.15s ease, border 0.15s ease;
  z-index: 10000;
  mix-blend-mode: difference;
}


a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
.icon:hover ~ .custom-cursor {
  transform: translate(-50%, -50%) scale(1.6);
  background-color: rgba(75, 156, 211, 0.3);
}

.custom-cursor.click {
  transform: translate(-50%, -50%) scale(0.7);
}


*/

/* ===== Jason Mode Page ===== */

.jason-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
}

.jason-list li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #555;
}

/* Quotes */
.quotes-container {
  max-width: 900px;
  margin: 2rem auto 0 auto;
  display: grid;
  gap: 1.5rem;
}

.quote-card {
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(19, 41, 75, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.quote-text {
  margin: 0;
  font-size: 0.98rem;
  color: #333;
}

.quote-author {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

/* Gallery */
.gallery-grid {
  max-width: 900px;
  margin: 2rem auto 3rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .quotes-container {
    grid-template-columns: 1fr;
  }
}

.jason-mode-note {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.jason-mode-note .key-hint {
  font-weight: 600;
  color: #4B9CD3;
}

.jason-mode-note.visible {
  opacity: 0.95;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .jason-mode-note {
    font-size: 0.75rem;
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

/* ==== Jason Mode Image Popout ==== */

.img-popout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;                 /* below custom cursor (10000), above everything else */
  pointer-events: none;          /* only clickable when visible */
}

.img-popout-overlay.visible {
  pointer-events: auto;
}

.img-popout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.img-popout-overlay.open .img-popout-backdrop {
  opacity: 1;
}

.img-popout-img {
  position: fixed;
  /* top / left / width / height set by JS */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

  /* 🔥 animation */
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center center;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    top 0.25s ease,
    left 0.25s ease,
    width 0.25s ease,
    height 0.25s ease;
}

.img-popout-overlay.open .img-popout-img {
  opacity: 1;
  transform: scale(1);
}


/* ===== Resume Modal ===== */

.resume-modal {
  position: fixed;
  inset: 0;
  display: none;                /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9000;                /* above nav, below custom-cursor (10000) */
  pointer-events: none;         /* enabled only when open */
}

.resume-modal.open {
  display: flex;
  pointer-events: auto;
}

/* Dim the background, but with lighter blur */
.resume-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);   /* a bit lighter */
  backdrop-filter: blur(1.5px);      /* less blurry than 4px */
}

/* Larger dialog */
.resume-dialog {
  position: relative;
  max-width: 900px;            /* slightly narrower for portrait shape */
  width: 82%;
  max-height: 95vh;            /* taller overall */
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  padding: 1rem 1.2rem 1.2rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


/* Header row with title left, actions right */
.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.resume-dialog h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #13294B;
}

.resume-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Resume "Open" Button ===== */
.resume-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgb(0, 0, 0);
  background: none;
  border: 1.5px solid rgb(0, 0, 0);
  border-radius: 20px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.resume-open-btn:hover {
  background: rgb(53, 53, 53);
  color: white;
  transform: translate(0,-2px);
}

.resume-open-btn svg {
  stroke: currentColor;
  transition: transform 0.2s ease;
}


/* Close “X” still in top-right corner */
.resume-close {
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}


.resume-frame-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  height: 100%;
  display: flex;
}

.resume-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  min-height: 65vh;
  margin: 0;
  padding: 0;
  line-height: 0;
}


/* Mobile tweaks */
@media (max-width: 768px) {
  .resume-dialog {
    width: 98%;
    max-height: 95vh;
    padding: 0.9rem;
  }

  .resume-dialog h2 {
    font-size: 1.05rem;
  }

  #resume-download {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Add padding around the popup on narrower screens */
@media (max-width: 1100px) {
  .resume-modal {
    padding: 2rem; /* space around the popup */
  }
}

@media (max-width: 768px) {
  .resume-modal {
    padding: 1.25rem; /* slightly smaller padding for mobile */
  }

  .resume-dialog {
    width: 100%;          /* use full width of padded container */
    max-width: none;      /* allow flexible scaling */
    border-radius: 14px;  /* softer corners on small screens */
  }
}

.resume-frame-wrapper:hover ~ .custom-cursor,
.resume-frame-wrapper iframe:hover ~ .custom-cursor {
  opacity: 0 !important;
}

/* Prevent scrolling behind modal when open */
body.modal-open {
  overflow: hidden;
}

/* Scroll Progress Bar */
:root {
  --progress-height: 4px;
  --progress-color: #00FFAA; /* your green */
}

#scroll-progress {
  position: fixed;
  bottom: 0;               /* stays at the very top */
  left: 0;
  height: var(--progress-height);
  width: 0%;
  background: var(--progress-color);
  z-index: 2000;        /* higher than your nav */
  pointer-events: none;
  transition: width 80ms linear; /* tiny smoothing */
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #scroll-progress { transition: none; }
}

/* =======================
   Terminal Takeover Mode
======================= */

:root {
  --terminal-bg: #030806;
  --terminal-fg: #d9f0ff;
  --terminal-fg-dim: #9bc8e8;
  --terminal-border: rgba(154, 216, 255, 0.26);
  --terminal-glow: rgba(74, 176, 255, 0.25);
}

body.terminal-open {
  overflow: hidden;
}

.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background:
    radial-gradient(circle at 85% 20%, rgba(40, 126, 218, 0.22), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(28, 84, 182, 0.2), transparent 35%),
    linear-gradient(130deg, #02050c 0%, #040b16 52%, #051326 100%);
  color: var(--terminal-fg);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0ms linear 220ms;
  pointer-events: none;
}

.terminal-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: auto;
}

.terminal-crt,
.terminal-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.terminal-crt {
  background: radial-gradient(circle at 50% 55%, transparent 48%, rgba(0, 0, 0, 0.34) 100%);
  mix-blend-mode: multiply;
}

.terminal-scanlines {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.62;
  animation: terminal-scan 3.2s linear infinite;
}

.terminal-shell {
  position: relative;
  height: 100%;
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 2.2rem 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-shadow: 0 0 12px var(--terminal-glow);
  min-height: 0;
}

.terminal-intro {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.terminal-overlay.takeover-intro .terminal-intro {
  display: flex;
}

.terminal-overlay.takeover-intro .terminal-shell {
  visibility: hidden;
}

.terminal-intro-grid {
  position: absolute;
  inset: -8%;
  background-image:
    linear-gradient(rgba(110, 190, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 190, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  transform: perspective(650px) rotateX(70deg) translateY(40%);
  opacity: 0.35;
  animation: terminal-intro-grid 2.6s linear infinite;
}

.terminal-intro-noise {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(172, 230, 255, 0.035),
      rgba(172, 230, 255, 0.035) 2px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.38;
  animation: terminal-intro-noise 170ms steps(2, end) infinite;
}

.terminal-intro-sweep {
  position: absolute;
  left: -28%;
  top: -28%;
  width: 56%;
  height: 156%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(140, 220, 255, 0.04) 30%,
    rgba(140, 220, 255, 0.34) 52%,
    rgba(140, 220, 255, 0.04) 70%,
    transparent 100%
  );
  transform: skewX(-12deg);
  animation: terminal-intro-sweep 1.7s ease-in-out infinite;
}

.terminal-intro-copy {
  position: relative;
  text-align: center;
  padding: 0 1rem;
  max-width: 90vw;
}

.terminal-intro-line {
  margin: 0.35rem 0;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4eeff;
  text-shadow: 0 0 18px rgba(92, 172, 255, 0.55);
  animation: terminal-intro-flicker 200ms steps(2, end) infinite;
}

.terminal-intro-line--major {
  font-size: clamp(1.5rem, 4.1vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.terminal-intro-line--minor {
  font-size: clamp(0.72rem, 1.7vw, 1.08rem);
  color: #89c4e8;
}

@keyframes terminal-intro-grid {
  0% { transform: perspective(650px) rotateX(70deg) translateY(40%) translateX(0); }
  100% { transform: perspective(650px) rotateX(70deg) translateY(40%) translateX(-34px); }
}

@keyframes terminal-intro-noise {
  0% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(1px); opacity: 0.42; }
  100% { transform: translateY(0); opacity: 0.28; }
}

@keyframes terminal-intro-sweep {
  0% { transform: translateX(0) skewX(-12deg); opacity: 0.2; }
  50% { transform: translateX(170%) skewX(-12deg); opacity: 0.55; }
  100% { transform: translateX(330%) skewX(-12deg); opacity: 0.2; }
}

@keyframes terminal-intro-flicker {
  0%, 100% { opacity: 0.95; transform: translateX(0); }
  25% { opacity: 0.72; transform: translateX(-1px); }
  50% { opacity: 1; transform: translateX(1px); }
  75% { opacity: 0.8; transform: translateX(0); }
}

.terminal-header {
  border: 1px solid var(--terminal-border);
  background: rgba(0, 0, 0, 0.26);
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
}

.terminal-header h2 {
  margin: 0;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-subtitle {
  margin: 0.22rem 0 0;
  font-size: 0.75rem;
  color: var(--terminal-fg-dim);
  letter-spacing: 0.06em;
}

.terminal-boot,
.terminal-output {
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 1rem;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  min-height: 0;
}

.terminal-boot {
  display: none;
  color: #a7ffd0;
  max-height: 28vh;
  flex: 0 0 auto;
}

.terminal-overlay.booting .terminal-boot {
  display: block;
}

.terminal-overlay.booting .terminal-output {
  display: none;
}

.terminal-output {
  flex: 1 1 auto;
}

.terminal-line {
  margin: 0 0 0.38rem;
  line-height: 1.42;
  font-size: 0.83rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e6f5ff;
}

.terminal-line--dim {
  color: #b8dcf5;
}

.terminal-line--warn {
  color: #f3dd86;
}

.terminal-line--error {
  color: #ff8c8c;
}

.terminal-line--cmd {
  color: #d3edff;
}

.terminal-link {
  color: #d7f1ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.terminal-link:hover {
  color: #ffffff;
}

.terminal-line.glitch {
  animation: terminal-glitch 1500ms steps(2, end) infinite;
}

.terminal-overlay.active .terminal-shell,
.terminal-overlay.takeover-intro .terminal-intro {
  animation: terminal-screen-shake 5s steps(2, end) infinite;
}

.terminal-footer {
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  padding: 0.72rem 0.85rem;
  flex: 0 0 auto;
}

.terminal-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-prompt {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: #d6ecff;
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--terminal-fg);
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.87rem;
  line-height: 1.3;
  outline: none;
  caret-color: #d6ecff;
}

.terminal-input::placeholder {
  color: rgba(154, 216, 255, 0.58);
}

.terminal-status {
  margin: 0.48rem 0 0;
  font-size: 0.72rem;
  color: var(--terminal-fg-dim);
}

.terminal-status kbd {
  background: rgba(154, 216, 255, 0.14);
  border: 1px solid rgba(154, 216, 255, 0.34);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}

body[data-terminal-glitch="high"] .terminal-line.glitch {
  animation-duration: 980ms;
}

body[data-terminal-glitch="low"] .terminal-line.glitch,
body[data-terminal-motion="reduced"] .terminal-line.glitch {
  animation: none;
}

body[data-terminal-motion="reduced"] .terminal-scanlines {
  animation: none;
  opacity: 0.33;
}

body[data-terminal-motion="reduced"] .terminal-intro-grid,
body[data-terminal-motion="reduced"] .terminal-intro-noise,
body[data-terminal-motion="reduced"] .terminal-intro-sweep,
body[data-terminal-motion="reduced"] .terminal-intro-line,
body[data-terminal-motion="reduced"] .terminal-shell,
body[data-terminal-motion="reduced"] .terminal-intro {
  animation: none;
}

@keyframes terminal-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

@keyframes terminal-glitch {
  0%, 92%, 100% {
    transform: translate(0);
    text-shadow: 0 0 10px var(--terminal-glow);
  }
  93% {
    transform: translate(-1px, 0);
    text-shadow: -1px 0 #ff4466, 1px 0 #66d1ff, 0 0 9px var(--terminal-glow);
  }
  95% {
    transform: translate(1px, 0);
    text-shadow: 1px 0 #ff4466, -1px 0 #66d1ff, 0 0 9px var(--terminal-glow);
  }
}

@keyframes terminal-screen-shake {
  0%, 95%, 100% {
    transform: translate3d(0, 0, 0);
  }
  96% {
    transform: translate3d(-2px, 1px, 0);
  }
  96.6% {
    transform: translate3d(2px, -1px, 0);
  }
  97.2% {
    transform: translate3d(-1px, -2px, 0);
  }
  97.8% {
    transform: translate3d(2px, 2px, 0);
  }
  98.4% {
    transform: translate3d(-2px, 0, 0);
  }
  99% {
    transform: translate3d(1px, 1px, 0);
  }
}

@media (max-width: 840px) {
  .terminal-overlay.active .terminal-shell,
  .terminal-overlay.takeover-intro .terminal-intro {
    animation-duration: 5s;
  }

  .terminal-shell {
    width: 100%;
    padding: 0.9rem 0.72rem 0.7rem;
    gap: 0.64rem;
  }

  .terminal-header h2 {
    font-size: 0.85rem;
  }

  .terminal-subtitle {
    font-size: 0.66rem;
  }

  .terminal-line {
    font-size: 0.78rem;
    line-height: 1.36;
    margin-bottom: 0.3rem;
  }

  .terminal-input {
    font-size: 0.98rem;
  }

  .terminal-status {
    font-size: 0.68rem;
  }

  .terminal-scanlines {
    opacity: 0.34;
  }
}
