/*
 * Global styles for portfolio project pages (Work + Experience).
 * Typography, layout, round buttons, and shared components.
 */

:root {
  --font-family-base: -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-h2: 52px;
  --font-size-h3: 18px;
  --font-size-h5: 18px;
  --letter-spacing: 0.01em;
  --color-black: black;
  --color-gray: gray;
}

* {
  padding: 0;
  margin: 0;
}

html,
body {
  width: 100%;
  margin: auto;
  overflow-x: hidden;
  font-family: var(--font-family-base);
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h2 {
  font-size: var(--font-size-h2);
  font-weight: 400;
  letter-spacing: var(--letter-spacing);
  color: var(--color-black);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 300;
  letter-spacing: var(--letter-spacing);
  line-height: 1.6;
  color: var(--color-gray);
}

h5 {
  font-size: var(--font-size-h5);
  letter-spacing: var(--letter-spacing);
  color: var(--color-black);
}

/* Layout */
.headimg {
  width: 100%;
}

.landing {
  max-width: 70%;
  margin: auto;
  margin-top: 10vh;
  padding-bottom: 15vh;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section {
  max-width: 70%;
  margin: auto;
  margin-top: 15vh;
}

.video {
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  border-radius: 24px;
}

.asset {
  width: 100%;
}

.last {
  padding-bottom: 15vh;
}

.center {
  text-align: center;
}

.clickable-text {
  cursor: pointer;
  text-decoration: none;
  color: rgba(75, 133, 231, 1);
  transition: 0.3s;
}

.clickable-text:hover {
  text-decoration: none;
  opacity: 0.5;
  transition: 0.3s;
}

@media (max-width: 920px) {
  h2 {
    font-size: 36px;
  }

  .landing {
    max-width: 90%;
  }

  .round2,
  .round3 {
    display: none;
  }

  .section {
    max-width: 90%;
  }

  .video {
    margin-top: 5vh;
  }
}

/* #region Round buttons */
.round {
  position: fixed;
  z-index: 10;
  margin: 7% 7%;
  backdrop-filter: blur(6px);
  background-color: hsla(0, 0%, 100%, 0.85);
  box-shadow: 4px 4px 40px 4px rgba(0, 0, 0, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 100%;
  opacity: 0.2;
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.round span {
  border-radius: 2px;
  height: 3px;
  width: 15px;
  background-color: black;
  transition: 0.4s ease;
}

.round span:first-child {
  position: absolute;
  transform: rotate(45deg);
  left: 30%;
  top: 59%;
}

.round span:nth-child(2) {
  position: absolute;
  transform: rotate(-45deg);
  left: 30%;
  top: 40%;
}

.round:hover {
  opacity: 1;
  transition: 0.5s;
  cursor: pointer;
  border-radius: 100px;
  width: 110px;
}

.round:hover span:nth-child(1) {
  transform: rotate(-135deg);
  opacity: 0;
  transition: 0.5s;
}

.round:hover span:nth-child(2) {
  transform: rotate(135deg);
  opacity: 0;
  transition: 0.5s;
}

.round:hover::after {
  content: "Home";
  color: black;
  font-weight: 500;
  font-size: 14px;
  transition: 0.5s ease-in;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif,
    sans-serif;
}

.round2 {
  position: fixed;
  z-index: 10;
  margin: 12% 7%;
  backdrop-filter: blur(6px);
  background-color: hsla(0, 0%, 100%, 0.85);
  box-shadow: 4px 4px 40px 4px rgba(0, 0, 0, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 100%;
  opacity: 0.2;
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.round2 span {
  border-radius: 2px;
  height: 3px;
  width: 15px;
  background-color: black;
  transition: 0.4s ease;
}

.round2 span:first-child {
  position: absolute;
  transform: rotate(135deg);
  left: 25%;
  top: 48%;
}

.round2 span:nth-child(2) {
  position: absolute;
  transform: rotate(-135deg);
  left: 41%;
  top: 48%;
}

.round2:hover {
  opacity: 1;
  transition: 0.5s;
  cursor: pointer;
  border-radius: 100px;
  width: 110px;
}

.round2:hover span:nth-child(1) {
  transform: rotate(-135deg);
  opacity: 0;
  transition: 0.5s;
}

.round2:hover span:nth-child(2) {
  transform: rotate(135deg);
  opacity: 0;
  transition: 0.5s;
}

.round2:hover::after {
  content: "Top";
  color: black;
  font-weight: 500;
  font-size: 14px;
  transition: 0.5s ease-in;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif,
    sans-serif;
}

.round3 {
  position: fixed;
  z-index: 10;
  margin: 17% 7%;
  backdrop-filter: blur(6px);
  background-color: hsla(0, 0%, 100%, 0.85);
  box-shadow: 4px 4px 40px 4px rgba(0, 0, 0, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 100%;
  opacity: 0.2;
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.round3 span {
  border-radius: 2px;
  height: 3px;
  width: 15px;
  background-color: black;
  transition: 0.4s ease;
}

.round3 span:first-child {
  position: absolute;
  transform: rotate(-135deg);
  left: 25%;
  top: 50%;
}

.round3 span:nth-child(2) {
  position: absolute;
  transform: rotate(135deg);
  left: 41%;
  top: 50%;
}

.round3:hover {
  opacity: 1;
  transition: 0.5s;
  cursor: pointer;
  border-radius: 100px;
  width: 110px;
}

.round3:hover span:nth-child(1) {
  transform: rotate(135deg);
  opacity: 0;
  transition: 0.5s;
}

.round3:hover span:nth-child(2) {
  transform: rotate(-135deg);
  opacity: 0;
  transition: 0.5s;
}

.round3:hover::after {
  content: "Prototypes";
  color: black;
  font-weight: 500;
  font-size: 14px;
  transition: 0.5s ease-in;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif,
    sans-serif;
}

/* #endregion Round buttons */
