:root {
  --primary-color: #007bff;
  --text-color: #ccc;
  --bg-dark-color: #555;
  --bg-light-color: #232326;
  --card-dark-bg: #555;
  --card-light-bg: #ccc;
  --layout-padding: 6px;
}

@keyframes nudge-jump {
  0%, 70%, 100% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-10px);
  }
  90% {
    transform: translateY(-2px);
  }
}

.homepage-container {
  padding: 0 calc(var(--layout-padding) * 4);
  background-color: var(--bg-light-color);
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);

  & .concepts {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  section-header {
    text-align: center;
    margin-bottom: 50px;
  }

  section-header h2 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 5px;
  }

  section-header p {
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: 600;
  }

  .concepts--code section,
  .concepts--design section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px; 
    margin: 0 auto;
  }

  & .concepts--code section {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  & .concepts--design section {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  & .concepts--transfer section {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  & .concepts__card {
    display: flex;
    position: relative;
    gap: calc(var(--layout-padding) * 4);
    background-color: var(--card-dark-bg);
    color: var(--bg-light-color);
    padding: 25px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 450px;
    cursor: default;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
  }

  & .concepts__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  & .concepts__card h3 {
    font-size: 1.4em;
    margin-top: 0;
    color: #fff;
  }

  & .concepts__card p {
    font-size: 0.95em;
    line-height: 1.4;
    color: #e0e0e0;
  }

  & .concepts__card__tags .tag {
    font-weight: 500;
    text-transform: uppercase;
  }

  & .concepts__card__info {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: calc(var(--layout-padding) * 2);
  }

  & .concepts__card-img {
    position: absolute;
    right: var(--layout-padding);
    top: var(--layout-padding);
    background: var(--bg-light-color);
    padding: calc(var(--layout-padding) / 2);
    border-radius: 8px;
  }

  & .concepts__card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    border-radius: 8px;

    & .tag {
      background-color: var(--primary-color);
      white-space: nowrap;
      color: #fff;
      padding: 4px 8px;
      border-radius: 4px;
      margin-right: 0px;
      font-size: 0.9em;
    }
  }

  & .transfer-table{
    width: 100%;
    height: 100vh;
    border-collapse: collapse;

    & thead th {
      background-color: var(--bg-dark-color);
      color: var(--bg-light-color);
    }

    & th, td {
      padding: 8px;
      text-align: left;
      border-bottom: 1px solid #ddd;
    }

    & tbody td {
      background-color: var(--bg-light-color);
    }
  }
}

/* Logo */
#jenkins-logo, #aws-logo {
  background-color: var(--card-light-bg);
}

/* Header */ 
.header {
  background-color: var(--bg-color);
  min-height: 100vh;
  padding: 0;
  display: flex;
}

.header__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  height: 100vh;
  padding-left: 5%;
}

.header__greeting {
  font-size: 1.25em;
  color: var(--text-color);
  margin-bottom: -15px;
  font-weight: 500;
  opacity: 0.9;
}

.header__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--text-color);
  margin: 0;
  line-height: 1.1;
  font-weight: 900;
}

.header__tagline {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: var(--primary-color);
  margin: 10px 0 20px 0;
  font-weight: 700;
}

.header__summary {
  font-size: 1.1em;
  color: #6c757d;
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.4;
}

.header__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.header__link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header__link:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header__content > * {
  animation: fadeInSlide 0.8s ease-out both;
}
/* Apply animation delays for staggered effect */
.header__greeting { animation-delay: 0.1s; }
.header__title { animation-delay: 0.3s; }
.header__tagline { animation-delay: 0.5s; }
.header__summary { animation-delay: 0.7s; }
.header__contact { animation-delay: 0.9s; }

.concepts__card-img {
  width: 30px;
  height: 30px;
}


.footer {
  border-top: 2px solid #e9ecef;
  padding: 30px 0;
  margin-top: 80px;
  font-size: 0.95em;
  text-align: center;
}

/* --- TEXT ELEMENTS --- */

.footer__copy,
.footer__build-info,
.footer__source {
  margin: 5px 0;
  color: #6c757d;
}

/* --- LINK STYLING --- */

.footer__link {
  color: #6c757d;
  text-decoration: none;
  border-bottom: 1px dotted #ced4da;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  font-weight: 500;
}

.footer__link:hover {
  color: var(--primary-color); 
  border-bottom-color: var(--primary-color);
}



.professional-breadth {
  padding: 80px 5%;
}

.concepts__heading {
  text-align: center;
  font-size: 2.5em;
  color: var(--text-color);
  margin-bottom: 5px;
}
.concepts__summary {
  text-align: center;
  font-size: 1.15em;
  color: #6c757d;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.transfer-grid {
  gap: 10px; 
  margin-top: 0;
}

