:root {
  --primary: #111827;
  --secondary: #4b5563;
  --accent: #7DBD94;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none;
  }
}

body {
  font-family: "Inter", sans-serif;
  background-color: white;
  color: var(--primary);
  line-height: 1.5;
  animation: pageSettle 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes pageSettle {
  from {
    opacity: 0.985;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
}

@media (min-width: 640px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

h4 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
  font-style: normal;

  display: inline-block;

  transform: skewX(-7deg);

  transform-origin: bottom left;
}

p {
  color: var(--secondary);
  font-weight: 300;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 70.9rem;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.layout-border-x {
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.spacer-line {
  width: 100%;
  height: 1rem;
  border: 1px solid var(--border-color);
}

.break-line {
  width: 100%;
  height: 0;
  border-top: 1px solid var(--border-color);
}

.section-header,
.content-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.content-wrapper {
  padding: 2.25rem 1.75rem;
}

.section-header {
  padding: 3rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 480px) {
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

.hero-banner {
  width: 100%;
  height: 18rem;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 480px) {
  .profile {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }
}

.profile__avatar-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 480px) {
  .profile__avatar-container {
    left: 1rem;
    transform: translateY(-50%);
  }
}

@media (min-width: 640px) {
  .profile__avatar-container {
    left: 1.75rem;
  }
}

.profile__avatar-img {
  border: 4px solid white;
  border-radius: 9999px;
  width: 145px;
  height: 145px;
  object-fit: cover;
}

.profile__online-indicator {
  position: absolute;
  bottom: 1.05rem;
  right: 1.25rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--accent);
  border: 2px solid white;
  border-radius: 9999px;
}

.profile__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.profile__info--title {
  color: var(--accent);
  font-weight: 450;
}

@media (min-width: 480px) {
  .profile__info {
    align-items: flex-start;
    text-align: left;
  }
}

.profile__pronouns {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: -0.05rem;
  font-weight: 400;
}

.profile__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--primary);
}

.profile__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 768px) {
  .profile__actions {
    flex-direction: row;
  }
}

.social-group {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  padding: 0.88rem;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-btn:hover {
  background-color: #f9fafb;
}

.btn-touch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
  position: relative;
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--primary), var(--primary)),
    linear-gradient(96.09deg, var(--accent) 12.17%, #f3ca4d 90.71%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  cursor: pointer;
  color: white;
  font-weight: 600;
}

.btn-touch:hover {
  background-image: linear-gradient(96.09deg, var(--accent) 12.17%, #f3ca4d 90.71%);
  transform: scale(1.05);
}

.about-section .layout-border-x {
  background-image: url("../img/about-me-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem 1.75rem;
}

@media (min-width: 768px) {
  .about-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.highlight-box {
  background: linear-gradient(
    90deg,
    rgba(243, 202, 77, 0.4) 0%,
    rgba(243, 202, 77, 0.05) 100%
  );
  padding: 0 0.15rem;
}

.underlined {
  border-bottom: 2px solid var(--border-color);
  transition: border-color 0.2s;
}

.about-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .work-grid {
    flex-direction: row;
  }
}

.work-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .work-card {
    padding: 1.5rem;
    border-bottom: 0;
  }

  .work-card:not(:last-child) {
    border-right: 1px solid var(--border-color);
  }
}

.work-card__img-wrapper {
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
}

.work-card__img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  display: block;
}

.work-card:hover .work-card__img {
  transform: scale(1.05);
}

.work-card:hover h3 {
  color: var(--accent);
}

.work-card__info {
  padding: 0 0.5rem;
}

.work-card__info p {
  font-size: 0.875rem;
  margin-top: 4px;
}

.personal-blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.personal-blog-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.55), rgba(255, 255, 255, 0));
}

.personal-blog-item__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.personal-blog-item h3 {
  margin-top: 0.4rem;
}

.personal-blog-item h3 a:hover {
  color: var(--accent);
}

.personal-blog-item p {
  margin-top: 0.45rem;
}

.exp-item__tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.875rem;
  margin-left: -2rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .exp-item__tag {
    margin-left: 0;
  }
}

.exp-item__list {
  display: flex;
  flex-direction: column;
}

.exp-item__list li {
  display: flex;
  gap: 0.5rem;
  color: var(--secondary);
}

.exp-item__dot {
  width: 12px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
}

.exp-item__dot--muted {
  background: var(--border-color);
}

.exp-timeline-container {
  position: relative;
}

@media (min-width: 640px) {
  .exp-timeline-container::before {
    content: "";
    position: absolute;
    left: 2.15rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
    z-index: 1;
  }
}

.exp-entry {
  position: relative;
  display: flex;
  flex-direction: column;
}

.exp-entry:not(:last-child) {
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .exp-entry {
    padding-left: 2rem;
  }
}

.exp-dot-timeline {
  position: absolute;
  left: 0;
  top: 0.25rem;
  z-index: 10;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-dot-timeline::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 9999px;
}

@media (min-width: 640px) {
  .exp-dot-timeline {
    left: -5px;
    top: 0;
  }
}

.exp-company-info {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.exp-header-row {
  padding-left: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 640px) {
  .exp-header-row {
    padding-left: 0;
  }
}

.role-block {
  margin-bottom: 0.5rem;
}

.edu-entry:not(:last-child) {
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .edu-entry:not(:last-child) {
    margin-bottom: 2rem;
  }
}

.edu-entry__description {
  margin-top: 0.5rem;
  max-width: 42rem;
}

.cert-group__title {
  margin-bottom: 1rem;
  margin-top: 3rem;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.6;
}

.contact-link {
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary);
  background-color: transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-control::placeholder {
  color: var(--muted-foreground);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-submit-btn {
  align-self: flex-start;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.footer__text {
  font-size: 0.875rem;
  color: var(--secondary);
}

.footer__link {
  text-decoration: underline;
  color: var(--secondary);
}


