@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Raleway:wght@100;200;300;400;500;600;700;800;900&family=Source+Code+Pro:wght@200;300;400;500;600;700;800;900&display=swap");

/* ============================================================
   DESIGN TOKENS
   Single source of truth for colour, spacing, radius, shadow,
   typography and layout. Rules are migrated onto these vars
   incrementally so the visual refresh stays reviewable.
   ============================================================ */
:root {
  /* Surfaces & ink */
  --bg: #0e0f13;
  --surface: #16181d;
  --surface-2: #1d2027;
  --border: #2a2e37;
  --text: #f4f6fa;
  --muted: #a0a7b4;

  /* Brand accent */
  --accent: #64f4ac;
  --accent-600: #3bd88c;
  --accent-ink: #06211a;
  --accent-2: #8aa2ff;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 64px;
  --sp-7: 100px;

  /* Typography & layout */
  --font-display: "Space Grotesk", "Raleway", sans-serif;
  --font-body: "Source Code Pro", ui-monospace, monospace;
  --maxw: 1200px;
}

/* ---------- GLOBAL STYLING ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
  font-family: "Source Code Pro", monospace;
}

html {
  scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #64f4ac;
  outline-offset: 3px;
}

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

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

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

h1 {
  font-size: 50px;
  font-weight: 400;
  line-height: 64px;
  color: #fefefe;
}

h2 {
  font-size: 46px;
  line-height: 54px;
  font-weight: 400;
  color: #fefefe;
}

h4 {
  font-size: 20px;
  font-weight: 400;
  color: #fefefe;
}

h6 {
  font-weight: 700;
  font-size: 12px;
  color: #fefefe;
}

p {
  font-size: 16px;
  font-weight: 400;
  color: #fefefe;
  margin: 15px 0 20px 0;
}

.section-p1 {
  padding: 40px 80px;
}

.section-m1 {
  margin: 40px 0;
}

body {
  width: 100%;
  background-color: #2d2e32;
}

body::selection {
  color: #000000;
  background: #64f4ac;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CACACA;
  transition: 0.3s ease;
  border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FEFEFE;
}



/* ---------- SECTION HEADER ---------- */
#header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2d2e3273;
  border: 1px solid #2d2e3240;
  box-shadow: 0 0 10px 1px #00000040;
  backdrop-filter: blur(15px);
  color: #fefefe;
  position: sticky;
  z-index: 1;
  top: 0;
  left: 0;
  margin: 0;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#header.scrolled {
  background-color: #2d2e32ee;
  box-shadow: 0 4px 20px 2px #00000060;
}

.navbar-title {
  display: flex;
  align-items: center;
}

.title-first-name {
  padding: 0 7.5px;
  font-weight: 600;
  color: #fefefe;
  font-family: "Raleway", sans-serif;
  font-size: 24px;
}

.title-last-name {
  font-size: 24px;
  font-weight: 400;
  color: #cacaca;
  font-family: "Raleway", sans-serif;
}

.navbar-menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-menu li {
  list-style: none;
  padding: 0 20px;
  position: relative;
}

.navbar-menu .active {
  color: #64f4ac;
  font-weight: 900;
}

.navbar-menu li a {
  position: relative;
  color: #fefefe;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: 0.3s ease;
}

.navbar-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #64f4ac;
  transition: width 0.3s ease;
}

.navbar-menu li a:hover {
  color: #64f4ac;
  font-weight: 900;
}

.navbar-menu li a:hover::after {
  width: 100%;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fefefe;
  transition: 0.3s ease;
}

.social-media {
  display: flex;
  align-items: center;
}

.social-media li {
  display: flex;
  padding: 0 16px;
  align-items: center;
  list-style: none;
}

.social-media li i {
  font-size: 14px;
  transition: 0.3s ease;
}

.social-media li a {
  color: #fefefe;
  text-decoration: none;
  padding: 0 5px;
  font-size: 12px;
  transition: 0.3s ease;
}

.social-media li:nth-child(1):hover i {
  color: #0077b5;
}

.social-media li:nth-child(3):hover i {
  color: #ea4335;
}

.social-media li:hover a {
  font-weight: 800;
}

/* ---------- SECTION BODY CONTENT ---------- */
#content-body {
  display: flex;
  background-color: #2d2e32;
  align-items: flex-start;
  height: 90vh;
  align-content: center;
  align-items: center;
  justify-content: space-around;
  padding: 100px 0 0 100px;
  margin-bottom: 10vh;
  max-height: 100vh;
}

.developer-intro {
  display: flex;
  align-items: center;
}

.developer-intro p {
  padding: 5px 10px;
  margin: 0 20px 0 0;
  background-color: #64f4ac;
  color: #2d2e32;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2.5px;
  align-items: center;
  text-align: center;
  transition: 0.3s ease;
  cursor: pointer;
}

