/*-----------------------------------*\
  #style.css — Dark professional redesign
\*-----------------------------------*/


/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /* core palette — DARK MODE */
  --bg:            #0a0a0a;
  --surface:       #111110;
  --surface-off:   #1a1a1b;
  --ink:           #efefed;
  --ink-2:         #a8a8a5;
  --ink-3:         #606060;
  --ink-4:         #333333;
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* inverted — light on dark */
  --inv-bg:        #efefed;
  --inv-text:      #0a0a0a;
  --inv-text-2:    rgba(10, 10, 10, 0.65);

  /* teal accent */
  --accent:        #00cfa8;
  --accent-dim:    rgba(0, 207, 168, 0.10);
  --accent-glow:   rgba(0, 207, 168, 0.30);

  /* legacy aliases — keeps old refs from breaking */
  --jet:                   rgba(255, 255, 255, 0.07);
  --onyx:                  #1a1a1b;
  --eerie-black-1:         #111110;
  --eerie-black-2:         #111110;
  --smoky-black:           #0a0a0a;
  --white-1:               #efefed;
  --white-2:               #efefed;
  --orange-yellow-crayola: #efefed;
  --vegas-gold:            #606060;
  --light-gray:            #606060;
  --light-gray-70:         rgba(96, 96, 96, 0.7);
  --bittersweet-shimmer:   hsl(0, 72%, 50%);

  /* gradients */
  --bg-gradient-onyx:     linear-gradient(to bottom right, #1a1a1b 3%, #111110 97%);
  --bg-gradient-jet:      #111110;
  --bg-gradient-yellow-1: rgba(255, 255, 255, 0.02);
  --bg-gradient-yellow-2: #111110;
  --border-gradient-onyx: rgba(255, 255, 255, 0.07);
  --text-gradient-yellow: #efefed;

  /* typography */
  --ff-poppins: 'Onest', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* scale */
  --fs-hero: clamp(38px, 5.5vw, 66px);
  --fs-1:    clamp(24px, 3vw, 38px);
  --fs-2:    22px;
  --fs-3:    18px;
  --fs-4:    17px;
  --fs-5:    16px;
  --fs-6:    14px;
  --fs-7:    13px;
  --fs-8:    11px;

  /* weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* shadow — deeper for dark mode */
  --shadow-1: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-3: 0 8px 24px rgba(0,0,0,0.55);
  --shadow-4: 0 16px 40px rgba(0,0,0,0.6);
  --shadow-5: 0 24px 64px rgba(0,0,0,0.7);

  /* transition */
  --transition-1: 0.18s ease;
  --transition-2: 0.32s ease;

}


/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

a { text-decoration: none; }

li { list-style: none; }

img, ion-icon, a, button, time, span { display: block; }

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #09090b;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus { outline: none; }

html { font-family: var(--ff-poppins); }

body {
  background: var(--bg);
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  color: var(--ink);
  min-height: 100vh;
  animation: grid-drift 30s linear infinite;
}

/* teal spotlight follows cursor */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    600px circle at var(--mx, -500px) var(--my, -500px),
    rgba(0, 207, 168, 0.10),
    transparent 40%
  );
}

/* grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 28px 28px; }
}


/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

article {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  z-index: 1;
  position: relative;
  display: none;
}

article.active {
  display: block;
  animation: fade 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

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

.article-title {
  font-size: var(--fs-1);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 40px;
}

.h2 { font-size: var(--fs-1); font-weight: 700; }
.h3 { font-size: var(--fs-2); font-weight: 700; }
.h4 { font-size: var(--fs-4); font-weight: 600; }
.h5 { font-size: var(--fs-6); font-weight: 600; }

.separator {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--surface);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--accent);
  border: 1px solid var(--border);
  z-index: 1;
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

/* primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #09090b;
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  transition: background var(--transition-1), box-shadow var(--transition-1), color var(--transition-1);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 207, 168, 0.3);
}


/*-----------------------------------*\
  #SITE HEADER / NAVBAR
\*-----------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.nav-brand { display: flex; align-items: center; }

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-list {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
}

.navbar-link {
  color: var(--ink-3);
  font-size: var(--fs-7);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 6px;
  transition: color var(--transition-1), background var(--transition-1);
  position: relative;
}

.navbar-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-1);
}

.navbar-link:hover { color: var(--ink); }
.navbar-link:hover::after { width: 12px; }

.navbar-link.active {
  color: var(--accent);
  font-weight: 600;
}

.navbar-link.active::after { width: 20px; }

.nav-cta {
  background: var(--accent);
  color: #09090b;
  font-size: var(--fs-7);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 7px;
  border: 2px solid var(--accent);
  transition: var(--transition-1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: transparent;
  color: var(--accent);
}


/*-----------------------------------*\
  #MAIN LAYOUT
\*-----------------------------------*/

