:root {
    font-size: 10px;
  
    --column-width: 8.5rem;  /* 85px */
    --gutter: 1.5rem;        /* 15px */
    --columns: 12;
    --grid-width: calc((var(--column-width) * var(--columns)) + (var(--gutter) * (var(--columns) - 1)));
  }

  @font-face {
    font-family: 'Satoshi';
    src: url('./fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
  }

  @font-face {
    font-family: 'Archivo';
    src: url('./fonts/Archivo-Light.ttf') format('ttf');
    font-weight: 300;
    ont-style: normal;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html::-webkit-scrollbar {
    display: none;
  } 

  html {
    scrollbar-width: none; /* Firefox */
  }

  body::-webkit-scrollbar {
    display: none;
  }
  
  body {
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #0f0f0f;
    font-family: 'Satoshi', sans-serif;
    cursor: none;
    scrollbar-width: none;
}

a {
  outline: none;
}

  #bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .hero {
    flex-direction: column;
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }
  
  .container {
    width: var(--grid-width);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10rem;
    padding: 0 2rem;
    margin: 0 auto;
  }
  
  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .name h1 {
    font-family: 'Satoshi', sans-serif;
    font-size: 11rem; /* 110px */
    font-weight: 700;
    line-height: 1.1;
  }
  
  .description {
    max-width: 56rem;
    font-size: 4.2rem; /* 42px */
    font-weight: 300;
    font-family: 'Archivo', sans-serif;
    color: #ffffff;
    margin-top: 1.5rem;
    text-align: left;
  }
  
  .tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9.6rem;
    font-weight: 600;
    font-family: 'Satoshi', sans-serif;
    padding: 0 1rem;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  
  .tag {
    transition: transform 0.2s ease, color 0.3s ease;
    position: relative;
    color: white;
    font-family: 'Satoshi', sans-serif;
    cursor: none
  }
  
  .tag:hover {
    color: #FFDD00;
    transform: scale(1.05);
  }
  
  .tag::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.8rem;
    width: 0%;
    height: 4px;
    background-color: #FFDD00;
    transition: width 0.3s ease;
  }
  
  .tag:hover::after {
    width: 100%;
  }
  

  /* PARTE DE PROJECTOS */

  .project-gallery {
    display: flex;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: visible;
    transition: opacity 0.4s ease;
    flex-direction: column;
    align-items: center;
  }
  
  .project-tile {
    position: relative; 
    overflow: hidden;
    width: 1795px;
    height: 425px ;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    outline: none;
    margin-bottom: 2rem;
    font-family: 'Satoshi', sans-serif;
  }
  
  .project-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background-color: #1a1a1a;
  }
  
  .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
  }
  
  .project-title {
    font-size: 5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Satoshi', sans-serif;
    cursor: none !important;
  }
  
  .project-subtext {
    font-size: 2.6rem;
    color: #999;
    font-family: Archivo, sans-serif;
   
  }

  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15,15,15,0.85) 50%, rgba(15,15,15,0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
  }

  .project-tile:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .project-tile,
  .project-tile *,
  .project-tile:visited,
  .project-tile:hover,
  .project-tile:focus {
    cursor: none !important;
  } 

  
.footer {
  margin-top: 10rem;
  padding: 2rem;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.6rem;
  color: white;
  border-top: 2px solid white;
  text-align: right;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  font-size: 1.4rem;
  color: #888;
  font-family: 'Archivo', sans-serif;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.name {
  position: relative;
}

.name:hover::after {
  content: "Diseñador digital enfocado en experiencias visuales y funcionales";
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 1.4rem;
  background: #0f0f0f;
  color: #fff;
  padding: 0.8rem;
  border: 1px solid white;
  white-space: nowrap;
  z-index: 30;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background-color: white;
  border: 2px solid black;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

/* Formas personalizadas por tag */
#custom-cursor.design {
  width: 28px;
  height: 28px;
  background-color: white;
  clip-path: polygon(
    50% 0%, 65% 35%, 100% 50%,
    65% 65%, 50% 100%, 35% 65%,
    0% 50%, 35% 35%
  );
  transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
  mix-blend-mode: difference;
  border: none;
}

#custom-cursor.star {
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  transform: translate(-50%, -50%) scale(1.2);
}

#custom-cursor.diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: translate(-50%, -50%) scale(1.2);
}