.developer-intro p:hover {
  font-weight: 900;
}

.body-title h1 {
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1.5px;
  padding: 35px 0 0 0;
}

.body-title p {
  font-size: 12px;
  padding: 20px 0;
  color: #cacaca;
  font-weight: 500;
  line-height: 25px;
}

.body-title a {
  font-size: 16px;
  color: #64f4ac;
  font-weight: 600;
  padding: 20px 0;
  margin: 20px 0;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 25px;
}

.body-title a.download-cv-btn,
.navbar-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: black;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.body-title a.download-cv-btn {
  padding: 15px 30px;
}

.body-title a.download-cv-btn:hover,
.navbar-cv-btn:hover {
  color: #fff;
  background-color: #088178;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #0881783a;
}

.navbar-cv-btn {
  padding: 10px 18px;
  font-size: 12px;
  margin-left: 20px;
}

.body-tail {
  display: flex;
  align-items: start;
  padding: 100px 0 0 0;
}

.body-tail p {
  color: #cacaca;
  font-size: 16px;
  font-weight: 500;
  padding: 0 40px 0 5px;
}

.body-part-2 {
  position: relative;
}

.background-circle {
  background: #28292d;
  border-radius: 50%;
  width: 550px;
  height: 550px;
  z-index: 9;
  box-shadow: 0 0 20px #00000080;
}

.hoodie-guy {
  position: absolute;
  background: url(assets/DSC_6144.jpg);
  top: 100px;
  height: 550px;
  width: 550px;
  background-size: cover;
}

.circle {
  position: relative;
  top: 400px;
  left: 220px;
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
  animation: animateCircle 40s linear infinite;
}

@keyframes animateCircle {
  0% {
    transform: perspective(1000px) rotateY(0deg) rotateX(15deg) translateY(-30px);
  }

  100% {
    transform: perspective(1000px) rotateY(360deg) rotateX(15deg) translateY(-30px);
  }
}

.circle span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2d2e32;
  box-shadow: 0px 0px 5px #00000080;
  border-radius: 50%;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * calc(360deg / 8))) translateZ(300px);
}

.circle span img {
  position: relative;
  top: 12px;
  left: 12px;
  object-fit: cover;
}

/* ----------INTRODUCTION---------- */
#introduction {
  display: flex;
  justify-content: space-between;
  padding: 100px;
  background-color: #25262a;
  min-height: 95vh;
  align-items: center;
  scroll-margin-top: 100px;
}

.cards {
  min-width: 50%;
  display: flex;
  flex-direction: column;
}

.design-card {
  max-width: 80%;
  min-height: 150px;
  background-color: #2d2e32;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px #00000040;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-card:hover {
  box-shadow: 0 12px 25px #00000060;
  transform: translateY(-4px);
  cursor: pointer;
}

.design-card.active {
  background-color: #00b840;
}

.design-card.active p {
  color: #000000;
  font-weight: 700;
}

.design-card div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: #fff;
  transition: 0.3s ease;
}

.design-card:hover div {
  color: #64f4ac;
}

.design-card div h3 {
  font-weight: 500;
}

.design-card:hover div h3 {
  font-weight: 600;
}

.design-card p {
  font-size: 14px;
  font-weight: 600;
  color: #a3a4a8;
}

.design-card a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.design-card:hover a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.introduction-text {
  display: block;
  min-width: 50%;
  padding-right: 175px;
}

.introduction-text p:nth-child(1) {
  font-size: 14px;
  color: #a3a4a8;
  font-weight: 800;
}

.introduction-text h2 {
  margin: 20px 0;
}

.introduction-text h4 {
  font-size: 26px;
  font-style: italic;
}

.introduction-text p {
  font-size: 18px;
  color: #a3a4a8;
  font-weight: 600;
}

/* ----------EXPERIENCE---------- */
#experience {
  background-color: #2d2e32;
  padding: 100px 150px;
  scroll-margin-top: 100px;
}

.experience-title {
  max-width: 60%;
  margin-bottom: 50px;
}

.experience-title h3 {
  font-size: 40px;
  color: #fff;
  font-weight: 500;
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid #64f4ac;
}

.experience-title p {
  font-size: 14px;
  color: #a3a4a8;
  font-weight: 400;
  margin: 0;
  padding-left: 18px;
}

.timeline-item {
  background-color: #25262a;
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 20px;
  border-left: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #00000050;
  border-left-color: #64f4ac;
}

.timeline-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-header h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.timeline-date {
  font-size: 13px;
  color: #64f4ac;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-org {
  font-size: 14px;
  color: #a3a4a8;
  margin: 6px 0 15px 0;
}

