/* Page-specific styles for index.html */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: auto;
  /* default — overridden below for fine pointer */
}

/* SCROLL PROGRESS BAR */
#scrollProgress {
  position: fixed;
  left: 0;
  top: 0;
  width: 5px;
  height: 0%;
  background: linear-gradient(180deg, var(--blue), #66aaff);
  z-index: 9999;
  border-radius: 0 0 3px 0;
  box-shadow: 2px 0 8px rgba(0, 102, 204, 0.3);
}

/* HERO */
.hero {
  padding: 8rem 2rem 5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Soft radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 102, 204, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 0.4rem 1rem;
  border-radius: 980px;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #34c759;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-family: 'Funnel Sans', sans-serif;
  text-transform: uppercase;
}

.hero-role {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-role strong {
  color: var(--blue);
  font-weight: 600;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blue);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 980px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.25s;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.btn-secondary {
  background: var(--bg2);
  color: var(--blue);
  padding: 0.8rem 2rem;
  border-radius: 980px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.25s;
  display: inline-block;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 4rem auto;
  max-width: 700px;
  box-shadow: var(--shadow-md);
}

.stat-box {
  background: var(--bg2);
  padding: 2rem;
  text-align: center;
  transition: background 0.2s;
}

.stat-box:hover {
  background: var(--bg);
}

.stat-n {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-l {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* AWS TICKER */
.ticker-wrap {
  background: #111111;
  padding: 0.8rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #111111, transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, #111111, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

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

.t-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

/* SECTIONS */
.section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-full {
  padding: 6rem 2rem;
  background: var(--bg2);
}

.section-full-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.sec-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.sec-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 3rem;
}

.sec-title em {
  font-style: normal;
  color: var(--blue);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.about-body p {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about-body p strong {
  color: var(--ink);
  font-weight: 600;
}

.timeline {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.tl-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.tl-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  padding-top: 2px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tl-year.now {
  font-size: 1rem;
  font-weight: 700;
}

.tl-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.tl-sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Photo card */
.photo-card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s, transform 0.3s;
}

.photo-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.photo-area {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #e8f2ff 0%, #f0f7ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.photo-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.photo-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.photo-footer {
  padding: 1.2rem 1.5rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.photo-role {
  font-size: 0.78rem;
  color: var(--muted);
}

.avail-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #e8f5ee;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.g-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* SKILLS */
.aws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.aws-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.aws-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px) scale(1.01);
}

.aws-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.aws-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.aws-card-detail {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.aws-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
}

.b-familiar {
  background: var(--blue-light);
  color: var(--blue);
}

.b-learning {
  background: #fff8ec;
  color: var(--amber);
}

.qa-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.qa-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.qa-toggle {
  display: none;
}

.qa-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.qa-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qa-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 0.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--blue-mid);
}

.qa-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 980px;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  cursor: default;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid var(--blue-mid);
}

.qa-tag:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
}

/* PROJECTS */
.proj-featured {
  background: #1e2a3a;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lift);
  position: relative;
}

.proj-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #66aaff, var(--blue));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% 0;
  }
}

.proj-feat-left {
  padding: 3rem;
}

.proj-feat-right {
  background: #162032;
  padding: 3rem;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.proj-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.proj-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.proj-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.proj-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 102, 204, 0.2);
  color: #66aaff;
  border-radius: 100px;
  border: 1px solid rgba(0, 102, 204, 0.3);
}

.arch-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-item:last-child {
  border-bottom: none;
}

.arch-svc {
  font-size: 0.8rem;
  font-weight: 600;
  color: #66aaff;
  min-width: 110px;
  letter-spacing: -0.01em;
}

.arch-arr {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.arch-info {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.proj-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.proj-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.proj-card:hover {
  background: var(--bg);
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}

.proj-card-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  border-color: var(--blue-mid);
}

.pc-wide-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.pc-highlights {
  display: grid;
  gap: 0.7rem;
}

.pc-highlight {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.pc-highlight span {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.pc-highlight strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
}

.pc-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.pc-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.pc-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pc-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 100px;
}

.pc-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* CRED SUBLABEL */
.cred-sublabel {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--blue);
  display: block;
  width: 100%;
}

.cert-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink2);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg2);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  display: block;
  width: fit-content;
}

/* EDUCATION CARDS */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}

.edu-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.edu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 130px;
}

.edu-degree {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.edu-school {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.edu-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
}

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

.certs-grid-spaced {
  margin-bottom: 2rem;
}

.cert-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  font-style: italic;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-blue);
  transform: translateY(-5px);
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cert-org {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.cert-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.cert-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
  flex: 1;
  margin: 0.5rem 0 1rem;
}

.cert-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid transparent;
}

.cert-pill-auto {
  margin-top: auto;
}

.p-progress {
  background: #fff4d8;
  color: #8a5200;
  border-color: #f3c56d;
}

