/* Global styles */
:root {
  --bg: #F7F6F6;
  --text: #0F120F;
  --font: 'Bricolage Grotesque', sans-serif;
  --margin-side: 4vw;
  --margin-top: 2.89vw;
  --gap: 1.5vw;
  --font-size: clamp(1rem, 1.2vw, 1.2rem);
  --font-size-small: clamp(0.85rem, 1vw, 1rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
  padding: var(--margin-top) var(--margin-side);
  font-size: var(--font-size);
}

img {
  max-width: 100%;
  display: block;
}

.container,
.footer {
  width: 100%;
}

/* -------------------------------FIXED------------------------------- */
/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 100;
  margin: 0 var(--margin-side);
}

.container {
  margin-top: var(--margin-top);
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: var(--font-size);
}

.nav {
  display: flex;
  gap: 5.5vw;
}

.nav a {
  font-size: var(--font-size);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a:focus {
  font-weight: 600;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-size: var(--font-size-small);
  color: var(--text);
  margin-top: 3vw;
  padding: 2vh 0 1vh 0;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-center img {
  height: var(--font-size-small);
}

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover,
.footer a:focus {
  text-decoration: underline;
}


/* -------------------------------INDEX------------------------------- */
.hero {
  position: relative;
  height: 200vh;
  padding: 0 var(--margin-side);
  background-color: var(--bg);
  box-sizing: border-box;
}

.hero-wrapper {
  position: sticky;
  top: 0;
  height: 110vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 2;
  padding-top: 5vw;
  margin-top: -2.89vw;
}

.hero-logo-wrapper,
.hero-inner {
  pointer-events: auto;
  max-width: 39.25vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3vh 0;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.animated-star {
  position: absolute;
  top: -0.58vw;
  left: 50%;
  transform: translateX(-46%);
  font-size: clamp(4rem, 30vw, 12rem);
  animation: fontChange 2s infinite;
  text-align: center;
}

@keyframes fontChange {
  0%   { font-family: 'Bricolage Grotesque', sans-serif; }
  10%   { font-family: 'Courier New', monospace; }
  20%  { font-family: 'Georgia', serif; }
  30%  { font-family: 'Helvetica', sans-serif; }
  40%  { font-family: 'Impact', fantasy; }
  50%  { font-family: 'Times New Roman', serif; }
  60%  { font-family: 'Trebuchet MS', sans-serif; }
  70%  { font-family: 'Palatino', serif; }
  80%  { font-family: 'Gill Sans', sans-serif; }
  100% { font-family: 'Bricolage Grotesque', sans-serif; }
}

.hero-description {
  padding-top: 12rem;
  opacity: 1;
  transition: opacity 0.6s ease;
  font-size: clamp(1.6rem, 1.6vw, 2.1rem);
}

.hero-reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  pointer-events: none;
  margin-top: -9rem;
}

.hero.active .hero-description {
  opacity: 0;
}

.hero.active .hero-reveal {
  opacity: 1;
  pointer-events: auto;
}

.reveal-text {
  font-size: var(--font-size);
  font-weight: 400;
}

.reveal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: left;
}

.tag {
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: var(--font-size-small);
  text-decoration: none;
  background-color: transparent;
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: default;
}

.button-tag {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 9999px;
  color: var(--bg);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  background: var(--text);
}

.button-tag:hover,
.button-tagfocus {
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);  cursor: pointer;
  transform: translateX(1.5rem);
}

.main-page .projects-title{
  position: relative;
}

.discover-wrapper {
  text-align: center;
  margin: 1.5rem 0;
}

