/* Importando Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Estilos Gerais */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --accent-color: #ffc107;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--dark-color);
}

/* Navbar */
.navbar {
  transition: all var(--transition-speed);
}

.navbar-brand .logo {
  height: 40px;
  width: auto;
}

.nav-link {
  font-weight: 600;
  transition: color var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Espaçamento entre seções */
section {
  scroll-margin-top: 70px;
}

/* Hero / Banner */
.hero-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../images/tecnologia-header.jpg") center center/cover no-repeat;
  position: relative;
  min-height: 100vh;
}

.hero-bg h1, .hero-bg p {
  color: #fff !important;
}

/* Cards - Geral */
.card {
  border: none;
  border-radius: 0.75rem;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  background-color: #fff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Cards de Serviços */
#servicos .card i {
  transition: transform var(--transition-speed);
}

#servicos .card:hover i {
  transform: scale(1.1);
}

/* Projetos / Portfólio */
.project-card {
  overflow: hidden;
}

.project-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.project-card:hover .card-img-top {
  transform: scale(1.1);
}

/* Team Section */
#equipe .rounded-circle {
  transition: transform var(--transition-speed);
}

#equipe .card:hover .rounded-circle {
  transform: scale(1.1);
}

/* Diferenciais Icons */
.bi {
  font-size: 3rem;
}

/* Forms */
.form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.is-invalid {
  border-color: #dc3545;
}

/* Footer */
footer {
  border-top: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

footer a {
  text-decoration: none;
  transition: color var(--transition-speed);
}

footer a:hover {
  color: var(--primary-color) !important;
}

/* Modal Styles for Projects */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  position: relative;
  background-color: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.enlarged-project-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  color: #fff;
  background-color: transparent;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1051;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ccc;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-bg h1 {
    font-size: 2.5rem;
  }

  .modal-close {
    top: -40px;
    right: 0;
  }
}
