@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Share+Tech+Mono&display=swap');


:root {
  --bg-dark: linear-gradient(135deg, #000000, #050505);
  --text-dark: #00ff99;
  --highlight-dark: #00ffd5;
  --link-dark: #00ffe7;
  --glow-dark: 0 0 10px rgba(0, 255, 213, 0.7);

  --bg-light: #f5f5f5;
  --text-light: #222;
  --highlight-light: #1a1a1a;
  --link-light: #0055ff;
  --glow-light: 0 0 10px rgba(0, 85, 255, 0.5);
}

body {
  font-family: 'Orbitron', sans-serif;
  transition: background 0.5s, color 0.5s;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  background-attachment: fixed;
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-light);
}

#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 1; /* Aumentando a opacidade do efeito Matrix ao máximo */
}

.slide {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(50px);
  background: rgba(0, 0, 0, 0.85); /* Ajustando a opacidade para melhor visibilidade */
  backdrop-filter: blur(3px);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

body.dark-mode h1,
body.dark-mode h2 {
  color: var(--highlight-dark);
  text-shadow: var(--glow-dark);
}

body.light-mode h1,
body.light-mode h2 {
  color: var(--highlight-light);
  text-shadow: var(--glow-light);
}

p {
  font-size: clamp(1.2rem, 2vw, 2rem);
  max-width: min(900px, 90%);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

pre {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.8rem;
  max-width: 900px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--highlight-dark);
  margin: 1.5rem 0;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  margin-top: 2rem;
}

#slide2 h2,
#slide2 > p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.code-block {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--highlight-dark);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.code-block h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--highlight-dark);
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow-x: auto;
  font-size: 1.4rem;
}

body.light-mode .code-block {
  border-left-color: var(--highlight-light);
}

body.light-mode .code-block h3 {
  color: var(--highlight-light);
}

a {
  font-size: 2rem;
  line-height: 1.8;
  transition: all 0.3s ease;
}

a {
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

body.dark-mode a {
  color: var(--link-dark);
  background: rgba(0, 255, 231, 0.1);
}

body.light-mode a {
  color: var(--link-light);
  background: rgba(0, 85, 255, 0.1);
}

a:hover {
  transform: translateY(-2px);
}

body.dark-mode a:hover {
  box-shadow: 0 0 15px rgba(0, 255, 231, 0.5);
}

body.light-mode a:hover {
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.5);
}

#themeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  border: 2px solid currentColor;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#themeToggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.qr-codes {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  border: 2px solid var(--highlight-dark);
  transition: all 0.3s ease;
}

.qr-code-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-dark);
}

.qr-code-container h3 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--highlight-dark);
}

.qr-code {
  background: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  min-height: 180px;
}

body.light-mode .qr-code-container {
  border-color: var(--highlight-light);
}

body.light-mode .qr-code-container h3 {
  color: var(--highlight-light);
}

/* Controles de navegação */
.nav-controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none !important; /* Esconde os controles de navegação permanentemente */
  gap: 20px;
  z-index: 100;
}

.nav-button {
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
  border: 2px solid currentColor;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.nav-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

body.dark-mode .nav-button {
  color: var(--text-dark);
}

/* Estilos para o slide de fontes de conhecimento */
.knowledge-sources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.category {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--highlight-dark);
  text-align: left;
}

.category h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--highlight-dark);
  text-shadow: var(--glow-dark);
}

.category p {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.category a {
  font-size: 1.5rem;
  display: inline-block;
  margin: 0.3rem 0;
}

@media (max-width: 1366px) {
  .code-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 95%;
    padding: 0 1rem;
  }

  .two-column-layout {
    padding: 0 1rem;
  }

  .slide {
    padding: 1rem;
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
  }

  pre {
    font-size: clamp(1rem, 1.5vw, 1.8rem);
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .knowledge-sources {
    grid-template-columns: 1fr;
  }
  
  .category {
    margin-bottom: 1rem;
  }

  .qr-codes {
    flex-direction: column;
    gap: 1.5rem;
  }

  .code-block {
    padding: 1rem;
  }

  .code-block pre {
    font-size: clamp(0.9rem, 1.2vw, 1.4rem);
  }
}

body.light-mode .nav-button {
  color: var(--text-light);
}

/* Indicadores de slide */
.slide-indicators {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none !important; /* Esconde os indicadores de slide permanentemente */
  gap: 10px;
  z-index: 100;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--highlight-dark);
  box-shadow: 0 0 10px var(--highlight-dark);
}

body.light-mode .indicator.active {
  background: var(--highlight-light);
  box-shadow: 0 0 10px var(--link-light);
}

/* Estilos para o layout de duas colunas */
.two-column-layout {
  display: flex;
  gap: 4rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.column {
  flex: 1;
}

.text-column {
  text-align: left;
}

.image-column img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--glow-dark);
}

@media (max-width: 1024px) {
  .two-column-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .text-column {
    text-align: center;
  }
}
body.light-mode .qr-code-container {
  border-color: var(--highlight-light);
}

body.light-mode .qr-code-container h3 {
  color: var(--highlight-light);
}
