/* ===========================
   LyvioSec - Dark Theme Styles
   Following UIX Labs Design System
   =========================== */

/* CSS Variables - Dark Theme */
:root {
  /* Backgrounds - Dark Theme Foundation */
  --bg-primary: #000000;
  --bg-secondary: #121212;
  --bg-overlay: rgba(255, 255, 255, 0.1);
  
  /* Text - High Contrast for Dark Theme */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: #4D4D4D;
  
  /* Borders - Subtle Dark Theme */
  --border-subtle: rgba(255, 255, 255, 0.25);
  --border-medium: rgba(255, 255, 255, 0.4);
  
  /* Brand Colors */
  --brand-primary: #00FFD1;
  --brand-hover: rgba(0, 255, 209, 0.1);
  --brand-active: #6FD2C0;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================
   Header Navigation
   =========================== */
.dark-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 7.6923%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  box-sizing: border-box;
}

.header-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.dark-logo {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.dark-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.dark-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.3s ease;
}

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

.dark-nav-link.active {
  color: var(--brand-active);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px;
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 400;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--brand-primary);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 7.6923% 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: 66px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.62px;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s;
  animation-fill-mode: both;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
  background: var(--brand-primary);
  color: #000000;
  border: none;
  border-radius: 0px;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  min-height: 56px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 209, 0.3);
}

.btn-primary:active {
  background: var(--brand-active);
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: none;
  border-radius: 0px;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  min-height: 56px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.btn-secondary:hover {
  background: #FFFFFF;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
  background: #F0F0F0;
  transform: scale(0.98);
}

/* ===========================
   Services Section
   =========================== */
.services-section {
  padding: 100px 7.6923%;
  background: var(--bg-primary);
}

.dark-content-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 40px 32px;
  transition: all 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 255, 209, 0.15);
}

.service-icon {
  width: 100%;
  height: 200px;
  margin-bottom: 24px;
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon img {
  opacity: 1;
  transform: scale(1.05);
}

.service-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.service-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.service-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 600;
}

/* ===========================
   Methodology Section
   =========================== */
.methodology-section {
  padding: 100px 7.6923%;
  background: var(--bg-secondary);
}

.methodology-timeline {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
}

.timeline-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-primary);
  min-width: 80px;
  flex-shrink: 0;
}

.timeline-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-connector {
  width: 2px;
  height: 40px;
  background: var(--border-subtle);
  margin-left: 39px;
}

/* ===========================
   About Section
   =========================== */
.about-section {
  padding: 100px 7.6923%;
  background: var(--bg-primary);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 60px;
}

.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 32px;
}

.cert-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.cert-badge:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.cert-progress {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
  padding: 100px 7.6923%;
  background: var(--bg-secondary);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 209, 0.1);
}

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

.form-message {
  margin: 16px 0;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  min-height: 24px;
}

.form-submit {
  width: 100%;
  margin-top: 16px;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 7.6923% 32px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-info {
  flex: 1;
}

.footer-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-contact,
.footer-cnpj {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .section-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .dark-header {
    padding: 16px 20px;
    height: 70px;
  }
  
  .dark-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-section {
    padding: 100px 20px 60px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .services-section,
  .methodology-section,
  .about-section,
  .contact-section {
    padding: 60px 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 18px;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 16px;
  }
  
  .timeline-number {
    font-size: 24px;
    min-width: auto;
  }
  
  .timeline-connector {
    margin-left: 0;
    width: 100%;
    height: 2px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .btn-primary,
  .btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
    min-height: 48px;
  }
  
  .service-card {
    padding: 32px 24px;
  }
}