/* =========================================
   1. CSS RESET MODERNO
   ========================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: none;
  font-size: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #F2F8F5; /* Bg-primary */
  color: #304B3C; /* Darker */
  font-family: 'Outfit', sans-serif; /* FONTE NOVA */
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* =========================================
   2. VARIÁVEIS (:root)
   ========================================= */
:root {
  --rgb-overlay: 180, 207, 192;
  --rgb-dark: 48, 75, 60;
  --bg-primary: #F2F8F5;
  --color-deep: #1E362D;
  --glass-bg: rgba(var(--rgb-overlay), 0.3);
  --glass-border: rgba(var(--rgb-dark), 0.1);
  --spacing-md: 1rem;   
  --radius-pill: 50px;
  --radius-card: 24px;
}

/* =========================================
   3. HEADER "PÍLULA FLUTUANTE"
   ========================================= */
.main-header {
  position: sticky;
  top: 20px;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.nav-container {
  pointer-events: auto;
  background: rgba(242, 248, 245, 0.9);
  backdrop-filter: blur(16px);
  padding: 0.75rem 2.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 10px 40px -10px rgba(48, 75, 60, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-deep);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: rgb(var(--rgb-dark));
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0.7rem 1.4rem;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover {
  background-color: rgba(var(--rgb-overlay), 0.3);
  color: var(--color-deep);
  transform: translateY(-1px);
}

.social-buttons {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  background: rgba(var(--rgb-overlay), 0.4);
  color: rgb(var(--rgb-dark));
  box-shadow: inset 0 2px 4px rgba(48, 75, 60, 0.06);
}

.social-btn:hover {
  transform: translateY(-2px);
  background: rgb(var(--rgb-dark));
  color: var(--bg-primary);
  box-shadow: 0 8px 20px rgba(48, 75, 60, 0.25);
}

/* =========================================
   4. HERO SECTIONS (SCROLL)
   ========================================= */
.hero-scroll {
  height: 130vh;
  position: relative;
  margin-top: -100px;
  z-index: 1;
}

.hero-sticky-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
}

.hero-text {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-deep);
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-text .highlight {
  color: rgb(var(--rgb-dark));
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.hero-subtext {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgb(var(--rgb-dark));
  opacity: 0.9;
  max-width: 700px;
}

/* =========================================
   5. SKILLS GRID
   ========================================= */
.skills-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -20px 50px rgba(0,0,0,0.02);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--color-deep);
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-card i {
  font-size: 3rem;
  color: rgb(var(--rgb-dark));
  transition: transform 0.3s ease;
}

.skill-card span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-deep);
}

.skill-card:hover {
  background: rgba(var(--rgb-overlay), 0.6);
  transform: translateY(-5px);
  border-color: rgb(var(--rgb-dark));
  box-shadow: 0 10px 30px rgba(48, 75, 60, 0.1);
}

.skill-card:hover i {
  transform: scale(1.15);
  color: #0D1410;
}

/* =========================================
   6. CARROSSEL DE PROJETOS (Drag & Filters)
   ========================================= */
.projects-section {
  padding: 4rem 0 8rem;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem max(5%, (100vw - 1200px) / 2) 4rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  
  cursor: grab; /* Mão aberta */

  /* para de selecionar texto ao arrastar */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Quando estiver arrastando (via JS) */
.carousel-container.active {
  cursor: grabbing; /* Mão fechada */
  scroll-snap-type: none; /* Desativa o snap para arrastar livremente */
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 360px;
  height: 500px;
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #E8F1ED;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Reativa clicks apenas para o conteúdo interno se necessário, ou deixa sem */
.project-card .card-content { pointer-events: auto; }

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(48, 75, 60, 0.15);
  border-color: rgb(var(--rgb-dark));
}

/* Filtro Evergreen na Imagem */
.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: rgba(48, 75, 60, 0.85);
  background-blend-mode: hard-light;

  filter: grayscale(100%) contrast(1.2);

  opacity: 0;
  transition: all 0.5s ease;
  z-index: 0;
}

.project-card:hover .card-bg {
  opacity: 1;
  transform: scale(1.05);
}

.card-content {
  position: relative;
  z-index: 1;
  background: rgba(242, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.8rem;
  margin: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--color-deep);
  background: rgba(var(--rgb-overlay), 0.5);
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--color-deep);
  font-weight: 700;
}

.project-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* =========================================
   7. SELETOR DE IDIOMAS (SPEED DIAL)
   ========================================= */
.language-container {
  position: fixed;
  top: 30px;  
  right: 30px; 
  z-index: 2000; 
  
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 15px;
}

.language-btn {
  width: 50px; 
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.language-btn:hover, .language-btn.active {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.language-btn .fi {
  font-size: 1.5rem;
  border-radius: 4px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.language-btn.active .fi {
  transform: scale(1.1);
}

.language-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.language-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-options li {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background 0.2s;
}

.language-options li:hover {
  transform: scale(1.15);
  background: rgba(var(--rgb-overlay), 0.8);
}

.language-options .fi {
  font-size: 1.1rem;
  border-radius: 3px;
}

.tooltip {
  position: absolute;
  right: 55px;
  background: rgba(48, 75, 60, 0.95);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.language-options li:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .language-container {
    top: 20px;
    right: 20px;
  }
  .language-btn { width: 45px; height: 45px; }
}

/* =========================================
   8. ANIMAÇÕES
   ========================================= */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* =========================================
   9. RESPONSIVIDADE
   ========================================= */
@media (max-width: 1100px) {
  .nav-container { padding: 0.6rem 1.5rem; gap: 1.5rem; }
  .nav-links { gap: 0.2rem; }
  .nav-links a { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .social-buttons { gap: 0.5rem; }
}

@media (max-width: 768px) {
  .nav-container { justify-content: space-between; }
  .nav-links { display: none; }
  .social-buttons span { display: none; }
  .social-btn { padding: 0.6rem; border-radius: 50%; }
  
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .skill-card { padding: 1.5rem 1rem; min-height: 150px; }
  .skill-card i { font-size: 2.5rem; }
  
  .hero-text { font-size: 3rem; }
  .project-card { flex: 0 0 300px; height: 450px; }
  
  .language-container { bottom: 20px; right: 20px; }
  .language-btn { width: 48px; height: 48px; }
}

/* =========================================
   10. SEÇÃO DE CONTATO
   ========================================= */
.contact-section {
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
  padding: 4rem 2rem 2rem;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr; 
  gap: 4rem;
  align-items: center;
}

/* Coluna de Texto */
.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-deep);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.contact-info p {
  color: rgb(var(--rgb-dark));
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--color-deep);
}

.contact-item i {
  color: rgb(var(--rgb-dark));
  font-size: 1.2rem;
}

.contact-form-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(48, 75, 60, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 0.5rem;
}

/* Inputs Bonitos */
/* ALTERADO: Usando ID #contact-form para garantir que o estilo pegue */
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 75, 60, 0.2);
  background: rgba(255, 255, 255, 0.5); 
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--color-deep);
  transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: rgb(var(--rgb-dark));
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(48, 75, 60, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 50px;
  border: none;
  background: rgb(var(--rgb-dark));
  color: var(--bg-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: var(--color-deep);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(48, 75, 60, 0.3);
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr; 
    gap: 2rem;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-direct {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .social-buttons {
    justify-content: center;
  }
}