.discover-more {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 9999px;
  color: var(--bg);
  background: var(--text);
  font-size: var(--font-size-small);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.discover-more:hover,
.discover-more:focus {
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transform: translateX(1.5rem);
}

.contacts-title {
  position: sticky;
  top: var(--margin-top);
  text-align: center;
  font-size: clamp(2rem, 2.5vw, 4rem);
  margin: 0 auto;
  z-index: 99;
  font-family: var(--font);
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 87vh;
}

.contacts-title p{
  margin-top: 10rem;
}

.get-contact {
  display: inline-block;
  width: 30%;
  margin: 1rem auto;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 9999px;
  color: var(--bg);
  background: var(--text);
  font-size: var(--font-size-small);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, width 0.3s ease;
  z-index: 9999;
}

.get-contact:hover,
.get-contact:focus {
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transform: scale(1.05);
  width: 67%;
}


/* -------------------------------WORK------------------------------- */
.bg{
  background: var(--bg);
}

.projects-title {
  position: sticky;
  top: 0;
  text-align: center;
  font-size: clamp(2rem, 2.5vw, 4rem);
  margin-top: 10.95vw;
  padding-top: var(--margin-top);
  z-index: 99;
  padding-bottom: 1rem;
  font-family: var(--font);
  justify-content: center;
  background: var(--bg);
}

.projects-filter {
  position: sticky;
  top: var(--margin-top);
  text-align: center;
  padding-top: 4vw;
  background: var(--bg);
  z-index: 10;
  margin-top: -4vw;
  padding-bottom: 2vh;
}

.projects-filter button {
  background: none;
  border: none;
  color: var(--text);
  margin: 0 1rem;
  font-size: var(--font-size-small);
  cursor: pointer;
}

.projects-filter button.active {
  font-weight: bold;
}

.projects__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-container {
  width: 50%;
  transition: width 0.3s ease;
  overflow: hidden;
  border-radius: 0.75rem;
}

.project {
  display: block;
}

.media-wrapper {
  position: relative;
  width: 100%;
  height: 296.03px;
  overflow: hidden;
  background: var(--bg);
}

.work-img,
.work-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.work-video {
  opacity: 0;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  font-size: var(--font-size);
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

#index-projects__grid .project-container {
  width: 50%;
  height: auto;
  margin: 0 auto;
}


/* -------------------------------ABOUT------------------------------- */
.about-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(6rem + var(--margin-top));
  text-align: center;
  gap: 2.5rem;
}

.about-logo img {
  width: clamp(200px, 22vw, 390.9px);
}

.about-portrait img {
  width: clamp(180px, 15.6vw, 270.47px);
  height: clamp(170px, 14vw, 250.44px);
  object-fit: cover;
}

.about-intro {
  max-width: 70%;
  padding: 0 1rem;
}

.about-intro h1 {
  font-size: var(--font-size);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.about-intro p {
  font-size: var(--font-size);
  font-weight: 400;
}

.about-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.7rem;
  margin-top: 8rem;
  width: 100%;
}

.about-column {
  font-size: var(--font-size-small);
  text-align: left;
}

.about-column:nth-child(1),
.about-column:nth-child(2) {
  flex: 1 1 30%;
  min-width: 260px;
}

.about-column:nth-child(3) {
  flex: 0 1 24%;
  min-width: 220px;
}


.about-column h2 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.about-column p {
  margin-bottom: 1.2rem;
}

.download-button-wrapper {
  margin: -6.5rem auto 9rem 0 ;
}

.download-cv {
  display: inline-block;
  padding: 0.6em 1.2em;
  border: 1px solid var(--text);
  border-radius: 9999px;
  color: var(--text);
  background: transparent;
  font-size: var(--font-size-small);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.download-cv:hover,
.download-cv:focus {
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  transform: scale(1.05);
}


/* -------------------------------CONTACT------------------------------- */
.contact-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(4vw, 8vw, 28vw);
  text-align: center;
  color: var(--text);
  font-family: var(--font);
  background-color: var(--bg);
  box-sizing: border-box;
}

.contact-title {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
  margin-top: 2rem;

}

.contact-text {
  font-weight: 400;
  font-size: var(--font-size);
  margin-bottom: 2rem;
  max-width: 700px;
  text-align: left;
}

.contact-email {
  font-weight: 400;
  font-size: var(--font-size);
  margin-bottom: 3rem;
  font-style: normal;
  color: var(--text);
  text-decoration: none;
}