main {
  position: relative;
  z-index: 1;
}

.main-content {
  min-height: calc(100vh - 64px);
}

/* article inner padding */
.about > *:not(.hero),
.resume > *,
.portfolio > *,
.contact > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.about .article-title,
.resume .article-title,
.portfolio .article-title,
.contact .article-title {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 56px;
}


/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px 80px;
  position: relative;
}

/* ambient glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0,207,168,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: var(--fs-8);
  font-family: var(--ff-mono);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-heading {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-heading em {
  color: var(--accent);
  font-style: normal;
  position: relative;
}

.hero-heading em::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.06em;
  background: rgba(0, 207, 168, 0.35);
  border-radius: 2px;
}

.hero-sub {
  font-size: var(--fs-5);
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-avatar-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid rgba(0, 207, 168, 0.4);
  box-shadow: 0 0 0 8px rgba(0, 207, 168, 0.07);
  display: block;
  animation: avatar-ring-pulse 4s ease-in-out infinite;
}


/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

/* gradient divider between hero and about body */
.hero-divider {
  height: 1px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  background: linear-gradient(90deg, var(--accent), rgba(0,207,168,0.0));
  opacity: 0.35;
}

.about .article-title { padding-top: 48px; margin-bottom: 20px; }

.about-text {
  color: var(--ink-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  line-height: 1.85;
  max-width: 780px;
  padding-bottom: 32px;
}

.about-text p { margin-bottom: 16px; }

/* stats row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 780px;
  margin-bottom: 64px;
}

.about-stat {
  background: var(--surface);
  padding: 24px 28px;
  transition: background var(--transition-1);
}

.about-stat:hover { background: var(--surface-off); }

.about-stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.about-stat-label {
  font-size: var(--fs-7);
  color: var(--ink-3);
  line-height: 1.4;
  font-family: var(--ff-mono);
  letter-spacing: 0.02em;
}


/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service {
  padding-bottom: 64px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.service-title {
  font-size: var(--fs-1);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.service-title strong { font-weight: 800; }

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-item {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background var(--transition-1);
  position: relative;
}

.service-item:hover { background: var(--surface-off); }

/* numbered label */
.service-num {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ff-mono);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.service-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 207, 168, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}

.service-icon-box ion-icon {
  font-size: 20px;
  color: var(--accent);
  transition: color 0.22s ease, transform 0.22s ease;
}

