/* style.css - Folha de Estilos do Site CSTec Digital First */

:root {
  --background: #020617;
  --foreground: #f8fafc;
  --muted: #64748b;
  --muted-foreground: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #22d3ee;
  --purple: #a855f7;
  --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  --font-sans: 'Poppins', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Canvas Background */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-color: var(--background);
}

/* Overlay do Canvas para escurecer e criar contraste */
.canvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: rgba(2, 6, 23, 0.75); /* Fundo escuro translúcido para legibilidade */
  pointer-events: none;
}

/* Grid & Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-placeholder {
  width: 120px;
}

/* Logo grande centralizado no Hero */
.hero-logo {
  max-width: min(500px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto 2.5rem auto;
  filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.2));
  animation: heroLogoFadeIn 1.5s ease-out;
}

@keyframes heroLogoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--cyan);
}

.header-cta {
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #020617;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.5);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
}

/* Hero Section */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent !important;
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  padding: 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(to right, #22d3ee, #a855f7, #22d3ee);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  color: var(--cyan);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

/* Sections General */
section {
  position: relative;
  padding: 8rem 0;
  background-color: transparent;
}

/* Solutions & Benefits */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem auto;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  background: rgba(34, 211, 238, 0.05);
}

.tag-purple {
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--purple);
  background: rgba(168, 85, 247, 0.05);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-desc {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Card Styling (Glassmorphism & Interactive) */
.card {
  position: relative;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.05);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.15);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.card-desc {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 10;
}

/* Benefits Specific Card Modifier */
.benefit-card {
  padding: 2.5rem 2rem;
}

.benefit-card .card-icon {
  background: transparent;
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  box-shadow: none;
}

.benefit-card:hover .card-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.25);
  color: var(--background);
  background: var(--cyan);
}

.card-line {
  margin-top: 1.5rem;
  height: 2px;
  width: 0%;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.card:hover .card-line {
  width: 50px;
}

/* CTA Section */
#contact {
  background-color: transparent;
  border-top: 1px solid var(--border);
}

.cta-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  background: var(--gradient-primary);
  color: #020617;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.5);
}

.cta-success-msg {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.95rem;
  animation: fadeIn 0.4s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.partners {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.partners-title {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 65px;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.25);
  background: rgba(2, 6, 23, 0.8);
}

.partner-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition);
}

.partner-item:hover .partner-img {
  opacity: 1;
}

/* Footer */
footer {
  position: relative;
  background-color: transparent;
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem 0;
  overflow: hidden;
}

.footer-tech-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663686997504/3cSMQMuNvW8QcxoBmydy2V/footer-tech-pattern-SHGeobApdyJnDYUN7n7WqA.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  max-width: 280px;
}

.footer-brand img {
  height: 44px;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: var(--cyan);
}

.footer-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item svg {
  color: var(--cyan);
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
}

.contact-item h5 {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-item p, .contact-item a {
  color: var(--foreground);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--cyan);
}

.footer-logo-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.footer-logo-center {
  height: 50px; /* Tamanho menor, elegante */
  width: auto;
  opacity: 0.85;
  transition: var(--transition);
}

.footer-logo-center:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}

.socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.02);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  nav, .header-cta {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1.5rem;
    text-align: center;
  }
}