@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=Epilogue:wght@700;900&display=swap');

:root {
  --bg: #0a0a0b;
  --fg: #f4f4f5;
  --fg-muted: #a1a1aa;
  --accent: #d9f95d;
  --border: #27272a;
  --selection-bg: #d9f95d;
  --selection-fg: #0a0a0b;
}

[data-theme="light"] {
  --bg: #fdfdfc;
  --fg: #09090b;
  --fg-muted: #71717a;
  --accent: #2563eb;
  --border: #e4e4e7;
  --selection-bg: #2563eb;
  --selection-fg: #ffffff;
}

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

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtly textured background */
.noise-overlay {
  position: fixed;
  inset: 0;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

[data-theme="light"] .noise-overlay {
  opacity: 0.05;
}

/* Typography map */
h1,
h2,
h3,
h4 {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Layout */
.layout-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 5vw;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1.5rem;
}

[data-theme="light"] .header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(0);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Container */
.main-content {
  padding: 6rem 5vw;
  flex: 1;
}

/* Hero Section */
.hero {
  max-width: 1000px;
  margin-top: 4vh;
  position: relative;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--fg);
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-role {
  font-size: 1.1rem;
  color: var(--fg);
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 750px;
  margin-bottom: 4rem;
  line-height: 1.8;
}

.hero-desc a,
.about-summary a {
  color: var(--fg);
  border-bottom: 1px dashed var(--fg-muted);
}

.hero-desc a:hover,
.about-summary a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cta-wrap {
  display: flex;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--fg);
  color: var(--bg);
  padding: 1.25rem 2.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fg);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.cta-button:hover::before {
  transform: translateY(0);
}

.cta-button span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  border-color: var(--accent);
  color: var(--bg) !important;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 6rem;
}

.about-sidebar {
  position: sticky;
  top: 8rem;
  align-self: start;
}

@media (max-width: 1024px) {
  .header {
    padding: 1.5rem 5vw;
  }

  .nav {
    gap: 1.5rem;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .about-sidebar {
    position: static;
  }
}

.resume-name {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.resume-title {
  color: var(--accent);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-list li::before {
  content: '>';
  color: var(--accent);
  font-weight: 700;
}

.about-summary {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 4rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.section {
  margin-bottom: 5rem;
  scroll-margin-top: 120px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--fg);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

.job {
  margin-bottom: 4rem;
  position: relative;
  scroll-margin-top: 120px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.job-role {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--fg);
  font-family: 'Epilogue', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.job-period {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-company {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.job-company-logo {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 2px;
  background-color: #ffffff;
  padding: 2px;
  border: 1px solid var(--border);
}

.job-company-logo-link {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  transition: transform 0.2s ease;
}

.job-company-logo-link:hover {
  transform: scale(1.1);
}

.job-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-achievements li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.job-achievements li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.certs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

a.cert-row {
  text-decoration: none;
  color: inherit;
}

.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-row:hover {
  border-color: var(--accent);
  transform: translateX(10px);
}

.cert-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.cert-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 2px;
}

.cert-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  flex: 1 1 auto;
}

.cert-provider {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cert-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cert-provider {
    white-space: normal;
  }

  .main-content {
    padding: 6rem 1.5rem;
  }
}

.skills-category {
  margin-bottom: 3rem;
}

.skills-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-item {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.edu-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.edu-school {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.edu-degree {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.edu-meta {
  font-size: 0.8rem;
  color: var(--border);
}

.footer {
  padding: 2rem 5vw;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.footer-links a:hover {
  color: var(--fg);
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

body.lead-modal-open {
  overflow: hidden;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(2px);
}

.lead-modal-panel {
  width: min(560px, 100%);
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 2rem;
  z-index: 1;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lead-modal-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.lead-modal-panel p {
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.lead-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  cursor: pointer;
}

.lead-modal-close:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.lead-modal-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead-modal-input {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
}

.lead-modal-input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.lead-modal-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  opacity: 0;
}

.lead-modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  color: var(--fg-muted);
  font-size: 0.86rem;
}

.lead-modal-consent input {
  margin-top: 0.15rem;
}

.lead-modal-error {
  min-height: 1.3rem;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

.lead-modal-panel .cf-turnstile {
  margin-top: 0.25rem;
}

.lead-modal-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.lead-submit-btn {
  min-width: 220px;
}

.lead-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-skip-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  padding: 1.25rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

.lead-skip-btn:hover {
  color: var(--fg);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .lead-modal-panel {
    padding: 1.5rem;
  }

  .lead-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .lead-skip-btn {
    width: 100%;
  }
}

/* Animations loading */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
