/* Cloud Matrix - CSS Principal */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ===== VARIÁVEIS CSS ===== */
:root {
  --primary-bg: #000000;
  --secondary-bg: #0C120C;
  --matrix-green: #00FF41;
  --light-green: #00CC33;
  --text-white: #FFFFFF;
  --text-secondary: #B8C0CC;
  --light-bg: #E8E8F2;
  --shadow: rgba(0, 255, 65, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ANIMAÇÃO MATRIX RAIN ===== */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.matrix-char {
  position: absolute;
  font-family: 'Fira Code', monospace;
  font-size: 18px;
  color: var(--matrix-green);
  animation: fall linear infinite;
  opacity: 0.7;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--matrix-green);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--matrix-green);
}

.logo-text {
  font-family: 'Fira Code', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--matrix-green);
  background: rgba(0, 255, 65, 0.1);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--matrix-green);
  transition: var(--transition);
}

/* ===== SEÇÕES PRINCIPAIS ===== */
.section {
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  display: flex;
  align-items: center;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== SEÇÃO HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Fira Code', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--matrix-green);
  text-shadow: 0 0 20px var(--shadow);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px var(--shadow);
  }
  to {
    text-shadow: 0 0 30px var(--shadow), 0 0 40px var(--shadow);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background: var(--matrix-green);
  color: var(--primary-bg);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--shadow);
}

.cta-button:hover {
  background: var(--light-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

/* ===== GRID DE SERVIÇOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--matrix-green);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
  transition: left 0.6s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
  border-color: var(--light-green);
}

.service-icon {
  font-size: 3rem;
  color: var(--matrix-green);
  margin-bottom: 1rem;
}

.service-title {
  font-family: 'Fira Code', monospace;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--matrix-green);
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== SEÇÃO SOBRE ===== */
.about {
  background: var(--secondary-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: 'Fira Code', monospace;
  font-size: 2.5rem;
  color: var(--matrix-green);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-visual {
  position: relative;
  min-height: 400px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--matrix-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== GALERIA DE PROJETOS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.project-card {
  background: var(--light-bg);
  color: var(--primary-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 255, 65, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, var(--matrix-green), var(--light-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-family: 'Fira Code', monospace;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-bg);
}

.project-description {
  color: #666;
  font-size: 0.9rem;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  color: var(--primary-bg);
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: white;
  color: var(--primary-bg);
  font-size: 1rem;
}

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

.submit-button {
  background: var(--matrix-green);
  color: var(--primary-bg);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background: var(--light-green);
  transform: translateY(-2px);
}

/* ===== MAPA E LOCALIZAÇÃO ===== */
.location-info h3 {
  font-family: 'Fira Code', monospace;
  color: var(--matrix-green);
  margin-bottom: 1rem;
}

.cities-list {
  list-style: none;
  margin-bottom: 2rem;
}

.cities-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--matrix-green);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-bg);
  border-top: 1px solid var(--matrix-green);
  padding: 2rem;
  text-align: center;
}

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

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== ANIMAÇÕES DE SCROLL ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-bg);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .service-card,
  .project-card {
    margin: 0 0.5rem;
  }
}

/* ===== UTILITÁRIOS ===== */
.text-center {
  text-align: center;
}

.section-title {
  font-family: 'Fira Code', monospace;
  font-size: 2.5rem;
  color: var(--matrix-green);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}