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

/* ===== Variables ===== */
:root {
  --color-bg:           #0f0f11;
  --color-surface:      #1a1a1f;
  --color-border:       #2a2a32;
  --color-text:         #e8e8ec;
  --color-muted:        #888899;
  --color-accent:       #3b82f6;
  --color-accent-hover: #60a5fa;
  --font-sans:          'Inter', system-ui, -apple-system, sans-serif;
  --content-max-width:  960px;
  --nav-height:         56px;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Nav ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

nav {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav ul a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

nav ul a:hover {
  color: var(--color-text);
}

/* ===== Main Layout ===== */
main {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: 4rem;
  border-bottom: 1px solid var(--color-border);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

/* ===== Hero ===== */
#hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(59, 130, 246, 0.14) 0%, transparent 70%),
    linear-gradient(rgba(42, 42, 50, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 42, 50, 0.55) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
}

.hero-greeting {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.375rem;
}

#hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-status {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
}

.hero-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.status-company {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-company img {
  height: 18px;
  width: auto;
  vertical-align: middle;
}

.hero-status strong {
  color: var(--color-text);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-bio {
  font-size: 1.0625rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-links-label {
  font-size: 1.125rem;
  color: var(--color-accent);
  width: 100%;
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
}


/* ===== Timeline ===== */
.timeline {
  list-style: none;
  border-left: 2px solid var(--color-border);
  padding-left: 2rem;
}

.role {
  position: relative;
  margin-bottom: 2.5rem;
}

.role:last-child {
  margin-bottom: 0;
}

.role::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 5px);
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-bg);
}

.role-location {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

.role-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.25rem;
}

.role-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: contain;
}

.role-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.role-title {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.role-dates {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-left: auto;
}

.role-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.role-bullets li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding-left: 1.1rem;
  position: relative;
}

.role-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-muted);
}

/* ===== Buttons & Links ===== */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-download:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover {
  color: var(--color-text);
}

/* ===== Footer ===== */
footer {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-block: 2rem;
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* ===== Skills ===== */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.skill-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
  cursor: default;
}

.chip img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

/* ===== Contact ===== */
.contact-intro {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.125rem;
  margin-bottom: 2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.contact-social {
  display: flex;
  gap: 1.5rem;
}

/* ===== Education ===== */
.edu-entry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.edu-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.edu-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.edu-degree {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ===== Reveal ===== */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  :root {
    --nav-height: 48px;
  }

  nav ul {
    gap: 1.25rem;
  }

  .role-dates {
    margin-left: 0;
    width: 100%;
  }

  #hero {
    min-height: calc(100svh - var(--nav-height));
  }

  section {
    padding-block: 3rem;
  }
}

/* ===== Print ===== */
@media print {
  header,
  .btn-download {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  section {
    border-bottom: 1px solid #ccc;
    padding-block: 1.5rem;
  }

  h2 {
    color: #444;
  }

  .role::before {
    background: #000;
    box-shadow: none;
  }

  .role-header h3,
  .role-title,
  .role-dates,
  .role-bullets li {
    color: #000;
  }

  .role-bullets li::before {
    color: #555;
  }
}