.service-item:hover .service-icon-box {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.service-item:hover .service-icon-box ion-icon {
  color: #09090b;
  transform: scale(1.15) rotate(-8deg);
}

.service-content-box { flex: 1; }

.service-item-title {
  font-size: var(--fs-6);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-item-text {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}


/*-----------------------------------*\
  #CERTIFICATIONS (testimonials)
\*-----------------------------------*/

.testimonials {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  padding-bottom: 56px;
}

.testimonials-title {
  font-size: var(--fs-1);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.testimonials-list {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 16px;
  padding: 4px 0 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.testimonials-item {
  min-width: 280px;
  max-width: 340px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color var(--transition-1), box-shadow var(--transition-1), transform 0.22s ease;
  height: 100%;
}

.content-card:hover {
  border-color: rgba(0, 207, 168, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(0, 207, 168, 0.15);
  transform: translateY(-3px);
}

/* cert cards — inline logo + title header */
.testimonials-item .content-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 10px;
  align-items: center;
}

.testimonials-avatar-box {
  position: static;
  transform: none;
  background: none;
  border: none;
  border-radius: 0;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-item-title {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
  color: var(--ink);
  font-size: var(--fs-7);
  font-weight: var(--fw-600);
}

.testimonials-text {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: var(--fw-400);
  line-height: 1.65;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/*-----------------------------------*\
  #MODAL
\*-----------------------------------*/

.modal-container {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-1);
}

.modal-container.active {
  pointer-events: all;
  visibility: visible;
  opacity: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-1);
}

.overlay.active { opacity: 1; visibility: visible; pointer-events: all; }

.modal-container.active .testimonials-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.testimonials-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
  width: calc(100% - 32px);
  z-index: 20;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-5);
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--ink-3);
  font-size: 20px;
  transition: color var(--transition-1);
}

.modal-close-btn:hover { color: var(--ink); }

.modal-img-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-avatar-box {
  background: var(--surface-off);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.modal-avatar-box img {
  width: 56px;
  display: block;
}

.modal-title {
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal-content { font-size: var(--fs-6); color: var(--ink-2); line-height: 1.75; }
.modal-content time { color: var(--ink-3); font-size: var(--fs-7); margin-bottom: 8px; display: block; }


/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.resume {
  padding-top: 0;
}

.resume .article-title {
  padding-top: 56px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.timeline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.timeline .title-wrapper .h3 {
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline-list {
  font-size: var(--fs-6);
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -24px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 8px;
  left: -28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background var(--transition-1), box-shadow var(--transition-1);
}

.timeline-item:hover::after {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item-title {
  font-size: var(--fs-6);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.35;
}

.timeline-item span {
  font-size: var(--fs-8);
  font-family: var(--ff-mono);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 10px;
}

.timeline-text {
  font-size: var(--fs-7);
  color: var(--ink-3);
  line-height: 1.75;
}

.timeline-text + .timeline-text { margin-top: 6px; }


/*-----------------------------------*\
  #SKILLS
\*-----------------------------------*/

.skill {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.skills-title {
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.skills-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.skills-item {
  padding: 16px 20px;
}

.skills-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.skill .title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.skill .title-wrapper .h5 {
  font-size: var(--fs-7);
  font-weight: 600;
  color: var(--ink);
}

.skill .title-wrapper data {
  color: var(--accent);
  font-size: var(--fs-8);
  font-weight: 600;
  font-family: var(--ff-mono);
}

.skill-progress-bg {
  background: var(--surface-off);
  width: 100%;
  height: 3px;
  border-radius: 3px;
}

.skill-progress-fill {
  background: linear-gradient(90deg, #00cfa8, #00e5ba);
  box-shadow: 0 0 8px rgba(0, 207, 168, 0.35);
  height: 100%;
  border-radius: inherit;
}


/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.portfolio .article-title { padding-top: 56px; padding-bottom: 8px; }

.portfolio-sub {
  color: var(--ink-3);
  font-size: var(--fs-6);
  font-family: var(--ff-mono);
  letter-spacing: 0.02em;
  padding-bottom: 8px;
}

.portfolio .article-title + p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--ink-3);
  font-size: var(--fs-6);
}

/* project card grid */
.project-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: project-counter;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition-1), box-shadow var(--transition-1), transform 0.22s ease;
  position: relative;
  overflow: hidden;
  counter-increment: project-counter;
}

/* top-right project number */
.project-card::before {
  content: counter(project-counter, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  transition: color var(--transition-1);
}

/* teal top-border sweep on hover */
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0,207,168,0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  border-color: rgba(0, 207, 168, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(0, 207, 168, 0.12);
  transform: translateY(-4px);
}

.project-card:hover::before { color: var(--accent); }
.project-card:hover::after  { transform: scaleX(1); }

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 40px; /* space for the ::before counter */
}

/* base badge */
.project-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

/* type variants */
.pt-enterprise  { background: rgba(0,207,168,0.12);  color: var(--accent);  border-color: rgba(0,207,168,0.25);  }
.pt-engineering { background: rgba(129,140,248,0.12); color: #a5b4fc;        border-color: rgba(129,140,248,0.25); }
.pt-consulting  { background: rgba(251,146,60,0.12);  color: #fdba74;        border-color: rgba(251,146,60,0.25);  }

.project-year {
  font-size: var(--fs-8);
  font-family: var(--ff-mono);
  color: var(--ink-3);
}

.project-card-title {
  font-size: var(--fs-6);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.project-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.project-stack span {
  font-size: 11px;
  font-family: var(--ff-mono);
  color: var(--ink-3);
  background: var(--surface-off);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
}

/* portfolio page uses timeline sections too */
.portfolio .timeline { padding-top: 0; }

.portfolio .timeline .title-wrapper { margin-top: 48px; }

/* hidden filter stub (required by script.js) */
.filter-list { display: none; }
.filter-select-box { display: none; }


/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.contact .article-title { padding-top: 56px; }

.mapbox {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.mapbox figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  height: 280px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.4);
}

#contact-map { width: 100%; height: 280px; }

/* Leaflet dark overrides */
.leaflet-control-zoom a {
  background: rgba(10,10,10,0.75) !important;
  backdrop-filter: blur(8px) !important;
  color: var(--ink) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(0,207,168,0.15) !important;
  color: var(--accent) !important;
}
.leaflet-control-attribution {
  background: rgba(10,10,10,0.6) !important;
  backdrop-filter: blur(8px) !important;
  color: var(--ink-3) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--ink-2) !important; }

/* teal pulse marker */
.map-marker-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid rgba(0,207,168,0.35);
  box-shadow: 0 0 0 0 rgba(0,207,168,0.5);
  animation: marker-pulse 2.5s ease-out infinite;
}

@keyframes marker-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(0,207,168,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(0,207,168,0.0); }
  100% { box-shadow: 0 0 0 0    rgba(0,207,168,0.0); }
}

.contact-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.form-title {
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-input {
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-6);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition-1);
}

.form-input:focus { border-color: var(--accent); }

.form-input::placeholder { color: var(--ink-4); }

textarea.form-input {
  height: 120px;
  margin-bottom: 16px;
}

.form-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #09090b;
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  transition: background var(--transition-1), color var(--transition-1), box-shadow var(--transition-1);
}

.form-btn:not(:disabled):hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 207, 168, 0.3);
}

