/* Design tokens */
:root {
  --paper: #fff;
  --ink: hsla(244, 16%, 17%, 0.95);
  --brand: #f2511b;
  --font: "Raleway", system-ui, sans-serif;
  --gap: 20px;
  --container: clamp(280px, calc(100vw - calc(var(--gap) * 2)), 1180px);
}
/* General Styles */
html,
body {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}
body {
  display: grid;
  margin: auto;
  min-height: 100vh;
  gap: var(--gap);
  max-width: var(--container);
}

.hide-scrollbar {
  overflow: hidden;
  overflow-y: auto;
}

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

a,
a:any-link {
  color: currentColor;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color ease-in-out 0.3s;
}
a:hover,
a:focus {
  color: var(--brand);
  border-color: currentColor;
}

.back-button-arrow {
  font-size: x-large;
}

/* Site header and navigation */
body > header {
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
}
nav {
  width: 100%;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: var(--gap);
}

/* Text readability */
section p {
  line-height: 1.5;
  max-width: 90ch;
}
section li {
  line-height: 1.5;
  max-width: 90ch;
}

h1 {
}

#who h1 {
  font-size: 2.5rem;
  margin: 0;
}

#who h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: normal;
}

h2 {
  /* margin: 0; */
}

#collapsibleParagraph {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
#toggleButton {
  margin-top: -50px;
  padding-left: 0;
  cursor: pointer;
  position: relative;
}

#toggleButton .squares {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#toggleButton .expand-text {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 400;
  color: var(--brand);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

#toggleButton:hover .squares {
  opacity: 0;
}

#toggleButton:hover .expand-text {
  opacity: 1;
}

#toggleButton svg {
  fill: var(--brand);
  padding: 0;
  margin-left: 3px;
}

/* Project Cards */

.card-container {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
}

.card {
  width: 330px;
  height: 300px;
  margin: 1.5rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0px 13px 10px -7px rgba(0, 0, 0, 0.1);
}

.card-thumb {
  width: 330px;
  height: 300px;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  overflow: hidden;
}

.card-body-info {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: left;
  width: 260px;
}

.card-body-info h5 {
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
}

button {
  background-color: transparent;
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 2rem;
  text-align: left;
}

.card:hover {
  box-shadow: 0px 30px 18px -8px rgba(0, 0, 0, 0.1);
  transform: scale(1.05, 1.05);
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 1;
  transition: 0.5s ease;
  background-color: var(--brand);
}

.card:hover .overlay {
  opacity: 0;
}

/* Contact Icons */

#contact a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

#contact a svg {
  margin: 0 3px;
  transition: transform 0.5s ease;
}

#contact a svg:hover {
  transform: rotateY(180deg);
}

/* Project Pages */

#project-details {
  padding-bottom: 2rem;
}

#project-details h3 {
  margin-top: -1rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--brand);
  font-weight: normal;
}

.project-details-img-container {
  position: relative;
  max-width: 90ch;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3.5rem 0;
  /* margin-left: 0; */
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0px 13px 10px -7px rgba(0, 0, 0, 0.1);
}

.project-details-img-container img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
}

.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

footer {
  margin: 2.5rem 0;
}

/* on-load overlay */

#on-load-overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(242, 81, 27, 1);
  z-index: 999;
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.5s;
}

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

#on-load-text {
  position: absolute;
  top: 40%;
  left: 30%;
  color: white;
}

#on-load-greeting {
  margin: 0;
  font-size: 4.5rem;
}

#on-load-instructions {
  font-size: 2rem;
  font-weight: normal;
  margin: 0;
}

/* mouse pointer animation */

.mouse-square {
  height: 15px;
  width: 15px;
  border-radius: 3px;
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 998;
}

/* media queries */
@media screen and (max-width: 430px) {
  #on-load-text {
    position: absolute;
    top: 40%;
    left: 15%;
    color: white;
  }

  #on-load-greeting {
    margin: 0;
    font-size: 3rem;
  }

  #on-load-instructions {
    margin: 0;
    font-size: 1.7rem;
    font-weight: normal;
  }
}
