/* ============================================================
   Geison Leite — 3D Animator Portfolio
   Layout baseado no site atual do cliente
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

::selection {
  background: #2D8B6F;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #2D8B6F;
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.9);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #ccc;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2D8B6F;
}

.btn-contact {
  display: inline-block;
  padding: 10px 28px;
  background: #2D8B6F;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
  background: #247a5f;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0f1f2e 25%, #1a2a3a 50%, #0f1f2e 75%, #0a1628 100%);
  background-size: 400% 400%;
  animation: heroShift 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(45, 139, 111, 0.08) 0%, transparent 60%);
}

@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, #2a3a4a, #1a2a3a);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.hero-role {
  font-size: 16px;
  font-weight: 500;
  color: #999;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Portfolio ---------- */
.portfolio-section {
  background: #000;
  padding: 80px 0 0;
}

.section-title {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 40px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.filter-btn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #888;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover {
  color: #ccc;
}

.filter-btn.active {
  color: #fff;
  border-bottom-color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

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

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay .play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .play-icon {
  transform: scale(1.1);
}

.play-icon svg {
  margin-left: 3px;
}

.portfolio-card .card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: #1a1a1a;
}

.card-placeholder .placeholder-icon {
  opacity: 0.4;
}

.card-placeholder .placeholder-text {
  font-size: 11px;
  color: #555;
  letter-spacing: 1px;
}

/* ---------- Contact ---------- */
.contact-section {
  background: #000;
  padding: 80px 0;
}

.contact-section .section-title {
  margin-bottom: 0;
}

.section-line {
  border: none;
  border-top: 1px solid #333;
  max-width: 700px;
  margin: 24px auto 0;
}

.contact-content {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.contact-desc {
  text-align: center;
  color: #999;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.required {
  color: #c00;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2D8B6F;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.recaptcha-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #f9f9f9;
}

.recaptcha-placeholder input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #2D8B6F;
}

.recaptcha-placeholder label {
  font-size: 14px;
  color: #555;
  margin-bottom: 0;
}

.recaptcha-badge {
  margin-left: auto;
  font-size: 10px;
  color: #999;
}

.btn-submit {
  display: inline-block;
  padding: 12px 36px;
  background: #2D8B6F;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: #247a5f;
  transform: translateY(-1px);
}

.contact-alt {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #333;
  margin-top: 60px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: #2D8B6F;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: #111;
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid #222;
}

.footer p {
  font-size: 12px;
  color: #666;
  letter-spacing: 0.5px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox[hidden] {
  display: flex;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-container {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-video {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.lightbox-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-profile {
    flex-direction: column;
    text-align: center;
  }

  .hero-avatar {
    width: 90px;
    height: 90px;
  }

  .hero-name {
    font-size: 18px;
  }

  .hero-role {
    font-size: 14px;
  }

  .lightbox-container {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
    gap: 20px;
    padding: 0 20px;
  }

  .filter-btn {
    font-size: 11px;
  }

  .section-title {
    font-size: 28px;
    letter-spacing: 2px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}