@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "HeaderFont";
  src:
    url("HeaderFont.eot?#iefix") format("embedded-opentype"),
    url("HeaderFont.otf") format("opentype"),
    url("HeaderFont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background-color: #d9d9d9;
  color: #716c65;
  font-family: "Roboto Mono", monospace;
}

/* =========== MAIN HEADER =========== */

.header,
.gallery-header {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: flex-start;
}

/* ==== LOGO ==== */

.logo,
.gallery-logo {
  flex-shrink: 0;
  padding-left: 10px;
  margin-top: 0px;
}

.logo img,
.gallery-logo img {
  display: block;
  width: 300px !important;
  height: auto !important;
}

/* ========== NAVIGATION ========== */

.navigation,
.gallery-navigation {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 20px 0 0;
}

.navigation a,
.gallery-navigation a {
  color: #716c65;
  font-family: "Roboto Mono", monospace;
  text-decoration: none !important;
}

.navigation a:hover,
.gallery-navigation a:hover {
  opacity: 0.7;
}

/* ============ LANDING PAGE ============ */

.landing {
  min-height: 100vh;
}

/* ====== PANELS ====== */

.panel-container {
  align-items: center;
  justify-content: center;
  width: 100%; 
  /* background-color: #f9d9d9; */
  height: auto;
  padding: 20px;
}

.scadpro-panel {
  position: relative;
  background-color: #e9e9e9;
  text-align: left;
  gap: 40px;
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
  border-radius: 32px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.content-panel {
  display: none;
  position: relative;
  background-color: #e9e9e9;
  text-align: left;
  gap: 30px;
  padding: 20px;
  margin: 0 auto;
  max-width: 900px;
  border-radius: 32px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.gallery-panel {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  overflow: hidden;
  gap: 8px;
  padding: 0;
  width: 100%;
  height: min-content;
  background-color: #fff;
  text-align: center;
  margin: 0 auto;
}

.gallery-column {
  flex-flow: column;
  flex-grow: 1;
  /* place-content: center; vertical centered column so not necessarily starting at the top of the column */
  align-items: center;
  /* border: 1px solid red; for debugging */
}

.gallery-frame video {
  cursor: auto;
  width: 100%;
  height: 100%;
  object-position: 50% 50%;
  background-color: rgba(246, 246, 246, 0);
}

.content-panel.active {
  display: block;
}

.gallery-panel.active {
  display: grid;
}

.content-panel a {
  position: relative;
  display: block;
  width: 300px;
  text-decoration: none;
  z-index: 2;
}

.content-panel img {
  display: block;
  height: auto;
  position: relative;
  z-index: 2;
}


.image-container {
  display: flex;
  height: auto;
  max-width: 1100px;
  justify-content: space-between;
  margin: 20px 0 0;
}

.image-container img {
    max-width: 100%;
}

.image-container-center {
  display: flex;
  height: auto;
  max-width: 1000px;
  justify-content: center;
  margin: 20px 0 0;
}

.props-container {
  display: flex;
  height: auto;
  max-width: 1000px;
  justify-content: space-between;
  margin: 20px 0 0;
}

.props {
  max-width: 1000px;
}

.image-col1 {
  flex: 1;
  max-width: 60%;
}

.image-col1-full {
  flex: 1;
  max-width: 98%;
}

.image-col2 {
  width: 49%;
}

.image-col3 {
  width: 32%;
}

.image-col1 img,
.image-col1-full img {
  height: auto;
  max-width: 100%;
}

.image-col2 img,
.image-col3 img {
  height: auto;
  max-width: 100%;
  justify-content: center;
}

.image-col3 img {
  aspect-ratio: 16 / 11;
}

.banner-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.banner-image img {
  min-height: 200px;
  border-radius: 32px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);
}

.textblock {
  position: relative;
  background-color: #e9e9e9;
  text-align: left;
  gap: 40px;
  padding: 10px 15px;
  margin: 20px auto;
  border-radius: 32px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);

  max-width: 800px;
  font-family: "Roboto Mono", monospace;
  color: #716c65;
  font-size: 16px;
  line-height: 1.6;
}

/* ======== XR PANEL ======== */

.xr-page {
  width: 100%;
  min-height: calc(100vh - 100px);
}

