:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.dark {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
}

body::selection {
  background: rgb(16 185 129);
  color: rgb(2 6 23);
}

.scroll-progress {
  background: linear-gradient(90deg, rgb(37 99 235), rgb(16 185 129), rgb(245 158 11));
  height: 4px;
  left: 0;
  position: fixed;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
  z-index: 80;
}

.hero-grid {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.12), transparent 32%),
    #f8fafc;
  background-size: 64px 64px, 64px 64px, auto, auto;
  overflow-x: clip;
}

.hero-grid::before {
  animation: driftGrid 16s linear infinite;
  background-image:
    linear-gradient(115deg, transparent 0 44%, rgba(37, 99, 235, 0.12) 45%, transparent 46% 100%),
    linear-gradient(65deg, transparent 0 56%, rgba(16, 185, 129, 0.12) 57%, transparent 58% 100%);
  background-size: 220px 220px;
  content: "";
  inset: 0;
  opacity: 0.65;
  pointer-events: none;
  position: absolute;
}

.hero-scanline {
  animation: scanHero 7s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.22), rgba(16, 185, 129, 0.2), transparent);
  height: 1px;
  left: -20%;
  position: absolute;
  top: 22%;
  width: 140%;
}

.hero-code-cloud {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-code-cloud span {
  animation: floatChip 7s ease-in-out infinite;
  animation-delay: var(--d);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: rgb(30 64 175);
  font-size: 0.76rem;
  font-weight: 900;
  left: var(--x);
  padding: 0.45rem 0.7rem;
  position: absolute;
  top: var(--y);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.dark .hero-code-cloud span {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
  color: rgb(147 197 253);
}

.dark .hero-grid {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.14), transparent 32%),
    #020617;
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.hero-badge-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.pulse-badge {
  align-items: center;
  background: rgb(236 253 245);
  border: 1px solid rgb(187 247 208);
  border-radius: 999px;
  color: rgb(21 128 61);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
}

#typed-role {
  overflow-wrap: anywhere;
}

.pulse-badge i {
  animation: pulseDot 1.4s ease-in-out infinite;
  font-size: 0.45rem;
}

.tech-marquee {
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  margin-top: 1.25rem;
  max-width: 38rem;
  overflow: hidden;
  position: relative;
}

.dark .tech-marquee {
  border-color: rgb(51 65 85);
}

.tech-marquee::before,
.tech-marquee::after {
  content: "";
  height: 100%;
  position: absolute;
  top: 0;
  width: 4rem;
  z-index: 1;
}