.form-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.form-btn ion-icon { font-size: 16px; }


/*-----------------------------------*\
  #CHAT WIDGET
\*-----------------------------------*/

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
}

/* floating action button */
.chat-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--inv-bg);
  color: var(--inv-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform var(--transition-1), box-shadow var(--transition-1);
  margin-left: auto;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* pulse ring — first visit */
.chat-fab--pulse {
  animation: fab-pulse 2s ease-in-out infinite;
}

.chat-fab--pulse::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--inv-bg);
  opacity: 0;
  animation: ring-expand 2s ease-out infinite;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
  50%       { box-shadow: 0 4px 28px rgba(13,13,12,0.4); }
}

@keyframes ring-expand {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* panel */
.chat-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 380px;
  max-height: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-5);
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: bottom right;
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-header-info { display: flex; align-items: center; gap: 8px; }

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.7);
}

.chat-header-title {
  font-size: 13px;
  font-weight: var(--fw-600);
  color: var(--ink);
}

.chat-header-close {
  color: var(--ink-3);
  font-size: 18px;
  padding: 2px;
  transition: color var(--transition-1);
}

.chat-header-close:hover { color: var(--ink); }

/* messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 88%;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 10px;
  word-break: break-word;
}

.chat-msg--bot {
  background: var(--surface-off);
  color: var(--ink-2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg--user {
  background: var(--inv-bg);
  color: var(--inv-text);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

/* typing dots */
.chat-msg--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
}

.chat-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: chatDot 1.2s ease-in-out infinite;
}

.chat-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* footer */
.chat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: var(--surface-off);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--ff-poppins);
  outline: none;
  transition: border-color var(--transition-1);
}

.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--ink-4); }

.chat-send {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: opacity var(--transition-1), box-shadow var(--transition-1);
}

.chat-send:not(:disabled):hover {
  box-shadow: 0 0 12px rgba(0, 207, 168, 0.5);
}

.chat-send:disabled { opacity: 0.35; cursor: not-allowed; }

