/* ---- Reset ---- */
@font-face {
  font-family: blackletter;
  src: url(/assets/BlackletterExtrabold-51DV.ttf);
}

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

body {
  font-family: quicksand, sans-serif;
  line-height: 1.6;
  padding: 2em;
  background-image: url(/assets/background.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #3C3C3C;
  color: #fff;
}
/* cursor tooltip */
#tap-alert {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9em;
  cursor: pointer;
  z-index: 999;
}

@media (pointer: coarse) and (hover: none) {
  #tap-alert {
    display: block;
  }
}

.cursor-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  background-color: #333;
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.8em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.15s ease;
  transform: translate(14px, 18px);
  z-index: 1000;
}

.cursor-tooltip.visible {
  visibility: visible;
  opacity: 1;
}
/* ---- Layout helpers ---- */
section,
header,
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em 1.5em;
}

#page-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 1em;
  border-radius: 15em 15em 2em 2em;
  overflow: hidden;
  background-color: var(--app-bg, #38114c);
  color: var(--app-fg, #e5e7ec);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---- Header / Nav ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  padding: 1em 1.5em;
  max-width: 900px;
  margin: 0 auto;
}

.navbar a {
  text-decoration: none;
  color: #fff;

}

.logo {
  font-family: blackletter;
  background-color: transparent;
  color: var(--app-bg, #e5e7ec);
  text-decoration: none;
  border: none;
  font-size: 3em;
  font-style: italic;
}
.logo > h1 {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.25em 0.6em;
  color: var(--app-fg, #e5e7ec);
}
/* ---- Hero ---- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
}


.hero-text {
  max-width: 32em;
  margin: 2em;
  padding: 1em;

}
pre {
  font-family: "Courier New", monospace;
  font-size: 0.5em;       /* smaller = more compact art */
  line-height: 1;       /* keeps rows tight, no extra vertical gaps */
  letter-spacing: 0;
}

/* ---- Skills / Frameworks ---- */
.skills h2 {
  margin-bottom: 1em;
}

.skill-card {
  background-color: var(--app-bg, #3c3c3c);
  color: var(--app-fg, #e5e7ec);
  padding: 1.25em 1.5em;
  border-radius: 10px;
  border: 1px solid var(--app-fg, #e5e7ec);
  flex: 1;

}

.skill-card h3 {
  margin-top: 0;
  color: var(--app-fg, #e5e7ec);
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-card li {
  padding: 0.25em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card li:last-child {
  border-bottom: none;
}

/* Optional: lay the three cards out side by side on wider screens */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
}

.frameworks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  margin-top: 2em;
}

.framework h3 {
  margin-bottom: 0.5em;
}

.framework ul {
  list-style: disc;
  padding-left: 1.2em;
}

/* ---- Contact ---- */
.contact h2 {
  margin-bottom: 1em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start; /* stops columns from stretching to match each other's height */
  gap: 1.5em;
  min-height: 20em;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* controls exact spacing between text and cat now */
}

.left-column p {
  margin: 0; /* remove the old fixed margin-top/height */
}

.left-column pre {
  font-size: 1em;
  margin: 0; /* remove old fixed height */
}

.contact-form {
  width: 100%;
  max-width: 550px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: color-mix(in srgb, var(--app-bg, #3c3c3c) 25%, transparent);
  border: 1px solid color-mix(in srgb, var(--app-fg, #e5e7ec) 20%, transparent);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 color-mix(in srgb, var(--app-fg, #e5e7ec) 15%, transparent);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--app-fg, #e5e7ec);
  background: color-mix(in srgb, var(--app-fg, #e5e7ec) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--app-fg, #e5e7ec) 18%, transparent);
  border-radius: 10px;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--app-fg, #e5e7ec);
  opacity: 0.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: color-mix(in srgb, var(--app-fg, #e5e7ec) 12%, transparent);
  border-color: var(--app-fg, #e5e7ec);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-fg, #e5e7ec) 15%, transparent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--app-bg, #3c3c3c);
  background: var(--app-fg, #e5e7ec);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-form button:active {
  transform: translateY(0);
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  font-size: 0.85em;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .navbar {
    justify-content: center;
    text-align: center;
  }
  .hero {
    flex-direction: column;
    margin: 0 auto;
  }
  .hero-text {
    text-align: left;
    margin: 3em 0em;
    padding: 0;
  }

  .skills-text {
    text-align: left;
    margin-bottom: 2em;
    padding: 0;
  }
  .contact {
        padding: 2em 0.5em;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "left-top"
      "left-bottom"
      "right";
    min-height: unset; /* let content determine height instead of forcing 20em */
  }

  .contact-grid p {
    margin-top: 0em; /* was 2em - tighter on mobile */
    height: auto; /* was 4em fixed - let text wrap naturally */
  }

  .contact-grid pre {
    font-size: 0.5em; /* was 1em - the cat art needs to shrink a lot to fit mobile width */
    height: auto; /* was 11em fixed */
  }
}
