/* 
  Paleta de cores SolProg:
  --primary-color: #2c3e50 (fundo escuro)
  --secondary-color: #d9d9d9 (cinza claro)
  --white-color: #ffffff
  --text-color: #333333 (para texto principal)
*/
@font-face {
  font-family: "Days";
  src: url("./fonts/Days.ttf") format("truetype");
  /* Caso tenha um .otf, pode usar format('opentype') */
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50; /* Azul mais vibrante */
  --secondary-color: #9099a3; /* Cinza mais suave */
  --accent-color: #d9dce0; /* Azul claro para destaques */
  --dark-color: #1a222a; /* Azul escuro para textos */
  --white-color: #d9dce0;
  --gradient: linear-gradient(135deg, #2c3e50 0%, #9099a3 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Nunito Sans", sans-serif;
  color: var(--text-color);
  scroll-behavior: smooth;
  position: relative;
  background-color: var(--white-color);
  line-height: 1.6;
}

/* LINKS SEM SUBLINHADO */
a {
  text-decoration: none;
  color: inherit;
}

/* BOTÃO VOLTAR AO TOPO */
#btnTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  display: none;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--white-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
#btnTop:hover {
  background-color: #1e2b38; /* um tom ainda mais escuro */
}

/* HEADER */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  background-color: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  position: absolute;
  height: 128px;
  width: auto;
  left: 28px;
  top: 24px;
}

.logo h1 {
  font-family: "Days One", sans-serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
  margin-left: 112px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.navbar li {
  position: relative;
}

.navbar a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--dark-color);
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* SEÇÕES */
.section {
  padding: 8rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

/* HOME SECTION */
.home-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  overflow: hidden;
}

/* Fundo com efeito parallax */
.home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./images/background.jpg");
  /* Imagem mais moderna com tema de tecnologia/código */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: brightness(0.9); /* Escurecido um pouco mais para melhor contraste */
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
}

.home-content {
  max-width: 1024px;
  background: #2c3e50;

  border: 0px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--white-color);
  font-weight: 700;
}

.home-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--white-color);
  line-height: 1.8;
  opacity: 0.9;
}

.home-section button {
  color: var(--white-color);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-section button:hover {
  transform: translateY(-2px);
}

.home-section button:active {
  transform: translateY(0);
}

/* Efeito de brilho no hover */
.home-section button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 60%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: rotate(45deg);
  transition: 0.6s;
  opacity: 0;
}

.home-section button:hover::after {
  opacity: 1;
  left: 100%;
}

/* Estilo do botão CTA (Call to Action) */
.cta-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  margin-top: 2rem;
}

.cta-button span {
  z-index: 1;
  transition: all 0.3s ease;
}

.cta-button i {
  font-size: 1rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cta-button:hover i {
  transform: translateX(4px);
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0);
}

/* Responsividade do botão */
@media (max-width: 768px) {
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* ABOUT SECTION */
.about-section {
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-section h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.about-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.about-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.about-icon i {
  font-size: 1.5rem;
  color: white;
}

.about-info {
  flex: 1;
}

.about-info h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-info p {
  color: var(--dark-color);
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 0;
}

/* Elementos decorativos sutis para a seção Sobre */
.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  background: var(--primary-color);
  opacity: 0.02;
  border-radius: 50%;
}

.about-section::before {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -200px;
}

.about-section::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -150px;
}

/* Responsividade */
@media (max-width: 768px) {
  .about-section {
    padding: 4rem 1rem;
  }

  .about-card {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    text-align: center;
  }

  .about-icon {
    margin: 0 auto;
  }

  .about-section h2 {
    font-size: 2rem;
  }

  .about-info h3 {
    font-size: 1.3rem;
  }

  .about-info p {
    font-size: 1rem;
  }
}

/* SERVICES SECTION */
.services-section {
  background-color: var(--white-color);
  padding: 6rem 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

.services-grid .card {
  background: var(--white-color);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.services-grid .card .icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 2rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.services-grid .card .icon i {
  font-size: 2.5rem;
  color: var(--white-color);
}

.services-grid .card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.services-grid .card p {
  color: var(--dark-color);
  line-height: 1.8;
  font-size: 1.1rem;
  margin: 0;
}

/* CLIENTS SECTION */
.clients-section {
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  padding: 6rem 2rem;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--dark-color);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.client-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.client-header {
  background: var(--primary-color);
  padding: 1.5rem;
  color: white;
}

.client-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.client-tag,
.client-size {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
}

.client-content {
  padding: 1.5rem;
}

.client-content ul {
  list-style: none;
  padding: 0;
}

.client-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.client-content li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width: 768px) {
  .clients-section {
    padding: 4rem 1rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    margin: 0 1rem;
  }

  .client-header h3 {
    font-size: 1.1rem;
  }

  .client-content {
    font-size: 0.95rem;
  }
}

/* CONTACT SECTION */
.contact-section {
  padding: 4rem 2rem;
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  min-height: auto;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

.contact-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-info a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #1e40af;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-info {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .contact-info li {
    font-size: 1rem;
  }
}

/* FOOTER */
.footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .header {
    padding: 1rem 2rem;
  }

  .navbar ul {
    gap: 0.5rem;
  }

  .navbar a {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .home-section {
    background-attachment: scroll; /* Remove parallax em mobile */
  }

  .home-content {
    margin: 0 1rem;
    padding: 2rem;
  }

  .logo-img {
    height: 96px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
  }

  .services-grid .card {
    padding: 2rem;
  }

  .services-grid .card .icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
  }

  .services-grid .card .icon i {
    font-size: 2rem;
  }

  .services-grid .card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .services-grid .card p {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark-color);
    position: absolute;
    transition: 0.3s;
  }

  .menu-toggle span:nth-child(1) {
    top: 0;
  }
  .menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  .menu-toggle span:nth-child(3) {
    bottom: 0;
  }

  .navbar ul {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white-color);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: 0.3s;
  }

  .navbar.active ul {
    transform: translateX(0);
  }
}