.timeline-item ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-item li {
  font-size: 15px;
  color: #cacaca;
  line-height: 24px;
  margin-bottom: 6px;
}

/* ----------EDUCATION---------- */
#education {
  background-color: #25262a;
  padding: 100px 150px;
  scroll-margin-top: 100px;
}

/* ----------SKILLS---------- */
#skills {
  background-color: #2d2e32;
  padding: 100px 150px;
  scroll-margin-top: 100px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-group {
  background-color: #25262a;
  border-radius: 8px;
  padding: 20px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #00000050;
}

.skill-group h4 {
  font-size: 16px;
  color: #64f4ac;
  font-weight: 600;
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags p {
  font-size: 12px;
  background-color: #7c7d8180;
  color: #fff;
  margin: 0;
  padding: 5px 8px;
  border-radius: 3px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.skill-tags p:hover {
  background-color: #64f4ac;
  color: #1c1d20;
}

/* ----------CERTIFICATIONS---------- */
#certifications {
  background-color: #25262a;
  padding: 100px 150px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  scroll-margin-top: 100px;
}

#certifications .skill-group {
  flex: 1;
}

#certifications .skill-group ul {
  margin: 0;
  padding-left: 18px;
}

#certifications .skill-group li {
  font-size: 14px;
  color: #cacaca;
  line-height: 24px;
}

/* ----------LATEST WORKS---------- */
#latest-works {
  min-height: auto;
  background-color: #25262a;
  padding: 100px 150px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  scroll-margin-top: 100px;
}