.tech-marquee::before {
  background: linear-gradient(90deg, #f8fafc, transparent);
  left: 0;
}

.tech-marquee::after {
  background: linear-gradient(270deg, #f8fafc, transparent);
  right: 0;
}

.dark .tech-marquee::before {
  background: linear-gradient(90deg, #020617, transparent);
}

.dark .tech-marquee::after {
  background: linear-gradient(270deg, #020617, transparent);
}

.tech-track {
  animation: techMarquee 18s linear infinite;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem;
  width: max-content;
}

.tech-track span {
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 999px;
  color: rgb(71 85 105);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0.42rem 0.7rem;
}

.dark .tech-track span {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
  color: rgb(203 213 225);
}

.site-nav {
  left: 0;
  padding: 1rem 1rem 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 70;
}

.nav-shell {
  align-items: center;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.93), rgba(248, 250, 252, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 80rem;
  min-height: 4.25rem;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  position: relative;
  width: min(100%, 80rem);
  backdrop-filter: blur(22px);
}

.nav-shell::before {
  background: linear-gradient(90deg, rgb(37 99 235), rgb(16 185 129), rgb(245 158 11));
  border-radius: inherit;
  content: "";
  height: 2px;
  left: 1rem;
  opacity: 0.85;
  position: absolute;
  right: 1rem;
  top: -1px;
}

.dark .nav-shell {
  background: linear-gradient(112deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.82));
  border-color: rgba(148, 163, 184, 0.15);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-lockup {
  align-items: center;
  color: rgb(15 23 42);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.75rem;
  min-width: 0;
}

.dark .brand-lockup {
  color: white;
}

.brand-mark {
  animation: brandGlow 4s ease-in-out infinite;
  background: linear-gradient(135deg, rgb(37 99 235), rgb(16 185 129) 56%, rgb(245 158 11));
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.22);
  color: white;
  display: grid;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 950;
  height: 2.75rem;
  letter-spacing: 0.04em;
  place-items: center;
  width: 2.75rem;
}

.brand-portrait {
  overflow: hidden;
}

.brand-portrait img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
}

.brand-copy strong {
  letter-spacing: 0.01em;
  font-size: 0.98rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  color: rgb(100 116 139);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dark .brand-copy span {
  color: rgb(148 163 184);
}

.nav-pill {
  align-items: center;
  background: rgba(226, 232, 240, 0.58);
  border: 1px solid rgba(203, 213, 225, 0.62);
  border-radius: 999px;
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem;
}

.dark .nav-pill {
  background: rgba(2, 6, 23, 0.46);
  border-color: rgba(148, 163, 184, 0.17);
}

.nav-link,
.mobile-link {
  align-items: center;
  color: rgb(71 85 105);
  display: inline-flex;
  font-size: 0.87rem;
  font-weight: 850;
  gap: 0.48rem;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link {
  border-radius: 999px;
  padding: 0.62rem 0.88rem;
}

.nav-link i {
  font-size: 0.78rem;
}

.dark .nav-link,
.dark .mobile-link {
  color: rgb(203 213 225);
}

.nav-link:hover {
  color: rgb(37 99 235);
  transform: translateY(-1px);
}

.nav-link.active {
  background: linear-gradient(112deg, rgb(37 99 235), rgb(29 78 216));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: white;
}

.dark .nav-link:hover {
  color: rgb(147 197 253);
}

.dark .nav-link.active {
  background: rgb(59 130 246);
  color: white;
}

.nav-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  min-width: max-content;
}

.nav-resume,
.mobile-menu-actions a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  gap: 0.5rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.nav-resume {
  background: linear-gradient(112deg, rgb(15 23 42), rgb(30 41 59));
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 0.84rem;
  min-height: 2.5rem;
  padding: 0.62rem 0.9rem;
}

.dark .nav-resume {
  background: linear-gradient(112deg, rgb(255 255 255), rgb(226 232 240));
  color: rgb(15 23 42);
}

.nav-resume:hover,
.mobile-menu-actions a:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.icon-button {
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 50%;
  color: rgb(15 23 42);
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  width: 2.5rem;
}

.dark .icon-button {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.2);
  color: white;
}

.icon-button:hover {
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.menu-lines {
  display: grid;
  gap: 0.23rem;
  width: 1.05rem;
}

.menu-lines span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 100%;
}

.menu-open .menu-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-lines span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 0.45rem;
  left: 1rem;
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding: 0.75rem;
  position: fixed;
  right: 1rem;
  top: 5.3rem;
  z-index: 80;
  backdrop-filter: blur(22px);
}

.mobile-menu-panel.hidden,
.mobile-menu-backdrop.hidden {
  display: none;
}

.dark .mobile-menu-panel {
  background: rgba(2, 6, 23, 0.94);
  border-color: rgba(51, 65, 85, 0.9);
}

.mobile-menu-head {
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  padding: 0.3rem 0.35rem 0.7rem;
}

.dark .mobile-menu-head {
  border-color: rgba(51, 65, 85, 0.88);
}

.mobile-menu-head span {
  color: rgb(15 23 42);
  font-size: 0.92rem;
  font-weight: 950;
}

.dark .mobile-menu-head span {
  color: white;
}

.mobile-menu-head small {
  color: rgb(100 116 139);
  font-size: 0.75rem;
  font-weight: 800;
}

.mobile-link {
  border-radius: 12px;
  padding: 0.88rem 0.9rem;
}

.mobile-link i {
  background: rgb(239 246 255);
  border-radius: 10px;
  color: rgb(37 99 235);
  display: grid;
  height: 2rem;
  place-items: center;
  width: 2rem;
}

.dark .mobile-link i {
  background: rgba(37, 99, 235, 0.16);
  color: rgb(147 197 253);
}

.mobile-link:hover,
.mobile-link.active {
  background: rgb(248 250 252);
  color: rgb(37 99 235);
  transform: translateX(2px);
}

.dark .mobile-link:hover,
.dark .mobile-link.active {
  background: rgba(30, 41, 59, 0.75);
  color: rgb(147 197 253);
}

.mobile-menu-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0.35rem;
}

