:root {
  --bg: #171b22;
  --bg-soft: #232933;
  --panel: #2a303a;
  --panel-deep: #131720;
  --text: #f1f2f7;
  --muted: #a6abc2;
  --accent: #3f6798;
  --accent-strong: #2f4f76;
  --accent-soft: #6f94c2;
  --accent-rgb: 63, 103, 152;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 120;
  background: linear-gradient(90deg, #2d4f7a 0%, #6f94c2 100%);
  box-shadow: 0 0 12px rgba(63, 103, 152, 0.8);
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(12, 14, 18, 0.74), rgba(12, 14, 18, 0.74)),
    url("src/aco escovado.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.page-bg::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 35%);
  opacity: 0.7;
}

.page-bg::after {
  background:
    radial-gradient(30rem 22rem at 15% 44%, rgba(6, 8, 11, 0.52) 0%, transparent 75%),
    radial-gradient(30rem 20rem at 86% 64%, rgba(6, 8, 11, 0.58) 0%, transparent 75%);
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  margin-top: 0.65rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0.6rem;
  z-index: 70;
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  padding: 0.3rem 0;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  border-radius: 0;
  transform: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  padding: 0 0.1rem 0 0.34rem;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: width 0.32s ease, border-color 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.brand:visited,
.brand:hover,
.brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  width: 108px;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.site-header.scrolled .brand {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.35s ease, width 0.35s ease, height 0.35s ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: translateX(1px) scale(1.06);
}

.brand-name {
  margin-left: 0.12rem;
  font-family: "Sora", sans-serif;
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
  color: #f5f8ff;
  text-decoration: none;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transform: translateX(-16px);
  transition: max-width 0.32s ease, opacity 0.22s ease, transform 0.32s ease;
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  max-width: 72px;
  opacity: 1;
  transform: translateX(0);
}

.site-header.scrolled .brand-logo {
  width: 32px;
  height: 32px;
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  gap: 1.15rem;
  padding: 0;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  transition: gap 0.25s ease, padding 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.site-header.scrolled .main-nav {
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.main-nav a {
  color: #cfd7eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease, border-radius 0.25s ease;
  padding: 0.5rem 0;
  border-radius: 0;
  border: 1px solid transparent;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.75);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #f2f5ff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a.active {
  color: #f4f7ff;
}

.site-header.scrolled .main-nav a {
  color: #bcc5db;
  padding: 0.58rem 0.95rem;
  border-radius: 0;
}

.site-header.scrolled .main-nav a::after {
  display: none;
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.site-header.scrolled .main-nav a.active {
  color: #f4f7ff;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.12));
  border-color: rgba(var(--accent-rgb), 0.5);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0 0;
}

.hero-left {
  position: relative;
  z-index: 4;
  margin-right: -140px;
  transform: translateX(48px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #8f95af;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 0.95;
  margin: 0;
  position: relative;
  z-index: 5;
  text-shadow: 0 10px 26px rgba(8, 12, 20, 0.45);
}

.hero h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  margin: 0;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
  margin: 1rem 0;
}

.hero-photo {
  min-height: 520px;
  border-radius: 0;
  background: url("src/retrato 1.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.82;
  -webkit-mask-image: radial-gradient(120% 110% at 50% 50%, #000 68%, rgba(0, 0, 0, 0.9) 78%, rgba(0, 0, 0, 0.42) 90%, transparent 100%);
  mask-image: radial-gradient(120% 110% at 50% 50%, #000 68%, rgba(0, 0, 0, 0.9) 78%, rgba(0, 0, 0, 0.42) 90%, transparent 100%);
  box-shadow: none;
  position: relative;
  z-index: 2;
  transform: translateX(-24px);
  overflow: hidden;
  transition: none;
}

.hero-photo::before {
  content: none;
}

.hero-photo::after {
  content: none;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #5a6283;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.hero-socials a:hover,
.hero-socials a:focus-visible {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.16);
}

.link-arrow {
  text-decoration: none;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.25s ease, gap 0.25s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--accent-soft);
  gap: 0.6rem;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list i {
  color: var(--accent);
  font-size: 0.9rem;
}

.contact-list a {
  color: #dbe4f8;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent-soft);
}

.contact-strip {
  background: linear-gradient(180deg, #171c2d 0%, #1b2031 100%);
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 3.25rem 0 3.2rem;
}

.tech-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
  padding: 0;
  margin: 0 0 0.75rem;
  max-width: 100%;
}

.tech-cert-card {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.4rem;
  color: #dfe5f6;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.tech-cert-card i {
  font-size: 0.88rem;
  color: var(--accent-soft);
  flex: 0 0 auto;
}

.tech-cert-card span {
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.tech-cert-card.cert {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
}

.tech-cert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.16);
}

.contact-grid h3,
.works-head h3,
.cta h3 {
  font-family: "Sora", sans-serif;
  margin: 0;
  line-height: 1.25;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.stats {
  display: flex;
  gap: 1.8rem;
  margin-top: 1rem;
}

.stats div {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.stats strong {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stats span {
  color: #c2c7dd;
  font-size: 0.88rem;
}

.services {
  padding: 2.2rem 0 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: var(--panel);
  border-radius: 2px;
  min-height: 240px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid transparent;
}

.service-card.primary {
  background: var(--accent);
  color: #edf3ff;
}

.service-card h4 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  margin: 0;
}

.service-card p {
  margin: 0.7rem 0 0;
  color: inherit;
  opacity: 0.9;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(8, 10, 18, 0.35);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.logos {
  padding: 2.2rem 0;
  position: relative;
}

.logos-marquee {
  overflow: hidden;
  width: 100%;
  padding: 0.12rem 1.25rem 0.22rem;
  box-sizing: border-box;
}

.logos-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: logos-marquee 22s linear infinite;
  will-change: transform;
}

.logos-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logos-item {
  color: #d4d8ea;
  opacity: 0.95;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0;
  padding: 0.58rem 0.9rem;
  white-space: nowrap;
}

.logos-item i {
  color: var(--accent);
}

.logos-item:hover {
  transform: none;
  color: #f2f4fe;
  border-color: rgba(var(--accent-rgb), 0.5);
}

.works {
  padding: 1rem 0 2rem;
}

.works-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #2e3550;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.work-card:nth-child(1) {
  transform: rotate(-2deg);
}

.work-card:nth-child(2) {
  transform: rotate(1deg);
}

.work-card:nth-child(3) {
  transform: rotate(-1deg);
}

.work-card:nth-child(4) {
  transform: rotate(1deg);
}

.work-card:nth-child(5) {
  transform: rotate(-1deg);
}

.work-card:nth-child(6) {
  transform: rotate(1deg);
}

.work-card h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
}

.work-card p {
  margin: 0;
  color: #bac0d6;
}

.work-card:hover {
  box-shadow: 0 22px 34px rgba(7, 9, 16, 0.45);
}

.quick-link-card {
  background: var(--panel);
  border: 1px solid transparent;
  padding: 1rem 1.1rem;
  min-height: 0;
  aspect-ratio: 21 / 7;
}

.quick-link-anchor {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
}

.quick-link-icon {
  font-size: 2rem;
  color: var(--accent-soft);
  margin-bottom: auto;
}

.quick-link-card h4 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.quick-link-card p {
  margin-top: 0.7rem;
  color: inherit;
  opacity: 0.88;
}

.repo-preview-inline {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.32rem;
}

.repo-preview-empty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.13);
  color: #dce6fb;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.5rem;
}

.repo-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.24rem 0.45rem;
}

.repo-mini-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: #e5ebfb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-mini-metrics {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #b9c5df;
  font-size: 0.58rem;
  flex: 0 0 auto;
}

.repo-mini-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
}

.repo-mini-language {
  color: #d6ddf1;
}

.github-dashboard-card .quick-link-card p,
.github-dashboard-card p {
  margin-top: 0.45rem;
}

.quick-link-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 16px 30px rgba(8, 10, 18, 0.35);
}