.contact-columns {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-sizing: border-box;
  margin-top: 2rem;
}

.contact-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--font-size);
  color: var(--text);
  flex: 1 1 30%;
  min-width: 150px;
}

.contact-column.left {
  align-items: center;
  text-align: center;
}

.contact-column.center {
  align-items: center;
  text-align: center;
}

.contact-column.right {
  align-items: center;
  text-align: center;
}

.contact-column strong {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-column a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  font-style: normal;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-column a:hover,
.contact-column a:focus,
.contact-email:hover {
  text-decoration: underline;
  color: rgb(200, 200, 200);
}


/* -------------------------------PROJECT------------------------------- */

.project-intro {
  display: flex;
  justify-content: space-between;
  gap: 6%;
}

.intro-left {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 70%;
  min-width: 280px;
  font-size: var(--font-size-small);
}

.project-title {
  margin-top: calc(95px + var(--margin-top));
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
}

.project-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4em;;
  font-size: var(--font-size-small);
}

.project-meta div {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}

.project-meta strong {
  font-weight: 600;
}

.project-meta span {
  font-weight: 400;
}

.intro-right {
  width: 30%;
  font-size: var(--font-size-small);
  margin-top: 0.3rem;
}

.project-video {
  margin-top: 64px;
  width: 100%;
}

.project-video video {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

.research-title{
  margin-top: 8rem;
  font-size: var(--font-size);
}

.research-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.research-left,
.research-right {
  width: 100%;
  max-width: 49%;
  font-size: var(--font-size-small);
}

.research-left p,
.research-right p {
  width: 100%;
  margin-bottom: 1.2rem;
}

.image-container {
  margin-top: var(--font-size-small);
  height: auto;
  aspect-ratio: 520.51 / 320;
  overflow: hidden;
  width: 100%;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-intro {
  height: 10vh;
}

.sticky-placeholder {
  height: 10vh;
}

.scroll-reveal {
  position: relative;
  height: 500vh;
}

.scroll-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--margin-top) 0;
}

.scroll-content {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  width: 100%;
  align-items: flex-end;
}

.scroll-image-container {
  height: 85vh;
  overflow: hidden;
}

.scroll-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-text-container {
  width: 25vw;
  display: flex;
  align-items: flex-end;
  font-size: var(--font-size-small);
}

