/* CSS reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ESTILOS BASE (MODO CLARO PADRÃO)          */

body {
  background-color: #ffffff;
  color: #333333;
  transition:
 background-color 0.3s,
 color 0.3s;
  font-family: Poppins, sans-serif;
  font-style: normal;
  font-display: swap;
}

/* ESTILOS DO CABEÇALHO (HEADER) E NAVEGAÇÃO (NAV)  */
header {
  width: 100%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
  padding: 0 10%;
}

.logo {
  display: block;
  height: auto;
  width: 150px;
  margin: 0;
}

/* ESTILOS DO TEMA (ICONES) */
.theme-switcher {
  display: flex; 
  align-items: center;
}

.theme-switcher .icon {
  width: 30px; 
  height: 30px;
  cursor: pointer;
  margin-left: 15px; 
  filter: none;
}
/*  PADRÃO (light-mode) */
.light-icon {
  display: none; /* Esconde o sol/dia no modo claro */
}
.dark-icon {
  display: block; /* Mostra a lua/noite no modo claro */
}

/*  NO MODO ESCURO (body.dark) */
body.dark .light-icon {
  display: block; /* Mostra o sol/dia no modo escuro */
  filter: invert(1); /* Deixa o ícone branco*/
}

body.dark .dark-icon {
  display: none;
}

/* ESTILOS DO CONTEÚDO PRINCIPAL                 */
h1 {
  color: rgb(9, 9, 9);
  font-size: 65px;
  font-weight: bold;
  font-family: "Unbounded", cursive;
  font-style: normal;
  font-display: swap;
  text-align: center;
  margin-top: 60px;
}
h1 span,
a {
  color: rgb(240, 163, 21);
}
p {
  color: black;
  font-size: 24px;
  font-family: Poppins, sans-serif;
  font-style: normal;
  font-display: swap;
  text-align: center;
  margin: 40px auto;
}
a {
  font-family: "Poppins", sans-serif;
  background-color: rgb(240, 163, 21);
  color: rgb(26, 26, 26);
  text-decoration: none;
  font-size: 24px;
  border-radius: 36px;
  width: 340px;
  height: 66px;
  display: block;
  line-height: 66px;
  text-align: center;
  margin: 40px auto;
  transition:
    background-color 0.3s,
    color 0.3s;
}
a:hover {
  background-color: rgb(5, 5, 5);
  color: rgb(245, 245, 245);
}
.img-celulares {
  display: block;
  margin: 0 auto;
  width: 792px;
  height: 446px;
  transition: filter 0.3s;
}
p {
  margin: 10px 10px;
}

/* ESTILOS MODO ESCURO (DARK MODE)               */
body.dark {
  background-color: #121212;
  color: #f5f5f5;
}

body.dark h1 {
  color: #e0e0e0;
}

body.dark h1 span,
body.dark a {
  color: #f5b32f;
}

body.dark p {
  color: #e0e0e0;
}

body.dark a {
  background-color: #f5b32f;
  color: #1a1a1a;
}

body.dark a:hover {
  background-color: #f6f0f0;
  color: #f5b907;
}

/* Efeito para imagens no modo escuro  */
body.dark .logo,
body.dark .img-celulares {
  filter: brightness(0.7) contrast(1.1);
}


/* MEDIA QUERIES         */

/* tablet */
@media (max-width: 768px) {
  nav {
    padding: 0 5%;
    min-height: 80px;
  }
  h1 {
    font-size: 50px;
  }
  p {
    width: 90%;
    font-size: 20px;
  }
  .img-celulares {
    width: 100%;
    height: auto;
    max-width: 600px;
  }
}

/* Estilo celular */
@media (max-width: 480px) {
  h1 {
    font-size: 36px;
    align-items: center;
  }
  p {
    font-size: 18px;
  }
  a {
    width: 90%;
    font-size: 20px;
  }
  .logo {
    width: 120px;
  }
  .theme-switcher .icon {
    width: 25px;
    height: 25px;
  }
}
