/* === GLOBAL LAYOUT === */
html, body {
  margin: 0;
  padding: 0;
  color: lightcyan;
  font-family: monospace;
  font-size: 14px;
  background: #014a3d;
  overflow-x: hidden;
  overflow-y: auto;
}

/* === STRUCTURE === */
#container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  height: auto;
  background: #014a3d;
}

.flex-one {
  flex: 2;
}

.flex-two {
  flex: 5;
  padding: 0 20px 0 20px;
  height: auto;
  overflow-y: visible;
}

.content {
  padding-bottom: 40px;
}

/* === LINKS & NAVIGATION === */
a {
  display: inline-block;
  padding: 8px;
  margin-bottom: 8px;
  border-left: 4px solid transparent;
  transition: border 0.3s ease;
  color: lightcyan;
  text-decoration: none;
}

a.active {
  border-left: 4px solid #5bdbbf;
  background: #e0f0ff;
  font-weight: bold;
}

.line {
  display: inline-block;
  width: 20px;
  height: 4px;
  background: #5bdbbf;
  vertical-align: middle;
  transition: width 0.3s ease;
  margin-right: 8px;
}

.line.active {
  width: 50px;
}

/* === CARD-LIKE SECTIONS === */
.job-description, .school-description, .skill {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.job-description {
  background: #07372f;
  border: 2px solid #5bdbbf;
}

.school-description {
  background: #042923;
  border: 2px solid #46c8ac;
}

.skill {
  background: #07372f;
  border: 2px solid #5bdbbf;
}

/* === JOB ELEMENTS === */
.job-title {
  float: left;
  font-weight: bold;
  font-size: 15px;
}

.job-date {
  float: right;
}

.company-name {
  font-weight: bold;
}

.job-skills {
  margin-top: 8px;
}

.skill-tag {
  display: inline-block;
  background: #5bdbbf;
  color: #014a3d;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: bold;
}

/* === SKILLS GRID === */
#skills {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill {
  flex: 1;
  min-width: 400px;
}

/* === GAMES SECTION === */
#game_container {
  padding: 16px;
  background: #07372f;
  border: 2px solid #5bdbbf;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
}

#game_details {
  border-left: 2px solid #46c8ac;
  font-size: 15px;
}

.game_option {
  padding: 6px;
  font-size: 18px;
  cursor: pointer;
}

.selected {
  background: #042923;
}

/* === BUTTONS & LINKS === */
.anchor {
  display: inline-block;
  padding: 10px 18px;
  margin: 6px 6px 12px 0;
  background: #046b5a;
  border: 2px solid #5bdbbf;
  border-radius: 6px;
  color: #e0fffa;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 6px rgba(91, 219, 191, 0.25);
}

.anchor:hover {
  background: #05816c;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(91, 219, 191, 0.5);
}

.anchor:active {
  transform: translateY(0);
  box-shadow: 0 0 4px rgba(91, 219, 191, 0.3);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 25px;
  right: 45px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

#caption {
  text-align: center;
  color: #ccc;
  margin-top: 10px;
  font-size: 16px;
}

/* === GALLERY === */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.screenshot-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  max-width: 175px;
  border: 2px solid #5bdbbf;
  margin: 0 auto;
}

.screenshot-thumb:hover {
  transform: scale(1.05);
}

/* === CONTACT FORM === */
.contact-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-intro {
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

textarea {
  resize: vertical;
}

.error-message {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #b91c1c;
  min-height: 1rem;
}

input.error,
textarea.error,
select.error {
  border-color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}

.honeypot {
  display: none;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.9rem;
  color: #2563eb;
  min-height: 1.2rem;
}

.btn-submit {
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #111827;
  color: #f9fafb;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s;
}

.btn-submit:hover {
  background: #020617;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 900px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }

  #container {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* Fixed top header */
  #container > div:first-child {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #014a3d;
    border-bottom: 2px solid #046b5a;
    text-align: center;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  #container > div:first-child h1 {
    font-size: 1.6rem;
    margin: 0;
  }

  #container > div:first-child h2 {
    display: block;
    font-size: 1rem;
    margin-top: 0.3rem;
  }

  #container > div:first-child a {
    display: inline-block;
    margin: 6px 8px;
    font-size: 0.9rem;
  }

  .line {
    display: none;
  }

  /* Main scrollable section */
  .flex-two {
    margin-top: 170px;
    padding: 1rem;
  }

  /* Responsive adjustments */
  .job-description, .school-description, .skill {
    font-size: 0.9rem;
    padding: 12px;
  }

  #skills {
    flex-direction: column;
  }

  .skill {
    min-width: 100%;
  }

  #game_container {
    flex-direction: column;
  }

  #game_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid #46c8ac;
    margin-bottom: 1rem;
  }

  .game_option {
    flex: 1 1 45%;
    text-align: center;
    font-size: 1rem;
    border: 1px solid #046b5a;
    margin: 4px;
    border-radius: 6px;
  }

  #game_details {
    border: none;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  input, textarea {
    width: 100%;
    font-size: 1rem;
  }

  .btn-submit {
    width: 100%;
    padding: 1rem;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 70%;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 28px;
  }

  .screenshot-thumb {
    height: 80px;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 13px;
  }

  .flex-two {
    margin-top: 150px;
  }

  #container > div:first-child h1 {
    font-size: 1.5rem;
  }

  .game_option {
    flex: 1 1 100%;
  }

  .screenshot-gallery {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}