/* streaming cursor */
.chat-msg--streaming::after {
  content: '▋';
  display: inline-block;
  margin-left: 2px;
  opacity: 1;
  animation: blink-cursor 0.7s steps(1) infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/*-----------------------------------*\
  #LIQUID GLASS
\*-----------------------------------*/

/*
 * Apple-style liquid glass surfaces.
 * Key ingredients:
 *   1. Very low opacity background (shows scene through)
 *   2. backdrop-filter: blur + saturate (frosted clarity)
 *   3. inset box-shadow top edge  = specular highlight (the "glint")
 *   4. Gradient background tilted top-bright → bottom-dim = domed glass curve
 */

/* ── Navbar glass ── */
.site-header {
  background: rgba(10, 10, 10, 0.42) !important;
  backdrop-filter: blur(32px) saturate(200%) brightness(108%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(108%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 4px 32px rgba(0, 0, 0, 0.45) !important;
}

/* active nav pill */
.navbar-link.active {
  background: rgba(0, 207, 168, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 207, 168, 0.18);
  border-radius: 8px;
}

/* ── Hero eyebrow glass pill ── */
.hero-eyebrow {
  display: inline-block;
  background: rgba(0, 207, 168, 0.07);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(0, 207, 168, 0.18);
  border-radius: 100px;
  padding: 5px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── Card glass (project, about-stat, cert cards) ── */
.project-card,
.content-card,
.about-stat {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.018) 100%
  ) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 1px 0 0 rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.28) !important;
}

.project-card:hover,
.content-card:hover,
.about-stat:hover {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.03) 100%
  ) !important;
  border-color: rgba(0, 207, 168, 0.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 207, 168, 0.12) !important;
}

/* ── Service-item glass with curved specular ── */
.service-item {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.015) 100%
  ) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* curved dome specular — the signature "liquid glass" glint */
.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: radial-gradient(
    ellipse at 50% -10%,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* keep service content above the specular */
.service-item > * { position: relative; z-index: 1; }

.service-item:hover {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.025) 100%
  ) !important;
}

.service-item:hover::before {
  background: radial-gradient(
    ellipse at 50% -10%,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    transparent 70%
  );
}

/* ── Skills list glass ── */
.skills-list {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 100%
  ) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* ── Chat panel glass ── */
