* {
  box-sizing: border-box;
}
html {
  background: #061525;
}
body {
  margin: 0;
  overflow-x: hidden;
}
.hero-section {
  position: relative;
  background: #4295f5;
}
.hero-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.08;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.hero-section > div {
  position: relative;
  z-index: 1;
}
.section-label {
  margin-bottom: 16px;
  color: #ffc400;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-label.dark {
  color: #061525;
}
.section-heading {
  max-width: 680px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.94;
}
.section-heading.dark {
  color: #061525;
}
.hero-portrait {
  isolation: isolate;
}
.portrait-accent {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 78%;
  height: 82%;
  border: 2px solid #061525;
  background: #ffc400;
  transform: rotate(7deg);
}
.portrait-card {
  position: absolute;
  top: auto;
  right: 4%;
  bottom: 5%;
  left: auto;
  width: 78%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 6px solid #fff;
  background: linear-gradient(145deg, #cbe8ff, #72b4f0);
  box-shadow: 0 18px 0 #061525;
  height: 82%;
  transform: rotate(-5deg);
}
.portrait-card::before {
  position: absolute;
  inset: 12%;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  content: "";
}
.portrait-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(8px 8px 0 #06152533);
}
.portrait-label {
  position: absolute;
  right: 0;
  bottom: 1%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 3px solid #061525;
  background: #fff;
  color: #061525;
  font-size: 0.78rem;
  line-height: 1.25;
  transform: rotate(2deg);
}
.portrait-label i {
  color: #1267c4;
  font-size: 1.2rem;
}
.portrait-label strong {
  color: #1267c4;
}
.experience-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  border-bottom: 1px solid #9fb5c7;
  padding: 28px 0;
}
.date-tag {
  color: #1267c4;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}
.experience-row h3 {
  color: #061525;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.experience-row h3 span {
  color: #547087;
  font-size: 1rem;
  font-weight: 500;
}
.experience-row p {
  max-width: 720px;
  margin-top: 8px;
  color: #506477;
  line-height: 1.65;
}
.project-card {
  overflow: hidden;
  border: 3px solid #061525;
  background: #fff;
  box-shadow: 6px 6px 0 #061525;
}
.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 3px solid #061525;
}
.project-card > div {
  padding: 20px;
}
.project-card span {
  color: #1267c4;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.project-card h3 {
  margin-top: 8px;
  color: #061525;
  font-size: 1.25rem;
  font-weight: 800;
}
.project-card p {
  margin-top: 8px;
  color: #536477;
  line-height: 1.55;
}
.skill-card {
  border-top: 2px solid #ffffff44;
  padding-top: 16px;
}
.skill-card i {
  margin-bottom: 16px;
  color: #ffc400;
  font-size: 1.2rem;
}
.skill-card h3 {
  font-size: 1rem;
  font-weight: 800;
}
.skill-card p {
  margin-top: 8px;
  color: #aebdcb;
  font-size: 0.85rem;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .hero-portrait {
    height: 330px;
    max-width: 270px;
    margin-top: 28px;
  }
  .portrait-label {
    right: -4px;
    bottom: 0;
  }
  .experience-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .experience-row h3 span {
    display: block;
    margin-top: 4px;
  }
  .project-card img {
    height: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