.left-project {
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.latest-work-title h3 {
  font-size: 40px;
  color: #fff;
  font-weight: 500;
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid #64f4ac;
}

.latest-work-title p {
  font-size: 14px;
  color: #a3a4a8;
  font-weight: 400;
  margin: 0;
  padding-left: 18px;
}

.project-card {
  min-width: 35vw;
  min-height: auto;
  max-height: none;
  background-color: #2d3037;
  padding: 25px;
  border-radius: 15px;
  margin: 20px 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px #00000060;
}

.project-card-1 {
  background: linear-gradient(180deg, #16191e, #252628);
}

.project-card-2 {
  background: linear-gradient(225deg, #2c2940, #5a4073);
}

.project-card-3 {
  background: linear-gradient(225deg, #01403A, #025951);
}

.project-card-4 {
  background: linear-gradient(225deg, #402c2c, #734040);
}

.project-card-5 {
  background: linear-gradient(225deg, #1e2c40, #1f4073);
}

.project-card .title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.project-card .title h3 {
  font-size: 24px;
  color: #fff;
  font-weight: 400;
}

.project-card .title .tech-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.project-card .title .tech-stack p {
  font-size: 12px;
  background-color: #7c7d8180;
  color: #fff;
  margin: 0;
  padding: 5px 8px;
  border-radius: 3px;
  max-height: 25px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.project-card .title .tech-stack p:hover {
  background-color: #64f4ac;
  color: #1c1d20;
}

.project-desc {
  font-size: 14px;
  color: #cacaca;
  margin: 0;
}

.all-projects a {
  color: #64f4ac;
}

.all-projects a h3 {
  font-size: 26px;
}

.all-projects p {
  font-size: 14px;
  color: #a3a4a8;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 26px;
}

/* ----------AWARDS---------- */
#testimonial {
  height: auto;
  width: 100%;
  padding: 100px 150px;
  scroll-margin-top: 100px;
}

.testimonial-title {
  display: flex;
  flex-direction: row;
  max-width: 50%;
  justify-content: space-between;
  align-items: end;
}

.testimonial-title h2 {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 4px solid #64f4ac;
}

.testimonial-title p {
  color: #a3a4a8;
  font-size: 14px;
  align-self: end;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 6px;
}

.awards-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 40px 0;
}

.award-card {
  flex: 1;
  background-color: #25262a;
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px #00000050;
}

.award-card i {
  color: #64f4ac;
  font-size: 22px;
  margin-bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #64f4ac1f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.award-card p {
  color: #a3a4a8;
  font-size: 14px;
  margin: 0;
}

/* ----------FOOTER---------- */
#footer {
  display: flex;
  flex-direction: row;
  padding: 100px;
  background-color: #25262a;
  height: 100vh;
  scroll-margin-top: 40px;
}

.footer-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-left h2 {
  font-size: 32px;
  line-height: 40px;
}

.footer-left h2 a {
  color: #64f4ac;
  text-underline-offset: 8px;
}

.email-form {
  display: flex;
  flex-direction: column;
  height: 300px;
  width: 80%;
  justify-content: space-between;
  border-radius: 10px;
  padding: 60px 25% 40px 20px;
  border: 1px solid #2d2e3240;
  background-color: #2d2e3273;
  box-shadow: 0 0 10px 1px #00000040;
  backdrop-filter: blur(15px);
  background-image: url(assets/email-background.png);
  background-size: cover;
}

.email-form h2 {
  font-size: 30px;
  letter-spacing: -1.5px;
}

.email-form h2 span {
  font-weight: 600;
  color: #64f4ac;
}

.email-form input {
  height: 36px;
  margin: 0;
  border-radius: 8px;
  border: none;
  padding: 4px 8px;
}

.email-form div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.email-form div input {
  width: 65%;
}

.email-form div button {
  height: 36px;
  width: 100px;
  margin: 0;
  border-radius: 8px;
  border: none;
  background-color: #64f4ac;
  cursor: pointer;
  color: #25262a;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s ease;
}

.email-form div button:hover {
  background-color: #45A877;
}

.footer-title {
  display: flex;
  flex-direction: row;
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 185px 0 15px 0;
}

.footer-email-intro {
  display: flex;
  flex-direction: column;
}

.footer-email-intro p {
  font-size: 12px;
  color: #a3a4a8;
  font-weight: 600;
}

.footer-email-intro h6 {
  font-size: 18px;
  font-weight: 400;
  color: #7C7D81;
  margin-top: 10px;
}

.footer-email-intro h3 {
  font-size: 26px;
  color: #FFF;
  font-weight: 400;
  margin: 10px 0;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.footer-menu li {
  list-style: none;
  padding: 0 20px;
  position: relative;
  margin: 5px 0;
}

.footer-menu .active {
  color: #64f4ac;
  font-weight: 900;
}

.footer-menu li a {
  color: #fefefe;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: 0.3s ease;
}

.footer-menu li a:hover {
  color: #64f4ac;
  font-weight: 900;
}

.social-icons a {
  text-decoration: none;
}

.social-icons a i {
  color: #FFF;
  margin: 0 5px;
  transition: 0.3s ease;
  cursor: pointer;
}

.social-icons a:nth-child(1) i:hover {
  color: #0072b1;
}

.social-icons a:nth-child(3) i:hover {
  color: #ea4335;
}

.social-icons a:nth-child(4) i:hover {
  color: #29a9eb;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  #header {
    flex-wrap: wrap;
    row-gap: 15px;
  }

  .hamburger-btn {
    display: flex;
    z-index: 2;
  }

  #header nav {
    order: 3;
    width: 100%;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 15px 0 0 0;
    gap: 10px;
  }

  .navbar-menu.open {
    display: flex;
  }

  .navbar-menu li {
    padding: 0;
  }

  .hamburger-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  #content-body {
    flex-direction: column;
    height: auto;
    max-height: none;
    padding: 60px 20px;
    text-align: center;
  }

  .body-part-1 {
    align-items: center;
  }

  .developer-intro,
  .body-tail {
    justify-content: center;
  }

  .body-title h1 {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-cta {
    flex-wrap: wrap;
    justify-content: center;
  }

  .body-part-2 {
    margin-top: 40px;
    transform: scale(0.7);
  }
}

@media (max-width: 600px) {
  .navbar-cv-btn span,
  .navbar-cv-btn {
    font-size: 11px;
    padding: 8px 12px;
  }

  .body-title h1 {
    font-size: 26px;
    line-height: 34px;
  }

  .body-part-2 {
    transform: scale(0.55);
  }
}

@media (max-width: 900px) {
  #experience {
    padding: 60px 20px;
  }

  .experience-title {
    max-width: 100%;
  }

  #education {
    padding: 60px 20px;
  }

  #skills {
    padding: 60px 20px;
  }

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

  #certifications {
    flex-direction: column;
    padding: 60px 20px;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  #introduction {
    flex-direction: column;
    padding: 60px 20px;
    min-height: auto;
  }

  .cards,
  .introduction-text {
    min-width: 100%;
    padding-right: 0;
  }

  .design-card {
    max-width: 100%;
  }

  .introduction-text {
    margin-top: 40px;
  }
}

@media (max-width: 900px) {
  #latest-works {
    flex-direction: column;
    padding: 60px 20px;
    min-height: auto;
  }

  .project-card {
    min-width: 100%;
    min-height: auto;
    max-height: none;
  }
}