.chat-panel {
  background: rgba(10, 10, 10, 0.48) !important;
  backdrop-filter: blur(32px) saturate(180%) brightness(110%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(110%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.65) !important;
}

.chat-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

.chat-footer {
  background: rgba(255, 255, 255, 0.025);
  border-top-color: rgba(255, 255, 255, 0.07) !important;
}

.chat-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chat-msg--bot {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chat-msg--user {
  background: rgba(0, 207, 168, 0.14) !important;
  border: 1px solid rgba(0, 207, 168, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: var(--ink) !important;
}

/* ── Modal glass ── */
.testimonials-modal {
  background: rgba(10, 10, 10, 0.52) !important;
  backdrop-filter: blur(36px) saturate(200%) brightness(112%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(200%) brightness(112%) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.75) !important;
}

/* Overlay deeper for glass modal */
.overlay.active {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── FAB glass ── */
.chat-fab {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.chat-fab:hover {
  background: rgba(0, 207, 168, 0.14) !important;
  border-color: rgba(0, 207, 168, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 207, 168, 0.2) !important;
}

/* liquid shimmer keyframe — runs on ::before of service items */
@keyframes glass-shimmer {
  0%   { opacity: 0.6; transform: translateX(-4px); }
  50%  { opacity: 1.0; transform: translateX(4px); }
  100% { opacity: 0.6; transform: translateX(-4px); }
}

.service-item:hover::before {
  animation: glass-shimmer 3s ease-in-out infinite;
}


/*-----------------------------------*\
  #DYNAMIC ANIMATIONS
\*-----------------------------------*/

/* hero bottom separator */
.hero-inner { padding-bottom: 0; }

/* hero avatar ring breathe */
@keyframes avatar-ring-pulse {
  0%, 100% {
    border-color: rgba(0, 207, 168, 0.4);
    box-shadow: 0 0 0 8px rgba(0, 207, 168, 0.07);
  }
  50% {
    border-color: rgba(0, 207, 168, 0.8);
    box-shadow: 0 0 0 12px rgba(0, 207, 168, 0.03), 0 0 28px rgba(0, 207, 168, 0.25);
  }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2n) { transition-delay: 0.06s; }
.reveal:nth-child(3n) { transition-delay: 0.12s; }
.reveal:nth-child(4n) { transition-delay: 0.18s; }

/* skill bar */
.skill-progress-fill {
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}


/*-----------------------------------*\
  #LIGHT MODE
\*-----------------------------------*/

html[data-theme="light"] {
  --bg:            #f9f9f7;
  --surface:       #ffffff;
  --surface-off:   #f2f2ef;
  --ink:           #0d0d0c;
  --ink-2:         #3d3d3a;
  --ink-3:         #6b6b67;
  --ink-4:         #c0c0bb;
  --border:        rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.18);
  /* deep teal — distinct from turquoise, works on light */
  --accent:      #0f766e;
  --accent-dim:  rgba(15, 118, 110, 0.10);
  --accent-glow: rgba(15, 118, 110, 0.25);
  --inv-bg:      #0d0d0c;
  --inv-text:    #f9f9f7;
  --inv-text-2:  rgba(249, 249, 247, 0.65);
  /* legacy aliases */
  --jet:                   rgba(0, 0, 0, 0.08);
  --onyx:                  #f2f2ef;
  --eerie-black-1:         #ffffff;
  --eerie-black-2:         #ffffff;
  --smoky-black:           #f9f9f7;
  --white-1:               #0d0d0c;
  --white-2:               #3d3d3a;
  --orange-yellow-crayola: #3d3d3a;
  --vegas-gold:            #6b6b67;
  --light-gray:            #6b6b67;
  --light-gray-70:         rgba(107, 107, 103, 0.7);
  --bg-gradient-onyx:      linear-gradient(to bottom right, #f2f2ef 3%, #ffffff 97%);
  --bg-gradient-jet:       #ffffff;
  --bg-gradient-yellow-1:  rgba(0, 0, 0, 0.02);
  --bg-gradient-yellow-2:  #ffffff;
  --border-gradient-onyx:  rgba(0, 0, 0, 0.08);
  --text-gradient-yellow:  #0d0d0c;
  --shadow-1: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-3: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-4: 0 16px 40px rgba(0,0,0,0.14);
  --shadow-5: 0 24px 64px rgba(0,0,0,0.16);
}

/* dark dots on light background */
html[data-theme="light"] body {
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
}

/* deep teal spotlight, softer */
html[data-theme="light"] body::before {
  background: radial-gradient(
    600px circle at var(--mx, -500px) var(--my, -500px),
    rgba(15, 118, 110, 0.07),
    transparent 40%
  );
}

/* light glass header */
html[data-theme="light"] .site-header {
  background: rgba(249, 249, 247, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* hero ambient glow */
html[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse at center, rgba(15,118,110,0.06) 0%, transparent 70%);
}

/* hero em underline */
html[data-theme="light"] .hero-heading em::after {
  background: rgba(15, 118, 110, 0.35);
}

/* avatar ring */
html[data-theme="light"] .hero-avatar-img {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.07);
}

/* hero divider */
html[data-theme="light"] .hero-divider {
  background: linear-gradient(90deg, #0f766e, rgba(15,118,110,0.0));
}

/* service icon border */
html[data-theme="light"] .service-icon-box {
  border-color: rgba(15, 118, 110, 0.2);
}

/* chat fab: light glass */
html[data-theme="light"] .chat-fab {
  background: rgba(255,255,255,0.88);
  color: var(--accent);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* chat user message */
html[data-theme="light"] .chat-msg--user {
  background: rgba(15, 118, 110, 0.13);
  color: #0d0d0c;
}

/* chat send hover */
html[data-theme="light"] .chat-send:not(:disabled):hover {
  box-shadow: 0 0 12px rgba(15, 118, 110, 0.4);
}

/* btn-primary hover */
html[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 0 24px rgba(15, 118, 110, 0.3);
}

/* avatar pulse: adapt colors */
html[data-theme="light"] .hero-avatar-img {
  animation: avatar-ring-pulse-light 4s ease-in-out infinite;
}

@keyframes avatar-ring-pulse-light {
  0%, 100% {
    border-color: rgba(15, 118, 110, 0.4);
    box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.07);
  }
  50% {
    border-color: rgba(15, 118, 110, 0.8);
    box-shadow: 0 0 0 12px rgba(15, 118, 110, 0.03), 0 0 28px rgba(15, 118, 110, 0.2);
  }
}


/*-----------------------------------*\
  #THEME TOGGLE
\*-----------------------------------*/

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--ink-3);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color var(--transition-1), background var(--transition-1), border-color var(--transition-1);
  flex-shrink: 0;
  cursor: pointer;
}

.nav-theme-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/*-----------------------------------*\
  #LANGUAGE SWITCHER
\*-----------------------------------*/

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  font-size: 11px;
  font-family: var(--ff-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 4px 8px;
  border-radius: 5px;
  transition: color var(--transition-1), background var(--transition-1);
  cursor: pointer;
  text-transform: uppercase;
}

.lang-btn.active {
  background: var(--accent);
  color: #09090b;
}

.lang-btn:not(.active):hover {
  color: var(--ink);
}


/*-----------------------------------*\
  #FILTER BAR
\*-----------------------------------*/

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.filter-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
  align-self: center;
}

.filter-btn {
  font-size: var(--fs-7);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-3);
  transition: all var(--transition-1);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.filter-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.filter-tag {
  font-size: var(--fs-8);
  font-weight: 600;
  font-family: var(--ff-mono);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3);
  transition: all var(--transition-1);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.filter-tag:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

.filter-tag.active {
  background: var(--accent);
  color: #09090b;
  border-color: var(--accent);
}

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

.filter-no-results {
  display: none;
  text-align: center;
  padding: 60px 0;
  color: var(--ink-3);
  font-size: var(--fs-5);
  width: 100%;
  grid-column: 1 / -1;
}

.filter-no-results.visible {
  display: block;
}


/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.site-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--ink-3);
  font-size: var(--fs-7);
  font-family: var(--ff-mono);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}


/*-----------------------------------*\
  #RESPONSIVE — 580px
\*-----------------------------------*/

@media (min-width: 580px) {
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .input-wrapper { grid-template-columns: repeat(2, 1fr); }
  .skills-list { grid-template-columns: repeat(2, 1fr); }
  .skills-item:not(:last-child) { border-bottom: none; }
  .skills-item { border-bottom: 1px solid var(--border); }
  .skills-item:nth-child(odd) { border-right: 1px solid var(--border); }
}


/*-----------------------------------*\
  #RESPONSIVE — 768px
\*-----------------------------------*/

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 240px;
    gap: 60px;
  }

  .hero-avatar-img {
    width: 220px;
    height: 220px;
  }

  .mapbox figure { height: 340px; }
  #contact-map   { height: 340px; }
}