.final-message {
  padding: 35vh var(--margin-side);
  font-size: var(--font-size);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

/* Galería */
.gallery-section {
  background-color: var(--bg);
  margin-top: -10vh;
  padding-top: 10vh;
  position: relative;
  z-index: 10;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.58vw;
}

.gallery-item {
  aspect-ratio: 520.51 / 279.89;
  width: 100%;
  overflow: hidden;
  background-color: #ccc;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10vw 0;
  font-weight: bold;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  flex-wrap: wrap;
  row-gap: 1.5rem;
}

.project-nav a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-nav-left,
.project-nav-right{
  transition: all 0.3s ease;
}

.project-nav-left:hover {
  transform: translateX(-0.6rem);
}

.project-nav-right:hover {
  transform: translateX(0.6rem);
}

.project-nav-center a:hover {
  text-decoration: underline;
}



.privisl .gallery-section{
  margin-top: 0rem;
}

.abs .gallery-section{
  margin-top: 0rem;
}

.poster {
  display: flex;
  align-items: flex-end; 
  gap: 2rem; 
  max-width: 100%;
  padding: 8rem 0 3rem 0;
}

.poster img {
  height: 85vh;
  width: auto;  
  object-fit: cover;
}

.poster p {
  flex: 1; 
  margin: 0 3rem 0 5rem;
  font-size: var(--font-size-small);
}

.document_down {
  margin-top: 2rem;
  font-size: var(--font-size-small);
}
.document_down a{
  font-weight: bold;
  color: var(--text);
}
.document_down a:hover{
  color: #ccc;
}

.final-message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-message img{
  width: 15rem
}
.video_final {
  max-width: 100%;
  padding-top: 10rem;
}

.project-video img{
  margin: 5rem 0;
  width: 100%;
}

.visualsound .image-container{
  aspect-ratio: none;
}

/* -------------------------------RESPONSIVE------------------------------- */

/* iPhone SE / pequeños (<375px) */
@media (max-width: 374px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-center {
    position: static;
    transform: none;
  }
  .project-title {
    font-size: 2.6rem;
  }
  .intro-right {
    margin-top: 1rem;
  }
  .research-right{
    margin-top: 3rem;
  }
  .scroll-content {
    flex-direction: column;
    align-items: center;
    gap: 4vh;
  }
  .scroll-text-container {
    width: 100%;
    height: auto;
  }
  .scroll-image-container{
    width: 100%;
    height: 80vh;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-nav {
    flex-direction: column;
    text-align: center;
  }
  .project-row {
    flex-direction: column;
    gap: 1rem;
  }
  .project-container {
    width: 100%;
  }
  .contact-section {
    padding: 0 5vw;
  }
  .contact-columns {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .about-columns {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 5vw;
  }
  .about-column {
    width: 100%;
    text-align: center;
  }
  .about-intro p {
    text-align: center;
  }

  .reveal-text { font-size: clamp(0.9rem, 2vw, 1.1rem); }
  .project-container { width: 100%; }
}

/* iPhone (375px–767px) */
@media (max-width: 767px) {
  .navbar {
    padding: 3vh 4vw 2vh 4vw;
    margin: 0;
  }
  .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
  }
  .nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6vw;
  }
  .nav a {
    font-size: var(--font-size-small);
    padding: 0.5rem 0;
  }
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    font-size: var(--font-size-small);
  }
  .footer-center {
    height: 0;
    overflow: hidden;
  }
  .footer-right {
    order: -1; /* Hace que vaya primero */
  }
  .footer-left {
    order: 1; /* Se queda al final */
  }
  .project-intro {
    flex-direction: column;
  }
  .intro-left,
  .intro-right,
  .research-left,
  .research-right {
    width: 100%;
    max-width: 100%;
  }
  .intro-left{
    margin-top: 0.5rem;
  }
  .intro-right {
    margin-top: 1rem;
  }
  .project-video{
    margin-top: 2rem;
  }
  .project-video video {
    height: 50vh;
  }
  .research-right{
    margin-top: 2rem;
  }
  .scroll-content {
    flex-direction: column;
    align-items: center;
    gap: 4vh;
  }
  .scroll-text-container {
    width: 100%;
    height: auto;
  }
  .scroll-image-container{
    width: 100%;
    height: 60vh;
  }
  .scroll-wrapper {
    align-items: center;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 8vw;
  }
  .project-nav-left,
  .project-nav-right {
    width: 100%;
    display: inline-block;
    position: absolute;
    top: 0;
    font-size: var(--font-size-small);
  }
  .project-nav-left {
    text-align: left;
  }
  .project-nav-right {
    text-align: right;
  }
  .project-nav-center {
    margin-top: 2.5rem;
    text-align: center;
    width: 100%;
  }
  .project-nav {
    position: relative;
    height: 5rem;
  }
.projects-title {
  position: sticky;
  top: 3rem;  /* aquí empieza pegado al borde superior */
}
.projects-filter {
  position: sticky;
  top: 5rem;
}
  .projects-filter button {
    display: inline-block;
    margin: 0.5rem 0.8rem;
    font-size: 1rem;
  }
  
  .project-row {
    flex-direction: column;
    gap: 1rem;
  }
  .project-container {
    width: 100%;
  }
  .projects__grid{
    margin-bottom: 5rem;
  }
  .contact-title {
    padding-top: 20vw;
  }
  .contact-section {
    padding: 0 15vw;
    margin-bottom: 5rem;
  }
  .contact-columns {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .contact-text {
    text-align: center;
    font-size: var(--font-size-small);
  }
  .about-main{
    padding-top: calc(8rem + var(--margin-top));
  }
  .about-columns {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 8vw;
  }
  .about-column {
    width: 100%;
  }
  .about-intro {
    padding: 0;
  }
  .about-intro p {
    text-align: center;
    font-size: var(--font-size-small);
  }
  .download-button-wrapper{
    margin: -1rem 0 5rem 0;
  }
  .animated-star{
    top: -3.7vw;
  }
  .hero-logo-wrapper{
    margin-top: 20vw; 
    max-width: 80% 
  }
  .hero-inner{
    max-width: 90%;
  }
  .hero-reveal {
    pointer-events: auto;
    gap: 1rem;
  }
  .hero-description { 
    font-size: 1.1rem;
    text-align: center;
  }
  .reveal-text { 
    font-size: var(--font-size-small);
    text-align: center;
  }
  .tag{
    font-size: 0.7rem;
    padding: 0.5em 1.1em;
  }
  .reveal-tags{
     justify-content: center;
  }
  #index-projects__grid .project-container {
    width: 100%;
  }
  .media-wrapper{
    height: 150px;
  }
  .get-contact{
    width: auto
    ;
  }
}