@media (max-width: 900px) {
  #testimonial {
    height: auto;
    padding: 60px 20px;
  }

  .testimonial-title {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .awards-grid {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  #footer {
    flex-direction: column;
    height: auto;
    padding: 60px 20px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    padding: 0;
  }

  .footer-right {
    margin-top: 50px;
  }

  .email-form {
    width: 100%;
    height: auto;
    padding: 40px 20px;
  }

  .email-form div {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .email-form div input,
  .email-form div button {
    width: 100%;
  }
}
/* ============================================================
   BASE LAYER (rebrand) — apply design tokens globally
   ============================================================ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
img { max-width: 100%; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   TYPOGRAPHY (rebrand) — display headings + fluid scale
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; }
p  { color: var(--muted); line-height: 1.7; }

/* ============================================================
   SURFACES (rebrand) — map sections & cards onto tokens
   ============================================================ */
#content-body { background: var(--bg); }
#experience, #skills { background: var(--bg); }
#introduction, #education, #certifications, #latest-works, #footer { background: var(--surface); }
#header {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-color: var(--border);
}
#header.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.design-card,
.timeline-item,
.skill-group,
.award-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.background-circle { background: var(--surface-2); }
.circle span { background: var(--surface-2); }

/* ============================================================
   LIGHT THEME (rebrand) — token overrides
   ============================================================ */
[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --border: #d9dee7;
  --text: #11151c;
  --muted: #55606f;
  --accent: #0ea968;
  --accent-600: #0b8a54;
  --accent-ink: #ffffff;
  --accent-2: #4361ee;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);
}

/* ============================================================
   THEME TOGGLE (rebrand)
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   SKIP LINK (a11y)
   ============================================================ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   HEADER POLISH (rebrand)
   ============================================================ */
#header { padding: 16px clamp(20px, 5vw, 48px); }
.title-first-name,
.title-last-name { font-family: var(--font-display); }
.title-last-name { color: var(--muted); }
.navbar-menu li a { color: var(--text); }
.navbar-menu .active,
.navbar-menu li a:hover { color: var(--accent); }
.navbar-cv-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-full);
}
.navbar-cv-btn:hover {
  background: var(--accent-600);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   MOBILE MENU (rebrand)
   ============================================================ */
@media (max-width: 900px) {
  .navbar-menu.open {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }
  .navbar-menu li a { font-size: 15px; }
  .hamburger-btn span { background: var(--text); }
}

/* ============================================================
   BRAND MONOGRAM (rebrand)
   ============================================================ */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--r-md);
}

/* ============================================================
   HERO LAYOUT (rebrand)
   ============================================================ */
#content-body {
  max-width: var(--maxw);
  margin: 0 auto 10vh;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 5vw, 40px) 0;
  gap: clamp(24px, 5vw, 60px);
}

/* ============================================================
   HERO BADGES (rebrand)
   ============================================================ */
.developer-intro p {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-weight: 600;
}
.developer-intro p:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ============================================================
   HERO TITLE (rebrand)
   ============================================================ */
.body-title h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text);
}
.body-title > p {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}

/* ============================================================
   HERO TYPING (rebrand)
   ============================================================ */
.hero-role {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}
.hero-role .typed { color: var(--accent); font-weight: 600; }
.hero-role .typed::after {
  content: "|";
  margin-left: 2px;
  color: var(--accent);
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ============================================================
   HERO CTA (rebrand)
   ============================================================ */
.body-title a[href^="https://t.me"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.body-title a[href^="https://t.me"]:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.body-title a.download-cv-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.body-title a.download-cv-btn:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: none;
}

/* ============================================================
   HERO STATS (rebrand)
   ============================================================ */
.body-tail { gap: 16px; padding-top: 48px; }
.body-tail h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--accent);
}
.body-tail p {
  color: var(--muted);
  font-size: 13px;
  padding: 0 24px 0 6px;
}

/* ============================================================
   HERO VISUAL (rebrand)
   ============================================================ */
