@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
  color: white;
  user-select: none;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background-color: rgba(26, 26, 46, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 5rem;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  color: #eb59bd;
  transform: scale(1.05);
}

/* ------------ SPECS SECTION ------------ */
.specs-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.specs-header {
  text-align: center;
  margin-bottom: 4rem;
}

.specs-header h1 {
  font-size: 2.8rem;
  color: #eb59bd;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.specs-subtitle {
  font-size: 1.3rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

/* ------------ SPEC CATEGORIES ------------ */
.spec-category {
  background: rgba(26, 26, 46, 0.6);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(235, 89, 189, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(235, 89, 189, 0.2);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(235, 89, 189, 0.3);
}

.category-header i {
  font-size: 2rem;
  color: #eb59bd;
}

.category-header h2 {
  font-size: 1.5rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ------------ SPEC ITEMS ------------ */
.spec-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(15, 12, 41, 0.4);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.1);
  transition: all 0.3s ease;
  min-height: 100px; /* Altura mínima fixa para alinhamento */
  justify-content: flex-start; /* Alinhamento consistente */
}

.spec-item:hover {
  background: rgba(15, 12, 41, 0.6);
  border-color: rgba(235, 89, 189, 0.3);
  transform: translateX(5px);
}

.spec-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #eb59bd, #00f2ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-icon i {
  font-size: 1.5rem;
  color: white;
}

.spec-details {
  flex: 1; /* Ocupa todo o espaço disponível */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza verticalmente o conteúdo */
}

.spec-details h3 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-details p {
  font-size: 1rem;
  color: #00f2ff;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.spec-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-badge.performance { background: linear-gradient(45deg, #ff6b6b, #ff8787); }
.spec-badge.gaming { background: linear-gradient(45deg, #4ecdc4, #44a08d); }
.spec-badge.overkill { background: linear-gradient(45deg, #feca57, #ff9ff3); }
.spec-badge.style { background: linear-gradient(45deg, #a8edea, #fed6e3); }
.spec-badge.mechanical { background: linear-gradient(45deg, #fd79a8, #fdcb6e); }
.spec-badge.wireless { background: linear-gradient(45deg, #6c5ce7, #a29bfe); }
.spec-badge.surround { background: linear-gradient(45deg, #fd79a8, #fdcb6e); }
.spec-badge.streaming { background: linear-gradient(45deg, #e17055, #f39c12); }
.spec-badge.hd { background: linear-gradient(45deg, #00cec9, #55a3ff); }
.spec-badge.refresh { background: linear-gradient(45deg, #ff7675, #fd79a8); }
.spec-badge.extended { background: linear-gradient(45deg, #81ecec, #74b9ff); }

/* ------------ CS2 CONFIG ------------ */
.cs2-config {
  grid-column: 1 / -1;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.config-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(235, 89, 189, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(235, 89, 189, 0.2);
  transition: all 0.3s ease;
  min-height: 90px; /* Altura mínima fixa para alinhamento */
  justify-content: flex-start; /* Alinhamento consistente */
}

.config-item:hover {
  background: rgba(235, 89, 189, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(235, 89, 189, 0.2);
}

.config-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, #eb59bd, #00f2ff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.config-icon i {
  font-size: 1.3rem;
  color: white;
}

.config-info {
  flex: 1; /* Ocupa todo o espaço disponível */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza verticalmente o conteúdo */
}

.config-info h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-info p {
  font-size: 1.1rem;
  color: #eb59bd;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.config-info small {
  font-size: 0.85rem;
  color: #999;
}

/* ------------ SPECS FOOTER ------------ */
.specs-footer {
  background: rgba(15, 12, 41, 0.6);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.performance-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.stat-item i {
  font-size: 2.5rem;
  color: #00f2ff;
}

.stat-item h3 {
  font-size: 2rem;
  color: #eb59bd;
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 1rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ------------ FOOTER ------------ */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #1a1a2e;
  color: #ccc;
  font-size: 1.2rem;
}

footer .socials {
  margin-bottom: 2rem;
  margin-top: 20px;
}

footer .socials a {
  color: #eb59bd;
  text-decoration: none;
  margin: 0 1.5rem;
  font-size: 1.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .socials a:hover {
  color: #eb59bdb0;
  transform: scale(2.5);
}

/* ------------ BACK TO TOP ------------ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 20;
  background: linear-gradient(135deg, #eb59bd, #d946a8);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(235, 89, 189, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: linear-gradient(135deg, #f06bc9, #e951b8);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 35px rgba(235, 89, 189, 0.6);
}

/* ------------ LOADING SCREEN ------------ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

#loading-screen img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 10px #eb59bd);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

/* ------------ RESPONSIVE ------------ */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .specs-header h1 {
    font-size: 2.5rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .performance-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .spec-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .specs-section {
    padding: 2rem 1rem;
  }

  .spec-category {
    padding: 1.5rem;
  }

  .specs-header h1 {
    font-size: 2rem;
  }
}
