@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  --bg-color: #111;
  --terminal-bg: #1e1e1e;
  --title-bar-bg: #333;
  --text-color: #00ff41;
  --prompt-color: #888;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-mono);
  line-height: 1.7;
  padding: 1rem;

  @media (min-width: 768px) {
    padding: 2rem;
  }
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

body.page-team .container {
  max-width: 1200px;
}

.terminal-window {
  background-color: var(--terminal-bg);
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: light dark;
}

.title-bar {
  background-color: var(--title-bar-bg);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-bar .dots {
  flex-shrink: 0;
}

.title-bar .dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.25rem;
}

.dots .dot-red {
  background-color: #ff5f56;
}

.dots .dot-yellow {
  background-color: #ffbd2e;
}

.dots .dot-green {
  background-color: #27c93f;
}

.title-bar .title {
  color: #ccc;
  font-size: 0.875rem;
}

.terminal-body {
  /* Window has 1px border and  */
  /* Title Bar is 48px + 8px top + 8px bottom  */
  /* If it only has a single-line title the height is 28px */
  height: calc(100vh - 2rem - 66px);
  overflow-y: auto;
  padding: 1rem;

  @media (min-width: 768px) {
    height: calc(100vh - 4rem - 46px);
  }
}

h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

h4 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1.5rem;
}

ul,
ol {
  margin-bottom: 1.5rem;
  margin-left: 0;
  padding-left: 0;
}

@media (min-width: 768px) {
  ul,
  ol {
    padding-left: 2rem;
  }
}

ul {
  list-style-type: none;
}

ul li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

ul li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

@media (min-width: 768px) {
  ul li {
    padding-left: 0.5rem;
  }

  ul li::before {
    left: -1.5rem;
  }
}

ol {
  list-style-type: decimal;
  list-style-position: outside;
}

ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

ol li::marker {
  color: var(--primary-color);
  font-weight: bold;
}

a {
  color: var(--text-color);
  text-decoration: underline;
  transition: background-color 0.2s ease;
}

a:hover {
  background-color: var(--text-color);
  color: var(--terminal-bg);
  text-decoration: none;
}

.animated-section {
  display: none;
}

.prompt {
  display: block;
  margin-bottom: 1rem;
  min-height: 1.7em;
}

.prompt .user {
  color: var(--prompt-color);
}

.prompt .command {
  color: var(--text-color);
}

.section-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease-out 0.2s, max-height 0.8s ease-out 0.2s;
}

.section-content.is-visible {
  opacity: 1;
  max-height: none;
}

section {
  padding: 0;

  & + section {
    padding: 2rem 0;
  }

  @media (min-width: 768px) {
    padding: 2rem 0;
  }
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
}

.hero .headline {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.3rem;
  background-color: var(--text-color);
  margin-left: 5px;
  animation: blink 1s steps(1) infinite;
  position: relative;
  top: 4px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.cta-button {
  display: inline-block;
  font-size: 1rem;
  background-color: var(--text-color);
  color: var(--terminal-bg);
  padding: 0.5rem 2.5rem;
  border: 1px solid var(--text-color);
  text-decoration: none;
  width: 100%;
  max-width: 22.5rem;
  text-align: center;
}

.cta-button:hover {
  transform: scale(1.05);
}

.culture ul {
  list-style: none;
}

.culture li {
  margin-bottom: 2rem;
  padding-left: 2rem;
  position: relative;
}

.culture li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-color);
}

.culture li strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.separator {
  text-align: center;
  margin: 0.5rem 0 3rem;
  color: var(--prompt-color);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
}

.timeline-date {
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
  white-space: nowrap;
}

.timeline-content {
  color: var(--text-color);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  body > div.terminal-window > div.terminal-body > main > section:nth-child(2) {
    padding-bottom: 0;
  }

  .timeline-date {
    margin-bottom: 0.25rem;
  }
}

.join-us {
  padding-top: 0.5rem;
}

.links-section {
  padding: 2rem 0 2rem;
}

.links-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.links-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-icons {
  margin-bottom: 0.5rem;
}

.social-icons a {
  margin: 0 0.75rem 0 0;
  font-size: 1.5rem;
}

.ascii-logo {
  font-size: 0.4rem;
  line-height: 0.4rem;
  white-space: pre;
  color: var(--text-color);
}

.footer-copyright {
  font-size: 0.9rem;
  color: #888;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .links-container {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .ascii-logo {
    margin: 0 auto;
    font-size: 0.25rem;
    line-height: 0.25rem;
  }
}

.whois-output {
  font-size: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.whois-title {
  margin-bottom: 0.5rem;
}

.whois-field {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.whois-label {
  min-width: 120px;
  flex-shrink: 0;
}

.whois-value {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .whois-field {
    flex-direction: column;
    gap: 0;
  }

  .whois-label {
    min-width: auto;
  }
}

.cookie-preferences-btn {
  position: fixed;
  bottom: 3.5rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #1e1e1e;
  border: 2px solid #444444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-color);
  z-index: 99999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  @media (min-width: 768px) {
    bottom: 4rem;
    right: 4rem;
  }
}

.cookie-preferences-btn:hover {
  color: var(--terminal-bg);
  transform: scale(1.1);
}

.cookie-preferences-btn:active {
  transform: scale(0.95);
}

.team-layout {
  margin-bottom: 2rem;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.team-pic {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}

.team-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--prompt-color);
}

.team-bio {
  width: 100%;
}

.consent-banner {
  position: fixed;
  bottom: calc(4rem - 15px);
  right: calc(4rem);
  max-width: 312px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1e1e1e;
  display: none; /* Hidden by default, JavaScript will show it if needed */
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.5);
  color: #888888;
  font-size: 0.875rem;
  padding: 1.5rem;
  z-index: 999999;
}

.consent-banner__heading {
  color: #03ff42;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1.1;
  margin: 0;
}

.consent-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consent-banner__body p {
  margin-bottom: 0.5rem;
}

.consent-banner__body p + p {
  margin: 0;
}

.consent-banner__link {
  background: transparent;
  border: none;
  text-decoration: underline;
  align-items: center;
  display: inline-flex;
  width: min-content;
  gap: 0.5rem;
  color: #03ff42;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  padding: 0 0.25rem;
  /* margin: 0 -0.25rem; */
  cursor: pointer;
}

.consent-banner__link:hover {
  color: #1e1e1e;
  background-color: #03ff42;
}

.consent-banner__button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.consent-banner__button {
  border: 1px solid #03ff42;
  background-color: #03ff42;
  color: #1e1e1e;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.25rem 0;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.1s ease-in;
}

.consent-banner__button:hover {
  transform: scale(1.05);
}

.consent-banner__button:active {
  transform: scale(1);
}

.consent-banner__button--outline {
  background: transparent;
  color: #03ff42;
}