.background-circle {
  background: radial-gradient(circle at 30% 30%, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.body-part-2::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   HERO GRID BACKDROP (rebrand)
   ============================================================ */
#content-body {
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* ============================================================
   HERO RESPONSIVE (rebrand)
   ============================================================ */
@media (max-width: 900px) {
  #content-body { padding-top: 90px; }
  .hero-role { text-align: center; }
  .developer-intro { flex-wrap: wrap; gap: 10px; }
  .body-tail { justify-content: center; flex-wrap: wrap; }
}

/* ============================================================
   SECTION RHYTHM (rebrand) — consistent vertical padding
   ============================================================ */
#introduction,
#experience,
#education,
#skills,
#certifications,
#latest-works,
#testimonial {
  padding: clamp(60px, 10vh, 100px) clamp(20px, 6vw, 150px);
}
.experience-title h3,
.latest-work-title h3,
.testimonial-title h2 {
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

/* ============================================================
   SERVICES CARDS (rebrand)
   ============================================================ */
.design-card {
  border-radius: var(--r-lg);
  padding: 24px;
}
.design-card div { color: var(--text); }
.design-card div i { color: var(--accent); font-size: 20px; }
.design-card p { color: var(--muted); }
.design-card a { color: var(--accent); }
.design-card.active {
  background: var(--surface-2);
  border-color: var(--accent);
}
.design-card.active div { color: var(--accent); }
.design-card.active p { color: var(--muted); font-weight: 600; }

/* ============================================================
   ABOUT (rebrand)
   ============================================================ */
.introduction-text p:nth-child(1) {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.introduction-text h2 { color: var(--text); }
.introduction-text h4 {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}
.introduction-text p { color: var(--muted); }

/* ============================================================
   SERVICES ACTIVE INDICATOR (rebrand)
   ============================================================ */
.design-card { position: relative; overflow: hidden; }
.design-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

/* ============================================================
   ABOUT LEAD (rebrand)
   ============================================================ */
.introduction-text p:last-child {
  font-size: 17px;
  line-height: 1.8;
}
.introduction-text h2 { margin-bottom: 8px; }

/* ============================================================
   FIX: scope hero grid to a backdrop pseudo-element so the
   radial mask no longer fades the hero text/stats.
   ============================================================ */
#content-body {
  -webkit-mask-image: none;
          mask-image: none;
  background-image: none;
  position: relative;
}
#content-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
.body-part-1,
.body-part-2 { position: relative; z-index: 1; }

/* ============================================================
   TIMELINE (rebrand)
   ============================================================ */
.timeline-item {
  position: relative;
  border-radius: var(--r-lg);
  border-left: 3px solid var(--border);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item:hover { border-left-color: var(--accent); }

/* ============================================================
   EXPERIENCE CARDS (rebrand)
   ============================================================ */
.timeline-item { background: var(--surface-2); }
.timeline-header h4 { font-family: var(--font-display); color: var(--text); }
.timeline-org { color: var(--muted); }
.timeline-item li { color: var(--muted); }
.timeline-date { color: var(--accent); }

/* ============================================================
   EDUCATION (rebrand) — secondary accent variant
   ============================================================ */
#education .timeline-item::before { background: var(--accent-2); }
#education .timeline-item:hover { border-left-color: var(--accent-2); }
#education .timeline-date { color: var(--accent-2); }

/* ============================================================
   DATE BADGES (rebrand)
   ============================================================ */
.timeline-date {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
#education .timeline-date {
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
}

/* ============================================================
   STAGGERED REVEAL (rebrand)
   ============================================================ */
.timeline-item:nth-of-type(2) { transition-delay: .06s; }
.timeline-item:nth-of-type(3) { transition-delay: .12s; }
.timeline-item:nth-of-type(4) { transition-delay: .18s; }
.timeline-item:nth-of-type(5) { transition-delay: .24s; }
.timeline-item:nth-of-type(6) { transition-delay: .30s; }

/* ============================================================
   TIMELINE RESPONSIVE (rebrand)
   ============================================================ */
@media (max-width: 900px) {
  .timeline-item { padding: 20px; }
  .timeline-header { flex-direction: column; align-items: flex-start; }
  .timeline-item::before { left: -6px; top: 22px; }
}

/* ============================================================
   SKILLS GRID (rebrand)
   ============================================================ */
#skills .skills-grid { gap: var(--sp-3); }
#skills .skill-group {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
#skills .skill-group h4 { color: var(--accent); }

/* ============================================================
   SKILLS CATEGORY MARKERS (rebrand)
   ============================================================ */
#skills .skill-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}
#skills .skill-group h4::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

/* ============================================================
   SKILL CHIPS (rebrand)
   ============================================================ */
.skill-tags p {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px 12px;
}
.skill-tags p:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   SKILLS RESPONSIVE (rebrand)
   ============================================================ */
@media (max-width: 600px) {
  .skill-tags p { font-size: 11px; padding: 4px 10px; }
  #skills .skill-group { padding: 18px; }
}

/* ============================================================
   PROJECTS LAYOUT (rebrand)
   ============================================================ */
#latest-works {
  gap: clamp(20px, 4vw, 40px);
  align-items: flex-start;
}
.left-project,
.right-project {
  flex: 1;
  width: 50%;
  align-items: stretch;
}
.project-card {
  min-width: 0;
  width: 100%;
}

/* ============================================================
   PROJECT CARD (rebrand) — unify surfaces
   ============================================================ */
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.project-card-1,
.project-card-2,
.project-card-3,
.project-card-4,
.project-card-5 { background: var(--surface-2); }
.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .85;
}
.project-card .title h3 { font-family: var(--font-display); color: var(--text); }
.project-desc { color: var(--muted); }

/* ============================================================
   TECH CHIPS (rebrand)
   ============================================================ */
.project-card .title .tech-stack p {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 10px;
  max-height: none;
}
.project-card .title .tech-stack p:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ============================================================
   PROJECT HOVER (rebrand)
   ============================================================ */
.project-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   ALL PROJECTS CTA (rebrand)
   ============================================================ */
.all-projects {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-top: 20px;
  width: 100%;
}
.all-projects a h3 {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.all-projects a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.all-projects p { color: var(--muted); }
.all-projects p a { color: var(--accent); }

/* ============================================================
   FEATURED PROJECT (rebrand)
   ============================================================ */
.project-card-2 {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-md);
}
.project-card-2::after {
  content: "Featured";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: var(--r-full);
}

/* ============================================================
   PROJECTS RESPONSIVE (rebrand)
   ============================================================ */
@media (max-width: 900px) {
  #latest-works { flex-direction: column; }
  .left-project,
  .right-project { width: 100%; }
}

/* ============================================================
   AWARDS (rebrand)
   ============================================================ */
#testimonial .award-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.award-card i {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.award-card h4 { font-family: var(--font-display); color: var(--text); }
.award-card p { color: var(--muted); }

/* ============================================================
   CERTIFICATIONS (rebrand)
   ============================================================ */
#certifications { gap: var(--sp-3); }
#certifications .skill-group {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
#certifications .skill-group h4 {
  color: var(--accent);
  font-family: var(--font-display);
}
#certifications .skill-group li { color: var(--muted); }

