@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=DM+Sans:wght@400;500;700&family=Sora:wght@500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #332a25;
  --brown: #866348;
  --cream: #efd2a0;
  --gold: #d49a2a;
  --paper: #fffaf3;
  --muted: #806e60;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color-scheme: light;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 12% 10%, #ffffffd9 0%, transparent 35%),
    radial-gradient(ellipse at 88% 24%, #efd2a080 0%, transparent 32%),
    repeating-linear-gradient(135deg, transparent 0 38px, #efd2a02e 39px 40px),
    linear-gradient(135deg, #fffaf3 0%, #f3e1ca 52%, #fffdf9 100%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}

body::after {
  position: fixed;
  z-index: -1;
  right: 5%;
  bottom: 12%;
  content: "{ }   < />   01 10   ;";
  color: var(--brown);
  font-family: "Sora", sans-serif;
  font-size: clamp(18px, 3vw, 36px);
  letter-spacing: 6px;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(-8deg);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 235, 0.58);
  padding: 14px 8%;
  border-bottom: 1px solid rgba(205, 182, 161, 0.55);
  box-shadow: 0 8px 24px rgba(59, 41, 35, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

nav h2 {
  color: #111111;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--cream);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.menu-checkbox,
.menu-button {
  display: none;
}

.nav-links a {
  color: var(--brown);
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a i {
  margin-right: 6px;
  font-size: 12px;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.nav-links a[aria-current="page"] {
  background: var(--cream);
  color: var(--brown);
  border-color: var(--cream);
  box-shadow: 0 2px 5px #3b292330;
}

body:has(#about:target) .nav-links a[href="#home"],
body:has(#projects:target) .nav-links a[href="#home"],
body:has(#certificate:target) .nav-links a[href="#home"],
body:has(#contact:target) .nav-links a[href="#home"] {
  background: transparent;
  color: var(--brown);
  border-color: transparent;
  box-shadow: none;
}

body:has(#about:target) .nav-links a[href="#about"],
body:has(#projects:target) .nav-links a[href="#projects"],
body:has(#certificate:target) .nav-links a[href="#certificate"],
body:has(#contact:target) .nav-links a[href="#contact"] {
  background: var(--cream);
  color: var(--brown);
  border-color: var(--cream);
  box-shadow: 0 2px 5px #3b292330;
}

.nav-links a:focus-visible,
.button:focus-visible,
.contact-links a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.hero,
.content {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 56px 20px;
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: calc(100vh - 92px);
  align-items: center;
  gap: 80px;
  text-align: left;
}

.hero-intro {
  min-width: 0;
}

.hero-intro > p:not(.tagline) {
  margin-left: 0;
  margin-right: 0;
  max-width: 680px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 7px;
  font-weight: bold;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px #3b29231c;
}

.hero-button.primary {
  background: var(--ink);
  color: #ffffff;
}

.hero-button.secondary {
  border: 1px solid var(--cream);
  background: #fffdf9;
  color: var(--brown);
}

.page-section {
  scroll-margin-top: 110px;
}

.hero h1,
.content h1 {
  margin: 12px 0 20px;
  font-size: 46px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--brown);
}

.home-info {
  grid-column: 1 / -1;
  width: min(100%, 700px);
  max-width: none;
  margin: 0 auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--cream);
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 15px #644b3e20;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px #644b3e30;
}

.home-info h2,
.home-info h3 {
  color: var(--brown);
}

.home-info h2 {
  margin-bottom: 12px;
}

.home-info h3 {
  margin-top: 22px;
  margin-bottom: 10px;
}

.home-info p {
  line-height: 1.7;
}

.home-info ul {
  padding-left: 0;
  line-height: 1.9;
  list-style: none;
}

.home-info li {
  position: relative;
  padding-left: 28px;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.home-info li::before {
  position: absolute;
  left: 0;
  color: var(--brown);
  content: "\2713";
  font-weight: bold;
}

.home-info li:hover {
  padding-left: 33px;
  color: var(--brown);
}

.hero > p:not(.tagline),
.content > p:not(.tagline) {
  max-width: 650px;
  margin: auto;
  font-size: 19px;
  line-height: 1.8;
}

.tagline {
  color: var(--brown);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
}

.contact-image {
  display: block;
  width: min(100%, 360px);
  height: 210px;
  margin: 24px auto 28px;
  border: 6px solid var(--cream);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px #644b3e30;
}

.about-intro {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 850px;
  margin: 30px auto 0;
  text-align: left;
}

.about-highlights div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.about-highlights span,
.about-highlights strong {
  display: block;
}

.about-highlights span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-highlights strong {
  color: var(--gold);
  font-size: 15px;
}

.personal-image-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.hero-personal-image {
  justify-self: center;
  margin-bottom: 0;
}

.personal-image-slot img {
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0;
  border: 8px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 32%;
  box-shadow:
    0 0 0 4px var(--gold),
    0 8px 22px #644b3e25;
}

.personal-image-slot p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero-image-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 20px auto 0 !important;
  padding: 11px 24px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--muted) !important;
  box-shadow: 0 7px 18px #644b3e18;
  gap: 3px;
  color: var(--ink) !important;
  font-size: 16px !important;
}

.hero-image-label strong {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.hero-image-label span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.about-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 42px;
  max-width: 900px;
  margin: 68px auto 0;
  text-align: left;
}

.about-section {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.about-section:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-4px);
}

.section-number {
  color: var(--gold);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.about-section h2 {
  margin-bottom: 10px;
  font-size: 23px;
  font-family: "Space Grotesk", sans-serif;
}

.about-section p {
  color: var(--muted);
  line-height: 1.8;
}

.skills-section {
  max-width: 900px;
  margin: 58px auto 0;
  padding: 28px 0 8px;
  text-align: center;
}

.skills-section h2 {
  margin: 9px 0 18px;
  color: var(--brown);
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

.skill-list {
  width: 100%;
  overflow: hidden;
  padding: 5px 0 12px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.skill-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: toolkit-marquee 24s linear infinite;
}

.skill-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: transparent;
  color: var(--brown);
  font-size: 14px;
  font-weight: bold;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.skill-list i {
  color: var(--gold);
  font-size: 16px;
}

.skill-list span:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

@keyframes toolkit-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-track {
    animation: none;
    transform: translateX(0);
  }
}

.certificate-section {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 56px 20px;
  text-align: center;
}

.certificate-section h2 {
  margin: 10px 0 24px;
  color: var(--brown);
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
}

.certificate-intro {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 17px;
}

.certificate-slot {
  display: grid;
  min-height: 0;
  place-content: center;
  padding: 0;
  color: var(--brown);
}

.certificate-icon {
  font-size: 30px;
}

.certificate-image {
  display: block;
  width: min(100%, 680px);
  height: 300px;
  margin: auto;
  object-fit: contain;
}

.certificate-slot h2 {
  margin-top: 12px;
  color: var(--brown);
  font-size: 19px;
  line-height: 1.3;
}

.certificate-slot p {
  font-size: 18px;
  font-weight: bold;
}

.certificate-slot small {
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 25px;
  border-radius: 8px;
  background: var(--brown);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.button:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.info-grid,
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: min(100%, 720px);
  margin-top: 35px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--cream);
  border-radius: 12px;
  box-shadow: 0 5px 15px #644b3e20;
}

.card h2 {
  margin-bottom: 12px;
  color: var(--brown);
}

.card p {
  line-height: 1.7;
}

.status {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold);
  font-weight: bold;
}

.project-link {
  display: inline-flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: var(--brown);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.project-link:hover {
  color: var(--gold);
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
}

.social-section {
  max-width: 820px;
  margin: 42px auto 0;
}

.social-section h2 {
  color: var(--brown);
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
}

.social-copy {
  margin-top: 6px;
  color: var(--muted);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 34px auto;
  text-align: left;
}

.contact-details div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.contact-details span,
.contact-details strong {
  display: block;
}

.contact-details span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-details strong {
  color: var(--brown);
  font-size: 14px;
}

.contact-form {
  max-width: 820px;
  margin: 35px auto 0;
  padding: 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--cream);
  border-radius: 10px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--brown);
  font-size: 14px;
  font-weight: bold;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cream);
  border-radius: 6px;
  background: #fffaf6;
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

.form-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--brown);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: bold;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.form-button:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 300px);
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--brown);
  background: transparent;
  color: var(--brown);
  text-decoration: none;
  font-weight: bold;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 18px;
  line-height: 18px;
}

.contact-links a:hover {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-links .github-link:hover {
  background: #000000;
}

.contact-links .whatsapp-link:hover {
  background: #25d366;
}

.contact-links a small {
  color: var(--muted);
}

.contact-links .github-link small {
  color: #333333;
}

.contact-links .whatsapp-link small {
  color: #218c4b;
}

.contact-links a:hover small {
  color: #ffffffcc;
}

.location {
  color: var(--muted);
}

footer {
  position: relative;
  margin-top: auto;
  padding: 18px 20px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer::before {
  position: absolute;
  top: 0;
  left: 7.5%;
  width: 85%;
  height: 2px;
  background: var(--brown);
  content: "";
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--brown);
  font-size: 15px;
  font-weight: 500;
}

.footer-line {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--brown);
}

.footer-credit strong {
  color: var(--brown);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.back-to-top {
  display: inline-block;
  margin-top: 10px;
  color: var(--brown);
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.back-to-top:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-copy {
  margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 650px) {
  header {
    padding: 9px 14px;
  }

  nav {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  nav h2 {
    font-size: 25px;
  }

  .menu-button {
    display: flex;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 32px;
    height: 29px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--cream);
    border-radius: 6px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--brown);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 34px;
    right: 0;
    left: auto;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 4px;
    width: min(190px, calc(100vw - 28px));
    padding: 4px;
    margin-top: 8px;
    background: var(--paper);
    box-shadow: 0 10px 24px rgba(59, 41, 35, 0.16);
  }

  .menu-checkbox:checked ~ .nav-links {
    display: grid;
  }

  .menu-checkbox:checked + .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-checkbox:checked + .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked + .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 7px 8px;
    font-size: 10px;
    text-align: left;
  }

  .nav-links a i {
    flex: 0 0 20px;
    width: 20px;
    margin-right: 8px;
    font-size: 14px;
    text-align: center;
  }

  .hero,
  .content {
    width: 100%;
    padding: 42px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
    text-align: center;
  }

  .hero-personal-image {
    order: -1;
  }

  .hero-intro > p:not(.tagline) {
    margin-left: auto;
    margin-right: auto;
    font-size: 24px;
  }

  .hero-actions {
    justify-content: center;
  }

  .personal-image-slot img {
    width: min(100%, 300px);
  }

  .hero h1,
  .content h1 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .hero > p:not(.tagline),
  .content > p:not(.tagline),
  .about-intro {
    font-size: 17px;
  }

  .home-info {
    padding: 24px 20px;
  }

  .about-intro {
    margin: 0 auto;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .contact-details,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .certificate-slot {
    min-height: 0;
    padding: 0;
  }

  .certificate-image {
    height: 220px;
  }

  .info-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-sections {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }

  .about-section:hover {
    transform: translateY(-2px);
  }

  footer {
    padding: 18px 20px;
  }
}

.contact-links a > span {
  display: grid;
  gap: 2px;
  text-align: left;
}
