/* Color Palette */
:root {
  --gray-100: #F5F5F5;
  --gray-200: #E3E3E5;
  --gray-300: #CACACD;
  --gray-400: #B0B0B3;
  --gray-700: #3D3D40;
  --gray-750: #333335;
  --gray-800: #2C2C2E;
  --gray-850: #232324;
  --gray-900: #1A1A1B;
  --gray-950: #0E0E0F;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--gray-950);
  color: var(--gray-100);
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  background-color: var(--gray-950);
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

/* Header */
.site-header {
  background-color: var(--gray-950);
  text-align: center;
  margin-bottom: 40px;
}

.header-icon {
  margin-top: 0px;
  padding-top: 30px;
  margin-bottom: 20px;
}

.header-icon img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--gray-400);
  display: block;
  margin: 0 auto;
}

.header-pseudonym {
  margin-top: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 28px;
  color: var(--gray-200);
  font-weight: normal;
  text-align: center;
  letter-spacing: 2px;
}

.icon-circle {
  width: 150px;
  height: 150px;
  color: var(--gray-200);
  border-radius: 50%;
  border: 3px solid var(--gray-400);
  display: block;
  margin: 0 auto;
}

/* Navigation */
.nav {
  margin-top: 30px;
  background-color: var(--gray-950);
}

.nav-table {
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid var(--gray-400);
  width: auto;
  max-width: fit-content;
}

.nav-table td {
  text-align: center;
  border: none;
  padding: 0;
  background-color: transparent;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;       /* wrap buttons on small screens */
  justify-content: center; /* or space-between / space-around */
  gap: 10px;             /* spacing between buttons */
}

.nav-btn {
  display: block;
  color: var(--gray-100);
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  text-transform: uppercase;
  background-color: transparent;
  transition: background-color 0.2s ease;
  flex: 1 1 auto;        /* buttons grow/shrink equally */
  text-align: center;
  padding: 8px 12px;
  white-space: nowrap;   /* prevent text from breaking in weird ways */
}

.nav-btn:hover {
  font-weight: bold;
  background-color: var(--gray-800);
  padding: 6px 10px;
}

.nav-btn.active {
  font-weight: bold;
  background-color: var(--gray-800);
  padding: 6px 10px;
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section-heading {
  font-size: 32px;
  font-weight: 400;
  color: var(--gray-100);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-700);
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.serif-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--gray-100);
  font-weight: 400;
}

.divider {
  height: 1px;
  background-color: var(--gray-700);
  margin: 20px 0;
  border: none;
}

hr {
  border: 1px solid var(--gray-700);
  margin: 20px 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

/* Tables - Classic HTML style */
table {
  border: 2px solid var(--gray-400);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background-color: var(--gray-850);
  margin-top: 30px;
  margin-bottom: 40px;
}

/* Project Screenshots */
.project-screenshot {
  padding: 20px !important;
  text-align: center;
  background-color: var(--gray-800);
  border-top: 1px solid var(--gray-700);
  border-bottom: 1px solid var(--gray-700);
}

.screenshot-img {

  width: 100%;
  height: 100%;
  border: 2px solid var(--gray-700);
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  background-color: var(--gray-800);
  min-height: 200px;
  object-fit: cover;
}

.screenshot-img[src=""] {
  background-color: var(--gray-800);
  border-style: dashed;
  opacity: 0.5;
}

td, th {
  border: 1px solid var(--gray-700);
  padding: 12px;
  text-align: left;
}

th {
  background-color: var(--gray-900);
  font-weight: bold;
  color: var(--gray-100);
  font-size: 22px;
}

td {
  color: var(--gray-100);
}

/* About Section */
.about-section {
  margin: 30px 0;
}

.about-box {
  border: none;
  padding: 0;
  background-color: transparent;
}

.about-heading {
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  font-weight: 400;
  color: var(--gray-100);
  margin-bottom: 15px;
}

.about-table {
  margin-top: 30px;
}

.table-label {
  width: 150px;
  font-weight: normal;
}

.table-value {
  color: var(--gray-100);
}

/* Introduction Section */
.introduction-section {
  margin-top: 40px;
}

.intro-text,
.content-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  color: var(--gray-200);
  line-height: 1.8;
  margin-top: 20px;
}