.p-earned {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.p-planned {
  background: #eaf3ff;
  color: #0055aa;
  border-color: #9fcaff;
}

[data-theme="dark"] .p-progress {
  background: #3a2604;
  color: #ffd166;
  border-color: #8a650f;
}

[data-theme="dark"] .p-earned {
  background: #0f2f1d;
  color: #86efac;
  border-color: #1d8348;
}

[data-theme="dark"] .p-planned {
  background: #0d223a;
  color: #8ec5ff;
  border-color: #245a91;
}

/* CONTACT */
.section-full-compact-bottom {
  padding-bottom: 3rem;
}

.section-full-compact-top {
  padding-top: 3rem;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-layer {
  position: relative;
  z-index: 1;
}

.contact-label {
  text-align: center;
  display: block;
  margin-bottom: 0.6rem;
}

.contact-hero {
  text-align: center;
  padding: 4rem 2rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-big {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.contact-big em {
  font-style: normal;
  color: var(--blue);
}

.contact-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.contact-email-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--blue-mid);
  padding-bottom: 0.3rem;
  cursor: default;
  transition: all 0.2s;
  user-select: none;
  text-decoration: none;
}

.email-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#emailText::before {
  content: attr(data-full-email);
}

.contact-email-copy:hover {
  border-color: var(--blue);
  color: var(--blue-hover);
}

.copy-hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

.contact-email-copy:hover .copy-hint {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.c-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 980px;
  transition: all 0.25s;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

.c-chip:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.avail-strip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.avail-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink2);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.a-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.a-green {
  background: var(--green);
}

.a-amber {
  background: var(--amber);
}

/* CSS BUBBLES */
#cssBubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.css-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 102, 204, 0.25);
  background: rgba(0, 102, 204, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(0, 82, 164, 0.35);
  font-family: 'Inter', sans-serif;
  will-change: transform;
  animation: floatBubble linear infinite;
}

[data-theme="dark"] .css-bubble {
  border-color: rgba(77, 159, 255, 0.35);
  background: rgba(77, 159, 255, 0.08);
  color: rgba(140, 195, 255, 0.6);
}

@keyframes floatBubble {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(var(--tx1), var(--ty1));
  }

  50% {
    transform: translate(var(--tx2), var(--ty2));
  }

  75% {
    transform: translate(var(--tx3), var(--ty3));
  }

  100% {
    transform: translate(0, 0);
  }
}

/* CONTACT TWO COL */
.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.contact-two-col.contact-layer {
  margin-top: 0.5rem;
}

/* TERMINAL */
.terminal-card {
  background: #0d1117;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.terminal-bar {
  background: #1c1c1e;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.t-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.t-red {
  background: #ff5f57;
}

.t-yellow {
  background: #febc2e;
}

.t-green {
  background: #28c840;
}

.t-title {
  margin-left: 0.6rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Courier New', monospace;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  min-height: 280px;
  color: #e6edf3;
}

.t-line-q {
  color: #7ee787;
}

.t-line-a {
  color: #e6edf3;
  padding-left: 1rem;
}

.t-line-blank {
  height: 0.6rem;
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #7ee787;
  vertical-align: middle;
  animation: blink-cur 1s infinite;
}

@keyframes blink-cur {

  0%,
  49% {
    opacity: 1
  }

  50%,
  100% {
    opacity: 0
  }
}

/* PUZZLE */
.puzzle-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.puzzle-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.puzzle-sub {
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

.puzzle-zone {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.puzzle-slot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.slot-num {
  width: 28px;
  height: 28px;
  background: var(--blue-light);
  border: 1.5px solid var(--blue-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

.slot-drop {
  flex: 1;
  height: 44px;
  background: var(--bg);
  border: 1.5px dashed var(--blue-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--blue);
  opacity: 0.9;
  transition: all 0.2s;
  box-sizing: border-box;
  cursor: pointer;
  touch-action: manipulation;
}

.slot-drop.drag-over {
  border-color: var(--blue);
  background: var(--blue-light);
  opacity: 1;
}

.slot-drop.tap-target {
  border-color: var(--blue);
  background: var(--blue-light);
  opacity: 1;
}

.slot-drop.filled {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  opacity: 1;
  padding: 0;
}

.slot-drop.filled .p-chip {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  margin: 0;
  box-shadow: none;
  justify-content: center;
  background: var(--bg2);
  color: var(--ink);
}

.puzzle-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 40px;
}

.p-chip {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink2);
  cursor: grab;
  user-select: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
}

.p-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.p-chip.selected {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.p-chip.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.p-chip.correct {
  background: #e8f5ee;
  border-color: #86efac;
  color: var(--green);
}

.p-chip.wrong {
  background: #fff0f0;
  border-color: #ffb3b3;
  color: #c0392b;
  animation: shake 0.4s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0)
  }

  25% {
    transform: translateX(-6px)
  }

  75% {
    transform: translateX(6px)
  }
}

.puzzle-feedback {
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1.5rem;
  text-align: center;
}

.puzzle-feedback.win {
  color: var(--green);
}

.puzzle-feedback.hint {
  color: var(--amber);
}

.puzzle-reset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.puzzle-reset:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 900px) {
  .contact-two-col {
    grid-template-columns: 1fr;
  }
}

