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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--mars-black);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 168, 200, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(139, 47, 201, 0.06), transparent 50%),
    var(--mars-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--mars-cyan);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.accent-cyan {
  color: var(--mars-cyan);
}

.accent-purple {
  color: var(--mars-purple);
}

.btn-mars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--mars-teal);
  color: var(--mars-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn-mars:hover {
  background: var(--mars-cyan);
  color: var(--mars-white);
  transform: translateY(-2px);
}

.btn-mars--outline {
  background: transparent;
  color: var(--mars-teal);
  border: 2px solid var(--mars-teal);
}

.btn-mars--outline:hover {
  background: var(--mars-teal);
  color: var(--mars-white);
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(145deg, var(--mars-placeholder), #c5d0db);
  border: 1px dashed #a8b4c0;
  border-radius: var(--radius-soft);
  color: var(--mars-placeholder-label);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  aspect-ratio: 16 / 10;
  min-height: 4rem;
}

.img-placeholder--square {
  aspect-ratio: 1;
}

.img-placeholder--logo {
  aspect-ratio: 3 / 2;
  max-height: 5.5rem;
}

.img-placeholder--portrait {
  aspect-ratio: 3 / 4;
  max-width: 320px;
  margin-inline: auto;
}

.img-placeholder--icon {
  width: 3.25rem;
  height: 3.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--mars-purple);
  background: var(--mars-white);
  flex-shrink: 0;
  color: var(--mars-black);
}

.img-placeholder--icon i,
.img-placeholder--icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.icon svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mars-purple);
  margin-bottom: 0.75rem;
}

.visually-loading {
  min-height: 40vh;
}

.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;
}

#hero,
#experience,
#services,
#contact {
  scroll-margin-top: var(--header-height);
}