.navigation-group {
  margin: 30px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.navigation-group a {
  padding: 12px 24px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  background-color: #b5b5b5;
  color: #716c65;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08);
  transition:
    all 0.3s ease;
}

/* ===== BROOMSMITH - VIDEO ===== */

.video-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #716c65;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 15px 40px rgba(0,0,0,0.08),
    0 3px 10px rgba(0,0,0,0.05);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.scad-video-container {
  display: flex;
  justify-content: center;
  height: auto;
  overflow: hidden;
  background: linear-gradient(to right, 
    #d9d9d9 0%,
    #333333 4%,
    #000000 20%,
    #000000 80%,
    #333333 96%,
    #d9d9d9 100%); 
}

/* content size: 502 x 466 */
#scadpro-video {
  border: none;
}

/* ===== BROOMSMITH - BUTTONS ===== */

.button-group {
  margin: 30px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  padding: 12px 24px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  background-color: #b5b5b5;
  color: #716c65;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.08);
  transition:
    all 0.3s ease;
}

button:hover {
  background-color: #716c65;
  color: #d9d9d9;
  transform: translateY(-2px);
}

button.active {
  background-color: #716c65;
  color: #d9d9d9;
}

/* ============= BROOMSMITH PANEL LAYOUT ============= */

.feature {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  max-width: 1100px;

  padding: 20px;
  margin: 0 auto;
  align-items: center;
}

.feature_text {
  flex: 1;
  min-width: 240px;
}

.feature_img {
  min-width: 300px;
  flex: 1 1 40%;
    
}

.feature--reversed {
  flex-direction: row-reverse;
}

.feature--reversed .feature_img {
  flex: 1;
}

.feature_img img {

  max-width: 100%;
  border-radius: 8px;
}
  
/* ============= GALLERY PANEL ============= */

/* REMOVED
.panel:nth-child(2) a {
  background-image: url("/content/windowgalbw.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 300px auto;
}

.panel:nth-child(2) a:hover {
  background-image: url("/content/windowgalcolor.png");
}

*/


/* ========== PANEL TEXT ========== */

.panel h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  font-family: "HeaderFont", serif;
  font-size: 36px;
  font-weight: normal;
  color: white;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

/* =========================
   BROOMSMITH PANEL SLIDE ANIMATION
========================= */

.content-panel {
  display: none;
  opacity: 0;
  transform: translateX(60px);
}

.content-panel.active {
  display: block;
  animation: slideInRight 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* =============== SHARED HEADINGS =============== */

.panel h1,
.resume-header h1,
.resume h2,
.about h1,
.gallery-page h1 {
  font-family: "HeaderFont", serif;
}


/* ========================== GALLERY / EXTRA PAGES ========================== */

.gallery-page {
  width: 100%;
  min-height: calc(100vh - 100px);
}

.gallery-page h1 {
  margin: 0;
  font-family: "HeaderFont", serif;
  font-size: 36px;
  font-weight: normal;
  color: #716c65;
}

.gallery-frame {
  opacity: 1;
  transform: none;
  background-color: #f6f6f6;
  border-radius: 10px;
  margin-bottom: 8px;
}

.gallery-frame img {
  width: 100%;
  height: auto; /* keeps aspect ratio */
  display: block;
  border-radius: 10px;
  object-position: center;
  object-fit: cover;
}


/* ========== ABOUT PAGE ========== */

.about-box {
  width: 100%;
  max-width: 760px;
  padding: 50px;
  margin: 0 auto;
  background-color: #e9e9e9;
  /* background-color: #d9d9d9; */
  border-radius: 32px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.about-text {
  max-width: 660px;
  font-family: "Roboto Mono", monospace;
  color: #716c65;
  font-size: 16px;
  line-height: 1.6;
}

.about-text p {
  margin: 30px 0 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ========== EXTRA PAGE ========== */

.extra {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 450px 5% 100px;
}

.extra-content {
  width: 100%;
  max-width: 400px;
  font-family: "Roboto Mono", monospace;
  font-weight: normal;
  font-style: normal;
  line-height: 1.6;
}

.extra-box {
  width: 100%;
  max-width: 760px;
  padding: 50px;
  margin: 0 auto;
  background-color: #e9e9e9;
  /* background-color: #d9d9d9; */
  border-radius: 32px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.extra-text {
  max-width: 660px;
  font-family: "Roboto Mono", monospace;
  color: #716c65;
  font-size: 16px;
  line-height: 1.6;
}

.extra-text p {
  margin: 30px 0 0;
}

/* ====== RESUME ====== */

.resume {
  width: 100%;
  padding: 0 5%;
  margin: 30px auto 100px;
}

.resume-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px;
  background-color: #e9e9e9;
  /* background-color: #d9d9d9; */
  border-radius: 32px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.08),
    0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.resume h2 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 22px;
}

.resume-header {
  margin: 0 0 10px;
  padding: 0;
}

.resume-header h1 {
  margin: 0 0 5px;
  padding: 0;
  font-size: 36px;
  letter-spacing: 2px;
}

.resume-header h3 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-style: italic;
}

.resume-content {
  display: flex;
  width: 100%;
}


/* ========== EXPERIENCE ========== */

.experience {
  width: 65%;
  padding-right: 30px;
}


/* =================== INDIVIDUAL PROJECTS =================== */

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 16px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  /* flex: 0 0 60%; */
  scroll-snap-align: center;
  scroll-snap-stop: always;
  
  border-radius: 12px;
  padding: 10px;
  font-size: 1.5rem;
  text-align: center;
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); */
}

