@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #1a1a1a;
    color: #fff;
    scroll-behavior: smooth;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.1s * var(--i));
}

.navbar a:hover {
    color: #e36c3c;
}

/* HOME */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 10% 0;
    gap: 30px;
    flex-wrap: wrap;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 0.7s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 0.7s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #e36c3c;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 0.7s ease forwards;
    animation-delay: .1s;
}

.home-content p {
    font-size: 16px;
    opacity: 0;
    animation: slideLeft 0.7s ease forwards;
    animation-delay: .1s;
}

.home-img img {
    max-width: 600px;
    width: 100%;
    opacity: 0;
    animation: zoomIn 0.7s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: .2s, 3s;
}

/* SOCIAL */
.social-media {
    margin-top: 15px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #e36c3c;
    border-radius: 50%;
    font-size: 25px;
    color: #e36c3c;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 0.5s ease forwards;
    animation-delay: calc(.1s * var(--i));
}

.social-media a:hover {
    background: #e36c3c;
    color: #fff;
    box-shadow: 0 0 20px #e36c3c,
                0 0 10px #e36c3c;
}

/* PORTFÓLIO */
#portfolio {
  min-height: 100vh;
  padding: 100px 10%;
  background: #1a1a1a;
  text-align: center;
}

#portfolio h2 {
  font-size: 40px;
  margin-bottom: 40px;
  color: #FFF;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Sempre 3 por linha no desktop */
  gap: 20px;
}

.portfolio-item {
  background: #141414;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item iframe,
.portfolio-item video {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  object-fit: cover;
}


/* CONTATO */
#contato {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 22px;
  background-color: #222;
  text-align: center;
  padding: 40px 20px;
  gap: 20px;
  box-sizing: border-box;
  min-height: auto;
}

#contato h2 {
  margin: 0;
}

#contact_form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  width: 100%;
  background: #1f1f1f;
  padding: 30px;
  border-radius: 12px;
  gap: 15px;
  margin: 0 auto;
}

#contact_form input,
#contact_form textarea {
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
  background: #2b2b2b;
  color: #fff;
  border: none;
  outline: none;
  resize: none;
}

#contact_form button {
  background: #e36c3c;
  color: #fff;
  padding: 14px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

#contact_form button:hover {
  background: #ff7a4d;
}

/* RODAPÉ */
.rodape {
    text-align: center;
    padding: 20px 10%;
    background: #1a1a1a;
    font-size: 14px;
    color: #8b8b8b;
}

/* ANIMAÇÕES */
@keyframes slideRight {
    0% {opacity: 0; transform: translateX(-100px);}
    100% {opacity: 1; transform: translateX(0);}
}

@keyframes slideLeft {
    0% {opacity: 0; transform: translateX(100px);}
    100% {opacity: 1; transform: translateX(0);}
}

@keyframes slideTop {
    0% {opacity: 0; transform: translateY(100px);}
    100% {opacity: 1; transform: translateY(0);}
}

@keyframes slideBottom {
    0% {opacity: 0; transform: translateY(-100px);}
    100% {opacity: 1; transform: translateY(0);}
}

@keyframes zoomIn {
    0% {opacity: 0; transform: scale(0);}
    100% {opacity: 1; transform: scale(1);}
}

@keyframes floatImage {
    0% {transform: translateY(0);}
    50% {transform: translateY(-24px);}
    100% {transform: translateY(0);}
}

/* ============================= */
/*          MEDIA QUERIES        */
/* ============================= */

/* Tablets */
@media (max-width: 1024px) {
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr); /* 2 vídeos por linha */
  }
}

/* Celulares */
@media (max-width: 768px) {
  .portfolio-container {
    grid-template-columns: 1fr; /* 1 vídeo por linha */
  }

  .portfolio-item iframe,
  .portfolio-item video {
    height: 220px; /* ajusta a altura para celular */
  }
}
