/* /style/cv.css */

.scroll-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  white-space: normal;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

header.navigation {
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

header.navigation nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5em;
  display: flex;
  justify-content: space-around;
}

header.navigation nav ul li a {
  color: green;
  font-size: 0.5em;
  text-decoration: none;
  transition: color 0.3s;
}

header.navigation nav ul li a.active {
  color: #ccffcc;
}

section {
  padding: 0 10vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

section#experience {
  padding-top: 25px;
  font-size: 0.9em;
}

/* ------------------------------ */
/* HERO BAR (theme + layout)      */
/* ------------------------------ */

#hero_bar {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 4px solid green;
  background-color: rgba(0, 0, 0, 0.9);
  margin: 20px auto;
  width: 90%;
  box-shadow: 0 0 0 2px green;
}

#pic_container {
  height: 400px;
  width: 400px;
  background-image: url(/resources/images/pixel-alex-400px.png);
  background-repeat: no-repeat;
}

#pic_container img {
  height: 30vh;
  image-rendering: pixelated;
}

#hero_bar h1 {
  margin: 0;
  font-size: 2em;
}

/* Your info block next to portrait */
#hero_bar > div:nth-of-type(2) {
  text-align: left;
  font-size: 0.6em;
  max-width: calc(100% - 400px);
}

#character_stats :is(h1, h2) {
  text-align: center;
}

.contact-info {
  margin: 10px 0;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.contact-info a {
  color: green;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #ccffcc;
}

.contact-info .separator {
  color: green;
}

.character-skills {
  margin-top: 25px;
}

.character-skills > div {
  padding-left: 50px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9em;
}

#character-info {
  transform: translateY(-25px);
}

/* ------------------------------ */
/* DECK THEME (behavior in deck.css) */
/* ------------------------------ */

.job-deck {
  margin-top: 100px;
  margin-left: 25px;
}

.job-entry {
  border: 2px dotted green;
  background-color: rgba(0, 0, 0, 0.85);
  text-align: left;
  padding: 25px 50px;
  overflow:hidden;
  border-radius:10px;
}

.job-entry h3 {
  margin: 0;
  font-family: 'VT323', monospace;
  font-size: 1.2em;
  color: green;
}

.exp_duration {
  margin: 0.2em 0;
  font-style: italic;
  font-size: 0.8em;
  color: #66ff66AA;
}

.exp_description {
  margin-top: 0.5em;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.6em;
  line-height: 1.4;
}

footer {
  padding: 1em 0;
  background: black;
  color: green;
}

/* ------------------------------ */
/* UI ELEMENTS                     */
/* ------------------------------ */

.down-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  animation: pulse 2s infinite;
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.2;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.8;
  }
}

/* ------------------------------ */
/* RESPONSIVE                      */
/* ------------------------------ */

@media (max-width: 1900px) {
  header.navigation {
    top: 40px;
  }
}

@media (max-width: 800px) {
  #pic_container {
    height: 200px;
    width: 200px;
    background-image: url(/resources/images/pixel-alex-200px.png);
    margin: 0 auto;
    image-rendering: pixelated;
  }

  #hero_bar {
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 0 auto;
    padding: 10px;
  }

  #pic_container {
    margin-bottom: 10px;
  }

  #pic_container img {
    width: 50vw;
    height: auto;
    max-width: 200px;
  }

  #hero_bar h1 {
    margin-top: 10px;
    font-size: 1.5em;
  }

  #hero_bar > div:nth-of-type(2) {
    margin-top: 10px;
    text-align: center;
    font-size: 0.5em;
    padding: 0 10px;
    max-width: 100%;
  }

  .character-skills {
    margin-top: 0;
    transform: translateY(-25px);
  }

  .character-skills > div {
    padding-left: 0;
  }

  .contact-info {
    gap: 0.2em;
  }

  header.navigation nav ul {
    padding: 0 0.5em;
    justify-content: space-between;
  }

  .intro-info {
    font-size: 0.6em;
    margin: 20px 5px 0 5px;
  }

  .down-arrow {
    font-size: 1.5em;
  }

  section#experience {
    padding: 0;
  }

  /* deck behavior moved to /style/deck.css */
  .job-deck {
    margin-top: 100px;
    margin-left: 25px;
  }

  .exp_description {
    font-size: 0.6em;
  }
}

@media (max-width: 400px) {
  header.navigation {
    top: 35px;
  }

  .intro-info {
    font-size: 0.5em;
    margin: 20px 5px 0 5px;
  }

  .skill-category {
    margin: 10px;
  }

  .down-arrow {
    font-size: 1.25em;
  }

  .exp_description {
    font-size: 0.5em;
  }
}

@media (max-height: 800px) and (orientation: landscape) {
  section#experience {
    padding-top: 0;
    font-size: 0.85em;
  }

  #hero_bar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin: 30px auto 0;
    padding: 10px;
  }

  #pic_container {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background-image: url(/resources/images/pixel-alex-200px.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 10px;
  }

  header.navigation nav ul {
    padding: 0;
  }

  #hero_bar h1 {
    font-size: 1.2em;
  }

  #hero_bar > div:nth-of-type(2) {
    font-size: 0.5em;
    max-width: calc(100% - 200px);
  }

  .character-skills {
    margin-top: 0;
    padding: 0;
    transform: none;
  }

  .character-skills > div {
    padding-left: 0;
  }

  #character-info {
    transform: none;
  }

  .intro-info {
    font-size: 0.55em;
    margin: 10px auto 0 auto;
    width: 90vw;
    transform: translateX(-30px);
  }

  /* deck behavior moved to /style/deck.css */
  .job-deck {
    margin-top: 100px;
    margin-left: 25px;
  }

  .exp_description {
    font-size: 0.6em;
  }

  .down-arrow {
    font-size: 1em;
  }
}

@media (max-height: 400px) and (orientation: landscape) {
  #hero_bar > div:nth-of-type(2) {
    font-size: 0.4em;
  }

  header.navigation {
    top: 35px;
  }

  .character-skills h2 {
    font-size: 1.15em;
    transform: translateY(7px);
  }
}
