@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600&family=Orbitron:wght@600;700&display=swap');



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

/* Body */
body {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background-color: #f4f1ff;
  line-height: 1.6;
  padding: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header */
header {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  background-color: #6c3fc5;
  color: #ffffff;
  padding: 20px 40px;
  margin: -20px -20px 0px -20px;
  border-bottom: 4px solid #4b2a8a;
}

/* Nav */
nav {
  margin-top: 10px;
}

/* Main */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
}

/* Footer */
footer {
  background-color: #6c3fc5;
  color: #ffffff;
  text-align: center;
  padding: 16px;
  margin-top: 40px;
  font-style: italic;
  border-top: 4px solid #4b2a8a;
}

/* Links */
a {
  color: #6c3fc5;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #6c3fc5;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

/* Sections */
section {
  margin-bottom: 60px;
}

/* Paragraphs */
p {
  margin-bottom: 12px;
}

/* Lists */
ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

ol {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 12px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th, td {
  border: 1px solid #c9b8f0;
  padding: 8px 12px;
  text-align: left;
}

th {
  background-color: #6c3fc5;
  color: #ffffff;
}

/* Descendant selectors */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #ffffff;
  font-weight: 600;
  font-style: italic;
  text-decoration: none;
}

/* Class selectors */
.headline {
  font-style: italic;
  color: #d4bbff;
}

.label {
  font-weight: 600;
}

.tag {
  background-color: #6c3fc5;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.date {
  color: #777;
  font-size: 0.85rem;
}

/* ID selectors */
#hero {
  background-size: 65%;
  background-position: bottom left;
  background-repeat: no-repeat;
  height: 90vh;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  color: #ffffff;
  margin-top: -20px;
  margin-bottom: 30px;
  border: 3px solid #6c3fc5;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background-color: #2a1a4a;
}

#hero .hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 60px;
  width: 50%;
}

#hero h1 {
  color: #ffffff;
  font-size: 2.2rem;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #ffffff;
  display: inline-block;
  width: max-content;
  max-width: 0;
  animation: typing 2.2s steps(23) 0.5s forwards, blink 0.6s step-end 2.0s 3, hide-cursor 0s 4.5s forwards;
}

@keyframes typing {
  to { max-width: 600px; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes hide-cursor {
  to { border-right-color: transparent; }
}

#hero .hero-headshot {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

#hero h2 {
  color: #ffffff;
  font-size: 64px;
}

#resume-hero, #cover-hero, #goals-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-top: -20px;
  margin-bottom: 30px;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

#resume-hero h2, #cover-hero h2, #goals-hero h2 {
  color: #ffffff;
  font-size: 64px;
}

.hero-credit {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.hero-credit a {
  color: rgba(255,255,255,0.8);
}


#current-date {
  font-style: italic;
  color: #777;
  margin-bottom: 20px;
}

/* Pseudo-class selectors */
a:hover {
  color: #4b2a8a;
  text-decoration: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #6c3fc5;
}

tr:nth-child(even) {
  background-color: #ece6ff;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

label {
  font-weight: 600;
  color: #4b2a8a;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #c9b8f0;
  border-radius: 6px;
  font-size: 15px;
  background-color: #ffffff;
  color: #1a1a1a;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 2px solid #c9b8f0;
  border-radius: 6px;
  padding: 12px 16px;
}

legend {
  font-weight: 600;
  color: #4b2a8a;
  padding: 0 6px;
}

fieldset label {
  font-weight: normal;
  margin-right: 16px;
}

button[type="submit"] {
  background-color: #6c3fc5;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
}

button[type="submit"]:hover {
  background-color: #4b2a8a;
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */
@media (max-width: 768px) {

  body {
    padding: 10px;
  }

  header {
    padding: 16px 20px;
    margin: -10px -10px 0 -10px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  main {
    padding: 10px;
  }

  /* Hero index — stack vertically */
  #hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    height: auto;
    background-size: cover;
    background-position: bottom left;
  }

  #hero .hero-text {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    justify-content: center;
    background-size: cover;
    background-position: bottom left;
  }

  #hero h1 {
    font-size: 1.4rem;
    white-space: normal;
    animation: none;
    width: 100%;
    max-width: 100%;
    border-right: none;
  }

  #hero .hero-headshot {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: top;
  }

  /* Other heroes */
  #resume-hero, #cover-hero, #goals-hero {
    height: 40vh;
  }

  #resume-hero h2, #cover-hero h2, #goals-hero h2 {
    font-size: 2rem;
  }

  /* Table — make it scrollable */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Skills grid */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }
}

