:root {
  --bg: #050b09;
  --bg-deep: #070f0d;
  --bg-panel: rgba(12, 22, 19, 0.9);
  --bg-panel-strong: rgba(8, 17, 15, 0.95);
  --line: rgba(196, 222, 216, 0.12);
  --line-strong: rgba(196, 222, 216, 0.2);
  --text: #ebf7f1;
  --muted: #b7c9c3;
  --muted-strong: #d5e9e2;
  --emerald: #36e1b0;
  --emerald-strong: #13b98b;
  --emerald-soft: rgba(54, 225, 176, 0.14);
  --burgundy: #7b2438;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(54, 225, 176, 0.14), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(123, 36, 56, 0.12), transparent 26%),
    linear-gradient(135deg, #020807 0%, #061914 35%, #040d0b 100%);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.soft-panel {
  background: rgba(10, 20, 17, 0.76);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-tag,
.mini-label,
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  color: var(--text);
}

.page-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(86px);
  opacity: 0.5;
}

.page-glow-one {
  width: 420px;
  height: 420px;
  top: 80px;
  left: -110px;
  background: rgba(54, 225, 176, 0.16);
}

.page-glow-two {
  width: 440px;
  height: 440px;
  right: -120px;
  top: 220px;
  background: rgba(123, 36, 56, 0.14);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 10, 9, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(54, 225, 176, 1), rgba(19, 185, 139, 0.9));
  box-shadow: 0 12px 26px rgba(54, 225, 176, 0.3);
  color: #031711;
  font-size: 0.8rem;
  font-weight: 900;
}

.brand-text {
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
}

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

.site-nav a {
  position: relative;
  padding: 0.82rem 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.18rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), transparent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a:active,
.site-nav a.active {
  color: var(--emerald);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 26, 23, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

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

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

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

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

.hero {
  padding-top: 74px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 54px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  color: var(--text);
}

.hero-copy h2 {
  margin: 0 0 22px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.2;
  color: var(--muted-strong);
  font-weight: 600;
}

.lead {
  max-width: 670px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible,
.button:active {
  transform: translateY(-2px);
  color: var(--emerald) !important;
  border-color: rgba(54, 225, 176, 0.7);
  box-shadow: 0 12px 24px rgba(54, 225, 176, 0.14);
}

.button.primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-strong));
  color: #041b14;
  box-shadow: 0 18px 30px rgba(54, 225, 176, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible,
.button.primary:active {
  color: #02140f !important;
  box-shadow: 0 20px 34px rgba(54, 225, 176, 0.28);
}

.button.secondary {
  background: rgba(12, 23, 20, 0.8);
  color: var(--text);
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.button.secondary:active {
  color: var(--emerald) !important;
  border-color: rgba(54, 225, 176, 0.7);
}

.button.full-width {
  width: 100%;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 23, 20, 0.56);
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-row a:hover,
.social-row a:focus-visible,
.social-row a:active {
  transform: translateY(-2px);
  border-color: rgba(54, 225, 176, 0.7);
  color: var(--emerald) !important;
  box-shadow: 0 12px 24px rgba(54, 225, 176, 0.08);
}

.icon-brands {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(54, 225, 176, 0.12);
  color: var(--emerald);
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(18, 31, 28, 0.95), rgba(9, 17, 15, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto 40px 24px 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54, 225, 176, 0.9), transparent);
}

.profile-frame {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(98, 236, 188, 0.28), transparent 28%),
    linear-gradient(140deg, rgba(11, 25, 22, 0.9), rgba(17, 41, 35, 0.9));
  overflow: hidden;
}

.profile-badge {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(54, 225, 176, 0.22), rgba(123, 36, 56, 0.16));
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.28);
  font-family: "Manrope", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--text);
}

.hero-card-body {
  padding: 26px 10px 8px;
}

.hero-card-body h3 {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  color: rgba(237, 246, 241, 0.95);
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.mini-list li {
  position: relative;
  padding-left: 1.15rem;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 18px rgba(54, 225, 176, 0.8);
}

.about-grid,
.skills-grid,
.timeline-grid {
  display: grid;
  gap: 24px;
}

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

.info-card,
.skill-card,
.timeline-card,
.contact-card,
.project-card,
.project-feature {
  background: linear-gradient(180deg, rgba(21, 34, 30, 0.9), rgba(11, 19, 17, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.info-card {
  padding: 28px 22px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(54, 225, 176, 0.1);
  color: var(--emerald);
  font-size: 1.2rem;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-family: "Manrope", sans-serif;
  color: rgba(237, 246, 241, 0.95);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-card a {
  color: var(--text);
}

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

.skill-card {
  padding: 24px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover,
.project-card:hover,
.info-card:hover,
.timeline-card:hover {
  transform: translateY(-6px);
  border-color: rgba(54, 225, 176, 0.35);
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.26);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 18px;
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(54, 225, 176, 0.09);
  color: var(--emerald);
}

.skill-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-family: "Manrope", sans-serif;
  color: rgba(237, 246, 241, 0.95);
}

.skill-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-card li {
  padding: 0.52rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.86rem;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
}

.project-feature-image {
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
}

.project-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-feature:hover .project-feature-image img,
.project-card:hover img {
  transform: scale(1.04);
}

.project-feature-copy {
  padding: 12px 12px 12px 0;
}

.project-feature-copy h3,
.project-card h3 {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  color: rgba(237, 246, 241, 0.95);
}

.project-feature-copy p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(54, 225, 176, 0.18);
  background: rgba(54, 225, 176, 0.08);
  color: #dffef3;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.project-links {
  margin-top: 22px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-body {
  padding: 22px 22px 24px;
}

.project-card h3 {
  font-size: 1.34rem;
}

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

.timeline-card {
  position: relative;
  padding: 26px 22px 24px;
}

.timeline-card h3 {
  margin: 0 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.18rem;
  color: rgba(237, 246, 241, 0.95);
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
}

.timeline-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-strong));
  box-shadow: 0 0 18px rgba(54, 225, 176, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.contact-copy h2 {
  margin: 0 0 16px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.contact-copy > p {
  margin: 0;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.contact-list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 24, 21, 0.7);
}

.contact-list span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}

.contact-list strong {
  font-size: 1.02rem;
  color: rgba(237, 246, 241, 0.95);
}

.contact-card {
  padding: 26px;
}

.field-row {
  margin-bottom: 18px;
}

.field-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.field-row span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-row input,
.field-row textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(7, 16, 14, 0.8);
  color: var(--text);
  resize: vertical;
}

.field-row input:focus,
.field-row textarea:focus {
  outline: none;
  border-color: rgba(54, 225, 176, 0.5);
  box-shadow: 0 0 0 3px rgba(54, 225, 176, 0.12);
}

.site-footer {
  padding: 22px 0 46px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-strong));
  color: #04140f;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 18px 36px rgba(54, 225, 176, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .project-feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(9, 18, 16, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 84px 0;
  }

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

  .brand-text {
    font-size: 0.88rem;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 2.9rem;
  }

  .hero-copy h2 {
    font-size: 1.15rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .social-row {
    flex-direction: column;
  }

  .social-row a {
    justify-content: center;
  }

  .profile-frame {
    min-height: 260px;
  }

  .profile-badge {
    width: 130px;
    height: 130px;
    font-size: 2.8rem;
  }
}

