/* style.css */
:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #16122a;
  --bg-card: #1e1a3a;
  --text-primary: #e0e0ff;
  --text-secondary: #a0a0c5;
  --accent: #a259ff;
  --accent-hover: #c792ea;
  --border: #3a3060;
  --glow: rgba(162, 89, 255, 0.3);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-top: 70px; /* Ajuste conforme altura do navbar */
}

#header {
  padding: 4rem 1rem;
  position: relative;
  text-align: center;
}

#header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%233a3060' fill-opacity='0.1'%3E%3Cpath d='M20 0v20h20V0H20zM0 20v20h20V20H0z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.navbar {
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
}

.navbar-brand, .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent) !important;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 1rem 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg, var(--accent), #7a50ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

figure img {
  border: 3px solid var(--accent);
  box-shadow: 0 0 20px var(--glow);
}

figcaption {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.8rem;
  font-size: 1.1rem;
}

section {
  padding: 4rem 1rem;
}

section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg, var(--accent), #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px var(--glow);
  border-color: var(--accent);
}

.card-img-top {
  border-radius: 0;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

.card-subtitle {
  color: white;
  font-size: 1.4rem;
  margin: 0.5rem 0;
  font-weight: 600;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), #7a50ff);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--glow);
  width: 100%;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--accent-hover), #9d65ff);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(162, 89, 255, 0.6);
}

form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

form label, form legend {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

form input, form textarea {
  background: #1a1630;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  padding: 0.6rem;
}

form input:focus, form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 10px rgba(162, 89, 255, 0.3);
}

footer {
  background: #0a0a14;
  color: var(--text-secondary);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.border-purple {
  border: 3px solid var(--accent) !important;
}

.highlight {
  background: linear-gradient(90deg, var(--accent), #7a50ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  

  min-width: 280px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;


  flex: 0 0 320px;
  min-width: 280px;
  max-width: 380px;
  margin: 0 auto;
}

.card-img-top {
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  object-position: center;
  width: 100%;
  border: none;
  transition: transform 0.4s ease;
  max-height: 500px;
}

.card-img-top:hover {
  transform: scale(1.05);
}

.card-body {
  flex: 1;
  padding: 1rem;
}

.card-body h1 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card a.btn-primary {
  margin-top: auto;
  width: 100%;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0f0f1a;
  color: #e0e0ff;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}