/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Roboto', 'Raleway', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
  color: #222;
  line-height: 1.7;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 51, 102, 0.15);
}

.navbar-brand {
  font-weight: 700;
  color: #003366;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.navbar-brand:hover {
  color: #25d366;
}

.nav-link {
  color: #003366 !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #25d366, #128c7e);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: #25d366 !important;
  transform: translateY(-2px);
}

/* Hero Section */
header {
  background: linear-gradient(135deg, #003366 0%, #004080 50%, #0052a3 100%);
  color: #fff;
  padding: 120px 0 80px 0;
  text-align: center;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></rect></svg>');
  opacity: 0.3;
}

header .container {
  position: relative;
  z-index: 1;
}

header img {
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s;
}

header img:hover {
  transform: scale(1.05);
}

header h1 {
  font-size: 2.8rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

header p {
  font-size: 1.25rem;
  margin-top: 8px;
  opacity: 0.95;
  font-weight: 300;
  animation: fadeInUp 1s ease;
}

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

/* Sections */
section {
  margin-bottom: 60px;
  padding: 60px 0;
  position: relative;
}

section h2 {
  color: #003366;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #25d366, #128c7e);
  border-radius: 2px;
}

.bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 51, 102, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #25d366, #128c7e);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: 0 12px 40px rgba(0, 51, 102, 0.15);
  transform: translateY(-8px);
  border-color: rgba(37, 211, 102, 0.2);
}

.card i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s;
}

.card:hover i {
  transform: scale(1.1) rotate(5deg);
}

.card h5 {
  color: #003366;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Formulário */
.contato-form {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 51, 102, 0.1);
}

.form-label {
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  padding: 12px 16px;
  border: 2px solid #e3e8f0;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  color: #222;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 40px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #004080 0%, #0052a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #128c7e 0%, #0d6e62 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Social Links */
.social-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.social-links a {
  color: #003366;
  font-size: 1.8rem;
  transition: all 0.3s;
  display: inline-block;
}

.social-links a:hover {
  color: #25d366;
  transform: translateY(-5px) scale(1.15);
}

.social-linkedin i {
  color: #0A66C2;
}

.social-instagram i {
  color: #E4405F;
}

.social-facebook i {
  color: #1877F3;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
  color: #fff;
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #25d366, #128c7e);
}

footer .dev {
  color: #b3c6e0;
  font-size: 0.9em;
  margin-top: 0.5rem;
}

/* Imagens */
img {
  border-radius: 12px;
  transition: transform 0.3s;
}

img:hover {
  transform: scale(1.02);
}

/* Text Primary */
.text-primary {
  color: #003366 !important;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 40px 0;
    margin-bottom: 40px;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .contato-form {
    padding: 1.5rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem !important;
  }
}

@media (max-width: 576px) {
  header {
    padding: 100px 0 60px 0;
  }
  
  header h1 {
    font-size: 1.75rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
  
  .card i {
    font-size: 2.5rem;
  }
}

/* Scroll margin para navegação */
section[id] {
  scroll-margin-top: 100px;
}

/* Animações AOS personalizadas */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Melhorias visuais adicionais */
.container {
  position: relative;
}

.lead {
  font-weight: 300;
  letter-spacing: 0.5px;
}

.info {
  color: #666;
  font-style: italic;
}

/* Efeito de gradiente no texto */
.text-gradient {
  background: linear-gradient(135deg, #003366 0%, #25d366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
