@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg:      #07070e;
  --surface: #0d0d16;
  --border:  rgba(255,255,255,0.11);
  --text:    #ffffff;
  --muted:   rgba(255,255,255,0.62);
  --accent:  #C6FF20;
  --status:  #eab308;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image:
    url('topo.svg'),
    radial-gradient(ellipse 70% 55% at 12% 2%, rgba(45, 18, 95, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 88% 98%, rgba(4, 28, 64, 0.50) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 55% 50%, rgba(8, 6, 20, 0.30) 0%, transparent 60%),
    linear-gradient(168deg, #09091a 0%, #07070e 45%, #060b12 100%);
  background-size: 200px 200px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 80px;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Hero ── */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.2);
}

.status-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 14px;
  height: 14px;
  background: var(--status);
  border: 2px solid var(--surface);
  border-radius: 50%;
}

.hero-text { flex: 1; min-width: 0; padding-top: 2px; }

.name {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: #fff;
}

.title {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 14px 6px 8px;
  border-radius: 8px;
  background: rgba(198,255,32,0.07);
  border: 1px solid rgba(198,255,32,0.25);
  text-decoration: none;
}

.company-badge-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
}

.company-badge-name {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tagline {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.tagline a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Links row ── */
.links {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(198,255,32,0.35);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.link-chip:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.link-chip svg { opacity: 0.55; flex-shrink: 0; transition: opacity 0.18s; }
.link-chip:hover svg { opacity: 1; }

/* ── Section base ── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-left: 9px;
  border-left: 2px solid var(--accent);
}

/* ── Company section ── */
.company-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 52px;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.company-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-info-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.company-info-sub {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.2px;
}

.company-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
}

/* ── Career timeline ── */
.career-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 52px;
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

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

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid var(--surface);
  z-index: 1;
}

.timeline-item.current::before {
  background: var(--accent);
  border-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(198,255,32,0.18);
}

.timeline-period {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.timeline-role {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.2px;
}

.timeline-company {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Skills ── */
.skills-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 52px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
  letter-spacing: 0.1px;
}

/* ── Projects ── */
.projects-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 52px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(198,255,32,0.3);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.project-item:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.project-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.18s;
}

.project-item:hover .project-favicon { opacity: 1; }

.project-name { font-size: 17px; font-weight: 600; line-height: 1.3; }

.project-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 3px;
  transition: color 0.18s;
}

.project-item:hover .project-desc { color: #000; }

.project-arrow {
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.18s, color 0.18s;
  flex-shrink: 0;
  margin-left: 12px;
}

.project-item:hover .project-arrow {
  transform: translateX(3px);
  color: #000;
}

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

.projects-toggle {
  margin-top: 10px;
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid rgba(198,255,32,0.3);
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
}

.projects-toggle:hover {
  background: rgba(198,255,32,0.07);
  border-color: rgba(198,255,32,0.5);
}

/* ── CTA Footer ── */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 52px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cta-text p:first-child {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.cta-text p:last-child {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ── Meta bar ── */
.meta-bar {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  color: var(--muted);
}

.meta-bar span { display: flex; align-items: center; gap: 6px; }

.meta-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s;
}

.meta-link:hover { color: #fff; }

@media (max-width: 560px) {
  .hero { padding: 36px 28px 30px; border-radius: 16px; gap: 20px; }
  .hero-top { gap: 20px; }
  .name { font-size: 38px; letter-spacing: -1.5px; }
  .links,
  .company-section,
  .career-section,
  .skills-section,
  .projects-section,
  .cta { padding: 22px 28px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .meta-bar { flex-wrap: wrap; gap: 14px; justify-content: center; }
}
