/* =========================================
   VARIÁVEIS GERAIS (Dark Mode Industrial)
========================================= */
:root {
  /* Cores Principais */
  --bg-primary: #040404;      /* Preto profundo absoluto */
  --bg-secondary: #0D0D0D;    /* Quase preto para contrastes */
  --bg-tertiary: #1A1A1A;     /* Cinza Antracite escuro */
  --bg-card: #141414;         /* Fundo de cards */
  --bg-card-hover: #1E1E1E;   /* Fundo de cards hover */

  --color-accent: #008431;    /* Verde Institucional ENGTF */
  --color-accent-hover: #00A63E;

  --text-primary: #FFFFFF;    /* Branco puro */
  --text-secondary: #B0B0B0;  /* Cinza claro para textos */
  --text-muted: #757575;      /* Cinza mais escuro */
  
  --border-color: #2A2A2A;

  /* Fontes */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto', sans-serif;

  /* Transições e Sombras */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --shadow-subtle: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 15px rgba(0, 230, 118, 0.2);
}

/* =========================================
   RESET E BASE
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

/* =========================================
   TIPOGRAFIA & TÍTULOS
========================================= */
.section-title {
  margin-bottom: 4rem;
}

.section-title .subtitle {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.highlight {
  color: var(--color-accent);
}

/* =========================================
   BOTÕES
========================================= */
.btn-primary, .btn-secondary, .btn-primary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

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

.btn-primary-outline:hover {
  background-color: var(--color-accent);
  color: var(--bg-primary);
}

.w-full {
  width: 100%;
}

/* =========================================
   HEADER & NAVBAR
========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

header.scrolled {
  background-color: rgba(4, 4, 4, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  transition: transform var(--transition-fast);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn-primary-outline) {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:not(.btn-primary-outline)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav-links a:not(.btn-primary-outline):hover::after {
  width: 100%;
}

.nav-links a:not(.btn-primary-outline):hover {
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.close-menu-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav a {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about {
  background-color: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-left-color: var(--color-accent);
  transform: translateX(10px);
}

.card i {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* =========================================
   SERVICES SECTION
========================================= */
.services {
  background-color: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(0,230,118,0.1) 0%, transparent 100%);
  transition: height var(--transition-normal);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-subtle);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 3.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* =========================================
   PORTFOLIO SECTION
========================================= */
.portfolio {
  background-color: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  height: 300px;
  background-color: var(--bg-tertiary);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  filter: grayscale(80%);
}

#img-portfolio-1 {
  background-image: url('assets/portfolio1.png');
}
#img-portfolio-2 {
  background-image: url('assets/portfolio2.png');
}
#img-portfolio-3 {
  background-image: url('assets/portfolio3.png');
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 60%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-info h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.portfolio-info p {
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

/* =========================================
   CLIENTS SLIDER SECTION
========================================= */
.clients {
  padding: 4rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.clients-title {
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.slider {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.slide-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.slide {
  width: 200px;
  margin-right: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.slide img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  background-color: #FFFFFF;
  padding: 15px;
  border-radius: 8px;
  filter: grayscale(100%) opacity(0.8);
  transition: all var(--transition-fast);
}

.slide:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 8 - 4rem * 8)); }
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact {
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info > p {
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-top: 0.2rem;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.info-item p {
  color: var(--text-secondary);
}

.contact-form-wrapper {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 1rem 1rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-btn.active {
  color: var(--color-accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
}

.contact-form {
  display: none;
}

.contact-form.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

input, textarea, select {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 4px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.file-upload input {
  display: none;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--bg-primary);
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0;
}

.file-label:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* =========================================
   FOOTER
========================================= */
footer {
  background-color: var(--bg-primary);
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-desc {
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact i {
  color: var(--color-accent);
}

.footer-bottom {
  background-color: var(--bg-secondary);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* =========================================
   WHATSAPP FLOATING BTN
========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero { padding-top: 100px; }
  .hero h1 { font-size: 2rem; line-height: 1.1; }
  .hero-actions { flex-direction: column; }
  
  .input-row { grid-template-columns: 1fr; }
  
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .section-padding { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  
  .hero h1 { font-size: 1.8rem; }
  .section-title h2, .contact-info h2 { font-size: 1.8rem; }
  .section-title { margin-bottom: 2rem; }
  
  .contact-form-wrapper { padding: 1.5rem; }
  .tab-btn { padding: 0.8rem 1rem; font-size: 0.9rem; }
  
  .portfolio-info h3 { font-size: 1.1rem; line-height: 1.3; }
  
  input, textarea, select { font-size: 0.95rem; }
}