/* iPad portrait (768px–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav {
    gap: 4vw;
  }
  .intro-left {
    max-width: 45%;
  }
  .intro-right {
    max-width: 100%;
    margin-top: 2rem;
  }
  .research-left,
  .research-right {
    max-width: 48%;
  }
  .scroll-image-container {
    height: 60vh;
  }
  .scroll-text-container {
    width: 30%;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-section {
    padding: 0 8vw;
  }
  .contact-columns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .about-columns {
    flex-direction: row;
    justify-content: space-around;
    padding: 0 4vw;
  }
  .about-column {
    min-width: 200px;
    text-align: center;
  }

  
  .animated-star{
    top: -2vw;
    font-size: 18vw;
  }
  .hero-inner{
    max-width: 60%;
  }
  .hero-reveal {
    pointer-events: auto;
    gap: 1rem;
  }
  .hero-description { 
    font-size: var(--font-size);
    text-align: center;
  }
  .reveal-text { 
    margin-top: 0.8rem;
    font-size: var(--font-size-small);
    text-align: center;
  }
  .tag{
    font-size: 0.7rem;
    padding: 0.5em 1.1em;
  }
  .reveal-tags{
     justify-content: center;
  }
}

/* iPad landscape & small laptops (1024px–1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav {
    gap: 4.5vw;
  }
  .project-title {
    font-size: 3.5rem;
  }
  .scroll-text-container {
    width: 32%;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-section {
    padding: 0 10vw;
  }
  .contact-text{
    line-height: -3;
  }
  .animated-star{
    top: -1.5vw;
  }
  .hero-logo-wrapper,
  .hero-inner{
    max-width: 50% 
  }
  .hero-description{
    font-size: 1.3rem;
  }
  .reveal-text { 
    margin-top: -2rem;
    text-align: center;
  }
  .reveal-tags{
     justify-content: center;
  }
}

/* Laptops 14" & 15" (1280px–1400px) 
@media (min-width: 1280px) and (max-width: 1399px) {
  .nav {
    gap: 5vw;
  }
  .intro-right {
    max-width: 900px;
  }
  .scroll-text-container {
    width: 30%;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-section {
    padding: 0 12vw;
  }
}*/

/* MacBook Pro 16" / desktops (1400px–1919px) */
@media (min-width: 1400px) and (max-width: 1919px) {
  .intro-right {
    max-width: 940px;
  }
  .scroll-text-container {
    width: 28%;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-section {
    padding: 0 14vw;
  }
}

/* Large desktops & 4K (1920px+) */
@media (min-width: 1920px) {
  body {
    font-size: 1.15rem;
  }
  .project-title {
    font-size: 4rem;
  }
  .research-right{
  margin-top: var(--font-size-small);
  }
  .scroll-text-container {
    width: 25%;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-section {
    padding: 0 18vw;
  }

  .projects-title, .contacts-title { 
    font-size: clamp(2.5rem, 2vw, 5rem); 
  }  
}

a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