/* ============================================================
   LANGUAGES (rebrand)
   ============================================================ */
#certifications .skill-group:last-child ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#certifications .skill-group:last-child li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

/* ============================================================
   FOOTER LAYOUT (rebrand)
   ============================================================ */
#footer {
  height: auto;
  border-top: 1px solid var(--border);
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(60px, 10vh, 100px);
}
.footer-left h2 { font-family: var(--font-display); color: var(--text); }
.footer-right { padding: 0; justify-content: flex-start; gap: 40px; }
.footer-email-intro p { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.footer-email-intro h6 { color: var(--muted); }
.footer-email-intro h3 { color: var(--text); }
.footer-menu li a:hover,
.footer-menu .active { color: var(--accent); }

/* ============================================================
   CONTACT FORM (rebrand)
   ============================================================ */
.email-form {
  background-image: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  height: auto;
  padding: 28px;
  gap: 14px;
}
.email-form h2 { color: var(--text); }
.email-form h2 span { color: var(--accent); }
.email-form input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  height: 42px;
}
.email-form input::placeholder { color: var(--muted); }
.email-form div button {
  background: var(--accent);
  color: var(--accent-ink);
  height: 42px;
  font-weight: 700;
}
.email-form div button:hover { background: var(--accent-600); }
.form-status { font-size: 13px; margin: 6px 0 0; }
.form-status.error { color: #ff6b6b; }
.form-status.ok { color: var(--accent); }

/* ============================================================
   SOCIAL ICONS (rebrand)
   ============================================================ */
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface-2);
  transition: border-color .25s ease, transform .25s ease;
}
.social-icons a:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-icons a i { margin: 0; color: var(--text); }
.social-icons a:hover i { color: var(--accent); }

/* ============================================================
   SITE CREDIT BAR (rebrand)
   ============================================================ */
.site-credit {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px;
}
.site-credit p { color: var(--muted); font-size: 13px; margin: 0; }

/* ============================================================
   FOOTER RESPONSIVE (rebrand)
   ============================================================ */
@media (max-width: 900px) {
  #footer { padding: 60px 20px; }
  .footer-right { padding: 0; margin-top: 40px; }
  .email-form { width: 100%; padding: 22px; }
}

/* ============================================================
   BACK TO TOP (rebrand)
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 50;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-600); }

/* ============================================================
   SCROLL PROGRESS (rebrand)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 100;
  pointer-events: none;
}

/* ============================================================
   A11Y UTILITIES (rebrand)
   ============================================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   CONTRAST + REDUCED MOTION (rebrand)
   ============================================================ */
:root { --muted: #acb3bf; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-role .typed::after { animation: none; }
  .circle { animation: none; }
  .back-to-top,
  .project-card,
  .timeline-item,
  .design-card,
  .skill-group,
  .award-card { transition: none; }
}

/* ============================================================
   PRINT STYLES (rebrand) — final polish
   ============================================================ */
@media print {
  #header,
  .scroll-progress,
  .back-to-top,
  .theme-toggle,
  .email-form,
  .hoodie-guy-animation-class,
  .background-circle { display: none !important; }
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --text: #000000;
    --muted: #333333;
    --border: #cccccc;
  }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}

/* ============================================================
   FIX: light-theme text contrast in header & footer
   (original template forced #fefefe text that vanished on light)
   ============================================================ */
#header { color: var(--text); }
.title-first-name { color: var(--text); }
.title-last-name { color: var(--muted); }
.social-media li a,
.social-media li i { color: var(--text); }
.footer-menu li a { color: var(--text); }