/* Divider */

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .proj-featured {
    grid-template-columns: 1fr;
  }

  .proj-feat-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .proj-grid-2 {
    grid-template-columns: 1fr;
  }

  .pc-wide-body {
    grid-template-columns: 1fr;
  }

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

  .contact-two-col {
    grid-template-columns: 1fr;
  }

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

  .edu-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .hero,
  .section,
  .section-full,
  .section-full-inner,
  .about-grid,
  .stats-row,
  .aws-grid,
  .proj-featured,
  .proj-grid-2,
  .certs-grid,
  .qa-columns,
  .edu-grid,
  .contact-hero,
  .contact-two-col,
  .terminal-card,
  .puzzle-card,
  .visitor-counter,
  .avail-strip,
  .photo-card {
    max-width: 100%;
    min-width: 0;
  }

  .hero::before {
    width: calc(100vw - 2rem);
  }

  .about-grid>div:first-child {
    order: 2;
  }

  .about-grid>div:last-child {
    order: 1;
  }

  .aws-grid,
  .certs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 3rem auto;
  }

  .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.6rem;
    min-width: 0;
  }

  .stat-n {
    font-size: clamp(2rem, 12vw, 2.8rem);
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
  }

  .stat-l {
    text-align: center;
  }

  .hero-name {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    white-space: nowrap;
  }

  .sec-title {
    font-size: 1.8rem;
    overflow-wrap: anywhere;
  }

  .qa-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .qa-label {
    display: none;
  }

  .qa-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
    cursor: pointer;
  }

  .qa-toggle-icon {
    color: var(--blue);
    transition: transform 0.2s;
  }

  .qa-card.open .qa-toggle-icon {
    transform: rotate(180deg);
  }

  .qa-card:not(.open) .qa-columns {
    display: none;
  }

  .qa-card.open .qa-columns {
    display: grid;
    margin-top: 1.2rem;
  }

  .contact-big {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  .contact-email-copy,
  .visitor-counter,
  .t-title,
  .modal-opt-val {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-email-copy {
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  #emailText::before {
    content: attr(data-short-email);
  }

  .arch-item,
  .puzzle-slot,
  .lang-item {
    min-width: 0;
  }

  .arch-info,
  .tl-sub,
  .rm-desc,
  .terminal-body,
  .puzzle-sub,
  .p-chip {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* HERO TAGLINE */
.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* LANGUAGES */
.lang-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.lang-item {
  display: grid;
  grid-template-columns: 1.5rem 5rem 1fr;
  align-items: center;
  gap: 0.6rem;
}

.lang-flag {
  font-size: 1.2rem;
}

.lang-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.lang-level {
  font-size: 0.68rem;
  color: var(--muted);
}

.lang-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #66aaff);
  border-radius: 2px;
  transition: width 1s ease;
}

.lang-fill-full {
  width: 100%;
}

.lang-fill-intermediate {
  width: 70%;
}

.pc-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border: 1px solid var(--blue-mid);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  transition: all 0.2s;
  background: var(--blue-light);
}

.pc-link:hover {
  background: var(--blue);
  color: white;
}

.pc-badge-live {
  font-size: 0.72rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .pc-badge-live {
  background: #064e3b;
  color: #6ee7b7;
}

/* ROADMAP */
.roadmap-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}

.roadmap-track::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--blue-mid));
  border-radius: 2px;
}

.rm-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.2rem 0;
  position: relative;
  align-items: flex-start;
}

.rm-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--bg);
  flex-shrink: 0;
  margin-left: -2.55rem;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  z-index: 1;
}

.rm-dot.done {
  background: var(--blue);
}

.rm-dot.active {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-mid);
}

.rm-dot.next {
  border-style: dashed;
  opacity: 0.5;
}

.rm-body {
  flex: 1;
}

.rm-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.rm-badge.done {
  background: #d1fae5;
  color: #065f46;
}

.rm-badge.active {
  background: var(--blue-light);
  color: var(--blue);
}

.rm-badge.next {
  background: var(--bg2);
  color: var(--muted);
}

[data-theme="dark"] .rm-badge.done {
  background: #064e3b;
  color: #6ee7b7;
}

.rm-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.rm-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.rm-date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-style: italic;
}

/* VISITOR COUNTER */
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.visitor-counter-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.puzzle-win-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.visitor-counter strong {
  color: var(--ink);
  font-weight: 700;
}

.visitor-pulse {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(16px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
