:root {
      --bg-color: #030a16;
      --card-bg: rgba(13, 27, 46, 0.7);
      --card-border: rgba(0, 229, 255, 0.15);
      --accent-cyan: #00e5ff;
      --accent-hover: #00b3cc;
      --text-main: #ffffff;
      --text-muted: #8a99ad;
      --input-bg: rgba(4, 15, 30, 0.6);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Inter', sans-serif;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg-color);
      color: var(--text-main);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    /* Header & Nav */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem 5%;
      max-width: 1280px;
      margin: 0 auto;
      width: 100%;
      position: relative;
      z-index: 10;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text-main);
      text-decoration: none;
      z-index: 1001;
    }

    .nav-container {
      display: flex;
      align-items: center;
      gap: 2rem;
    }

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

    nav a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.95rem;
      transition: color 0.3s ease;
    }

    nav a:hover, nav a.active {
      color: var(--text-main);
    }

    nav a.active {
      position: relative;
    }

    nav a.active::after {
      content: '';
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: var(--accent-cyan);
      box-shadow: 0 0 8px var(--accent-cyan);
    }

    .btn-primary {
      background-color: var(--accent-cyan);
      color: #030a16;
      border: none;
      padding: 0.6rem 1.4rem;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-primary:hover {
      background-color: var(--accent-hover);
      box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-main);
      border: 1px solid var(--card-border);
      padding: 0.6rem 1.4rem;
      border-radius: 20px;
      font-weight: 500;
      font-size: 0.9rem;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-secondary:hover {
      background: rgba(0, 229, 255, 0.1);
      border-color: var(--accent-cyan);
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--text-main);
      cursor: pointer;
      z-index: 1001;
      padding: 0.5rem;
    }

    /* ===== CORREÇÃO COMPLETA DO DROPDOWN ===== */
    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      color: var(--text-muted);
      text-decoration: none;
    }

    .dropdown-toggle:hover {
      color: var(--text-main);
    }

    .dropdown-icon {
      width: 16px;
      height: 16px;
      transition: transform 0.3s ease;
    }

    /* Lista do Dropdown (Garantida oculta por padrão) */
    .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #0b0f19;
      min-width: 220px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      overflow: hidden;
      z-index: 1000;
      flex-direction: column;
      padding: 8px 0;
    }

    .dropdown-menu a {
      padding: 10px 16px;
      font-size: 0.9rem;
      white-space: nowrap;
      color: var(--text-muted);
      text-decoration: none;
      border-bottom: none;
      transition: background 0.2s, color 0.2s;
    }

    .dropdown-menu a:hover {
      background: rgba(0, 229, 255, 0.1);
      color: var(--text-main);
    }

    /* ==========================================
       DESKTOP: Abre ao passar o cursor (Hover)
       ========================================== */
    @media (min-width: 769px) {
      .dropdown:hover .dropdown-menu {
        display: flex;
      }
      .dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
      }
    }

    /* ==========================================
       MOBILE: Abre por toque/clique (.active)
       ========================================== */
    @media (max-width: 768px) {
      .dropdown {
        width: 100%;
      }

      .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
      }

      .dropdown.active .dropdown-menu {
        display: flex;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.02);
        padding-left: 15px;
        margin-top: 4px;
        border-radius: 4px;
      }

      .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
      }
    }

    main {
      max-width: 1280px;
      margin: 0 auto;
      padding: 2rem 5% 4rem;
      width: 100%;
    }

    .section-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .section-title {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .section-subtitle {
      color: var(--text-muted);
      font-size: 1rem;
    }

    /* ===== HERO ===== */
    .hero-wrapper {
      position: relative;
      margin-bottom: 6rem;
      padding-top: 1rem;
    }

    .hero-glow-1 {
      position: absolute;
      top: -100px;
      left: -100px;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(3, 10, 22, 0) 70%);
      z-index: -1;
      pointer-events: none;
    }

    .hero-glow-2 {
      position: absolute;
      top: 50px;
      right: -50px;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(0, 119, 255, 0.12) 0%, rgba(3, 10, 22, 0) 70%);
      z-index: -1;
      pointer-events: none;
    }

    .hero {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 3rem;
      align-items: center;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(0, 229, 255, 0.08);
      border: 1px solid rgba(0, 229, 255, 0.3);
      padding: 0.4rem 0.9rem;
      border-radius: 30px;
      font-size: 0.8rem;
      color: var(--accent-cyan);
      margin-bottom: 1.2rem;
    }

    .hero-badge-dot {
      width: 6px;
      height: 6px;
      background-color: var(--accent-cyan);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--accent-cyan);
    }

    .hero-title {
      font-size: 3.2rem;
      line-height: 1.15;
      font-weight: 800;
      margin-bottom: 1.2rem;
      letter-spacing: -0.02em;
    }

    .text-gradient {
      background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-subtitle {
      color: var(--text-muted);
      font-size: 1.15rem;
      line-height: 1.6;
      margin-bottom: 2rem;
      max-width: 520px;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
      margin-bottom: 2.5rem;
      flex-wrap: wrap;
    }

    .hero-proof {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .proof-item {
      display: flex;
      flex-direction: column;
    }

    .proof-value {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-main);
    }

    .proof-label {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .hero-mockup {
      position: relative;
    }

    .mockup-window {
      background: rgba(10, 20, 35, 0.85);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.15);
      backdrop-filter: blur(12px);
      min-height: 320px;
    }

    .mockup-header {
      background: rgba(4, 12, 24, 0.9);
      padding: 0.75rem 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      border-bottom: 1px solid var(--card-border);
    }

    .mockup-dots {
      display: flex;
      gap: 6px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .dot-red { background: #ff5f56; }
    .dot-yellow { background: #ffbd2e; }
    .dot-green { background: #27c93f; }

    .mockup-title {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-left: auto;
      font-family: 'Fira Code', monospace;
    }

    .mockup-body {
      padding: 1.5rem;
      font-family: 'Fira Code', monospace;
      font-size: 0.85rem;
      line-height: 1.6;
      white-space: pre-wrap;
    }

    .cursor {
      display: inline-block;
      width: 8px;
      height: 15px;
      background-color: var(--accent-cyan);
      margin-left: 2px;
      animation: blink 0.8s infinite;
      vertical-align: middle;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    .code-keyword { color: #ff79c6; }
    .code-function { color: #50fa7b; }
    .code-string { color: #f1fa8c; }
    .code-comment { color: #6272a4; }
    .code-cyan { color: var(--accent-cyan); }

    .floating-card {
      position: absolute;
      bottom: -20px;
      left: -20px;
      background: rgba(13, 27, 46, 0.9);
      border: 1px solid var(--accent-cyan);
      border-radius: 10px;
      padding: 0.9rem 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.8rem;
      box-shadow: 0 10px 25px rgba(0,0,0,0.5);
      backdrop-filter: blur(10px);
    }

    .floating-icon {
      background: rgba(0, 229, 255, 0.15);
      color: var(--accent-cyan);
      padding: 0.5rem;
      border-radius: 8px;
      display: flex;
    }

    /* GRID SERVIÇOS + FORM */
    .content-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 1.5rem;
      margin-bottom: 5rem;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 1.25rem;
      backdrop-filter: blur(10px);
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
      transform: translateY(-5px);
      border-color: rgba(0, 229, 255, 0.4);
      box-shadow: 0 8px 20px rgba(0, 229, 255, 0.1);
    }

    .card-icon { color: var(--accent-cyan); margin-bottom: 0.75rem; }
    .card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
    .card-desc { color: var(--text-muted); font-size: 0.75rem; line-height: 1.4; }

    .form-panel {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form-title { font-size: 1.1rem; font-weight: 600; }
    .form-group { display: flex; flex-direction: column; gap: 0.3rem; }
    .form-group input, .form-group textarea {
      background: var(--input-bg);
      border: 1px solid var(--card-border);
      border-radius: 6px;
      padding: 0.65rem;
      color: var(--text-main);
      font-size: 0.8rem;
      outline: none;
      transition: border-color 0.3s ease;
    }
    .form-group input:focus, .form-group textarea:focus { border-color: var(--accent-cyan); }
    .form-group textarea { resize: none; height: 70px; }
    .btn-submit { width: 100%; border-radius: 6px; padding: 0.75rem; margin-top: 0.5rem; }

    /* SOBRE NÓS & ESTATÍSTICAS */
    .about-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      margin-bottom: 5rem;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 3rem;
    }

    .about-content h2 { font-size: 2rem; margin-bottom: 1rem; }
    .about-content p { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; font-size: 0.95rem; }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }

    .stat-card {
      background: var(--input-bg);
      border: 1px solid var(--card-border);
      padding: 1.5rem;
      border-radius: 12px;
      text-align: center;
    }

    .stat-number { 
      font-size: 2.2rem; 
      font-weight: 700; 
      color: var(--accent-cyan); 
      margin-bottom: 0.2rem;
      display: inline-block;
    }
    .stat-label { color: var(--text-muted); font-size: 0.85rem; }

    /* SEÇÃO DE PROJETOS */
    .projects-section { margin-bottom: 5rem; }
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .project-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 14px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .project-card:hover {
      transform: translateY(-6px);
      border-color: rgba(0, 229, 255, 0.4);
      box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
    }

    .project-preview {
      height: 180px;
      background: #06152a;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid var(--card-border);
    }

    .project-preview-graphic {
      width: 80%;
      height: 70%;
      background: rgba(0, 229, 255, 0.05);
      border: 1px dashed var(--accent-cyan);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-cyan);
    }

    .project-content {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .project-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
    .project-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 1.2rem; flex-grow: 1; }

    .project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
    .tag {
      background: rgba(0, 229, 255, 0.08);
      color: var(--accent-cyan);
      font-size: 0.7rem;
      padding: 0.25rem 0.6rem;
      border-radius: 4px;
      font-family: 'Fira Code', monospace;
    }

    .project-links {
      display: flex;
      gap: 1rem;
      align-items: center;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      padding-top: 1rem;
    }

    .project-link {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.8rem;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      transition: color 0.3s ease;
    }

    .project-link:hover { color: var(--accent-cyan); }

    /* ===== MODAL DE DETALHES DO PROJETO ===== */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(3, 10, 22, 0.85);
      backdrop-filter: blur(8px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-container {
      background: rgba(10, 20, 35, 0.95);
      border: 1px solid var(--accent-cyan);
      border-radius: 16px;
      width: 90%;
      max-width: 650px;
      padding: 2rem;
      box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
      position: relative;
      transform: translateY(20px);
      transition: transform 0.3s ease;
    }

    .modal-overlay.active .modal-container {
      transform: translateY(0);
    }

    .modal-close {
      position: absolute;
      top: 1.2rem;
      right: 1.2rem;
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      transition: color 0.3s ease;
    }

    .modal-close:hover { color: var(--accent-cyan); }

    .modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.8rem; }
    .modal-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }

    .modal-section-title {
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent-cyan);
      margin-bottom: 0.5rem;
      font-weight: 600;
    }

    .modal-features {
      list-style: none;
      margin-bottom: 1.5rem;
    }

    .modal-features li {
      color: var(--text-main);
      font-size: 0.88rem;
      margin-bottom: 0.4rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* DEPOIMENTOS */
    .testimonials-section { margin-bottom: 5rem; }
    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .testimonial-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .testimonial-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.5rem; font-style: italic; }
    .author-info { display: flex; align-items: center; gap: 0.75rem; }
    .author-avatar {
      width: 40px; height: 40px; border-radius: 50%;
      background: var(--input-bg); border: 1px solid var(--accent-cyan);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent-cyan); font-weight: 600;
    }

    .author-name { font-size: 0.9rem; font-weight: 600; }
    .author-role { font-size: 0.75rem; color: var(--text-muted); }

    /* FOOTER */
    footer {
      background: rgba(3, 10, 22, 0.95);
      border-top: 1px solid var(--card-border);
      padding: 3rem 5% 1.5rem;
      margin-top: auto;
    }

    .footer-container {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr repeat(3, 1fr);
      gap: 2rem;
      margin-bottom: 2.5rem;
    }

    .footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.8rem; max-width: 280px; line-height: 1.5; }
    .footer-column h4 { font-size: 0.95rem; margin-bottom: 1rem; }
    .footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
    .footer-column a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; }
    .footer-column a:hover { color: var(--accent-cyan); }

    .footer-bottom {
      max-width: 1280px;
      margin: 0 auto;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-muted);
      font-size: 0.8rem;
    }

    /* RESPONSIVIDADE */
    @media (max-width: 900px) {
      .hero, .about-section { grid-template-columns: 1fr; text-align: center; }
      .hero-subtitle { margin: 0 auto 2rem; }
      .hero-actions, .hero-proof { justify-content: center; }
      .floating-card { display: none; }
      .content-grid { grid-template-columns: 1fr; }
      .services-grid, .testimonials-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-container { grid-template-columns: 1fr 1fr; }
      .menu-toggle { display: block; }
      .nav-container {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(3, 10, 22, 0.95); backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem;
        transition: right 0.4s ease-in-out; z-index: 1000;
      }
      .nav-container.active { right: 0; }
      nav { flex-direction: column; gap: 1.8rem; }
      nav a { font-size: 1.2rem; }
    }

    @media (max-width: 600px) {
      .hero-title { font-size: 2.3rem; }
      .services-grid, .testimonials-grid, .projects-grid, .stats-grid, .footer-container { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    }

    #codeContainer { cursor: pointer; }