.limelight-regular {
  font-family: "Limelight", sans-serif;
  font-style: normal;
}

.funnel-display {
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
    font-weight: 400;
  font-style: normal;
}

.material-symbols-rounded {
  transform: translateY(10%);
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' -25,
  'opsz' 24
}

html {
  overflow: auto;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  background-color: rgba(255, 246, 238, 0.562);
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow: auto;
  scroll-behavior: smooth;
}

body.no-scroll,
html.no-scroll {
  height: 100%;
}

h1 {
  margin: 0;
  padding: 0;
  cursor: default
}
h2 {
  margin: 0;
  cursor: default
}

h3 {
  margin: 0;
  cursor: default
}

p {
  margin: 0;
  cursor: default
}

.hero {
  margin-top: 0;
  height: 90vh;
  text-align: center;
  background: url(assets/img0.jpg) no-repeat center center;
  background-size: cover;
}

.hero h1 {
  font-size: 8rem;
  color: white;
  font-family: "Limelight", sans-serif;
  cursor: default;
}
.hero p {
  font-size: 1.5rem;
  color: white;
  position: relative;
  top: -30px;
  font-family: "Funnel Display", sans-serif;
  cursor: default;
}

/* centra o nav na tela */
.nav-wrapper {
  display: flex;
  justify-content: center; /* centro horizontal */
  padding: 2rem 0;
  position: fixed;
  top: 85%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

/* estilo do menu */
.menu {
  display: flex;
  gap: 2rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;

  /* GLASS EFFECT */
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* links */
.menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-family: "Funnel Display", sans-serif;
  transition: 0.3s ease;
  margin: auto;
  font-size: 1.3rem;
}

.menu a:hover {
  color: #ffffffaa;
  scale: 1.02;
}

.gallery {
  width: 90%;
  margin: 50px auto;
}
.gallery h2 {
  font-family: "Funnel Display", sans-serif;
  margin: 50px;
  font-size: 2rem;
}

.row {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 20px;
  margin-bottom: 20px;
}

.row.reverse {
  grid-template-columns: 55% 45%;
}

.photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.photo img:hover {
  transform: scale(.99);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 2000;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 4rem;
  color: rgb(255, 255, 255);
  cursor: pointer;
}
.close:hover {
  color: #ffffffaa;
  scale: 1.02;
  transition: 0.3s ease;
}

.nav {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 20px;
  transform: translateY(-50%);
}

.prev {
  left: 30px;
}
.prev:hover {
  color: #ffffffaa;
  scale: 1.02;
  transition: 0.3s ease;
}

.next {
  right: 30px;
}
.next:hover {
  color: #ffffffaa;
  scale: 1.02;
  transition: 0.3s ease;
}





/* ABOUT SECTION */

.sobre {
  width: 90%;
  margin: 50px auto;
}

.about {
  width: 80%;
  margin: auto;
  text-align: left;
  border-radius: 20px;
}

.sobre h2 {
  font-family: "Funnel Display", sans-serif;
  margin: 50px;
  color: #000000;
  font-size: 2rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2%;
  text-align: center;
}

.about-card {
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 0px;
  padding: 50px 50px;
  transition: 0.3s ease;
  color: #000000;
}

.about-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.about-card h3 {
  font-family: "Funnel Display", sans-serif;
  margin: 10px;
  font-size: 2rem;
}

.role {
  font-weight: bold;
  margin-bottom: 20px;
  color: #0000009f;
  font-family: "Funnel Display", sans-serif;
  font-size: 1.1rem;
}

.about-card p {
  font-family: "Funnel Display", sans-serif;
  line-height: 1.6;
  font-size: 1.1rem;
}







/* PROJECTS SECTION */

.projects {
  width: 90%;
  margin: 50px auto;
}

.projects h2 {
  font-family: "Funnel Display", sans-serif;
  margin: 50px;
  color: #000000;
  font-size: 2rem;
}

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

.project {
  color: white;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}

.project img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: 0.4s ease;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: 0.4s ease;
}

.overlay span {
  font-size: 1.5rem;
  font-family: "Funnel Display", sans-serif;
  letter-spacing: 2px;
}

/* HOVER EFFECT */
.project:hover img {
  filter: blur(5px);
  transform: scale(1.02);
}

.project:hover .overlay {
  opacity: 1;
}

/* FULLSCREEN PROJECT VIEW */

.project-view {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 2000;
}

.project-view.active {
  opacity: 1;
  visibility: visible;
}

