

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

:root {
  /* DEEP DIGITAL BASE */
  --bg: #08090d;
  --bg-alt: #10121a;
  --bg-raised: #171a25;

  /* TEXT */
  --text: #f5f7ff;
  --text-muted: #a5a9b8;
  --text-faint: #666b7b;

  /* BORDERS */
  --border: #242836;
  --border-bright: #383d4d;

  /* ELECTRIC VIOLET + BLUE ACCENTS */
  --accent: #7c6cff;
  --accent-dim: #28234d;
  --accent-2: #56b8ff;
  --accent-2-dim: #18394f;

  --aws-color: #ff9900;
  --tf-color: #7c9473;

  --status-ok: #65d6b0;
  --status-wip: #f0bd68;

  --radius: 6px;
  --radius-lg: 10px;

  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

/* LIGHT THEME */
.light-theme {
  /* WARM OFF-WHITE BACKGROUNDS */
--bg: #ffffff;
  --bg-alt: #faf9f6;
  --bg-raised: #eeebe4;

  /* TEXT */
  --text: #1c1b1a;
  --text-muted: #68645e;
  --text-faint: #96918a;

  /* BORDERS */
  --border: #dedad2;
  --border-bright: #c8c2b8;

  /* ACCENTS */
  --accent: #5b4fe0;
  --accent-dim: #e8e5ff;

  --accent-2: #087bb8;
  --accent-2-dim: #dff3ff;

  /* BRAND / STATUS */
  --status-ok: #168a6b;
  --status-wip: #a96800;
}

/* Light theme-specific overrides */

/* .light-theme body {
  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(101, 214, 176, 0.20),
      transparent 32rem
    ),
    var(--bg);
} */

.light-theme body {
  background:
    radial-gradient(
      ellipse at 20% 20%,
      rgba(101, 214, 176, 0.2),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(8, 123, 184, 0.2),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 30% 80%,
      rgba(91, 79, 224, 0.2),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 80% 90%,
      rgba(101, 214, 176, 0.2),
      transparent 35%
    ),
    var(--bg);

  background-attachment: fixed;
}

.light-theme .site-header {
  background: rgba(246, 247, 251, 0.88);
}

.light-theme .btn-primary {
  color: #ffffff;
}

.light-theme .badge-aws {
  color: #a85c00;
}

.light-theme .badge-tf {
  color: #4f7048;
}

.light-theme .award-badge {
  color: #4f7048;
}

.light-theme .cert-icon-tf,
.light-theme .cert-icon-aws {
  color: #ffffff;
}

.light-theme .contact-link:hover {
  background: var(--accent-dim);
}

/* THEME TOGGLE */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

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

.theme-toggle-track {
  position: relative;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: var(--border-bright);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}

.light-theme .theme-toggle-track {
  background: var(--accent);
}

.light-theme .theme-toggle-thumb {
  transform: translateX(14px);
  background: #ffffff;
}

.theme-toggle-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.theme-toggle-sun {
  opacity: 0.55;
}

.theme-toggle-moon {
  opacity: 1;
}

.light-theme .theme-toggle-sun {
  opacity: 1;
}

.light-theme .theme-toggle-moon {
  opacity: 0.55;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(
      circle at 82% 0%,
      rgba(124, 108, 255, 0.10),
      transparent 32rem
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(8, 9, 13, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-name::before {
  content: "~/ ";
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--accent);
}

/* HERO */
.hero {
  padding: 88px 0 56px;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.hero-label::before {
  content: "// ";
  color: var(--text-faint);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -0.045em;
}
.hero-bio {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 24px;
}
.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-aws {
  background: rgba(255, 153, 0, 0.1);
  color: #ffb454;
  border: 1px solid rgba(255, 153, 0, 0.35);
}
.badge-tf {
  background: rgba(124, 148, 115, 0.12);
  color: #9db894;
  border: 1px solid rgba(124, 148, 115, 0.35);
}
.badge-loc {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #08090d;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: #978cff;
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* STATUS STRIP — signature element. Optional markup:
<div class="status-strip">
  <span class="status-dot"></span>
  <span>STATUS: OPERATIONAL</span>
  <span class="status-sep">·</span>
  <span>UPTIME 99.98%</span>
  <span class="status-sep">·</span>
  <span>REGION ap-southeast-2</span>
</div>
*/
.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-top: 28px;
  width: fit-content;
}
.status-sep {
  color: var(--text-faint);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-ok);
  box-shadow: 0 0 0 0 rgba(101, 214, 176, 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(101, 214, 176, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(101, 214, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(101, 214, 176, 0); }
}

/* ARCH CARD */
.arch-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.arch-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.arch-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}
.arch-arrow {
  text-align: center;
  color: var(--accent-2);
  font-size: 16px;
  padding: 4px 0;
  font-family: var(--font-mono);
}

/* SECTIONS */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 36px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section h2::before {
  content: attr(data-index);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.skill-group h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-weight: 600;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(86, 184, 255, 0.08);
  border: 1px solid rgba(86, 184, 255, 0.25);
  color: var(--accent-2);
}
.section-alt .tag {
  background: rgba(124, 108, 255, 0.08);
  border-color: rgba(124, 108, 255, 0.28);
  color: var(--accent);
}

/* TIMELINE — real chronology, numbering earns its keep here */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.timeline-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-bright);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}
.timeline-company {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.timeline-role {
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.timeline-points {
  padding-left: 18px;
}
.timeline-points li {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.award-badge {
  font-family: var(--font-mono);
  background: rgba(124, 148, 115, 0.12);
  border: 1px solid rgba(124, 148, 115, 0.35);
  color: #9db894;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.project-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.project-card-muted {
  opacity: 0.7;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.project-status {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-live {
  background: rgba(101, 214, 176, 0.10);
  color: var(--status-ok);
  border: 1px solid rgba(101, 214, 176, 0.35);
}
.status-live::before {
  content: "● ";
}
.status-wip {
  background: rgba(240, 189, 104, 0.10);
  color: var(--status-wip);
  border: 1px solid rgba(240, 189, 104, 0.35);
}
.status-wip::before {
  content: "◐ ";
}
.project-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag-sm {
  font-size: 10px;
  padding: 3px 8px;
}
.project-links a,
.project-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.project-links a:hover {
  text-decoration: underline;
}

/* CERTS */
.certs-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  flex: 1;
  min-width: 260px;
}
.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.cert-icon-tf {
  background: var(--tf-color);
  color: #08090d;
}
.cert-icon-aws {
  background: var(--aws-color);
  color: #08090d;
}
.cert-info {
  flex: 1;
}
.cert-name {
  font-weight: 600;
  font-size: 14px;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}
.cert-verify {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.cert-verify:hover {
  text-decoration: underline;
}

/* CONTACT */
.contact-container {
  text-align: center;
}
.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  padding: 10px 20px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.contact-icon {
  font-size: 16px;
}

/* FOOTER */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.footer a {
  color: var(--text-faint);
}
.footer a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
/* RESPONSIVE */
@media (max-width: 700px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-arch {
    display: none;
  }
  .hero h1 {
    font-size: 30px;
  }
  .nav-links {
    display: none;
  }
}

/* ARCHITECTURE SECTION */
.arch-intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.arch-intro code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-raised);
  padding: 2px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--accent-2);
}
.arch-diagram-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--bg-alt);
}
.arch-diagram {
  width: 100%;
  height: auto;
  display: block;
}
.arch-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.stat {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}