.transfer-grid__header {
  background-color: var(--bg-dark-color);
  color: var(--text-color);
    
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 2px;
  font-size: 1em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.visual-proof__caption {
  font-size: 0.9em;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  font-style: italic;
  opacity: 0.8;
}

.transfer__item__visual-proof {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.transfer__item__visual-proof .project-iframe {
  width: 100%;
  height: 100%;
  border: 2px solid white;
  border-radius: 8px;
  background-color: #333;
}

.flip__card {
  background-color: transparent;
  width: 100%;
  height: 90px;
  min-height: 90px;
  interpolate-size: allow-keywords;
  border: 1px solid var(--bg-dark-color);
  border-radius: 8px;
  perspective: 800px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  overflow: hidden;

  transition: height 0.5s ease-in-out, box-shadow 0.3s ease;
}

.flip__card:first-child:not(.has-been-opened) {
  animation: nudge-jump 5s infinite;
}

.flip__card:first-child:hover {
  animation-play-state: paused;
}

.flip__card-inner {
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
  height: fit-content;

  transition: transform 0.4s ease-in-out 0.1s;
  transform-style: preserve-3d;
}


.flip__card.is-flipped .flip__card-inner {
  transform: rotateX(180deg);
}


.flip__card-front, .flip__card-back {
  grid-area: stack;
  position: relative;
  height: fit-content;
  width: 100%;

  backface-visibility: hidden;
  border-radius: 8px;

  display: flex; 
  flex-direction: row; 
  justify-content: space-between; 
  align-items: center; 
  text-align: left; 
}

.flip__card-front {
  background-color: var(--card-bg); 
  padding: 0 20px; 
  font-size: 0.9em;
  height: 90px;
}

.flip__card-back {
  background-color: var(--card-bg);
  color: white;
  border: 15px solid var(--primary-color);
  transform: rotateX(180deg);
  padding: 15px 25px;
    
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.flip__card.is-flipped {
  height: fit-content; 
}

.flip__card-back h4 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px; 
  flex-shrink: 0;
}

.flip__card-back p.transfer__item__detail {
  font-weight: 300;
  margin-bottom: 10px;
  overflow-y: auto;
}

.flip__card-back ul.transfer__item__detail {
  font-weight: 300;
  font-size: 0.95em;
  margin-bottom: 10px;
  overflow-y: auto;
  list-style-type: disc;
  padding-left: 20px;
}
.flip__card-back p {
  font-size: 0.95em;
  line-height: 1.3;
}

.transfer__item__col {
  padding: 0 10px;
  min-width: 0; 
}
.transfer__item__col--area {
  flex: 1.2; 
  font-weight: 600;
  color: var(--primary-color);
}
.transfer__item__col--skill {
  flex: 1.5; 
  font-style: italic;
}
.transfer__item__col--app {
  flex: 2; 
}

.transfer__item__detail-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  padding-top: 10px;
}

.transfer__item__text {
  flex: 2;
}

.transfer__item__visual-proof {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.view-code-link {
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.view-code-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.expand-iframe-toggle {
  background-color: #ffffff;
  border: 1px solid #ffffff;
  color: var(--primary-color);
  font-weight: 700;
}

.expand-iframe-toggle:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

.transfer__item__actions {
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 5px;
}

.transfer__item__actions .btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.disclaimer {
  font-size: 0.75em;
  font-style: italic;
  opacity: 0.7;
  margin-top: 10px;
}
.status-badge {
  display: inline-block;
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--bg-dark-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-top: 5px;
}

.iframe-container {
  opacity: 0;
  visibility: hidden;
  height: 0;
  transition: opacity 0.5s ease 0.3s, visibility 0s linear 0.8s, height 0.5s ease;
  width: 100%;
}

.flip__card.is-expanded-full .iframe-container {
  opacity: 1;
  visibility: visible;
  height: 700px;
  transition: opacity 0.5s ease 0.3s, visibility 0s linear 0s, height 0.5s ease;
}

.project-iframe {
  width: 100%;
  height: 180px;
  border: 2px solid white;
  border-radius: 8px;
  background-color: #333;
}

.terminal {
  width: 100%;
  height: 100%;
  background: #121212;
  border: 1px solid #333;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  color: #00ff41; /* Classic Matrix Green */
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
  border-radius: 5px;
}

.terminal-output {
  margin-bottom: 10px;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 95%;
}

.terminal-input-line {
  display: flex;
  align-items: center;
}

.prompt {
  margin-right: 10px;
}

.terminal input {
  background: transparent;
  border: none;
  color: #00ff41;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  width: 100%;
}

@media (max-width: 768px) {
  .header__greeting {
    margin-bottom: -10px;
  }

  .flip__card-back h4 {
    margin-top: 40px;
  }

  .transfer__item__visual-proof {
    min-width: unset;
    width: 100%;
  }
  .header__content {
    padding: 0 5%;
  }

  .flip__card-front,
  .flip__card-back {
    grid-area: unset;
    display: block;
  }

  .transfer__item__actions {
    flex-direction: column;
  }

  .flip__card-front,
  .transfer-grid__header {
    flex-direction: column; 
    align-items: flex-start;
    height: auto;
    min-height: 150px;
    padding: 15px;
    text-align: left;
  }

  .flip__card-front {
    height: 0px;
    min-height: 0px;
    padding: 0px;
  }

  .transfer__item__col {
    width: 100%;
    padding: 5px 0;
    margin: 0;
    flex: none;
  }
  .flip__card {
    background-color: transparent;
    width: 100%;
    height: 200px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    perspective: 800px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    overflow: hidden;
  }
  .flip__card-back {
    flex-direction: column; 
  }
  .transfer__item__detail-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .transfer__item__visual-proof {
    order: 2;
    min-width: unset;
    width: 100%;
  }
  .transfer__item__text {
    order: 1;
  }
}