:root {
  --bg: #02050a;
  --bg-soft: #070d16;
  --bg-card: #0a1220;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --text-muted: #9aa7b8;
  --accent: #55e6a5;
  --accent-soft: rgba(85, 230, 165, 0.12);
  --accent-dark: #2bbd7e;
  --radius: 16px;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

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

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

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

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

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.15rem;
}

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

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(85, 230, 165, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #02140b;
  box-shadow: 0 8px 30px rgba(85, 230, 165, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #6cf0b5;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 5, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.nav-logo img {
  width: 124px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-menu .btn-primary {
  color: #02140b;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: 2rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(85, 230, 165, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.hero-rotator {
  margin-top: 0.9rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
}

.rotator {
  display: inline-block;
  min-width: 12ch;
  font-weight: 600;
  border-right: 2px solid var(--accent);
  padding-right: 4px;
  white-space: nowrap;
}

.hero-lead {
  margin-top: 1.2rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  list-style: none;
  margin-top: 2.4rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(330px, 75vw);
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}

.hero-photo-ring {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(85, 230, 165, 0.22), rgba(85, 230, 165, 0.04) 60%, transparent 75%);
  border: 1px solid rgba(85, 230, 165, 0.2);
  z-index: 1;
}

.hero-companies {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  border-top: 1px solid var(--border);
}

.hero-companies-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-companies ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.6rem, 2.5vw, 2.2rem);
  list-style: none;
  flex: 1 1 auto;
  min-width: min(480px, 100%);
}

/* Each logo's flex weight (--w) is its tuned desktop width in px.
   With flex-basis 0 all logos shrink proportionally and the row never wraps. */
.hero-companies li {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: var(--w) 1 0%;
  max-width: calc(var(--w) * 1px);
}

.hero-companies img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.hero-companies li:hover img {
  opacity: 1;
}

/* About */
.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.about-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2rem;
  margin-top: 1.6rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.fact-value {
  font-size: 0.92rem;
  font-weight: 500;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(85, 230, 165, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card-link {
  display: block;
  color: var(--text);
}

.card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Experience timeline */
.timeline {
  margin-top: 2.6rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(85, 230, 165, 0.5), var(--border));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 0 0 2.8rem 2.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(85, 230, 165, 0.15);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-period {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-company {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0.2rem 0 0.9rem;
}

.timeline-body ul {
  list-style: none;
}

.timeline-body li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.edu-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.edu-card h3 {
  margin: 0.5rem 0 0.2rem;
}

.edu-school {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.edu-card p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Skills */
.skills {
  background: var(--bg-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.skill-group h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.tags li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.contact-content > p {
  color: var(--text-muted);
  max-width: 54ch;
}

.contact-list {
  list-style: none;
  margin: 1.8rem 0;
  display: grid;
  gap: 1rem;
}

.contact-list a {
  font-weight: 500;
}

.contact-visual img {
  border-radius: 50%;
  border: 1px solid rgba(85, 230, 165, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  width: min(380px, 80vw);
  margin: 0 auto;
}

/* Blog */
.blog-post,
.blog-list {
  padding-top: clamp(7rem, 12vw, 9rem);
}

.blog-post .blog-container {
  max-width: 760px;
}

.blog-post h1,
.blog-list h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.6rem;
}

.post-featured {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  width: 100%;
  height: auto;
}

.post-content {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text);
  margin: 2rem 0 0.8rem;
}

.post-content p {
  margin-bottom: 1.1rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.1rem 1.4rem;
}

.post-content li {
  margin-bottom: 0.45rem;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.4rem 0;
}

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

.post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 2.6rem;
}

.author-box picture {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: block;
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(85, 230, 165, 0.35);
  flex-shrink: 0;
  display: block;
}

.author-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.author-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.related-posts {
  margin-top: 2.4rem;
}

.related-posts h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.related-posts ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.related-posts a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.blog-intro {
  color: var(--text-muted);
  max-width: 56ch;
}

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.blog-card .post-meta {
  margin-bottom: 0.7rem;
}

.blog-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}

/* FAQ */
.faq {
  background: var(--bg-soft);
}

.faq-list {
  margin-top: 2.2rem;
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(85, 230, 165, 0.35);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.8rem;
  max-width: 32ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  color: var(--text-muted);
}

.back-to-top:hover {
  color: var(--accent);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-visual img {
    width: min(240px, 60vw);
  }

  .hero-photo-ring {
    width: 290px;
    height: 290px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-companies {
    justify-content: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .contact-visual {
    order: -1;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .timeline-meta {
    flex-direction: row;
    gap: 1rem;
    align-items: baseline;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(2, 5, 10, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 4%;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }

  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }

  .nav-menu li:last-child {
    border-bottom: 0;
  }

  .nav-menu a {
    display: block;
    padding: 0.9rem 0.2rem;
    font-size: 1rem;
  }

  .nav-cta-item {
    padding: 0.9rem 0;
  }

  .nav-menu .btn-sm {
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .hero-stats {
    gap: 1.4rem;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .hero-companies {
    gap: 0.8rem 2rem;
  }
}