.content-text p {
  line-height: 1.8;
  color: var(--gray-200);
  margin-bottom: 30px;
}

/* Links */
a {
  color: var(--gray-200);
  text-decoration: underline;
}

a:hover {
  color: var(--gray-100);
  background-color: var(--gray-800);
}

a:visited {
  color: var(--gray-300);
}

/* Footer */
footer {
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid var(--gray-700);
  padding-top: 20px;
  color: var(--gray-400);
  font-size: 14px;
}

.experience-list,
.skills-list,
.clients-list{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-item,
.skill-item,
.clients-item {
  background-color: var(--gray-900);
  padding: 15px;

  border: 2px solid var(--gray-400);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;

}

.clients-item{
  vertical-align:middle;
  display:block;
}

.trusted-by {
  background-color: var(--gray-850) !important;
}

.skill-item,
.clients-item{
  flex-direction: column;
  align-items: flex-start;
}

.skill-item,
.clients-item {
  display: flex;
  align-items: center; /* aligns image and text vertically */
  gap: 12px;           /* spacing between image and text */
  background-color: var(--gray-900);
  padding: 12px 15px;
}

.clients-item{
  background-color: var(--gray-700) !important;
}

.skill-icon {
  width: 8vw;          /* width relative to viewport */
  height: auto;         /* maintain aspect ratio */
  max-width: 60px;      /* cap size on large screens */
  max-height: 60px;
  min-width: 30px;      /* ensure minimum size on small screens */
  min-height: 30px;
  object-fit: contain;
}

.clients-icon {
  object-fit: contain;
  min-height: 60px;
  max-height: 80px;
}

.skill-detail {
  color: var(--gray-400);
  font-size: 0.9em;
}

.experience-period,
.skill-level {
  font-weight: bold;
  color: var(--gray-400);
  margin-bottom: 3px;
}

.experience-role {
  font-size: 1.1em;
  margin-bottom: 3px;
}

.experience-company {
  color: var(--gray-300);
}

.skill-category, .clients-link {
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--gray-200);
}


/* Two-column layout for wider screens (tablet and up) */
@media (min-width: 768px) {
  .experience-list,
  .skills-list,
  .clients-list{
    display: grid;
    grid-template-columns: 1fr 1fr; /* two columns */
    gap: 20px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 30px 15px;
  }

  .section-heading {
    font-size: 28px;
  }

  .nav-table td {
    display: block;
    width: 100% !important;
    border-bottom: 1px solid var(--gray-700);
  }

  .nav-table td:last-child {
    border-bottom: 2px solid var(--gray-700);
  }

  .nav-btn {
    border: none;
    margin-bottom: 0;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    font-size: 18px;
  }

  td, th {
    padding: 8px;
  }

  th {
    font-size: 18px;
    text-align: center;
  }

  .ph {
    font-weight: bold;
    text-align: center;
  }

  .table-label {
    width: 120px;
  }

  .project-screenshot {
    padding: 15px !important;
  }

  .screenshot-img {
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .section-heading {
    font-size: 24px;
  }

  .header-icon img,
  .icon-circle {
    width: 120px;
    height: 120px;
  }

  table {
    font-size: 16px;
    width: 100% !important;
  }

  td, th {
    padding: 6px;
    display: block;
    width: 100% !important;
    border-left: none;
    border-right: none;
  }

  .ph {
    font-weight: bold;
    text-align: center;
  }

  th {
    border-top: none;
    font-size: 20px;
  }

  tr:first-child th {
    border-top: 1px solid var(--gray-700);
  }

  tr:last-child td {
    border-bottom: none;
  }

  .table-label {
    width: 100%;
    font-weight: bold;
    border-bottom: 1px solid var(--gray-700);
  }

  .project-screenshot {
    padding: 10px !important;
  }

  .screenshot-img {
    min-height: 120px;
  }


  .skill-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
  }
}