.work-card-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  text-decoration: none;
  color: inherit;
}

.work-carousel {
  isolation: isolate;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.45s ease, filter 0.35s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.45s ease, filter 0.35s ease;
}

.work-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.05) 0%, rgba(8, 10, 18, 0.9) 100%);
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.work-card-media:hover img,
.work-card-media:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.08);
}

.work-card-media:hover .work-overlay,
.work-card-media:focus-visible .work-overlay {
  transform: translateY(0);
}

.cta {
  margin-top: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mini-about {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-left: 2px solid rgba(var(--accent-rgb), 0.42);
  background: rgba(255, 255, 255, 0.02);
  max-width: 32rem;
}

.mini-about h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #e4e9f8;
}

.mini-about p {
  margin: 0.45rem 0 0.7rem;
  color: #b8c0d8;
  line-height: 1.45;
  font-size: 0.86rem;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #eff4ff;
  border: 1px solid rgba(var(--accent-rgb), 0.46);
  background: rgba(var(--accent-rgb), 0.18);
  padding: 0.44rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cv-button:hover,
.cv-button:focus-visible {
  background: rgba(var(--accent-rgb), 0.3);
  border-color: rgba(var(--accent-rgb), 0.62);
  transform: translateY(-1px);
}

.contact-form {
  background: rgba(17, 21, 34, 0.34);
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 18px 30px rgba(8, 10, 18, 0.32);
}

.contact-form h3 {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #c3c9df;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  border: 0;
  background: var(--accent);
  color: #edf3ff;
  font-weight: 800;
  padding: 0.82rem 1.1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.35);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
}

.site-footer p {
  color: #b4b9d0;
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(25, 31, 50, 0.86);
  color: #f1f2f7;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  z-index: 80;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@keyframes sweep {
  0% {
    transform: rotate(12deg) translateX(-120%);
  }
  45% {
    transform: rotate(12deg) translateX(-120%);
  }
  100% {
    transform: rotate(12deg) translateX(120%);
  }
}

@keyframes logos-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333333%);
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    margin-right: 0;
    transform: none;
  }

  .hero-photo {
    order: -1;
    min-height: 460px;
    transform: none;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tech-cert-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    top: 0.3rem;
    padding: 0.3rem 0;
  }

  .site-header.scrolled {
    padding: 0.3rem 0;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .services,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .tech-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card:nth-child(3) {
    grid-column: auto;
  }

  .hero-photo {
    min-height: 360px;
  }

  .back-to-top {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
}
