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

:root {
  --primary: #8D9BC5;
  --background: #F6F7FF;
  --dark: #1e1e1e;

  --muted-rose: #dd9c9c;
  --code-syntax: #f5f5f5;
  --outline: #E5E9FC;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  font-family: 'Inter', 'Courier New', Courier, monospace;
}

.base-wrapper-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.name,
.role {
  font-size: 2.55rem;
  font-weight: 800;
}

.name {
  margin-bottom: .25rem;
}

.info-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.info-links li {
  display: flex;
  align-items: center;
}

.info-links a {
  text-decoration: none;
}

.info-links a i {
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
}

.info-links a:hover i {
  color: var(--primary);
}

.cta-resume-button {
  display: inline-block;
  padding: 0.5rem 0.65rem;
  background-color: #000;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.cta-resume-button:hover {
  background-color: var(--primary);
}

.philosophy {
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.keyword {
  color: var(--primary);
}

.about-text {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  line-height: 2;
  text-align: justify;
}

.section-title {
  color: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 0.75rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

pre {
  display: flex;
  padding: 1rem 0.75rem;
  background-color: var(--dark);
  border-radius: 0.5rem;
  color: var(--code-syntax);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.4rem;
  overflow-x: auto;
  white-space: pre;
}

.json-key {
  color: var(--primary);
  font-family: 'Courier New', Courier, monospace;
}

.json-value {
  color: var(--muted-rose);
  font-family: 'Courier New', Courier, monospace;
}

code {
  background: none;
  color: inherit;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  padding: 1rem 0.75rem;
  border: 2px solid var(--outline);
  border-radius: 0.5rem;
}

.project-type,
.project-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-date {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.95rem;
  text-transform: uppercase;
}

.project-tech-stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech-stacks li {
  list-style: none;
  color: var(--muted-rose);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item.reveal {
  transition-delay: calc(var(--i, 0) * 0.15s);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-inner {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 650px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: scaleIn 0.25s ease;
}

.modal-inner::-webkit-scrollbar {
  width: 6px;
}

.modal-inner::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 0.5rem;
}

#modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.modal-date {
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-description {
  font-size: 0.85rem;
  line-height: 1.5;
}

.modal-thumbnail {
  max-width: 100%;
  height: auto;
  max-height: 40vh;
  display: block;
  margin: 0.75rem auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

.modal-section-feature {
  margin: 1rem auto 0.5rem;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.modal-features {
  margin: 0;
  padding: 0 1.5rem;
  list-style: disc;
}

.modal-features strong {
  color: var(--muted-rose);
}

.modal-features li {
  font-size: 0.85rem;
  line-height: 1.725;
  text-align: justify;
  margin-bottom: 0.5rem;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-tech li {
  margin-top: 1rem;
  list-style: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-source-code {
  text-decoration: none;
  color: var(--muted-rose);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.modal-source-code:hover {
  color: var(--primary);
}

@media (max-width: 480px) {

  .name,
  .role {
    font-size: 2rem;
  }

  .philosophy {
    font-size: 0.75rem;
  }

  .about-text,
  .section-title,
  .section-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {

  .name,
  .role {
    font-size: 1.8rem;
  }

  .philosophy {
    font-size: 0.7rem;
  }

  .about-text,
  .section-title,
  .section-subtitle {
    font-size: 0.75rem;
  }
}
