/* ════════════════════════════════════
   CSS CUSTOM PROPERTIES
════════════════════════════════════ */
:root {
  --bg:          #0a0e17;
  --bg-2:        #0f1520;
  --bg-3:        #151d2e;
  --bg-card:     #111827;
  --border:      #1e2d42;
  --accent:      #00ff9f;
  --accent-dim:  rgba(0, 255, 159, 0.15);
  --accent-2:    #0ea5e9;
  --warn:        #f59e0b;
  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
  --font-sans:   'Inter', -apple-system, sans-serif;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 255, 159, 0.12);
  --transition:  0.25s ease;
  --nav-h:       64px;
}

/* ════════════════════════════════════
   RESET & BASE
════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════ */
.accent { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; }

.section__title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section__title::before {
  content: '//';
  color: var(--accent);
  font-size: 1rem;
}

.section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 200px;
}

/* ════════════════════════════════════
   LAYOUT
════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: #00e68f;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ════════════════════════════════════
   NAV
════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--accent); }

.nav__cta {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem !important;
}
.nav__cta:hover {
  background: var(--accent-dim) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,159,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,159,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1100px;
  width: 100%;
  padding: 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  min-height: 2rem;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,255,159,0.08);
  border: 1px solid rgba(0,255,159,0.2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  color: var(--text-muted);
  animation: float 2.5s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--accent); }

/* Hero 2-column layout */
.hero__inner--about {
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
}

.hero__photo-frame {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow), var(--shadow-glow);
  animation: fade-in 0.9s ease 0.3s both;
  flex-shrink: 0;
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bio {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  animation: fade-up 0.6s ease 0.4s both;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  animation: fade-up 0.6s ease 0.5s both;
}

/* Terminal widget */
.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal__bar {
  background: var(--bg-3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.terminal__title {
  margin-left: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.terminal__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  line-height: 1.8;
}

.t-green { color: var(--accent); }
.t-yellow { color: var(--warn); }
.t-dim   { color: var(--text-muted); }
.t-blink { animation: blink 1s step-end infinite; color: var(--accent); }

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about {
  background: var(--bg-2);
  padding: 3rem 0;
}

.photo__frame {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

.photo__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

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

.pill {
  padding: 0.3rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.about__text {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
}

.about__text strong { color: var(--text); }

/* Journey strip */
.journey {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.journey__item {
  text-align: center;
}

.journey__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.journey__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.journey__label small { color: var(--text-muted); font-size: 0.72rem; }

.journey__arrow {
  color: var(--border);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.journey__item--active .journey__year,
.journey__item--active .journey__label { color: var(--accent); }

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  border-color: rgba(0,255,159,0.3);
  box-shadow: var(--shadow-glow);
}

.skill-card__icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.skill-card__icon svg { width: 100%; height: 100%; }

.skill-card h3 {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text);
  margin-bottom: 1.25rem;
}

.skill-card ul { display: flex; flex-direction: column; gap: 0.75rem; }

.skill-card li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skill__name {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill__bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill__tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  align-self: flex-end;
}

/* Frameworks */
.frameworks {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}

.frameworks h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.framework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ftag {
  padding: 0.35rem 0.9rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,159,0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ════════════════════════════════════
   TIMELINE
════════════════════════════════════ */
.experience { background: var(--bg-2); }

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline__node {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-2);
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(0,255,159,0.2);
}

.timeline__item--right .timeline__card {
  grid-column: 2;
}

.timeline__item--left .timeline__card {
  grid-column: 1;
}

.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline__card:hover {
  border-color: rgba(0,255,159,0.25);
  box-shadow: var(--shadow-glow);
}

.timeline__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.timeline__badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.timeline__badge--active {
  background: rgba(0,255,159,0.15);
  border: 1px solid rgba(0,255,159,0.3);
  color: var(--accent);
}

.timeline__role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline__company {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 0.25rem;
}

.timeline__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline__bullets {
  margin-bottom: 1rem;
}

.timeline__bullets li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 0.2rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.timeline__bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.timeline__bullets strong { color: var(--text); }

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline__tags span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ════════════════════════════════════
   CERTIFICATIONS
════════════════════════════════════ */
/* ════════════════════════════════════
   TOOLKIT
════════════════════════════════════ */
.toolkit__sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

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

.toolkit__category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}

.toolkit__category:hover {
  border-color: rgba(0,255,159,0.25);
}

.toolkit__category h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toolkit__cat-icon {
  color: var(--accent);
  font-size: 0.7rem;
}

.toolkit__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ttag {
  padding: 0.25rem 0.7rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  transition: all var(--transition);
}

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

/* ════════════════════════════════════
   CERTIFICATIONS
════════════════════════════════════ */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
  border-color: rgba(0,255,159,0.3);
  box-shadow: var(--shadow-glow);
}

.cert-card--inprogress {
  border-color: rgba(245,158,11,0.25);
}

.cert-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}
.cert-card--inprogress .cert-card__icon { color: var(--warn); }
.cert-card__icon svg { width: 100%; height: 100%; }

.cert-card__code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.cert-card--inprogress .cert-card__code { color: var(--warn); }

.cert-card__body h3 {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0.25rem 0;
}
.cert-card__body p {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cert-card__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

.cert-card__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.cert-card__status--earned {
  background: rgba(0,255,159,0.12);
  border: 1px solid rgba(0,255,159,0.25);
  color: var(--accent);
}

.cert-card__status--progress {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--warn);
}

/* ════════════════════════════════════
   PROJECTS
════════════════════════════════════ */
.projects { background: var(--bg-2); }

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(0,255,159,0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.project-card__bar {
  background: var(--bg-3);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.project-card__title-bar {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.project-card__body {
  padding: 1.5rem;
}

.project-card__body h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.project-card__body p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-card__stack span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,159,0.2);
  border-radius: 4px;
  color: var(--accent);
}

.project-card__points {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-card__points li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.project-card__points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.65rem;
  top: 3px;
}

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact__sub {
  font-size: 0.975rem;
  color: var(--text-dim);
  margin: 1rem 0 2.5rem;
  line-height: 1.8;
}

.contact__sub strong { color: var(--text); }

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.contact__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact__link:hover { color: var(--accent); }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__copy {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--border);
}
