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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: white;
  overflow-y: scroll;
}

.page {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* HOMEPAGE */

.hero {
  background: #050505;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-photo {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo img {
  height: 135%;
  max-width: none;
  object-fit: contain;

  /* only lowers image */
  transform: translate(-55px, 200px);

  filter: grayscale(100%);
}

.hero-content {
  width: calc(50% - 50px);
  height: calc(100vh - 100px);

  margin-top: 105px;
  margin-right: 50px;

  border: 1px solid rgba(255,255,255,.45);

  display: flex;
  flex-direction: column;

  padding: 30px 30px;
  position: relative;
}

.top-title,
.portfolio-title {
  font-size: 1.3rem;
  letter-spacing: 8px;
  font-weight: 300;
}

.top-title {
  margin-bottom: 18px;
}

.portfolio-title {
  margin-top: 18px;
}

.hero-content h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -5px;

  /* tiny adjustment left */
  transform: translateX(-4px);
}

.scroll-link {
  position: absolute;

  /* lower in the box */
  bottom: 45px;

  left: 30px;

  color: white;
  text-decoration: none;

  font-size: 1.3rem;
  letter-spacing: 5px;

  transition: .3s ease;
}

.scroll-link:hover {
  opacity: .55;
}

/* ABOUT PAGE */

.about-section {
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.about-container {
  width: 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-box {
  width: 100%;
  min-height: 750px;

  border: 1px solid rgba(0,0,0,.45);

  padding: 50px 30px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-box h2 {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -5px;
  margin-bottom: 35px;
}

.about-box p {
  font-size: 1rem;
  letter-spacing: 2px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 9000px;
}

.about-photo {
  width: 45%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-photo img {
  height: 155%;
  max-width: none;
  object-fit: contain;
  filter: grayscale(100%);
  transform: translate(15px, 55px);
}

.about-nav {
  color: black;
  text-decoration: none;

  font-size: 1.3rem;
  letter-spacing: 5px;
  font-weight: 300;

  transition: .3s ease;
}

.about-nav:hover {
  opacity: .55;
}

.about-container .about-nav:first-child {
  margin-bottom: 12px;
  margin-left: -800px;
}

.about-container .about-nav:last-child {
  margin-top: 12px;
  margin-left: -800px; 
}

/* ADD 32 - SKILLS */

.skills-title {
  margin-top: 50px;
  margin-bottom: 20px;

  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -3px;

  line-height: 0.9;
}

.skills-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 15px;
}

.skill-card {
  border: 1px solid rgba(0,0,0,.45);

  height: 90px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  font-size: 0.95rem;
  letter-spacing: 3px;
  font-weight: 700;

  transition: 0.3s ease;
}

.skill-card:hover {
  background: black;
  color: white;
}

/* PORTFOLIO PAGE */

.portfolio-section {
  background: #050505;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 8%;

  position: relative;
}

.portfolio-content {
  width: 100%;
}

.portfolio-section h2 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -5px;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.portfolio-card {
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: flex-end;
  padding: 25px;
  transition: 0.3s ease;
}

.portfolio-card:hover {
  background: white;
  color: black;
}

/* ANIMATIONS */

.animate {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.animate.up {
  transform: translateY(-45px);
}

/* MOBILE */

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

  .hero-photo {
    width: 100%;
    height: 45%;
  }

  .hero-photo img {
    height: 110%;
    transform: translate(-20px, 20px);
  }

  .hero-content {
    width: calc(100% - 40px);
    height: calc(55% - 30px);
    margin: 0 20px 30px 20px;
    padding: 35px 22px;
  }

  .hero-content h1 {
    font-size: 4rem;
    letter-spacing: -2px;
  }

  .hero-content p {
    font-size: 0.85rem;
    letter-spacing: 5px;
  }

  .scroll-link {
    bottom: 45px;
    left: 22px;
    font-size: 1rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 140px;
    font-size: 1.4rem;
  }
  .about-section {
  flex-direction: column;
  padding: 30px 20px;
}

.about-box {
  width: 100%;
  min-height: auto;
  padding: 35px 22px;
}

.about-box h2 {
  font-size: 4rem;
  letter-spacing: -2px;
}

.about-box p {
  font-size: 0.85rem;
  letter-spacing: 3px;
}

.about-photo {
  width: 100%;
  height: 40%;
}

.about-photo img {
  height: 110%;
  transform: translateX(10px);
}

.about-container {
  width: 100%;
}

.about-nav {
  font-size: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(2, 1fr);
}

.skill-card {
  height: 70px;

  font-size: 0.75rem;
  letter-spacing: 2px;
}

.skills-title {
  font-size: 3rem;
}
  
}

.back-to-top {
  position: absolute;

  bottom: -90px;
  left: 50%;

  transform: translateX(-50%);

  color: white;
  text-decoration: none;

  font-size: 1.3rem;
  letter-spacing: 5px;

  transition: 0.3s ease;
}

.back-to-top:hover {
  opacity: 0.55;
}

/* ADD 33 - IMAGE PROTECTION */

img {
  -webkit-user-drag: none;
  user-select: none;
}

body {
  -webkit-touch-callout: none;
}