#custom-cursor.note {
  width: 32px;
  height: 32px;
  background-color: white;
  mask-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'><path d='M311.6 9.4C308.4 3.8 302.5 0 296 0H232c-8.8 0-16 7.2-16 16v308.5c-9.8-3.1-20.2-4.5-31-4.5-53 0-96 35.8-96 80s43 80 96 80s96-35.8 96-80V160h48c8.8 0 16-7.2 16-16V16c0-2.6-.6-5.2-1.8-6.6z'/></svg>");
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'><path d='M311.6 9.4C308.4 3.8 302.5 0 296 0H232c-8.8 0-16 7.2-16 16v308.5c-9.8-3.1-20.2-4.5-31-4.5-53 0-96 35.8-96 80s43 80 96 80s96-35.8 96-80V160h48c8.8 0 16-7.2 16-16V16c0-2.6-.6-5.2-1.8-6.6z'/></svg>");
  -webkit-mask-size: cover;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%) scale(1.3);
  border: none;
}


#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgb(0, 0, 0);
  background-color: #FFDD00;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: 'Satoshi', sans-serif;
  z-index: 50;
  display: none;
  transition: transform 0.2s ease;
}

#scrollToTop:hover {
  transform: scale(1.1);
}

.floating-stamp {
  position: absolute;
  width: 70px;
  height: 70px;
  right: 40px;
  bottom: 40px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.9;
  filter: invert(1);
}

.floating-stamp:hover {
  transform: 
      rotate(15deg) 
      scale(1.1);
  opacity: 1;
  filter: 
    invert(1),
    brightness(10);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.footer-eduar {
  background-color: #0f0f0f;
  color: white;
  font-family: 'Satoshi', sans-serif;
  padding: 2rem 4rem;
  border-top: 2px solid white;
  font-size: 1.4rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  height: 300px;
}

.footer-eduar-logo {
  font-size: 4.4rem;
  font-weight: 700;
}

.footer-eduar-socials {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-eduar-socials a {
  color: white;
  font-size: 2.4rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-eduar-socials a:hover {
  color: #FFDD00;
  transform: scale(1.2);
}

.footer-eduar-socials a:hover {
  color: #FFDD00;
}

.footer-eduar-socials i {
  font-size: 2.6rem;
}


/* Fix para eliminar bordes violetas de links y mejorar apariencia de accesibilidad */
a,
a:focus,
a:active,
.project-tile,
.project-tile:focus {
  outline: none;
  text-decoration: none;
  color: inherit;
}



.project-tile:visited {
  color: inherit;
}

.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#project-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.8rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

 /* Responsive a partir de 1024px */
@media (max-width: 1024px) {
  
    .container {
      width: 100%;
      padding: 4rem 2rem;
      gap: 6rem;
      align-items: center;
      text-align: center;
    }
  
    .top {
      flex-direction: column;
      align-items: center;
      gap: 4rem;
    }
  
    .name h1 {
      font-size: 6.4rem; /* más chico pero fuerte */
      line-height: 1.1;
      text-align: center;
    }
  
    .description {
      font-size: 2.4rem;
      max-width: 90%;
      text-align: center;
    }
  
    .tags {
      font-size: 5rem;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      text-align: center;
    }

    .project-list {
        align-items: center;
        text-align: center;
        padding-left: 0;
      }

      #custom-cursor {
        display: none;
      }	

      .tags {
        font-size: 5rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
        background: transparent;
      }

      .project-image {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border: 1px solid #333;
        margin-bottom: 2rem;
      }

  }
  
  /* Extra mini devices */
  @media (max-width: 480px) {
    .name h1 {
      font-size: 4.8rem;
    }
  
    .description {
      font-size: 2rem;
    }
  
    .tags {
      font-size: 3.6rem;
    }

    #custom-cursor {
      display: none;
    }	
  }

/* Mobile responsive adjustments for projects section */
@media (max-width: 1024px) {
  .project-gallery {
    width: 100%;
    padding: 0 1rem;
  }

  .project-tile {
    width: 100%;
    height: auto;
    flex-direction: column;
    margin-bottom: 3rem;
  }

  .project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .project-overlay {
    position: static;
    opacity: 1;
    background: rgba(15,15,15,0.85);
    padding: 1.5rem;
    text-align: left;
  }

  .project-title {
    font-size: 3rem;
    margin-bottom: 0.8rem;
  }

  .project-subtext {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 2.4rem;
  }

  .project-subtext {
    font-size: 1.6rem;
  }

  .project-gallery {
    padding: 0 0.5rem;
  }

  .project-tile {
    margin-bottom: 2rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .project-tile:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
  }

  .project-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(15, 15, 15, 0.9);
  }

  .tag:hover {
    transform: none;
    color: inherit;
  }

  .tag::after {
    display: none;
  }
}


