:root {
  --bg-dark: #111111;
  --text-light: #ffffff;
  --text-muted: #a6a7ae;
  --text-secondary: #616161;
  --primary: #45e77b;
  --line: rgba(255, 255, 255, 0.1);
  --font-heading: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  background: var(--bg-dark);
  color: var(--text-light);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Nav / language toggle
-------------------------------------------------------------- */
#nav {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
}

.lang-toggle {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero
-------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.hero-inner {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.avatar {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero-tagline {
  color: var(--text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-email:hover {
  color: var(--primary);
}

.hero-social {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}

.hero-social a {
  color: var(--text-muted);
}

.hero-social a:hover {
  color: var(--primary);
}

.cta-group {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.cta-button {
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Shared content sections (About, Experience, Education, Skills, Projects)
-------------------------------------------------------------- */
#about,
#experience,
#education,
#certifications,
#skills,
#projects {
  padding: var(--space-12) var(--space-6);
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-inner--wide {
  max-width: 64rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* About
-------------------------------------------------------------- */
.about-bio {
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Experience
-------------------------------------------------------------- */
.experience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.experience-item {
  border-left: 2px solid var(--line);
  padding-left: var(--space-4);
}

.experience-item .role {
  font-family: var(--font-heading);
  font-weight: 600;
}

.experience-item .company-dates {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.experience-item .description {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.experience-item .highlights {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

/* Education
-------------------------------------------------------------- */
.education-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.education-item {
  border-left: 2px solid var(--line);
  padding-left: var(--space-4);
}

.education-item .degree {
  font-family: var(--font-heading);
  font-weight: 600;
}

.education-item .institution-dates {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Certifications
-------------------------------------------------------------- */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

.certification-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(160deg, rgba(69, 231, 123, 0.06), transparent 60%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.certification-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.certification-badge {
  align-self: flex-start;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
}

.certification-badge svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.certification-icon {
  height: 100%;
  width: auto;
  max-width: 6rem;
  object-fit: contain;
}

.certification-card .certification-name {
  font-family: var(--font-heading);
  font-weight: 600;
}

.certification-card .issuer-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.certification-card .credential-link {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.credly-link {
  display: inline-block;
  margin-top: var(--space-6);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.credly-link:hover {
  text-decoration: underline;
}

/* Skills
-------------------------------------------------------------- */
.skills-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.skill-category {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Projects
-------------------------------------------------------------- */
.projects-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

/* Hover accent applies regardless of whether the card is a real link
   (a.project-card) or a non-clickable confidential project
   (div.project-card) — kept for visual consistency even without a
   click action behind it. */
.project-card:hover {
  border-color: var(--primary);
}

.project-card .project-name {
  font-family: var(--font-heading);
  font-weight: 600;
}

.project-card .project-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.project-tags li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
