/* Importação da fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --font-family: 'Poppins', sans-serif;
  
  /* Portfolio Custom Colors */
  --deep-moss-green: #3d5a3d;
  --sage-green: #8b9e8b;
  --light-cream: #f5f1e8;
  --beige: #d9ceb8;
  
  --background: var(--light-cream);
  --foreground: var(--deep-moss-green);
  --card: #ffffff;
  --primary: var(--deep-moss-green);
  --primary-foreground: var(--light-cream);
  --border: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

.max-w-7xl {
  max-width: 1440px;
  margin: 0 auto;
}

.container-padrao {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .container-padrao, 
  .max-w-7xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    overflow-x: hidden;
  }
}

.mx-auto { margin: 0 auto; }
.w-full { width: 100%; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-12 { margin-bottom: 3rem; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-3 { gap: 0.75rem; }
.gap-8 { gap: 2rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.grid { display: grid; gap: 2rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Header & Nav --- */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: var(--light-cream);
  z-index: 100;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.fixed-header.scrolled {
  height: 70px;
  background-color: rgba(245, 241, 232, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .header-content {
    gap: 0.5rem;
    justify-content: center;
  }

  .nav-list {
    gap: .5rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: opacity 0.3s;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
    height: auto;
    min-height: auto;
    padding-bottom: 40px;
  }

.hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-image-container {
    order: -1;
  }

.hero-img {
    height: 350px;
    width: 100%;
    order: -1;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

.hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
}

.description {
  font-size: .8rem;
  color: var(--sage-green);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 1rem 0;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.badge { 
  background: var(--beige);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
}

/* icones */
.flex.items-center.gap-3 .section-title {
    margin-bottom: 0;
    line-height: 1;
}

.icon-wrapper {
    background-color: var(--beige);
    color: var(--deep-moss-green);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

.timeline-item {
    border-left: 2px solid var(--sage-green);
    padding-left: 1.5rem;
    position: relative;
    transition: border-color 0.3s ease;
}

.timeline-item:hover {
    border-left-color: var(--deep-moss-green);
}

.timeline-item .date {
    display: block;
    font-size: 0.875rem;
    color: var(--sage-green);
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    margin-bottom: 0.25rem;
    color: var(--deep-moss-green);
}

.timeline-item .subtitle {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education {
    padding-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- Buttons --- */
.btn-primary, .btn-outline {

  font-family: inherit; 
  font-size: 1rem;
  font-weight: 500;
  
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  
  border: 2px solid transparent; 
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

/* Estado de Hover Unificado */
.btn-primary:hover, .btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(61, 90, 61, 0.2);
  filter: brightness(1.1);
}

.btn-primary:hover { transform: translateY(-3px); opacity: 0.9; }

/* --- Tabs & Cards --- */
.tab-container {
  background: var(--beige);
  padding: 0.5rem;
  border-radius: 50px;
}

.tab-btn {
  padding: 0.6rem 2rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

@media (max-width: 768px) {
  .tab-container {
    display: flex;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cases-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: .5rem;
  justify-content: center; 
  width: 100%;
}

@media (max-width: 768px) {
.cases-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 1.5rem;
    gap: 2rem;
  }

  .p-6 { padding: 1.25rem !important; }

.project-card {
    width: auto;
    max-width: auto;
    margin: 0;
  }

  .project-card h4 {
    font-size: 1.1rem;
  }

  .project-overlay {
    background: rgba(61, 90, 61, 0.4);
  }

  .project-image-wrapper {
    aspect-ratio: 4 / 3; 
  }
}

.card-cases {
  display: flex;
  padding: 0.5rem;
  gap: 0.5rem;
  text-decoration: none;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}

.card-description {
  margin: 0;
  padding: 1rem;
}

/* --- Grid e Card Base --- */
.project-card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(61, 90, 61, 0.12);
    border-color: var(--sage-green);
}

/* --- Container da Imagem e Overlay --- */
.project-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9; 
  width: 100%;
  overflow: hidden;
  background-color: var(--beige);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
    padding: 0;
}

.group:hover .project-image {
    transform: scale(1.1);
}

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

.group:hover .project-overlay {
    opacity: 1;
}

/* --- Botão que sobe no Hover --- */
.view-btn {
    background: var(--light-cream);
    color: var(--deep-moss-green);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.group:hover .view-btn {
    transform: translateY(0);
}

/* --- Textos do Card --- */
.category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sage-green);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.project-card h4 {
    color: var(--deep-moss-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-slide-left { animation: fadeIn 0.8s ease-out; }
.animate-slide-right { animation: fadeIn 0.8s ease-out 0.2s both; }

/* --- Footer --- */
.footer-section {
  background-color: var(--beige);
  /* Aumenta o respiro nas extremidades superior e inferior */
  padding: .1rem 0; 
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Espaçamento consistente entre os blocos (Título, Contatos, Redes) */
  gap: 1rem; 
  text-align: center;
}

.footer-title {
  font-size: 2rem;
  color: var(--deep-moss-green);
  margin-bottom: 0;
}

/* Ajuste das Redes Sociais */
.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.social-icon {
  /* Garante que o ícone não herde a cor azul padrão de links */
  color: var(--deep-moss-green) !important; 
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
}

/* Espaçamento do Copyright */
.copyright {
  margin-bottom: 1rem;
  padding: 1rem;
  border-top: 1px solid rgba(61, 90, 61, 0.1);
  width: 100%;
  max-width: 600px;
}

@media (max-width: 768px) {
  .contact-info { flex-direction: column; gap: 1rem; }
}

.contact-item {
  text-decoration: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}