:root {
  --text-main: #ffffff;
  --text-dim: #b3b3b3;
  --bg-dark: #0a0a0a;
  --bg-panel: #111111;
  --border-light: rgba(255, 255, 255, 0.2);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* Animações de Entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in {
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Background image */
.site-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.05); /* Margem para o parallax/movimento suave se implementado no JS */
  transition: transform 0.5s ease-out;
}

.hero-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 40%, rgba(0,0,0,0.85) 100%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .logo {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 1px;
  cursor: pointer;
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.nav-links a:hover { 
  opacity: 1; 
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--text-main);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline:hover {
  color: #000;
  border-color: var(--text-main);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Content */
.hero-main {
  height: 100vh;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden; /* Garante que nada passe do 100vh na primeira dobra */
}

.hero-text-container {
  margin-top: -15vh; /* Subir um pouco mais o texto para afastar do painel */
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(18px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 1.5px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 35vh; /* Ficar logo acima do painel novo que é mais baixo */
  left: 50px;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: fadeIn 2s ease-in-out infinite alternate;
  z-index: 10;
}

/* Bottom Panels */
.bottom-panels {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  height: 30vh; /* REBAIXADO: Ocupa menos espaço vertical */
  min-height: 250px;
  z-index: 10;
}

.panel {
  background-color: rgba(10, 10, 10, 0.85); /* Mais transparente para ver a imagem de fundo através do vazio preto */
  backdrop-filter: blur(15px);
  padding: 30px 50px; /* Reduzido padding para caber no painel mais baixo */
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 18px; /* Menor */
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Philosophy Panel */
.philosophy-panel {
  width: 35%;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
}

.philosophy-panel .panel-text {
  font-size: 11px; /* Ajustado */
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: auto;
}

.philosophy-icons {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.icon-item:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.icon-item span {
  font-size: 10px;
  letter-spacing: 1px;
}

/* Projects Panel */
.projects-panel {
  width: 65%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  height: calc(100% - 60px);
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  cursor: pointer;
  group;
}

.project-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-img-wrap::after {
  content: 'VER PROJETO';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:hover .project-img-wrap img {
  transform: scale(1.1);
}

.project-item:hover .project-img-wrap::after {
  opacity: 1;
}

.project-name {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.project-item:hover .project-name {
  color: var(--text-main);
}

/* --- Novas Seções (Conteúdo Expandido) --- */
.content-section {
  padding: 100px 50px;
  background-color: var(--bg-dark);
  position: relative;
  z-index: 5;
}

.bg-solid {
  background-color: var(--bg-panel);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 40px;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 50px;
  max-width: 600px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

/* Portfolio Expanded */
.portfolio-expanded-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.portfolio-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.portfolio-overlay h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 5px;
}

.portfolio-overlay span {
  font-size: 11px;
  color: var(--text-dim);
}

/* Studio Section */
.studio-flex {
  display: flex;
  gap: 80px;
  align-items: center;
}

.studio-text {
  flex: 1;
}

.studio-text p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.studio-image {
  flex: 1;
  height: 500px;
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.career-card {
  border: 1px solid var(--border-light);
  padding: 40px;
  transition: background 0.3s;
}

.career-card:hover {
  background: var(--bg-panel);
}

.career-card h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 15px;
}

.career-card p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.career-card a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 5px;
}

/* Footer */
.site-footer {
  background-color: #050505;
  padding: 80px 50px 30px 50px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-grid h4 {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #666;
}

.footer-grid p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-grid .logo {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  text-align: center;
  font-size: 11px;
  color: #555;
}

/* Responsividade Mobile (Refinada) */
@media (max-width: 1024px) {
  .bottom-panels {
    position: relative;
    height: auto;
    flex-direction: column;
  }
  .philosophy-panel, .projects-panel {
    width: 100%;
    border-right: none;
  }
  .scroll-indicator {
    display: none;
  }
  .hero-main { height: auto; min-height: 80vh; padding-top: 150px; }
  .site-bg { position: absolute; }
}

@media (max-width: 768px) {
  .navbar { padding: 20px; }
  .navbar.scrolled { padding: 15px 20px; }
  
  .nav-right {
    position: fixed;
    top: 0; right: -100%;
    width: 250px; height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-right.active { right: 0; }
  
  .nav-links {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
  }
  
  .menu-toggle { display: block; z-index: 101; }
  
  .hero-main { padding: 120px 20px 60px; }
  
  .projects-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-img-wrap { height: 250px; }
  
  .panel { padding: 40px 20px; }

  /* Novas Seções Mobile */
  .portfolio-expanded-grid { grid-template-columns: 1fr; }
  .studio-flex { flex-direction: column; }
  .careers-grid, .showcase-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