.mobile-menu-actions a {
  background: rgb(15 23 42);
  color: white;
  font-size: 0.82rem;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem;
}

.mobile-menu-actions a:last-child {
  background: rgb(16 185 129);
}

.mobile-menu-backdrop {
  background: rgba(15, 23, 42, 0.28);
  inset: 0;
  position: fixed;
  z-index: 60;
}

.eyebrow {
  color: rgb(37 99 235);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button-primary,
.button-secondary {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-primary {
  background: rgb(37 99 235);
  color: white;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.24);
}

.button-primary:hover {
  background: rgb(29 78 216);
  transform: translateY(-2px);
}

.button-secondary {
  background: white;
  border: 1px solid rgb(226 232 240);
  color: rgb(15 23 42);
}

.dark .button-secondary {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
  color: white;
}

.button-secondary:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.metric {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  padding: 1rem;
}

.dark .metric {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgb(51 65 85);
}

.metric span {
  color: rgb(15 23 42);
  display: block;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 900;
  line-height: 1.1;
}

.dark .metric span {
  color: white;
}

.metric p {
  color: rgb(100 116 139);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.profile-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  position: relative;
}

.premium-panel {
  transform-style: preserve-3d;
}

.profile-panel::before {
  animation: orbitGlow 8s linear infinite;
  background: conic-gradient(from 90deg, rgb(37 99 235), rgb(16 185 129), rgb(245 158 11), rgb(37 99 235));
  border-radius: 999px;
  content: "";
  filter: blur(18px);
  height: 13rem;
  left: 50%;
  opacity: 0.22;
  position: absolute;
  top: 2rem;
  transform: translateX(-50%);
  width: 13rem;
}

.profile-panel::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  content: "";
  height: 100%;
  left: -80%;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  transition: opacity 240ms ease;
  width: 45%;
}

.profile-panel:hover::after {
  animation: panelShine 1.2s ease;
  opacity: 1;
}

.dark .profile-panel {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgb(51 65 85);
}

.profile-photo-button {
  align-items: center;
  align-self: center;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  justify-self: center;
  max-width: 21rem;
  position: relative;
  transition: transform 220ms ease;
  width: min(100%, 21rem);
  z-index: 1;
}

.profile-photo-button:hover {
  transform: translateY(-4px) scale(1.02);
}