.project-content {
  width: 90%;
  max-width: 1200px;
  margin: 120px auto 50px auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-content img {
  width: 100%;
  height: auto;        /* deixa a altura natural */
  max-height: 90vh;    /* nunca passa da altura do ecrã */
  object-fit: contain; /* mostra imagem completa */
}

.close-project {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 4rem;
  cursor: pointer;
  z-index: 5000;
  display: none;
}
.close-project:hover {
  color: #2e2e2eaa;
  scale: 1.02;
  transition: 0.3s ease;
}

.project-view:not(.active) ~ .close-project {
  display: none;
}

/* CONTACT SECTION */

.contact {
  width: 90%;
  margin: 50px auto;
}

.contact-left h2 {
  font-family: "funnel Display", sans-serif;
  margin-bottom: 30px;
}

.contact-left p {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
}

.contact-right {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-right h3 {
  font-family: "Funnel Display", sans-serif;
  margin: 0px 50px;
  margin-bottom: 20px;
  color: #000000;
  font-size: 2rem;
}

.contact-info {
  margin-bottom: 30px;
  font-family: "Funnel Display", sans-serif;
  font-size: 1.2rem;
}

.botao {
  margin: 50px;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  background: #333;
  color: white;
  font-family: "Funnel Display", sans-serif;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 1.2rem ;
}

.botao:hover {
  background: #6b6b6b;
  color: #ffffff;
}

/* CONTACT FORM OVERLAY */

.contact-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 3000;
}

.contact-form-overlay h3{
  font-family: "funnel Display", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.contact-form-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-form {
  background: white;
  text-align: center;
  padding: 2rem;
  border-radius: 30px;
  width: 100%;
  max-width: 500px;
}
.contact-form input {
  width: 90%;
  margin: auto;
  font-size: 1rem;
  margin: 5px auto;
}


.contact-form input,
.contact-form textarea {
  padding: 15px;
  border-radius: 40px;
  border: 1px solid #ddd;
  font-family: "Funnel Display", sans-serif;
}

.contact-form button {
  width: 60%;
  font-size: 1.2rem;
  margin-top: 15px;
  padding: 15px;
  border: none;
  border-radius: 40px;
  background: #333;
  color: white;
  cursor: pointer;
}

.close-contact {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  cursor: pointer;
  color: white;
  font-size: 3rem;
}



footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  font-family: "Funnel Display", sans-serif;
}


@media (min-width: 868px) and (max-width: 1424px) {

/* HERO */
.hero h1 {
  font-size: 6rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
}

/* MENU */
.nav-wrapper {
  width: 80%;
}

.menu {
  gap: 2rem;
  padding: 1rem 2rem;
}

.menu a {
  font-size: 1.2rem;
}

/* GALLERY */
.row {
  gap: 1%;
}

.photo img {
  height: 400px;
}

/* ABOUT */
.about {
  width: 100%;
}

.about-cards {
  gap: 1%;
}

/* PROJECTS */
.projects-grid {
  gap: 1%;
}

.project img {
  height: 400px;
}

.project img {
  filter: blur(5px);
  transform: scale(1.02);
}

.project .overlay {
  opacity: 1;
}

/* PROJECT VIEW */
.project-content {
  margin: 120px 40px 50px 40px;
  gap: 40px;
}

/* CONTACT */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.botao {
  width: 55%;
  margin: auto;
}

/* FORM */
.contact-form {
  font-size: 2rem;
  max-width: 50%;
  max-height: 90%;
}
}


@media (max-width: 868px) {

/* HERO */
.hero h1 {
  font-size: 5rem;
}
.hero p {
  font-size: 1.5rem;
  top: -10px;
}

/* MENU */
.nav-wrapper {
  width: 98%;
}

.menu {
  gap: 1rem;
  padding: 0.8rem 1.5rem;
}

.menu a {
  font-size: 0.9rem;
}

/* GALLERY */
.row,
.row.reverse {
  grid-template-columns: 1fr;
}

.photo img {
  height: 350px;
}

/* ABOUT */
.about {
  width: 100%;
}

.about-cards {
  grid-template-columns: 1fr;
  gap: 30px;
}

.about-cards img {
  width: 150px;
  height: 150px;
}

.about-card {
  padding: 30px;
}

/* PROJECTS */
.projects-grid {
  grid-template-columns: 1fr;
}

.project img {
  height: 350px;
}

.project img {
  filter: blur(5px);
  transform: scale(1.02);
}

.project .overlay {
  opacity: 1;
}

/* PROJECT VIEW */
.project-content {
  margin: 100px 20px 40px 20px;
  gap: 30px;
}

.project-content img {
  max-height: 70vh;
}

.close-project {
  font-size: 3rem;
  top: 10px;
  right: 20px;
}

/* CONTACT */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.botao {
  width: 95%;
  margin: auto;
}

/* FORM */
.contact-form {
  padding: 25px;
  border-radius: 20px;
  max-width: 90%;
}

}