/* ===== SITE LEGADO - POC NORDWARE ===== */
/* Cores: #660099 (roxo escuro) e #BD4AFF (roxo claro) */

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

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

:root {
  --primary: #660099;
  --primary-light: #bd4aff;
  --primary-dark: #4a0070;
  --bg-dark: #0d0015;
  --bg-card: rgba(102, 0, 153, 0.15);
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --gradient-primary: linear-gradient(135deg, #660099 0%, #bd4aff 100%);
  --gradient-glow: linear-gradient(
    135deg,
    rgba(189, 74, 255, 0.4) 0%,
    rgba(102, 0, 153, 0.4) 100%
  );
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(102, 0, 153, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(189, 74, 255, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(102, 0, 153, 0.1) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: -1;
}

/* Floating particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(720deg);
    opacity: 0;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(13, 0, 21, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(189, 74, 255, 0.2);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 30px rgba(189, 74, 255, 0.5);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(189, 74, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(189, 74, 255, 0.8);
  }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-badge {
  background: var(--gradient-primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  animation: badge-pulse 3s infinite;
  box-shadow: 0 0 20px rgba(189, 74, 255, 0.4);
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--primary-light);
  text-shadow: 0 0 20px rgba(189, 74, 255, 0.5);
}

nav a.active {
  color: var(--primary-light);
}

nav a.active::after {
  width: 100%;
}

/* Main Content */
main {
  padding-top: 100px;
  min-height: 100vh;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-glow 3s infinite;
}

@keyframes title-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(189, 74, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(189, 74, 255, 0.8));
  }
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-badge {
  background: rgba(102, 0, 153, 0.3);
  border: 2px solid var(--primary-light);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: border-glow 2s infinite;
}

@keyframes border-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(189, 74, 255, 0.3),
      inset 0 0 10px rgba(189, 74, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(189, 74, 255, 0.6),
      inset 0 0 20px rgba(189, 74, 255, 0.2);
  }
}

/* Cards Section */
.cards-section {
  padding: 4rem 2rem;
}

.cards-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(189, 74, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-light);
  box-shadow: 0 20px 40px rgba(102, 0, 153, 0.4),
    0 0 60px rgba(189, 74, 255, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(189, 74, 255, 0.6);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Interactive Button */
.cta-button {
  background: var(--gradient-primary);
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(189, 74, 255, 0.5);
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Hover Info Box */
.hover-info {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(102, 0, 153, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--primary-light);
  border-radius: 15px;
  padding: 1.5rem;
  max-width: 300px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.hover-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-info h4 {
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: rgba(13, 0, 21, 0.9);
  border-top: 1px solid rgba(189, 74, 255, 0.2);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-info {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-credits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(189, 74, 255, 0.1);
}

.credit-badge {
  background: rgba(102, 0, 153, 0.3);
  border: 1px solid rgba(189, 74, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.arrow {
  color: var(--primary-light);
  font-size: 1.5rem;
}

/* Page specific styles */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  text-align: center;
  padding: 4rem 0;
}

.page-header h1 {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Form styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(102, 0, 153, 0.2);
  border: 1px solid rgba(189, 74, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 20px rgba(189, 74, 255, 0.3);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(189, 74, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: 0 20px 40px rgba(102, 0, 153, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  nav {
    gap: 1rem;
  }

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

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