/* ============================================================
   ANIMATIONS — hero entrance, staggered grids, tab fades,
   CTA shine, glow pulse
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px #00000080; }
  50%      { box-shadow: 0 0 45px rgba(100, 244, 172, 0.25); }
}
@keyframes shine {
  from { left: -75%; }
  to   { left: 125%; }
}

/* Hero entrance */
.developer-intro,
.body-title > *,
.body-tail { animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.developer-intro            { animation-delay: .05s; }
.body-title > :nth-child(1) { animation-delay: .15s; }
.body-title > :nth-child(2) { animation-delay: .25s; }
.body-title > :nth-child(3) { animation-delay: .35s; }
.body-title > :nth-child(4) { animation-delay: .45s; }
.body-tail                  { animation-delay: .6s; }
.body-part-2 { animation: fadeIn 1.1s ease .3s both; }
.background-circle { animation: glowPulse 6s ease-in-out infinite; }

/* Staggered children inside revealed grids */
.reveal .skill-group,
.reveal .award-card,
.reveal .project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease, border-color .3s ease;
}
.reveal.visible .skill-group,
.reveal.visible .award-card,
.reveal.visible .project-card { opacity: 1; transform: none; }
.reveal.visible > .skill-group:nth-child(2),
.reveal.visible > .award-card:nth-child(2),
.reveal.visible > .project-card:nth-child(2) { transition-delay: .08s; }
.reveal.visible > .skill-group:nth-child(3),
.reveal.visible > .award-card:nth-child(3),
.reveal.visible > .project-card:nth-child(3) { transition-delay: .16s; }
.reveal.visible > .skill-group:nth-child(4),
.reveal.visible > .award-card:nth-child(4),
.reveal.visible > .project-card:nth-child(4) { transition-delay: .24s; }
.reveal.visible > .skill-group:nth-child(5),
.reveal.visible > .award-card:nth-child(5),
.reveal.visible > .project-card:nth-child(5) { transition-delay: .32s; }
.reveal.visible > .skill-group:nth-child(6),
.reveal.visible > .award-card:nth-child(6),
.reveal.visible > .project-card:nth-child(6) { transition-delay: .40s; }
.reveal.visible .project-card:hover,
.reveal.visible .award-card:hover { transform: translateY(-6px); transition-delay: 0s; }

/* Intro tab switch fade */
.introduction-text.fade-in { animation: fadeUp .45s ease both; }

/* CTA shine sweep on hover */
.hero-cta a { position: relative; overflow: hidden; }
.hero-cta a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.hero-cta a:hover::after { animation: shine .7s ease; }

/* Skill tags pop on hover */
.skill-tags p { transition: transform .2s ease; }
.skill-tags p:hover { transform: translateY(-3px) scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .developer-intro,
  .body-title > *,
  .body-tail,
  .body-part-2,
  .background-circle,
  .introduction-text.fade-in,
  .hero-cta a:hover::after { animation: none; }
  .reveal .skill-group,
  .reveal .award-card,
  .reveal .project-card { opacity: 1; transform: none; transition: none; }
  .skill-tags p:hover { transform: none; }
}

/* ============================================================
   ANIMATIONS II — timeline slide-in, dot pulse, heading wipe,
   hero float, back-to-top nudge
   ============================================================ */
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 4px var(--bg), 0 0 0 4px rgba(100, 244, 172, .45); }
  70%  { box-shadow: 0 0 0 4px var(--bg), 0 0 0 12px rgba(100, 244, 172, 0); }
  100% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 12px rgba(100, 244, 172, 0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes nudgeUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Timeline cards slide in from the left; dot pulses once in view */
.timeline-item.reveal { transform: translateX(-30px); }
.timeline-item.reveal.visible { transform: none; }
.timeline-item.reveal.visible:hover { transform: translateY(-3px); }
.timeline-item.visible::before { animation: dotPulse 2.4s ease-out .4s 3; }

/* Section headings wipe in */
.experience-title.visible h3,
.experience-title.visible p,
.testimonial-title.visible h2,
.testimonial-title.visible p { animation: slideInLeft .6s cubic-bezier(.2, .7, .2, 1) both; }
.experience-title.visible p,
.testimonial-title.visible p { animation-delay: .12s; }

/* Hero illustration gently floats */
.hoodie-guy { animation: float 6s ease-in-out 1.2s infinite; }

/* Back-to-top arrow nudges on hover */
.back-to-top:hover i { animation: nudgeUp .6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .timeline-item.reveal { transform: none; }
  .timeline-item.visible::before,
  .experience-title.visible h3,
  .experience-title.visible p,
  .testimonial-title.visible h2,
  .testimonial-title.visible p,
  .hoodie-guy,
  .back-to-top:hover i { animation: none; }
}