/*-----------------------------------*\
  #RESPONSIVE — 1024px
\*-----------------------------------*/

@media (min-width: 1024px) {

  .navbar { padding: 0 40px; }

  .hero { padding: 100px 40px 80px; }

  .about > *:not(.hero),
  .resume > *,
  .portfolio > *,
  .contact > * {
    padding-left: 40px;
    padding-right: 40px;
  }

  .about .article-title,
  .resume .article-title,
  .portfolio .article-title,
  .contact .article-title {
    padding-left: 40px;
    padding-right: 40px;
  }

  .timeline { padding-left: 40px; padding-right: 40px; }
  .skill    { padding-left: 40px; padding-right: 40px; }
  .mapbox   { padding-left: 40px; padding-right: 40px; }
  .contact-form { padding-left: 40px; padding-right: 40px; }
  .project-list { padding-left: 40px; padding-right: 40px; }

  .hero-inner {
    grid-template-columns: 1fr 260px;
    gap: 80px;
  }

  .hero-avatar-img { width: 240px; height: 240px; }

  .project-grid { grid-template-columns: repeat(3, 1fr); }

  .skills-list { grid-template-columns: repeat(2, 1fr); }

  .chat-widget { bottom: 28px; right: 28px; }

}


/*-----------------------------------*\
  #RESPONSIVE — 1200px
\*-----------------------------------*/

