:root {
  --bg: #0f172a;
  --bg-elevated: rgba(15, 23, 42, 0.72);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #ff7f50;
  --accent-soft: rgba(255, 127, 80, 0.15);
  --ring: 0 0 0 4px var(--accent-soft), 0 0 48px rgba(255, 127, 80, 0.35);
  --font: "Poppins", system-ui, sans-serif;
  --max: 1100px;
  --gutter: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.75rem max(var(--gutter), calc((100% - var(--max)) / 2));
  background: linear-gradient(
    to bottom,
    var(--bg) 90%,
    transparent 100%
  );
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 6rem) var(--gutter) clamp(4.5rem, 10vw, 7rem);
  overflow-x: hidden;
  overflow-y: visible;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__chev {
  position: absolute;
  font-size: clamp(8rem, 22vw, 14rem);
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  top: 10%;
  user-select: none;
}

.hero__chev--l {
  left: -2%;
  opacity: 0.5;
}

.hero__chev--r {
  right: -2%;
  opacity: 0.35;
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__hello {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.hero__line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--text);
}

.hero__rule {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__tagline {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 28ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: rgba(255, 127, 80, 0.12);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.avatar-wrap {
  position: relative;
  width: min(220px, 70vw);
  aspect-ratio: 1;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  border: 4px solid rgba(255, 127, 80, 0.4);
  box-shadow: var(--ring);
}

.skills-bar {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

.skills-bar__list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about {
  padding: 5rem var(--gutter);
}

.about__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.timeline {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: calc(-1.25rem - 9px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.service-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.service-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about__bio h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about__bio > p {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

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

.stat__value {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat__label {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.projects {
  padding: 2rem var(--gutter) 5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.projects__heading {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.projects__line {
  width: 3px;
  height: 48px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.project-card {
  padding: 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.project-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact {
  padding: 3rem var(--gutter) 5rem;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.contact h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.contact__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.contact__links a {
  color: var(--accent);
  font-weight: 500;
}

.contact__links a:hover {
  text-decoration: underline;
}

.footer {
  padding: 1.5rem var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

@media (max-width: 900px) {
  .header {
    justify-content: flex-start;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__line {
    justify-content: center;
  }

  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: 1;
  }

  .hero__text {
    order: 0;
  }

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

  .about__bio {
    order: -1;
  }

  .stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(15, 23, 42, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 1.15rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 901px) {
  .about__bio {
    order: 0;
  }

  .about__services {
    order: 0;
  }
}
