/*
Theme Name: Tiago Pereira Fotografia
Author: Tiago Pereira
Description: Site personalizado de fotografia
Version: 1.0
*/

/* =========================
   RESET / BASE
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: #fff;
  overflow-x: hidden;

  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

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

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 0 20px;

  opacity: 1;
  visibility: visible;

  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-header.header-hidden {
  opacity: 0;
  visibility: hidden;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   LOGO
========================= */

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.logo img {
  width: 150px;
  height: auto;
  display: block;
}

/* =========================
   MENU ILHA
========================= */

.nav-island {
  display: flex;
  align-items: center;
  gap: 28px;

  padding: 17px 38px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.nav-island a {
  color: #ffffff;
  text-decoration: none;

  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;

  position: relative;
  transition: 0.3s ease;
}

.nav-island a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;
  background: #ffffff;

  transition: 0.3s ease;
}

.nav-island a:hover {
  color: #ffffff;
  opacity: 0.8;
}

.nav-island a:hover::after {
  width: 100%;
}

/* =========================
   BOTÃO MOBILE
========================= */

.menu-toggle {
  display: none;

  width: 46px;
  height: 46px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;

  width: 22px;
  height: 2px;
  margin: 5px auto;

  background: #ffffff;
  border-radius: 20px;

  transition: 0.3s ease;
}

/* =========================
   HERO / INÍCIO
========================= */

.hero {
  min-height: 100vh;
  position: relative;

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

  text-align: center;

  background: #111;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;

  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 850px;

  opacity: 1;
  visibility: visible;

  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-content.hero-hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-content p {
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 32px;
}

/* =========================
   BOLINHAS DO INÍCIO
========================= */

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 55px;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.25);

  cursor: pointer;

  padding: 0;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    width 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-dot:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.7);
}

/* =========================
   BOTÃO PRINCIPAL
========================= */

.btn-main {
  display: inline-block;

  padding: 15px 36px;
  border-radius: 999px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);

  border: 1px solid rgba(255, 255, 255, 0.28);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);

  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;

  transition: 0.3s ease;
}

.btn-main:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

/* =========================
   BOTÃO VOLTAR AO TOPO
========================= */

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;

  width: 58px;
  height: 58px;
  border-radius: 50%;

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

  background: rgba(255, 255, 255, 0.16);

  border: 1px solid rgba(255, 255, 255, 0.28);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);

  cursor: pointer;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(18px) scale(0.92);

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;

  padding: 0;
}

.back-to-top img {
  width: 28px;
  height: 28px;

  display: block;
  object-fit: contain;

  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;

  transform: translateY(-1px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* =========================
   SECÇÕES
========================= */

.section {
  min-height: 100vh;

  padding: 120px 20px;

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

  text-align: center;

  background: #111;

  position: relative;
  overflow: hidden;
}

.section-dark {
  background-color: #181818;
}

.section-bg-scroll {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.08) translateY(30px);

  z-index: 0;

  will-change: opacity, transform;
}

.section-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.section-content {
  position: relative;
  z-index: 2;
}

.section h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  margin-bottom: 22px;
}

.section p {
  max-width: 760px;
  margin: 0 auto;

  font-size: 18px;
  line-height: 1.7;
  color: #d0d0d0;
}

/* =========================
   ANIMAÇÕES DAS SECÇÕES
========================= */

.section-animate {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.section-animate.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.animate-left-right {
  transform: translateX(-110px);
}

.animate-left-right.is-hidden-after {
  opacity: 0;
  transform: translateX(110px);
}

.animate-top-bottom {
  transform: translateY(-110px);
}

.animate-top-bottom.is-hidden-after {
  opacity: 0;
  transform: translateY(110px);
}

.animate-right-left {
  transform: translateX(110px);
}

.animate-right-left.is-hidden-after {
  opacity: 0;
  transform: translateX(-110px);
}

.animate-bottom-top {
  transform: translateY(110px);
}

.animate-bottom-top.is-hidden-after {
  opacity: 0;
  transform: translateY(-110px);
}

.animate-zoom {
  transform: scale(0.85);
}

.animate-zoom.is-hidden-after {
  opacity: 0;
  transform: scale(1.15);
}

.animate-fade {
  transform: translateY(0);
}

.animate-fade.is-hidden-after {
  opacity: 0;
  transform: translateY(0);
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {
  .nav-island {
    gap: 22px;
    padding: 15px 28px;
  }

  .nav-island a {
    font-size: 14px;
  }

  .logo img {
    width: 130px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .site-header {
    top: 20px;
  }

  .logo img {
    width: 115px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-island {
    position: absolute;
    top: 70px;
    right: 20px;

    width: calc(100% - 40px);
    max-width: 380px;

    flex-direction: column;
    gap: 22px;

    padding: 34px 25px;
    border-radius: 30px;

    background: rgba(18, 18, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);

    transition: 0.3s ease;
  }

  .nav-island.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-island a {
    font-size: 17px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-dots {
    bottom: 70px;
    gap: 8px;
  }

  .hero-dot {
    width: 9px;
    height: 9px;
  }

  .hero-dot.active {
    width: 24px;
  }

  .section {
    padding: 95px 20px;
  }

  .section p {
    font-size: 16px;
  }

  .btn-main {
    padding: 14px 30px;
    font-size: 14px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;

    width: 52px;
    height: 52px;
  }

  .back-to-top img {
    width: 25px;
    height: 25px;
    transform: translateY(-1px);
  }

  .animate-left-right {
    transform: translateX(-60px);
  }

  .animate-left-right.is-hidden-after {
    transform: translateX(60px);
  }

  .animate-top-bottom {
    transform: translateY(-60px);
  }

  .animate-top-bottom.is-hidden-after {
    transform: translateY(60px);
  }

  .animate-right-left {
    transform: translateX(60px);
  }

  .animate-right-left.is-hidden-after {
    transform: translateX(-60px);
  }

  .animate-bottom-top {
    transform: translateY(60px);
  }

  .animate-bottom-top.is-hidden-after {
    transform: translateY(-60px);
  }

  .animate-zoom {
    transform: scale(0.9);
  }

  .animate-zoom.is-hidden-after {
    transform: scale(1.08);
  }
}