* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-style: normal;
}
:root {
  --secondary-color: #c4c4c4;
}
a:link {
  text-decoration: none;
  color: rgb(255, 255, 255);
}
a:visited {
  text-decoration: none;
  color: rgb(255, 255, 255);
}
.header {
  padding: 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  position: absolute;
  width: 100%;
  color: #fff;
}
.header h1 {
  display: inline-flex;
  color: #fff;
  text-decoration-style: solid;
  text-decoration-color: var(--secondary-color);
  flex-wrap: wrap;
  flex: 1;
  margin-right: 10px;
}
.header ul li {
  float: right;
  list-style: none;
  margin: 0px 40px 18px 0;
  padding: 0px 5px 15px 1px;
  position: relative;
  font-size: large;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.header ul li::after {
  background-color: var(--secondary-color);
  content: "";
  position: absolute;
  height: 3px;
  width: 0;
  left: 0;
  bottom: 0px;
  transition: 0.4s;
  color: #fff;
}
.header ul li:hover {
  color: #ffffff;
  transition: 0.8s;
}
.header ul li:hover::after {
  width: 100%;
  transition: 0.4s;
}
.hero {
  height: 600px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  background-image: linear-gradient(rgb(0 0 0 / 65%), rgb(0 0 0 / 65%)), url("../images/hero.jpg");
  background-size: cover;
  position: relative;
  color: #fff;
}
.hero div {
  margin: auto;
}
.hero div img {
  box-shadow: 1px 1px 15px rgb(0, 0, 0);
  min-width: 50px;
  transition: 0.8s;
}

.hero p {
  color: #fff;
  font-size: 50px;
  transition: 0.8s;
}
.hero p:hover {
  font-size: 55px;
  transition: 0.8s;
}
.hero .quote-credit {
  color: #fff;
  margin-left: 100px;
}

.hero img {
  height: 250px;
  width: 250px;
  border-radius: 10px;
}

.home-about {
  padding: 4em 0;
  max-width: 900px;
  margin: 0 auto;
}

.columns {
  display: flex;
}

.col + .col {
  margin-left: 1.5em;
}

.footer  {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.footer ul li {
  list-style: none;
  background-color: #fff;
  margin: 0px 100px 18px 0;
  padding: 0px 5px 15px 1px;
  position: relative;
  font-size: large;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-align: center;
}
.footer ul li::after {
  background-color: var(--secondary-color);
  content: "";
  position: absolute;
  height: 3px;
  width: 0;
  left: 0;
  bottom: 0px;
}
.footer ul li:hover {
  color: #3b3b3b;
}
.footer ul li:hover::after {
  width: 100%;
  transition: 0.4s;
}

@media only screen and (max-width:2000px) {
  .hero {
    height: 1000px;
    width: 100%;
    transition: .5s;
  }
}
@media only screen and (min-width: 928px) {
  .hero {
    height: 700px;
    width: 100%;
    transition: 1s;
  }
}
@media only screen and (max-width: 768px) {
  .header {
    position: relative;
    border: none;
    box-shadow: none;
  }
  .hero p:hover {
    font-size: 40px;
    transition: 0.8s;
  }
}

.fade-in{
  opacity: 1;
  transition: opacity 250ms ease-in;
}

.fade-in.appear{
  opacity: 1;
}

.more-stuff-grid {
  background: #f4f4f4;
  padding: 4em 0;
  display: grid;
  grid-gap: 2em;
  align-items: center;
  grid-template-columns: minmax(1em, 1fr) repeat(2, minmax(200px, 400px)) minmax(1em, 1fr);
  font-family: Arial, Helvetica, sans-serif;

}
.more-stuff-grid .about-heading{
  position: absolute;
  top: 1rem;
  left: 50%;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;

}
.home-more-stuff{
  position: relative;
}
.more-stuff-grid img{
  height: 300px;
  box-shadow: 1px 2px 10px 1px rgb(109, 109, 109);
}
.from-left {
  grid-column: 2 / 3;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.from-right {
  grid-column: 3 / 4;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.from-left,
.from-right {
  transition: opacity 250ms ease-in, -webkit-transform 400ms ease-in;
  transition: opacity 250ms ease-in, transform 400ms ease-in;
  transition: opacity 250ms ease-in, transform 400ms ease-in,
  -webkit-transform 400ms ease-in;
  opacity: 1;
}

.from-left.appear,
.from-right.appear {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  opacity: 1;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.4;
}
.row {

  display: flex;
  flex-wrap: wrap;

  overflow: hidden;
  margin: 3rem auto;
  padding: 2rem 1rem;
  max-width: 1200px;
  background: #eee;
}
.row .col {

  display: flex;
  align-items: flex-start;

  justify-content: center;

  flex-direction: column;

  flex: 0 0 calc(100% - 2rem);
  max-width: calc(100% - 2rem);

  margin: 0 1rem;
  background: #fff;

  transition: transform 0.5s ease-in-out;
}
.row .col.p-2 {
  padding: 2rem;

}
.row .col img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}
.row .col button {
  display: inline-block;
  padding: 1rem;
  background: #24677d;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  .row {
    flex-wrap: nowrap;

  }
  .row .col {

    flex: 0 0 calc(50% - 2rem);
    max-width: calc(50% - 2rem);
  }
  .row.box-active .col {
    transform: translateX(calc(-100% - 2rem));

  }
  .row.box-active .col:last-of-type {
    transform: translateX(calc(-100% - 2rem));
  }
  .row:nth-child(even) .col {
    transform: translateX(calc(-100% - 2rem));
  }
  .row:nth-child(even) .col:nth-child(1) {
    order: 3;
  }
  .row:nth-child(even) .col:nth-child(2) {
    order: 2;
  }
  .row:nth-child(even) .col:last-of-type {
    transform: translateX(calc(-100% - 2rem));
    order: 1;
  }
  .row:nth-child(even).box-active .col {
    transform: translateX(0);
  }
  .row:nth-child(even).box-active .col:last-of-type {
    transform: translateX(0);
  }
}

@media (max-width: 767.98px) {
  .row {
    height: calc(600px + 6rem);
  }
  .row .col {
    margin-bottom: 2rem;
    height: 300px;
  }
  .row.box-active .col {
    transform: translateY(calc(-100% - 2rem));
  }
}

.boxes{
  background-color: #f4f4f4;
}

.header ul .brand {
  float: left;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.header ul .brand::after {
  content: none;
}

.header .brand h1 {
  display: block;
  margin: 0;
  white-space: nowrap;
}

.header li > a {
  display: block;
}

img {
  max-width: 100%;
}

.home-about .col,
.more-stuff-grid > * {
  min-width: 0;
}

.home-more-stuff,
.boxes {
  overflow-x: clip;
}

@media (max-width: 927px) {
  .hero {
    height: auto;
    min-height: 650px;
    padding: 0 1rem 2.5rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }

  .hero .header {
    position: relative;
    width: 100%;
    padding: 1.25rem 0;
  }

  .header ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .header ul .brand {
    flex-basis: 100%;
    float: none;
    text-align: center;
    padding: 0;
  }

  .header h1 {
    font-size: clamp(1.2rem, 5vw, 2rem);
    margin-right: 0.25rem;
  }

  .header ul li {
    float: none;
    margin: 0;
    padding: 0.5rem 0;
    font-size: 1rem;
  }

  .header li:not(.brand) > a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
  }

  .hero p,
  .hero p:hover {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .hero .quote-credit {
    margin-left: 0;
    font-size: 1rem;
  }

  .hero img {
    width: min(250px, 70vw);
    height: auto;
  }

  .more-stuff-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }

  .more-stuff-grid > * {
    grid-column: 1;
  }

  .more-stuff-grid .about-heading {
    position: static;
    grid-row: 1;
  }

  .more-stuff-grid img {
    height: auto;
    width: min(100%, 400px);
    justify-self: center;
  }

  .home-about {
    padding: 2rem 1.25rem;
  }

  .columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .columns .col + .col {
    margin-left: 0;
  }

  .footer ul li {
    margin: 0;
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    flex-direction: column;
  }

  .hero > div {
    margin: 0;
  }

  .row {
    height: auto;
    margin: 1.5rem auto;
    padding: 1rem;
    gap: 1rem;
  }

  .row .col {
    flex: 0 0 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    margin: 0;
  }

  .row .col.p-2 {
    padding: 1.25rem;
    overflow-wrap: anywhere;
  }

  .row .col img {
    height: auto;
  }

  .row.enhanced .col:last-of-type {
    display: none;
  }

  .row.box-active .col {
    transform: none;
  }

  .row.box-active .col:last-of-type {
    display: flex;
  }

  .row.box-active .show-col {
    display: none;
  }
}

/* Accessibility: visible navigation, resilient content, and user motion preferences. */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #111;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
a.skip-link:link, a.skip-link:visited { color: #111; }
:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}
main:focus { outline: none; }
.header a, .footer a { min-height: 44px; }
.header a { display: flex; align-items: center; }
.hero .quote-credit { font-size: 1.17rem; font-weight: bold; }
.about-heading { font-size: 2rem; }
.skill-heading { font-size: 1.17rem; }
a.project-link:link, a.project-link:visited { color: #0000a0; text-decoration: underline; }
.row button { cursor: pointer; min-height: 44px; }
.row:not(.enhanced) { flex-wrap: wrap; gap: 1rem; }
.row:not(.enhanced) .col { transform: none; order: initial; }
.row:not(.enhanced) .col:last-of-type { flex-basis: calc(100% - 2rem); max-width: calc(100% - 2rem); }
.row:not(.enhanced) button { display: none; }
@media (max-width: 767.98px) {
  .row:not(.enhanced) .col:last-of-type { flex-basis: 100%; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
  .row button { border: 1px solid ButtonText; }
}
/* Keep visual navigation order consistent with keyboard and reading order. */
.header ul { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.header ul li { float: none; margin: 0; }
.header ul .brand { float: none; margin-right: auto; }
@media (max-width: 927px) {
  .header ul { gap: 1rem; }
  .header ul .brand { margin-right: 0; }
}
@media (max-width: 767.98px) {
  .row.enhanced.box-active .col:first-child { display: none; }
}
