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

/* CSS Variables */
:root {
  --bg-primary: #06080e;
  --bg-secondary: #0c0f19;
  --bg-glass: rgba(12, 15, 25, 0.75);
  --bg-glass-card: rgba(16, 21, 36, 0.55);
  
  --primary: #116dff;
  --primary-rgb: 17, 109, 255;
  --primary-hover: #0a56cc;
  --primary-gradient: linear-gradient(135deg, #116dff 0%, #00d2ff 100%);
  --accent: #00d2ff;
  --accent-rgb: 0, 210, 255;
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #00f2fe 100%);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dimmed: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(17, 109, 255, 0.4);
  --border-glass: rgba(255, 255, 255, 0.05);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(17, 109, 255, 0.35);
  --shadow-glow-accent: 0 0 25px rgba(0, 210, 255, 0.35);

  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-display: 'Outfit', var(--font-family-sans);
  
  --header-height: 80px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Particles */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-light {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0) 70%);
  top: -20vw;
  right: -10vw;
  z-index: 0;
  pointer-events: none;
  filter: blur(100px);
}

.ambient-light-bottom {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, rgba(var(--accent-rgb), 0) 70%);
  bottom: -15vw;
  left: -10vw;
  z-index: 0;
  pointer-events: none;
  filter: blur(120px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 600; }
p { color: var(--text-muted); font-size: 1.05rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Common Layout Components & Utilities */
section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.text-center { text-align: center; }
.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.15rem;
}

/* Glowing text */
.text-glow {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-glow {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  gap: 10px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(17, 109, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, #2E7CE6 0%, #00b4d8 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.1);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
  transition: var(--transition-normal);
}

header.scrolled .logo-img {
  height: 40px;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-family-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-main);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background: radial-gradient(ellipse at bottom, rgba(17, 109, 255, 0.03) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 109, 255, 0.1);
  border: 1px solid rgba(17, 109, 255, 0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
}

.badge i {
  font-size: 0.8rem;
  animation: pulse-glow 2s infinite alternate;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Interactive SVG Brain/AI graphic */
.ai-orb-container {
  width: 100%;
  max-width: 420px;
  height: 420px;
  position: relative;
}

.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 109, 255, 0.4) 0%, rgba(0, 210, 255, 0.1) 40%, transparent 70%);
  filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.ring-1 { width: 320px; height: 320px; border-style: dashed; }
.ring-2 { width: 380px; height: 380px; animation-duration: 30s; animation-direction: reverse; }

.ai-nodes {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px -5px rgba(17, 109, 255, 0.15);
}

/* Section: About (Sobre) */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-family-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Section: Products (Produtos) */
.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: rgba(17, 109, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 24px;
  border: 1px solid rgba(17, 109, 255, 0.15);
  box-shadow: 0 8px 16px rgba(17, 109, 255, 0.08);
}

.product-card h3 {
  margin-bottom: 12px;
}

.product-card p {
  margin-bottom: 24px;
  flex-grow: 1;
  font-size: 1rem;
}

.product-features-list {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.product-features-list li i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* Section: DNA AI */
.dna-section {
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.02) 0%, transparent 60%);
}

.ai-providers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.ai-provider-card {
  flex: 1 1 250px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(16, 21, 36, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-normal);
}

.ai-provider-card:hover {
  border-color: var(--border-hover);
  background: rgba(16, 21, 36, 0.6);
  transform: translateY(-2px);
}

.ai-provider-logo {
  font-size: 2rem;
}

.ai-provider-logo.claude { color: #d97706; } /* Warm orange */
.ai-provider-logo.gpt { color: #10b981; }    /* Green */
.ai-provider-logo.gemini { color: #3b82f6; } /* Blue */

.ai-provider-info h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.ai-provider-info p {
  font-size: 0.85rem;
  color: var(--text-dimmed);
}

/* Section: Cloud & Infrastructure */
.cloud-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.cloud-visual {
  display: flex;
  gap: 24px;
}

.cloud-card {
  flex: 1;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--border-radius-md);
  background: rgba(16, 21, 36, 0.5);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cloud-icon {
  font-size: 3rem;
}

.cloud-icon.aws { color: #ff9900; }
.cloud-icon.oracle { color: #f80000; }

.cloud-card h4 {
  font-size: 1.25rem;
}

.cloud-card p {
  font-size: 0.9rem;
}

.cloud-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cloud-feature-item {
  display: flex;
  gap: 16px;
}

.cloud-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 109, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.cloud-feature-text h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.cloud-feature-text p {
  font-size: 0.95rem;
}

/* Section: Portfolio / Solutions */
.portfolio-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.portfolio-card h3 {
  font-size: 1.35rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-intro h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: rgba(17, 109, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  border: 1px solid rgba(17, 109, 255, 0.15);
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 0.95rem;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-text p, .contact-text a {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
}

.contact-text a:hover {
  color: var(--accent);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-family-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(17, 109, 255, 0.15);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  display: block;
}

/* Footer */
footer {
  background-color: #030407;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 320px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: rgba(17, 109, 255, 0.1);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-dimmed);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-link {
  font-size: 0.9rem;
  color: var(--text-dimmed);
}

.footer-legal-link:hover {
  color: var(--text-main);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse-glow {
  0% { opacity: 0.6; box-shadow: 0 0 5px rgba(0, 210, 255, 0.2); }
  100% { opacity: 1; box-shadow: 0 0 15px rgba(0, 210, 255, 0.6); }
}

/* Scroll Animation classes (handled by script.js using IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .cloud-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cloud-visual {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    box-shadow: var(--shadow-lg);
  }
  
  nav.mobile-active {
    display: flex;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
