/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  font-family: 'Poppins';
}

/* ===== TÍTULOS COM GRADIENTE ===== */
section h1,
section h2,
.header,
.heading {
  font-weight: 700;
  font-size: 2.2em;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== CONFIGURAÇÃO DAS SECTIONS ===== */
section {
  min-height: 100vh;
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* ===== VARIÁVEIS DE CORES ===== */
:root {
  --background: rgb(24,24,24);
  --second-background: rgb(21,21,21);
}

/* ===== BODY ===== */
body {
  min-height: 100vh;
  background: var(--background);
}

/* ===== NAVBAR ===== */
nav {
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo span {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

nav .links {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav .links li {
  position: relative;
}

nav .links li a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #e7e7e7;
  position: relative;
  padding-bottom: 4px;
}

nav .links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff;
}

#menu {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* ===== HOME ===== */
#home {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 3em;
  color: white;
  padding: 5% 15%;
}

#home img {
  width: 25vw;
  max-width: 300px;
  border-radius: 50%;
  margin-top: 0;
  border: 6px solid #3ec5ff;
  box-shadow: 0 0 20px rgba(62, 197, 255, 0.6);
}

.info-box {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-box h2 {
  font-size: 3em;
  font-weight: 200;
}

.info-box h3 {
  font-size: 2em;
  font-weight: 400;
  color: #247496;
}

.info-box p { 
  margin: 0;
}

.info-box p + .btn-box { 
  margin-top: 2rem;
}

.btn-box {
  display: flex;
  gap: 1em;
}

.btn-box .btn {
  padding: 0.8em 1.6em;
  font-size: 1em;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #3ec5ff;
}

.btn-box .btn:nth-of-type(1) {
  background: transparent;
  color: #3ec5ff;
}

.btn-box .btn:nth-of-type(1):hover {
  background: #3ec5ff;
  color: var(--background);
}

.btn-box .btn:nth-of-type(2) {
  background: #3ec5ff;
  color: var(--background);
}

.btn-box .btn:nth-of-type(2):hover {
  background: transparent;
  color: #3ec5ff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 20px;
  background-color: var(--background);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #2e8f9c, #3ec5ff);
}

/* ===== TIMELINE ===== */
#timeline .container {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
}

.timeline {
  flex: 1;
  min-width: 280px;
  padding-left: 50px;
  border-left: 2px solid #007bff;
  position: relative;
}

.timeline .header {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.timeline-item {
  background: #1e1e1e;
  border: 1px solid #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 14px;
  height: 14px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  border-radius: 50%;
  position: absolute;
  left: -58px;
  top: 20px;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.card {
  background: #1e1e1e;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: left;
}

.company-logo {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 6px;
  box-shadow: 0 0 6px rgba(0,170,255,0.4);
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #e6f7ff;
}

.card .company {
  background: linear-gradient(90deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #00aaff;
  font-weight: 700;
}

.card .date {
  font-size: 0.8rem;
  color: #aaa;
}

.card .desc {
  font-size: 0.85rem;
  color: #ddd;
  margin-top: 3px;
}

/* ===== SERVIÇOS / PROJETOS ===== */
#services {
    background: var(--background);
    width: 100%;
    padding: 80px 10%;
    box-sizing: border-box;
}

#services .header {
    margin-bottom: 15px;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;         
    gap: 30px;              
}

.box {
    background-color: #1e1e1e;
    border: 1px solid #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    flex-grow: 1; 
    flex-basis: 300px; 
    max-width: 400px; 
    height: 330px;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
}

.box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    height: 100%;
}

.box img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.box h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}


.box p {
    font-size: 0.95rem;
    color: #ccc; 
    line-height: 1.6;
    text-align: center;
}

/* ===== CONTATO ===== */
#contact {
  width: 100%;
  min-height: 100vh;
  background: var(--background);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 10%;
  gap: 2rem;
}

.contact-form {
  background-color: rgba(30, 30, 30, 0.7);
  border: 2px solid #007bff;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
  padding: 30px;
  border-radius: 12px;
  max-width: 650px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #3ec5ff;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom: 2px solid #00d4ff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.btn-contact {
  background: linear-gradient(90deg, #007bff, #00d4ff);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(89, 140, 194, 0.6);
}

@media (max-width: 650px) {
  .form-group {
    flex-direction: column;
    gap: 15px;
  }

  .contact-form {
    padding: 20px;
  }
}

#form-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px; 
}

#form-message.show {
    opacity: 1;
    transform: translateY(0);
}

#form-message.error {
    background: linear-gradient(135deg, #ff416c, #ff4b2b); /* degrade vermelho */
}

.hidden { 
    display: none; 
}

/* ===== FOOTER ===== */
.footer-moderno {
  padding: 30px 50px;
  background-color: #32343550;
  border-top: 1px solid #e7e7e7;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  color: #e7e8e9;
  font-size: 18px;
}

.footer-nav a {
  color: #495057;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #007bff;
}

.social-links a {
  margin: 0 10px;
}

.social-links img {
  width: 27px;
  height: 27px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.social-links img:hover {
  opacity: 1;
}


/* ===== MEDIA QUERIES ===== */

/* Tablets grandes e laptops menores */
@media (max-width: 1024px) {
  #home {
    flex-direction: column;
    padding: 5% 5%;
    gap: 2em;
  }

  #home img {
    width: 40vw;
  }

  .info-box h2 {
    font-size: 2.2em;
  }

  .info-box h3 {
    font-size: 1.5em;
  }
}

/* Tablets e telas médias */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  nav .links {
    display: none;
  }

  #menu {
    display: block;
  }

  .timeline {
    padding-left: 20px;
    border-left: 2px solid #007bff;
  }

  .timeline-item::before {
    left: -20px;
  }
}

/* Smartphones e telas pequenas */
@media (max-width: 480px) {
  #home img {
    width: 60vw;
    max-width: 200px;
  }

  .info-box h2 {
    font-size: 1.8em;
  }

  .info-box h3 {
    font-size: 1.2em;
  }

  .btn-box {
    flex-direction: column;
    gap: 10px;
  }

  .box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .box img {
    margin: 0 0 10px 0;
  }

  .contact-form {
    padding: 15px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