@media (min-width: 1200px) {

  .hero-inner { grid-template-columns: 1fr 280px; gap: 100px; }

  .hero-avatar-img { width: 260px; height: 260px; }

  .skills-list { grid-template-columns: repeat(2, 1fr); }

}


/*-----------------------------------*\
  #RESPONSIVE — max 580px (mobile fixes)
\*-----------------------------------*/

@media (max-width: 580px) {

  /* navbar: hide GitHub CTA, compact links */
  .nav-cta { display: none; }
  .navbar-link { padding: 6px 10px; font-size: 12px; }
  .nav-logo-img { height: 32px; }
  .lang-btn { padding: 3px 6px; font-size: 10px; }

  /* service: single column */
  .service-list { grid-template-columns: 1fr; }

  /* hero: compact padding, smaller avatar */
  .hero { padding: 56px 16px 48px; }
  .hero-avatar-img { width: 120px; height: 120px; }

  /* article inner padding */
  .about > *:not(.hero),
  .resume > *,
  .portfolio > *,
  .contact > * {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* filter bar */
  .filter-bar { padding-left: 16px; padding-right: 16px; gap: 8px; }

  /* stats */
  .about-stat { padding: 16px 12px; }

  /* chat panel */
  .chat-panel { width: 320px; }

  /* 1024px overrides that affect 40px padding */
  .about > *:not(.hero),
  .resume > *,
  .portfolio > *,
  .contact > * {
    padding-left: 16px;
    padding-right: 16px;
  }
  .timeline { padding-left: 16px; padding-right: 16px; }
  .skill    { padding-left: 16px; padding-right: 16px; }
  .mapbox   { padding-left: 16px; padding-right: 16px; }
  .contact-form { padding-left: 16px; padding-right: 16px; }
  .project-list { padding-left: 16px; padding-right: 16px; }

}

@media (max-width: 400px) {
  .chat-panel { width: calc(100vw - 40px); right: -8px; }
  .navbar { padding: 0 12px; gap: 6px; }
  .navbar-link { padding: 5px 7px; font-size: 11px; }
  .lang-switcher { display: none; }
}


/*-----------------------------------*\
  #PROJECT MODAL
\*-----------------------------------*/

/* make cards feel clickable */
.project-card {
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-2px);
}

/* overlay */
.proj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.proj-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* modal panel */
.proj-modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  max-width: 740px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 44px 44px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.26s cubic-bezier(0.34, 1.1, 0.64, 1);
  box-shadow: var(--shadow-5);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.proj-modal-overlay.open .proj-modal {
  transform: translateY(0) scale(1);
}

/* close button */
.proj-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -12px -12px 12px 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-off);
  border: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-1), border-color var(--transition-1);
  z-index: 2;
  flex-shrink: 0;
}

.proj-modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* modal header */
.proj-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 4px;
}

.proj-modal-badge {
  font-size: 11px;
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.proj-modal-badge--enterprise  { background: rgba(0, 207, 168, 0.12); color: #00cfa8; }
.proj-modal-badge--engineering { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.proj-modal-badge--consulting  { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.proj-modal-year {
  font-size: 12px;
  font-family: var(--ff-mono);
  color: var(--ink-3);
}

.proj-modal-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 28px;
}

/* section labels */
.proj-modal-section {
  margin-bottom: 28px;
}

.proj-modal-label {
  font-size: var(--fs-8);
  font-family: var(--ff-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.proj-modal-text {
  font-size: var(--fs-5);
  color: var(--ink-2);
  line-height: 1.8;
}

/* outcomes list */
.proj-modal-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-modal-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-5);
  color: var(--ink-2);
  line-height: 1.6;
}

.proj-modal-outcomes li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

/* divider */
.proj-modal-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* stack at bottom */
.proj-modal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-modal-stack span {
  font-size: var(--fs-8);
  font-family: var(--ff-mono);
  color: var(--ink-3);
  background: var(--surface-off);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

@media (max-width: 580px) {
  .proj-modal { padding: 24px 20px 28px; }
  .proj-modal-close { margin: -4px -4px 12px 12px; }
}


