:root {
  --bg: #f2f6f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1e2c2f;
  --muted: #5f7277;
  --primary: #00c36d;
  --primary-strong: #008d55;
  --electric-blue: #6fe8ff;
  --electric-blue-strong: #18c8f2;
  --accent: #18c8f2;
  --stroke: rgba(14, 35, 38, 0.12);
  --shadow: 0 16px 36px rgba(8, 29, 36, 0.12);
  --radius: 18px;
  --anchor-offset: 0.625rem;
  --section-gap: 1.75rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

section[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(70rem 35rem at 15% -10%, rgba(0, 195, 109, 0.22), transparent 60%),
    radial-gradient(50rem 30rem at 90% 0%, rgba(111, 232, 255, 0.25), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

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

main,
.topbar,
footer {
  width: min(1100px, 92%);
  margin-inline: auto;
}

main {
  display: grid;
  gap: var(--section-gap);
  padding: var(--section-gap) 0 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(1px);
  z-index: -1;
}

.orb-1 {
  width: 240px;
  height: 240px;
  left: -80px;
  top: 22%;
  background: linear-gradient(145deg, rgba(0, 195, 109, 0.5), rgba(0, 195, 109, 0.08));
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -120px;
  top: 50%;
  background: linear-gradient(145deg, rgba(111, 232, 255, 0.45), rgba(111, 232, 255, 0.1));
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 10px 28px rgba(8, 29, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 1rem;
}

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

.nav a:hover,
.nav a.active {
  color: var(--primary-strong);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: #223235;
  margin: 5px 0;
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-strong);
  background: rgba(0, 195, 109, 0.12);
  border: 1px solid rgba(0, 195, 109, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #14363c, var(--primary-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 span {
  color: inherit;
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  margin-top: 0.2rem;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
}

.hero-lead {
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.quick-item {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.18rem;
}

.quick-item strong {
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.home-quick-grid .quick-item:first-child strong {
  background: linear-gradient(135deg, var(--primary-strong), var(--electric-blue-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quick-item span {
  color: #35494e;
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.hero-focus-tags span {
  border: 1px solid rgba(24, 200, 242, 0.4);
  background: rgba(24, 200, 242, 0.12);
  color: #0d5e71;
  border-radius: 999px;
  padding: 0.26rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card h3 {
  margin: 0.05rem 0 0.8rem;
  font-size: 1.07rem;
}

.avatar {
  width: 138px;
  height: 138px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 0.85rem;
  border: 1px solid rgba(115, 255, 184, 0.55);
  box-shadow:
    0 0 0 2px rgba(115, 255, 184, 0.16),
    0 10px 22px rgba(0, 195, 109, 0.24);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.hero-card li {
  font-size: 0.95rem;
  color: #31474c;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--electric-blue-strong));
  box-shadow: 0 10px 26px rgba(0, 195, 109, 0.22);
}

.btn-ghost {
  border: 1px solid var(--stroke);
  background: var(--surface-solid);
}

.section {
  margin: 0;
  padding: 0;
}

.section h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
}

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

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  overflow: hidden;
}

.timeline-item .time {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.7rem;
}

.timeline-item ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.skills-wrap {
  display: grid;
  gap: 0.75rem;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.skill-tags {
  display: grid;
  gap: 0.48rem;
}

.skill-pill {
  --fill: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(0, 195, 109, 0.36);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  overflow: hidden;
}

.skill-pill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--fill) * 1%);
  background: linear-gradient(90deg, rgba(0, 195, 109, 0.32), rgba(0, 195, 109, 0.58));
  z-index: 0;
}

.skill-name,
.skill-percent {
  position: relative;
  z-index: 1;
}

.skill-name {
  font-size: 0.83rem;
  color: #1e3f31;
}

.skill-percent {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-strong);
  min-width: 3ch;
  text-align: right;
}

.skill {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr 44px;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 0.6rem 0.8rem;
}

.skill span {
  font-weight: 600;
  line-height: 1.2;
}

.bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dde8ea;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--electric-blue-strong));
}

.skill em {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: right;
}

.project .link,
.card .link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--primary-strong);
}

.contact-card {
  text-align: center;
}

.contact-form {
  width: min(620px, 100%);
  margin: 0.8rem auto 0;
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #26373b;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(24, 200, 242, 0.8);
  box-shadow: 0 0 0 3px rgba(24, 200, 242, 0.18);
}

.contact-form textarea {
  resize: vertical;
  min-height: 84px;
  max-height: 170px;
}

.contact-form .btn {
  justify-self: end;
  margin-top: 0.25rem;
}

.form-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.socials a {
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  color: #2c4449;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 200, 242, 0.48);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.1rem 0 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  margin-top: 0.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.footer-branding img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 7px;
}

.footer-branding strong {
  display: block;
  color: #1f3337;
  font-size: 0.9rem;
}

.footer-branding p {
  margin: 0.1rem 0 0;
  font-size: 0.79rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-links a {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a4146;
}

.footer-copy {
  margin: 0.7rem 0 0;
  font-size: 0.79rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

  .hero-card {
    justify-content: flex-start;
  }

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

  .skill-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --section-gap: 1.35rem;
  }

  main,
  .topbar,
  footer {
    width: min(1100px, 94%);
  }

  .card {
    padding: 1rem;
  }

  .home-quick-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: auto;
    justify-self: end;
  }

  .footer-inner {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-links {
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --anchor-offset: 0.625rem;
  }

  .topbar {
    border-radius: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .menu-btn {
    display: inline-block;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.2rem;
  }

  .topbar.menu-open .nav {
    display: flex;
  }

  .skill {
    grid-template-columns: minmax(105px, 1.35fr) 1fr 42px;
    gap: 0.55rem;
  }
}

@media (max-width: 460px) {
  .brand span {
    font-size: 0.94rem;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 9vw, 2.25rem);
  }

  .skill {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .skill em {
    text-align: left;
  }
}
