@charset "UTF-8";

/* Reset Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Indie Flower', cursive;
  height: 100%;
  font-size: 16px;
}

body {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Indie Flower', cursive;
}

/*TIPOGRAFIA */
h1 { font-size: 2.5em; }
h2 { font-size: 2.25em; }
h3 { font-size: 2em; }
h4 { font-size: 1.75em; }
p { font-size: 1.5em; }

h1, h2, h3, h4, p {
  line-height: 1.375em;
}

a {
  color: inherit;
  text-decoration: none;
}

/*LAYOUT PRINCIPAL*/
.wrapper {
  position: relative;
  min-height: 100vh;
}

/*SISTEMA DE SEÇÕES*/
section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.5s ease;
  overflow: hidden;
}

:target {
  z-index: 2;
  opacity: 1;
}

/* SEÇÃO HOME */
.sec-home {
  background: #fff5ee;
  color: #e9967a;
  opacity: 1;
}

.sec-home .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.sec-home h2 a {
  transition: color 0.3s ease;
}

.sec-home h2 a:hover {
  color: #cd5c5c;
}

/* SEÇÃO SOBRE */
.sec-about {
  background: #cd5c5c;
  color: white;
}

.sec-about .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* SEÇÃO PORTFÓLIO - COMPLETAMENTE REFEITA */
.sec-portfolio {
  background: #ffeb3b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-container {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  max-width: 500px;
  margin: 0 auto;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.portfolio-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(233, 150, 122, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-text {
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
}

/*SEÇÃO CONTATO*/
.sec-contact {
  background: #f5deb3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.email-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.email-label {
  font-size: 2rem;
  color: #333;
  text-align: center;
}

.fa-envelope {
  font-size: 4rem;
  color: #e9967a;
  transition: transform 0.3s ease;
}

.fa-envelope:hover {
  transform: scale(1.1);
}

/* MENU FLUTUANTE MODERNO - COMPLETAMENTE REFEITO */
.floating-nav {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000;
}

/* Botão hamburger em círculo */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: #e9967a;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1002;
}

.nav-toggle:hover {
  background: #cd5c5c;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: white;
  margin: 2.5px 0;
  transition: all 0.4s ease;
  border-radius: 2px;
}

/* Menu flutuante */
.floating-menu {
  position: absolute;
  top: 70px;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.4s ease;
  z-index: 1001;
  min-width: 180px;
  padding: 0.5rem 0;
}

.navigation {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.navigation li {
  list-style: none;
}

.navigation a {
  display: block;
  padding: 1rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.navigation a:hover {
  background: #e9967a;
  color: white;
  padding-left: 2rem;
}

.navigation li:last-child a {
  border-bottom: none;
}

/* Estados do Menu */
#nav-check {
  display: none;
}

#nav-check:checked ~ .floating-nav .nav-toggle {
  background: #cd5c5c;
  transform: scale(1.1);
}

#nav-check:checked ~ .floating-nav .nav-toggle .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

#nav-check:checked ~ .floating-nav .nav-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}

#nav-check:checked ~ .floating-nav .nav-toggle .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

#nav-check:checked ~ .floating-nav .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Botão Voltar */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  display: none; /* Inicialmente escondido */
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #e9967a;
  color: white !important;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.2em;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  transition: all 0.3s ease;
}

.back-button .arrow {
  font-size: 1.4em;
  transition: transform 0.3s ease;
}

.back-button:hover {
  background: #cd5c5c;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.back-button:hover .arrow {
  transform: translateX(-4px);
}

/* MEDIA QUERIES PARA RESPONSIVIDADE */

/* Tablets */
@media (max-width: 1024px) {
  h1 { font-size: 2.2em; }
  h2 { font-size: 2em; }
  p { font-size: 1.3em; }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .portfolio-item img {
    height: 250px;
  }
  
  .floating-nav {
    top: 20px;
    right: 20px;
  }
  
  .nav-toggle {
    width: 55px;
    height: 55px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.8em; }
  p { font-size: 1.2em; }
  
  .back-button {
    top: 15px;
    left: 15px;
    padding: 10px 16px;
    font-size: 1em;
    z-index: 1002;
  }
  
  .portfolio-container {
    padding: 1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .portfolio-item img {
    height: 220px;
  }
  
  .floating-nav {
    top: 15px;
    right: 15px;
  }
  
  .nav-toggle {
    width: 50px;
    height: 50px;
  }
  
  .hamburger-line {
    width: 22px;
    margin: 2px 0;
  }
  
  .floating-menu {
    top: 60px;
    min-width: 160px;
  }
  
  .navigation a {
    padding: 0.9rem 1.3rem;
    font-size: 1em;
  }
  
  .email-label {
    font-size: 1.7rem;
  }
  
  .fa-envelope {
    font-size: 3.5rem;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.6em; }
  
  .back-button {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 0.9em;
  }
  
  .portfolio-item img {
    height: 200px;
  }
  
  .portfolio-text {
    font-size: 1.3em;
  }
  
  .floating-nav {
    top: 10px;
    right: 10px;
  }
  
  .nav-toggle {
    width: 45px;
    height: 45px;
  }
  
  .hamburger-line {
    width: 20px;
    height: 2.5px;
  }
  
  .floating-menu {
    top: 55px;
    min-width: 140px;
  }
  
  .navigation a {
    padding: 0.8rem 1.2rem;
    font-size: 0.95em;
  }
  
  .email-label {
    font-size: 1.5rem;
    text-align: center;
    padding: 0 10px;
  }
  
  .fa-envelope {
    font-size: 3rem;
  }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
  .portfolio-grid {
    gap: 1rem;
  }
  
  .portfolio-item img {
    height: 180px;
  }
  
  .nav-toggle {
    width: 42px;
    height: 42px;
  }
  
  .navigation a {
    padding: 0.7rem 1rem;
  }
}

/* Desktop muito grande */
@media (min-width: 1440px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
  }
  
  .portfolio-item img {
    height: 350px;
  }
  
  .nav-toggle {
    width: 65px;
    height: 65px;
  }
  
  .hamburger-line {
    width: 28px;
    height: 3.5px;
    margin: 3px 0;
  }
}