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

:root {
  --primary-color: #0f1117;
  --secondary-color: #fbe4d8;
  --accent-color: #b693da;
  --soft-color: #9f8cbf;
  --panel-color: rgba(18, 20, 26, 0.96);
  --border-color: rgba(255, 255, 255, 0.08);
  --muted-color: #b8a8ba;
  --font-style1: "Antonio", sans-serif;
  --font-style2: "Pixelify Sans", sans-serif;
}

html,
body,
body > div:first-child,
div.border,
div.border > div {
  height: 100%;
  overflow: auto;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(251, 228, 216, 0.18);
}

body {
  font-family: var(--font-style1);
  color: var(--secondary-color);
  background-color: var(--primary-color);
  padding: 20px;
  min-height: 100vh;
}

img {
  object-fit: cover;
  display: block;
}

a {
  color: var(--secondary-color);
}

.terminal-panel {
  width: min(98%, 1400px);
  max-width: 1400px;
  margin: 24px auto;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(16, 18, 24, 0.98),
    rgba(12, 14, 20, 0.98)
  );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.terminal-body {
  width: 100%;
  padding: 2.2rem 2.6rem 2.8rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.4rem;
  background: rgba(15, 17, 22, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #28c840;
}

.terminal-title {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft-color);
  margin-left: auto;
}

.terminal-body {
  padding: 2rem 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-img img {
  width: 250px;
  height: 250px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
}

.profile-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.profile-title h1 {
  font-family: var(--font-style2);
  font-size: 5rem;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--secondary-color);
  text-shadow: 0 0 18px rgba(251, 228, 216, 0.22);
  margin-bottom: 0.7rem;
}

.skill-title h1 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

.skill-icon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.skill-icon i,
.skill-icon iconify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--secondary-color);
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.skill-icon i:hover,
.skill-icon iconify-icon:hover {
  transform: translateY(-2px) scale(1.05);
  color: var(--accent-color);
  background: rgba(182, 147, 218, 0.12);
}

.desc p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted-color);
  border-left: 3px solid rgba(182, 147, 218, 0.4);
  padding-left: 1rem;
}

.command {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.8rem 1.8rem;
  min-width: 0;
}

.command-output {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.command-display p {
  color: var(--secondary-color);
  line-height: 1.8;
  animation: fadeIn 0.35s ease both;
}

.command-display.typing-output {
  position: relative;
  overflow-wrap: anywhere;
}

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent-color);
  animation: blink 1s steps(2, start) infinite;
}

.command-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.command-input p {
  color: var(--secondary-color);
  font-family: var(--font-style1);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  position: relative;
  flex-shrink: 0;
}

.command-input input {
  background: transparent;
  border: none;
  color: var(--secondary-color);
  outline: none;
  font-family: var(--font-style1);
  caret-color: var(--secondary-color);
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.8;
  flex: 1 1 auto;
  width: auto;
  min-width: 280px;
  z-index: 1;
  min-width: 0;
  cursor: text;
}

.command-input p span.input-type {
  color: var(--accent-color);
}

.command-input p span.input-user {
  color: #DFB6B2;
}

.command-output-help.container,
.command-output-contacts.container,
.command-output-certificates.container,
.command-output-socials.container,
.command-output-about.container,
.command-output-projects.container {
  flex-direction: column;
  gap: 0.9rem;
}

.list-command.container,
.list-output-contacts.container,
.list-output-certificates.container,
.list-output-socials.container {
  column-gap: 12px;
}

.list-command .list-title,
.project-title,
.contact-title,
.certificates-title,
.socials-title {
  width: 90px;
}

.project-icon-list.container,
.project-icon {
  display: flex;
  gap: 0.8rem;
}

.project-icon iconify-icon,
.project-icon i {
  width: 24px;
  height: 24px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 0;
  }
}