.carousel-item img {
  aspect-ratio: 16 / 11;
}


.job {
  margin-bottom: 25px;
}

.job-title {
  font-style: italic;
  font-weight: bold;
}

.date {
  float: right;
  font-size: 14px;
  font-style: normal;
}

.job-subtitle {
  margin-top: 3px;
  font-style: italic;
}

.job ul {
  padding-left: 20px;
  margin-top: 8px;
}

.job li {
  margin-bottom: 5px;
}

.tags {
  padding: 10px;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
}

.tags label {
  margin: 5px 0 0;
  padding: 5px 10px;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  background-color: #ddd;
  color: #615c55;
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.08); */
  /* transition: all 0.3s ease; */
}


/* ============== RESUME SIDEBAR ============== */

.sidebar {
  width: 35%;
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-family: "HeaderFont", monospace;
  font-size: 16px;
}

.sidebar p,
.sidebar li {
  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  font-weight: normal;
  font-style: normal;
  line-height: 1.4;
}

.sidebar-section {
  margin-bottom: 45px;
}

.skills p {
  margin-bottom: 18px;
}


/* ====== FOOTER ====== */

.site-footer {
  width: 100%;
  margin: 80px 0 0;
  padding: 25px 40px 20px;
  background-color: #b5b5b5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.footer-links {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: #716c65;
  color: #d9d9d9;
  border-radius: 30px;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.75;
  transform: translateY(-3px);
}

.footer-copyright {
  color: #716c65;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
}


/* ABOUT SECTION + HEADSHOT */
.about-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.about-headshot {
  flex: 0 0 280px;
}

.about-headshot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
}

.about-layout .about-box {
  flex: 1;
  min-width: 0;
}

/* MOBILE */
@media (max-width: 600px) {
  .about-layout {
    flex-direction: column;
    gap: 25px;
  }

  .about-headshot {
    flex: none;
    width: 65%;
    max-width: 280px;
  }

  .about-layout .about-box {
    width: 100%;
  }
}

/* ====== MOBILE ====== */

@media (max-width: 700px) {

  /* ---------- HEADER ---------- */
  .header,
  .gallery-header {
    height: auto;
  }

  .navigation,
  .gallery-navigation {
    gap: 10px;
  }


  /* ---------- LANDING PANELS ---------- */
  .panel-container {
    gap: 10px;
  }

  .panel {
    width: 30%;
    margin-bottom: 30px;
  }

  .panel a,
  .panel img {
    width: 100%;
    height: auto;
  }

  .panel h1 {
    font-size: 20px;
  }


  /* ---------- ABOUT ---------- */
  .about {
    min-height: 100vh;
    padding: 200px 5% 100px;
  }

  .about-box {
    padding: 30px 25px;
    border-radius: 24px;
  }


  /* ---------- RESUME ---------- */
  .resume {
    width: 100%;
    padding: 0 5%;
    margin-top: 100px;
  }

  .resume-box {
    padding: 30px 25px;
    border-radius: 24px;
  }

  .resume-content {
    display: block;
  }

  .experience,
  .sidebar {
    width: 100%;
  }

  .experience {
    padding-right: 0;
  }

  .date {
    float: none;
    display: block;
    margin-top: 5px;
  }


  /* ---------- GALLERY / EXTRA ---------- */
  .gallery-page {
    width: 100%;
    min-height: calc(100vh - 100px);
    padding: 50px 5% 100px;
  }

  .gallery-page h1 {
    font-size: 36px;
  }


  /* ---------- FOOTER ---------- */
  .site-footer {
    margin-top: 80px;
    padding: 20px 20px 15px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links a {
    width: auto;
  }
}

