/* ===== Custom Fonts ===== */

@font-face {
  font-family: 'ObjectSans';
  src: url('fonts/ObjectSans-Regular.woff') format('woff'),
    url('fonts/ObjectSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ObjectSans';
  src: url('fonts/ObjectSans-Bold.woff') format('woff'),
    url('fonts/ObjectSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ObjectSans';
  src: url('fonts/ObjectSans-Heavy.woff') format('woff'),
    url('fonts/ObjectSans-Heavy.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueMachina';
  src: url('fonts/NeueMachina-Regular.woff') format('woff'),
    url('fonts/NeueMachina-Regular.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


/* ===== CSS Reset ===== */

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

body {
  line-height: 1.5;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ===== Design System ===== */

:root {
  /* Colors */
  --color-primary: #242424;
  --color-secondary: #3d3d3d;
  --color-tertiary: #888888;
  --color-link: #999999;
  --color-accent: #2B63F6;
  --color-accent-focus: #2B63F6;
  --color-background: #fdfdfd;
  --color-footer: #f5f5f5;
}

/* font footer / nav = 14px ; content  = 18px ; hero = 80px */

/* ===== Custom Cursor ===== */
body {
    cursor: none;
}

a, button {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    background-color: rgba(170, 170, 170, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
    opacity: 0;
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor.hover {
    transform: scale(1.2);
    background-color: rgba(170, 170, 170, 0.3);
}


/* ===== Page Load Animations ===== */

/* Initial states */
header, .showcase, .about, .footer, .gallery-img, .avatar {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

header {
  animation-delay: 0s;
}

header nav {
  animation-delay: 0.2s;
}

.showcase, .about, .footer, .gallery-img {
  animation-delay: 1.4s;
}

.avatar {
  animation-delay: 1.4s;
  transform: scale(0.95);
  animation-name: fadeInScale;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ==============================
============= START =============
============================== */


body {
  background-color: var(--color-background);
  color: var(--color-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:visited {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--hover-color, red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:active {
  color: var(--color-accent-focus);
  text-decoration: none;
}

header,
nav {
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 16px 56px;
  font-size: 14px;
}

.logo img {
  height: 24px;
  width: auto;
}

.link:hover{
  transition: transform 0.2s ease-in-out; 
  transform: translateY(-3px); 
}


.out-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.arrow-out {
  fill: var(--color-link);
}

@media screen and (max-width: 768px) {
  header, nav {
  margin: 16px 32px;
 }
}

@media screen and (max-width: 480px) {
  header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin: 16px 20px;
    font-size: 10px;
  }

  nav {
    display: none;
    align-self: flex-start;
    margin: 0;
  }

  .logo img {
    height: 18px;
    width: auto;
  }
}


/* ===== Intro Section ===== */

.hero {
  margin: 256px 56px;
}

.intro-text {
  font-family: 'NeueMachina', sans-serif;
  font-size: 80px;
  color: var(--color-tertiary)
}

@media screen and (max-width: 768px) {
  .hero {
  margin: 200px 32px 152px 32px;
}
  .intro-text {
    font-size: 56px;
  }
}

@media screen and (max-width: 480px) {
  .hero {
  margin: 128px 20px 88px 20px;
  }
  .intro-text {
    font-size: 32px;
  }
}

/* ! Intro Text Animation ! */

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wordWave 0.8s ease-out forwards;
}

@keyframes wordWave {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for each word */
.word:nth-child(1) {animation-delay: 0.1s;}
.word:nth-child(2) {animation-delay: 0.2s;}
.word:nth-child(3) {animation-delay: 0.3s;}
.word:nth-child(4) {animation-delay: 0.4s;}
.word:nth-child(5) {animation-delay: 0.5s;}
.word:nth-child(6) {animation-delay: 0.6s;}
.word:nth-child(7) {animation-delay: 0.7s;}
.word:nth-child(8) {animation-delay: 0.8s;}
.word:nth-child(9) {animation-delay: 0.9s;}
.word:nth-child(10) {animation-delay: 1.0s;}
.word:nth-child(11) {animation-delay: 1.1s;}

/* ===== Gallery Section ===== */

.showcase {
  margin: 0;
  overflow: hidden;
}

.showcase-itens {
  display: flex;
  gap: 20px;
  padding: 20px 40px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-itens::-webkit-scrollbar {
  display: none;
}

.showcase-itens:active {
  cursor: none;
}

.gallery-img {
  flex-shrink: 0;
  height: 720px;
  width: auto;
  border-radius: none;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@media screen and (max-width: 480px) {
  .gallery-img {
    height: 400px;
    width: 100%;
  }

  .showcase-itens {
    padding: 0px;
  }
}


/* ===== About Section ===== */

.about {
  display: flex;
  margin: 256px 56px;
  justify-content: center;
  align-items: center;
}

.avatar {
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 0;
  margin-right: 96px;
  max-width: 256px;
  max-height: 256px;
  object-fit: cover;
}

#canvas .canvas {
  width: 256px;
  height: 256px;
  object-fit: cover;
}

.rive-placeholder {
  width: 256px;
  height: 256px;
  object-fit: cover;
}

.about-paragraph {
  font-family: 'ObjectSans', sans-serif;
  font-size: 18px;
  letter-spacing: 0.4px;
  font-weight: 400;
  padding-top: 16px;
}

.name-hover {
  position: relative;
  color: var(--color-link);
  cursor: pointer;
}

.name-hover:hover {
  color: var(--hover-color, var(--color-link)); 
  transition: color 0.2s ease;
}

.name-hover::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: url('images/assets/luiza-profile.jpeg');
  background-size: cover;
  background-position: right;
  border-radius: none;
  top: -220px;
  left: 80%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.name-hover:hover::after {
  opacity: 1;
}

.links-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .about {
    margin: 152px 32px 160px 32px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
  }

  .avatar {
    margin-right: 0;
    align-self: center;
  }
}


@media screen and (max-width: 480px) {
  .about {
    margin: 88px 20px 144px 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
  }

  .avatar {
    margin-right: 0;
    align-self: center;
  }

  #canvas .canvas {
    width: 200px;
    height: 200px;
    object-fit: cover;
  }

  .rive-placeholder {
    width: 200px;
    height: 200px;
    object-fit: cover;
  }

  .about-paragraph {
    font-family: 'ObjectSans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.4px;
    font-weight: 400;
    padding-top: 16px;
  }

  .links-mobile {
    font-family: 'ObjectSans', sans-serif;
    font-weight: 400;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 32px;
    font-size: 14px;
    margin-top: 16px;
  }
}

/* ===== Footer ===== */

.footer {
  background-color: var(--color-footer);
  font-family: 'ObjectSans', sans-serif;
  font-weight: 400;
}

.full-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 80px 56px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: right;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.copyright {
  padding-top: 20px;
}

.footer-icon {
  width: 30px;
  height: 32px;
  flex-shrink: 0;
  aspect-ratio: 15/16;
  margin-right: 56px;
}

@media screen and (max-width: 768px) {
  .full-footer{
    padding: 80px 32px;
  }
}

@media screen and (max-width: 480px) {
  .full-footer{
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    padding: 64px 20px;
  }

  .footer-content {
    font-size: 12px;
  }
  
  .footer-icon {
  width: 16px;
  height: auto;
  margin-top: 24px
  }
}
