@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(90deg, #330000, #4b0000, #6e0000);
  box-shadow: 0 4px 10px rgba(75, 0, 0, 0.7);
  border-radius: 0 0 20px 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #1a0000, #2e0000, #440000);
  box-shadow: 0 4px 10px rgba(68, 0, 0, 0.7);
  border-radius: 0 0 20px 20px;
  color: #b00020;
}

.profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: #b00020;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
}

.profile h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #b00020;
  margin: 0;
  text-shadow: none;
}

.profile-left {
  flex: 0 0 auto;
}

.company-logo {
  height: 40px;
  width: auto;
  margin-right: 1rem;
}

.profile-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logout-x {
  background: transparent;
  border: none;
  color: #b00020;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin: 0;
  user-select: none;
  transition: color 0.3s ease;
}

.logout-x:hover {
  color: #ff4c4c;
}

.profile p {
  font-size: 1.2rem;
  color: #ddd;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  cursor: pointer;
}

.social-icon img:hover {
  filter: brightness(0) invert(0.6);
}

.modal-content button {
  background: #b00020;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(176, 0, 32, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
  margin-top: 1rem;
}

#loginButton:hover, #logoutButton:hover, #toggleUsersListButton:hover, .modal-content button:hover {
  background: #a0001a;
  box-shadow: 0 6px 15px rgba(176, 0, 32, 0.7);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #b00020;
  text-shadow: 0 0 8px #b00020;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #ff9999;
}

.timer {
  font-size: 2rem;
  font-weight: 900;
  background: #b00020;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: inline-block;
  color: #fff;
  box-shadow: 0 0 15px #b00020;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 2px;
  user-select: none;
  transition: background 0.3s ease;
}

.timer:hover {
  background: #8b0000;
  box-shadow: 0 0 25px #8b0000;
}

.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 3rem 2rem;
  background: #121212;
}

.produto {
  background: #1e1e1e;
  padding: 1.5rem 1rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 15px rgba(176, 0, 32, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.produto:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(176, 0, 32, 0.6);
}

.produto img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.produto:hover img {
  transform: scale(1.1);
}

.produto h2 {
  font-size: 1.5rem;
  color: #b00020;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 6px #b00020;
}

.descricao {
  color: #bbb;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  min-height: 48px;
}

.preco {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.preco s {
  color: #888;
  margin-right: 0.5rem;
}

.botao {
  display: inline-block;
  background: #b00020;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(176, 0, 32, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.botao:hover {
  background: #a0001a;
  box-shadow: 0 6px 15px rgba(176, 0, 32, 0.7);
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #000;
  color: #666;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-top: 1px solid #222;
  user-select: none;
}

.modal-content {
  background-color: #222;
  margin: 0;
  padding: 3rem 3rem 2rem 3rem;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 30px #b00020;
  color: #cceeff;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #b00020;
  text-shadow: 0 0 8px #b00020;
}

.modal-content input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.notification {
  background-color: #b00020;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 15px #b00020;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  user-select: none;
  text-align: center;
  position: relative;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.feedback {
  background: #1a1a1a;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 1200px;
  color: #cceeff;
  text-align: center;
}

.feedback h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #b00020;
  text-shadow: 0 0 8px #b00020;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feedback-item {
  background: #222;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(176, 0, 32, 0.3);
  transition: box-shadow 0.3s ease;
}

.feedback-item:hover {
  box-shadow: 0 0 25px rgba(176, 0, 32, 0.6);
}

.feedback-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid #b00020;
  box-shadow: 0 0 8px #b00020;
}

.feedback-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #b00020;
  text-shadow: 0 0 6px #b00020;
}

.feedback-item p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.4;
  min-height: 60px;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .timer {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }
  .produto h2 {
    font-size: 1.2rem;
  }
  .botao {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

.creator-intro {
  background-color: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  /* Removida a altura fixa para permitir ajuste pelo container da animação */
  height: auto;
}

.hacker-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* ocupar toda a altura da viewport */
  overflow: hidden;
  z-index: -1; /* Mudei o z-index para -1 para ficar atrás do conteúdo */
  pointer-events: none;
  background-color: #0a0a0a;
}

.creator-intro {
  position: relative;
  z-index: 1; /* garantir que o conteúdo fique na frente da animação */
  background-color: transparent;
  padding-top: 5rem;
}

.creator-card {
  position: relative;
  z-index: 2; /* garantir que o texto do CEO fique na frente da animação */
}

.creator-card {
  position: relative;
  z-index: 2; /* garantir que o texto do CEO fique na frente da animação */
}

#hackerCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hacker-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: black;
  z-index: 0;
  overflow: hidden;
}

.hacker-animation::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    rgba(255, 0, 0, 0.4) 11px,
    rgba(255, 0, 0, 0.7) 12px,
    rgba(255, 0, 0, 0.4) 13px
  );
  animation: hacker-fall 2s linear infinite;
  z-index: 0;
}

@keyframes hacker-fall {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

.creator-intro .scroll-down-indicator {
  font-size: 2rem;
  margin-bottom: 1rem;
  user-select: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

.creator-intro h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  text-transform: uppercase;
}

.creator-intro .highlight {
  color: #ff0000;
}

.creator-card {
  background: #121212;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 15px #ff0000;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.creator-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff0000;
  box-shadow: 0 0 10px #ff0000;
}

.creator-info h2 {
  margin-bottom: 0.5rem;
  color: #ff0000;
}

.creator-info p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ccc;
}