.profile-photo-button span {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  bottom: 1rem;
  color: white;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 900;
  gap: 0.45rem;
  left: 50%;
  opacity: 0;
  padding: 0.55rem 0.85rem;
  position: absolute;
  transform: translate(-50%, 0.6rem);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.profile-photo-button:hover span,
.profile-photo-button:focus-visible span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-photo {
  aspect-ratio: 1;
  border: 8px solid white;
  border-radius: 999px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.dark .profile-photo {
  border-color: rgb(15 23 42);
}

.profile-copy {
  display: grid;
  gap: 1.25rem;
  padding: 0.75rem;
}

.profile-radar {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: -0.25rem;
  position: relative;
  z-index: 1;
}

.profile-radar span {
  animation: radarBeat 1.8s ease-in-out infinite;
  background: rgb(16 185 129);
  border-radius: 999px;
  height: 0.45rem;
  opacity: 0.65;
  width: 0.45rem;
}

.profile-radar span:nth-child(2) {
  animation-delay: 0.18s;
}

.profile-radar span:nth-child(3) {
  animation-delay: 0.36s;
}

.mini-stat {
  align-items: center;
  background: rgb(248 250 252);
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  color: rgb(71 85 105);
  display: flex;
  font-weight: 800;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem;
}

.dark .mini-stat {
  background: rgb(2 6 23);
  border-color: rgb(51 65 85);
  color: rgb(226 232 240);
}

.section {
  padding: 6rem 0;
}

.section-heading {
  margin-bottom: 3rem;
  max-width: 46rem;
}

.section-heading h2 {
  color: rgb(15 23 42);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  margin-top: 0.75rem;
}

.dark .section-heading h2 {
  color: white;
}

.section-heading p:last-child {
  color: rgb(100 116 139);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 1rem;
}

.dark .section-heading p:last-child {
  color: rgb(203 213 225);
}

.feature-block,
.info-panel,
.skill-card,
.project-card,
.contact-form {
  border-radius: 8px;
}

.feature-block,
.info-panel {
  background: white;
  border: 1px solid rgb(226 232 240);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.dark .feature-block,
.dark .info-panel {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
}

.feature-block h3,
.info-panel h3,
.skill-card h3,
.project-card h3 {
  color: rgb(15 23 42);
  font-size: 1.35rem;
  font-weight: 900;
}

.dark .feature-block h3,
.dark .info-panel h3,
.dark .skill-card h3,
.dark .project-card h3 {
  color: white;
}

.feature-block p,
.value-card p,
.skill-card p,
.project-card p {
  color: rgb(100 116 139);
  line-height: 1.75;
  margin-top: 1rem;
}

.dark .feature-block p,
.dark .value-card p,
.dark .skill-card p,
.dark .project-card p {
  color: rgb(203 213 225);
}

.value-card {
  background: rgb(248 250 252);
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  padding: 1.25rem;
}

.value-card,
.skill-card,
.info-panel,
.feature-block {
  position: relative;
  overflow: hidden;
}

.value-card::after,
.skill-card::after,
.info-panel::after,
.feature-block::after {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
  content: "";
  height: 100%;
  left: -70%;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  transition: left 520ms ease;
  width: 44%;
}

.value-card:hover::after,
.skill-card:hover::after,
.info-panel:hover::after,
.feature-block:hover::after {
  left: 130%;
}

.dark .value-card {
  background: rgb(2 6 23);
  border-color: rgb(51 65 85);
}

.value-card i,
.skill-card i {
  color: rgb(16 185 129);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.value-card h4 {
  color: rgb(15 23 42);
  font-weight: 900;
}

.dark .value-card h4 {
  color: white;
}

.info-panel dt {
  color: rgb(100 116 139);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-panel dd {
  color: rgb(15 23 42);
  font-weight: 800;
  margin-top: 0.25rem;
  word-break: break-word;
}

.dark .info-panel dd {
  color: white;
}

.copy-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.copy-button {
  background: rgb(239 246 255);
  border: 1px solid rgb(191 219 254);
  border-radius: 999px;
  color: rgb(30 64 175);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.55rem;
  transition: background-color 180ms ease, transform 180ms ease;
}

.copy-button:hover {
  background: rgb(219 234 254);
  transform: translateY(-1px);
}

.skill-card {
  background: white;
  border: 1px solid rgb(226 232 240);
  min-height: 15rem;
  padding: 1.5rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dark .skill-card {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
}

.skill-card:hover {
  border-color: rgb(37 99 235);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.project-card {
  background: white;
  border: 1px solid rgb(226 232 240);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-card::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(37, 99, 235, 0.16), transparent 36%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card.hidden-by-filter {
  display: none;
}

.project-card.extra-project.hidden-extra {
  display: none;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.filter-button {
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 999px;
  color: rgb(71 85 105);
  font-weight: 900;
  padding: 0.7rem 1rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.dark .filter-button {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
  color: rgb(203 213 225);
}

.filter-button:hover,
.filter-button.active {
  background: rgb(37 99 235);
  color: white;
  transform: translateY(-2px);
}

.dark .project-card {
  background: rgb(15 23 42);
  border-color: rgb(51 65 85);
}

.project-card:hover {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
}

.project-card img,
.app-preview {
  aspect-ratio: 16 / 10;
  background: rgb(226 232 240);
  object-fit: cover;
  width: 100%;
}

.app-preview {
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.25), transparent 30%),
    linear-gradient(135deg, rgb(15 23 42), rgb(30 64 175));
  display: flex;
  justify-content: center;
  padding: 1.25rem;
}

.phone-frame {
  background: rgb(248 250 252);
  border: 8px solid rgb(15 23 42);
  border-radius: 28px;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.55rem;
  max-width: 10rem;
  padding: 0.75rem;
  width: 48%;
}

.phone-top {
  background: rgb(15 23 42);
  border-radius: 999px;
  height: 0.32rem;
  justify-self: center;
  width: 2.4rem;
}

.app-card,
.app-row {
  background: rgb(226 232 240);
  border-radius: 8px;
  min-height: 1.2rem;
}

.app-card.active {
  background: linear-gradient(135deg, rgb(37 99 235), rgb(16 185 129));
  min-height: 3.2rem;
}

.app-row.short {
  width: 70%;
}

.app-actions {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, 1fr);
}

.app-actions span {
  background: rgb(191 219 254);
  border-radius: 6px;
  height: 1.3rem;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.project-kicker {
  color: rgb(245 158 11) !important;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.project-body a {
  align-items: center;
  color: rgb(37 99 235);
  display: inline-flex;
  font-weight: 900;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.project-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.status-pill {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.32rem 0.6rem;
}

.status-pill.live {
  background: rgb(220 252 231);
  color: rgb(22 101 52);
}

.status-pill.private {
  background: rgb(254 243 199);
  color: rgb(146 64 14);
}

.status-pill.concept {
  background: rgb(224 242 254);
  color: rgb(3 105 161);
}

.projects-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.case-study-panel {
  background: rgb(15 23 42);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.case-study-panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1.1;
  margin-top: 0.65rem;
}

.case-study-panel > div > p:last-child {
  color: rgb(203 213 225);
  line-height: 1.75;
  margin-top: 0.85rem;
  max-width: 48rem;
}

.case-study-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study-list article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: auto 1fr;
  padding: 1rem;
}

.case-study-list article {
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.case-study-list article:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
}

.case-icon {
  align-items: center;
  background: rgb(16 185 129);
  border-radius: 8px;
  color: rgb(2 6 23);
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.case-study-list h4 {
  font-weight: 900;
}

.case-study-list p {
  color: rgb(203 213 225);
  line-height: 1.65;
  margin-top: 0.35rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tags span {
  background: rgb(239 246 255);
  border: 1px solid rgb(191 219 254);
  border-radius: 999px;
  color: rgb(30 64 175);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.35rem 0.6rem;
}

.dark .tags span {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.24);
  color: rgb(147 197 253);
}

.contact-link {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 0.8rem;
}

.contact-link i {
  color: rgb(16 185 129);
  width: 1.25rem;
}

.social-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: inline-flex;
  height: 2.8rem;
  justify-content: center;
  transition: background-color 180ms ease, transform 180ms ease;
  width: 2.8rem;
}

.social-link:hover {
  background: rgb(37 99 235);
  transform: translateY(-2px);
}

.contact-form {
  background: white;
  color: rgb(15 23 42);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.contact-form span {
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  background: rgb(248 250 252);
  border: 1px solid rgb(203 213 225);
  border-radius: 8px;
  outline: none;
  padding: 0.85rem 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(37 99 235);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.back-to-top {
  align-items: center;
  background: rgb(37 99 235);
  border-radius: 8px;
  bottom: 1.5rem;
  color: white;
  display: flex;
  height: 3rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1.5rem;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 3rem;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-modal {
  align-items: center;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.25rem;
  position: fixed;
  z-index: 90;
}

.profile-modal.hidden {
  display: none;
}

.profile-modal img {
  border: 10px solid white;
  border-radius: 999px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  max-height: min(82vh, 42rem);
  max-width: min(82vw, 42rem);
  object-fit: cover;
  width: 100%;
}

.modal-close {
  align-items: center;
  background: white;
  border-radius: 999px;
  color: rgb(15 23 42);
  display: flex;
  height: 3rem;
  justify-content: center;
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  width: 3rem;
}

.toast {
  background: rgb(15 23 42);
  border-radius: 999px;
  bottom: 1.5rem;
  color: white;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 0.75rem 1rem;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 1rem);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 95;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

footer a {
  font-weight: 800;
  transition: color 180ms ease;
}

footer a:hover {
  color: rgb(37 99 235);
}

@keyframes orbitGlow {
  to {
    rotate: 360deg;
  }
}

@keyframes driftGrid {
  to {
    background-position: 220px 220px, -220px 220px;
  }
}

@keyframes scanHero {
  0%, 100% {
    opacity: 0;
    transform: translateY(-3rem);
  }
  45%, 55% {
    opacity: 1;
  }
  100% {
    transform: translateY(28rem);
  }
}

@keyframes floatChip {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0.7rem, -0.9rem, 0);
  }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

@keyframes techMarquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes panelShine {
  from {
    left: -80%;
  }
  to {
    left: 135%;
  }
}

@keyframes radarBeat {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes brandGlow {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  }
  50% {
    box-shadow: 0 12px 34px rgba(16, 185, 129, 0.34);
  }
}

@media (max-width: 1040px) {
  .nav-pill {
    display: none;
  }

  .nav-resume {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 0.75rem 0.75rem 0;
  }

  .nav-shell {
    border-radius: 14px;
    gap: 0.6rem;
    min-height: 3.85rem;
    padding: 0.5rem;
  }

  .brand-mark {
    height: 2.45rem;
    width: 2.45rem;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy span {
    font-size: 0.66rem;
  }

  .mobile-menu-panel {
    left: 0.75rem;
    right: 0.75rem;
    top: 4.7rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .metric {
    padding: 0.8rem;
    min-width: 0;
  }

  .hero-badge-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pulse-badge {
    font-size: 0.72rem;
    max-width: 100%;
  }

  .hero-grid h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.08;
    max-width: calc(100vw - 2rem);
    overflow-wrap: anywhere;
  }

  #typed-role {
    display: block;
  }

  .hero-line {
    display: block;
  }

  .hero-grid p {
    max-width: 100%;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .tech-marquee {
    max-width: calc(100vw - 2rem);
  }

  .metric span {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .metric p {
    font-size: 0.75rem;
  }

  .hero-grid .relative.z-10 {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  #home > .mx-auto.grid {
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  #home .mt-10.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-copy span {
    display: none;
  }

  .brand-copy strong {
    max-width: 8.5rem;
  }

  .icon-button {
    height: 2.35rem;
    width: 2.35rem;
  }

  .nav-actions {
    gap: 0.35rem;
  }
}

@media (max-width: 350px) {
  .brand-copy strong {
    max-width: 6.75rem;
  }
}

@media (max-width: 900px) {
  .hero-code-cloud {
    display: none;
  }
}

@media (max-width: 768px) {
  .case-study-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
