/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== DARK THEME (DEFAULT) ===== */
:root {
  /* Colors */
  --bg-primary: #0b0f14;
  --bg-secondary: #10151c;
  --bg-card: rgba(16, 21, 28, 0.7);
  --bg-card-hover: rgba(22, 30, 38, 0.85);
  --border-color: rgba(34, 197, 94, 0.12);
  --border-glow: rgba(34, 197, 94, 0.3);

  --text-primary: #e8edf2;
  --text-secondary: #8a95a5;
  --text-muted: #5a6678;

  --accent-primary: #22c55e;
  --accent-secondary: #16a34a;
  --accent-tertiary: #4ade80;
  --accent-soft: #86efac;

  --gradient-main: linear-gradient(135deg, #22c55e, #16a34a, #15803d);
  --gradient-subtle: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
  --gradient-card: linear-gradient(145deg, rgba(16, 21, 28, 0.8), rgba(11, 15, 20, 0.95));

  --navbar-bg: rgba(11, 15, 20, 0.85);
  --mobile-menu-bg: rgba(11, 15, 20, 0.97);
  --code-window-bg: rgba(16, 21, 28, 0.85);
  --code-bar-bg: rgba(0, 0, 0, 0.3);
  --float-badge-bg: rgba(16, 21, 28, 0.9);
  --tech-card-bg: rgba(11, 15, 20, 0.8);
  --social-bg: rgba(34, 197, 94, 0.06);
  --social-hover-bg: rgba(34, 197, 94, 0.15);
  --cta-bg: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(22, 163, 74, 0.06), rgba(21, 128, 61, 0.06));
  --cta-radial: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.04) 0%, transparent 60%);
  --particle-color: 34, 197, 94;

  --shadow-card: 0 20px 60px rgba(34, 197, 94, 0.08);
  --shadow-btn: 0 12px 40px rgba(34, 197, 94, 0.35);
  --shadow-btn-sm: 0 8px 30px rgba(34, 197, 94, 0.3);
  --shadow-step: 0 8px 30px rgba(34, 197, 94, 0.15);

  /* Grid overlay */
  --grid-color: rgba(34, 197, 94, 0.03);

  /* Typography */
  --font-main: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg-primary: #f8faf9;
  --bg-secondary: #eef2f0;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --border-color: rgba(34, 197, 94, 0.18);
  --border-glow: rgba(34, 197, 94, 0.35);

  --text-primary: #1a1f25;
  --text-secondary: #4b5563;
  --text-muted: #7b8794;

  --accent-primary: #16a34a;
  --accent-secondary: #15803d;
  --accent-tertiary: #22c55e;
  --accent-soft: #166534;

  --gradient-main: linear-gradient(135deg, #16a34a, #15803d, #166534);
  --gradient-subtle: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(21, 128, 61, 0.08));
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 249, 0.95));

  --navbar-bg: rgba(248, 250, 249, 0.88);
  --mobile-menu-bg: rgba(248, 250, 249, 0.97);
  --code-window-bg: rgba(255, 255, 255, 0.9);
  --code-bar-bg: rgba(238, 242, 240, 0.8);
  --float-badge-bg: rgba(255, 255, 255, 0.92);
  --tech-card-bg: rgba(255, 255, 255, 0.85);
  --social-bg: rgba(34, 197, 94, 0.08);
  --social-hover-bg: rgba(34, 197, 94, 0.18);
  --cta-bg: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(22, 163, 74, 0.08), rgba(21, 128, 61, 0.05));
  --cta-radial: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  --particle-color: 22, 163, 74;

  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.06);
  --shadow-btn: 0 12px 40px rgba(22, 163, 74, 0.25);
  --shadow-btn-sm: 0 8px 30px rgba(22, 163, 74, 0.2);
  --shadow-step: 0 8px 30px rgba(22, 163, 74, 0.1);

  --grid-color: rgba(22, 163, 74, 0.04);
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

/* Prevent scroll when preloader is active */
body:has(#preloader:not(.loaded)) {
  overflow: hidden;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 200px;
  height: 200px;
  z-index: 2;
  animation: logoPulse 2s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preloader-dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: dotsTrail 2s linear infinite;
  box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
}

/* Position dots and add delays */
.p-dot:nth-child(1) { animation-delay: 0s; }
.p-dot:nth-child(2) { animation-delay: 0.1s; }
.p-dot:nth-child(3) { animation-delay: 0.2s; }
.p-dot:nth-child(4) { animation-delay: 0.3s; }
.p-dot:nth-child(5) { animation-delay: 0.4s; }
.p-dot:nth-child(6) { animation-delay: 0.5s; }
.p-dot:nth-child(7) { animation-delay: 0.6s; }
.p-dot:nth-child(8) { animation-delay: 0.7s; }
.p-dot:nth-child(9) { animation-delay: 0.8s; }
.p-dot:nth-child(10) { animation-delay: 0.9s; }
.p-dot:nth-child(11) { animation-delay: 1.0s; }
.p-dot:nth-child(12) { animation-delay: 1.1s; }

@keyframes dotsTrail {
  0% { opacity: 1; transform: rotate(0deg) translateY(-120px); }
  100% { opacity: 0; transform: rotate(360deg) translateY(-120px); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.6)); }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ===== ANIMATED BACKGROUND GRID ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  transition: background-image 0.4s ease;
}

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== THEME TOGGLE ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.theme-toggle:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: rotate(20deg);
}

.theme-toggle .fa-sun {
  display: none;
}

.theme-toggle .fa-moon {
  display: inline;
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: inline;
}

[data-theme="light"] .theme-toggle .fa-moon {
  display: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-logo .logo-cyber {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== DROPDOWN MENU ===== */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
  transition: var(--transition-fast) !important;
  width: 100%;
}

.dropdown-item i {
  color: var(--accent-primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.dropdown-item:hover {
  background: rgba(34, 197, 94, 0.1);
  color: var(--text-primary) !important;
}

.dropdown-item::after {
  display: none !important;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--gradient-main);
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-sm);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('assets/hero-bg.png') center/cover no-repeat;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

[data-theme="light"] .hero-bg-image {
  opacity: 0.08;
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(11, 15, 20, 0.3) 0%,
      rgba(11, 15, 20, 0.6) 50%,
      var(--bg-primary) 100%);
}

[data-theme="light"] .hero-bg-image::after {
  background: linear-gradient(180deg,
      rgba(248, 250, 249, 0.3) 0%,
      rgba(248, 250, 249, 0.7) 50%,
      var(--bg-primary) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 135px;

}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero h1 .line {
  display: block;
}

.hero h1 .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(34, 197, 94, 0.05);
  transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.code-window {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  background: var(--code-window-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--code-bar-bg);
  border-bottom: 1px solid var(--border-color);
}

.code-window-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-window-bar .dot:nth-child(1) {
  background: #ff5f56;
}

.code-window-bar .dot:nth-child(2) {
  background: #ffbd2e;
}

.code-window-bar .dot:nth-child(3) {
  background: #27c93f;
}

.code-window-bar .title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.code-window-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  overflow: hidden;
}

.code-line {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: codeFadeIn 0.4s ease forwards;
}

.code-line:nth-child(1) {
  animation-delay: 0.3s;
}

.code-line:nth-child(2) {
  animation-delay: 0.5s;
}

.code-line:nth-child(3) {
  animation-delay: 0.7s;
}

.code-line:nth-child(4) {
  animation-delay: 0.9s;
}

.code-line:nth-child(5) {
  animation-delay: 1.1s;
}

.code-line:nth-child(6) {
  animation-delay: 1.3s;
}

.code-line:nth-child(7) {
  animation-delay: 1.5s;
}

.code-line:nth-child(8) {
  animation-delay: 1.7s;
}

.code-number {
  color: var(--text-muted);
  user-select: none;
  min-width: 20px;
  text-align: right;
}

.code-text .keyword {
  color: #c678dd;
}

.code-text .function {
  color: #61afef;
}

.code-text .string {
  color: #22c55e;
}

.code-text .variable {
  color: #e06c75;
}

.code-text .comment {
  color: #5c6370;
  font-style: italic;
}

.code-text .operator {
  color: #4ade80;
}

.code-text .type {
  color: #e5c07b;
}

[data-theme="light"] .code-text .keyword {
  color: #8839ef;
}

[data-theme="light"] .code-text .function {
  color: #1e6fdb;
}

[data-theme="light"] .code-text .string {
  color: #16a34a;
}

[data-theme="light"] .code-text .variable {
  color: #d4163c;
}

[data-theme="light"] .code-text .comment {
  color: #9ca0b0;
}

[data-theme="light"] .code-text .operator {
  color: #15803d;
}

[data-theme="light"] .code-text .type {
  color: #df8e1d;
}

/* Floating tech badges */
.float-badge {
  position: absolute;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--float-badge-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: float 4s ease-in-out infinite;
  z-index: 3;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.float-badge:nth-child(2) {
  top: 5%;
  right: -5%;
  animation-delay: 0s;
}

.float-badge:nth-child(3) {
  bottom: 25%;
  right: -10%;
  animation-delay: 1s;
}

.float-badge:nth-child(4) {
  bottom: 5%;
  left: -5%;
  animation-delay: 2s;
}

.float-badge:nth-child(5) {
  top: 15%;
  left: -8%;
  animation-delay: 0.5s;
}

.float-badge i {
  font-size: 1rem;
}

.badge-php i {
  color: #8892BF;
}

.badge-js i {
  color: #f7df1e;
}

.badge-java i {
  color: #f89820;
}

.badge-html i {
  color: #e34f26;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SERVICES SECTION ===== */
.services {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.services .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.services .section-header .section-description {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon.green-1 {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.service-icon.green-2 {
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.service-icon.green-3 {
  background: rgba(74, 222, 128, 0.08);
  color: var(--accent-tertiary);
  border: 1px solid rgba(74, 222, 128, 0.12);
}

.service-icon.gray {
  background: rgba(138, 149, 165, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(138, 149, 165, 0.15);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TECHNOLOGIES SECTION ===== */
.technologies {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.technologies .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--tech-card-bg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
  cursor: default;
}

.tech-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.tech-card i {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
  transition: var(--transition-smooth);
}

.tech-card:hover i {
  transform: scale(1.15);
}

.tech-card.php i {
  color: #8892BF;
}

.tech-card.html i {
  color: #e34f26;
}

.tech-card.css i {
  color: #1572B6;
}

.tech-card.js i {
  color: #f7df1e;
}

.tech-card.java i {
  color: #f89820;
}

.tech-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tech-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tech-card-wide {
  grid-column: span 2;
}

/* ===== ABOUT / WHY US ===== */
.about {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.03) 0%, transparent 40%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  position: relative;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 24px;
  padding: 30px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.about-feature:hover {
  transform: translateX(12px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.1);
  background: var(--bg-card-hover);
}

.about-feature:hover .about-feature-icon {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(10deg) scale(1.1);
}

.about-feature-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(34, 197, 94, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(34, 197, 94, 0.12);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.about-feature div {
  position: relative;
  z-index: 1;
}

.about-feature h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.about-feature p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PORTFOLIO CAROUSEL ===== */
.portfolio {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: var(--bg-secondary);
  overflow: hidden;
}

.portfolio .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.portfolio .section-header .section-description {
  margin: 0 auto;
}

.portfolio-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.portfolio-card {
  min-width: calc(50% - 12px);
  width: calc(50% - 12px);
  border-radius: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: default;
  flex-shrink: 0;
}

.portfolio-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.portfolio-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 240px);
}

.portfolio-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.portfolio-techs span {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  width: fit-content;
  margin-top: auto;
}

.btn-demo:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.15);
}

.btn-demo i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.btn-demo:hover i {
  transform: translate(2px, -2px);
}

/* Carousel arrows */
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.08);
  box-shadow: var(--shadow-step);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-primary);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.carousel-dot:hover:not(.active) {
  background: var(--text-muted);
}

/* ===== PROCESS SECTION ===== */
.process {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.process .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.process .section-header .section-description {
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  opacity: 0.3;
  display: none;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  transition: var(--transition-smooth);
}

.process-step:nth-child(2) .step-number {
  border-color: rgba(22, 163, 74, 0.2);
  color: var(--accent-secondary);
  background: rgba(22, 163, 74, 0.08);
}

.process-step:nth-child(3) .step-number {
  border-color: rgba(74, 222, 128, 0.2);
  color: var(--accent-tertiary);
  background: rgba(74, 222, 128, 0.06);
}

.process-step:nth-child(4) .step-number {
  border-color: rgba(34, 197, 94, 0.2);
  color: var(--accent-primary);
  background: rgba(34, 197, 94, 0.08);
}

.process-step:hover .step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-step);
}

.process-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.cta-box {
  position: relative;
  padding: 70px 60px;
  border-radius: 24px;
  background: var(--cta-bg);
  border: 1px solid var(--border-color);
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--cta-radial);
  animation: rotateSlow 20s linear infinite;
}

.cta-box .section-title {
  position: relative;
  z-index: 1;
}

.cta-box .section-description {
  position: relative;
  z-index: 1;
  margin: 0 auto 40px;
  text-align: center;
}

.cta-box .hero-buttons {
  position: relative;
  z-index: 1;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--social-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--social-hover-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
  padding-left: 6px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom span {
  color: var(--accent-primary);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECURITY DASHBOARD ===== */
.security-dashboard {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dash-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}

.dash-dots span:nth-child(2) {
  background: #ffbd2e;
}

.dash-dots span:nth-child(3) {
  background: #27c93f;
}

.dash-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.dash-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.scan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.scan-item:last-of-type {
  border-bottom: none;
}

.scan-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
}

.scan-icon.ok {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-primary);
}

.scan-icon.warn {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.scan-val {
  margin-left: auto;
  font-weight: 700;
}

.dash-progress {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 98%;
  background: var(--gradient-main);
}

.progress-pct {
  align-self: flex-end;
  color: var(--accent-primary);
  font-weight: 700;
}

/* Service Visual Components */
.service-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Consultancy Dashboard */
.consultancy-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 85%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 2;
}

.dashboard-header {
  background: var(--code-bar-bg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}

.dash-dots span:nth-child(2) { background: #ffbd2e; }
.dash-dots span:nth-child(3) { background: #27c93f; }

.dash-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.dashboard-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-step-card {
  background: rgba(34, 197, 94, 0.03);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.c-step-card.active {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--accent-primary);
  transform: translateX(10px);
}

.c-step-icon {
  width: 44px;
  height: 44px;
  background: rgba(16, 21, 28, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.c-step-main {
  flex: 1;
}

.c-step-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.c-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.c-step-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.c-step-badge.done {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-primary);
}

.c-step-badge.active {
  background: var(--accent-primary);
  color: #fff;
  animation: pulse 2s infinite;
}

.c-step-badge.wait {
  background: rgba(90, 102, 120, 0.1);
  color: var(--text-muted);
}

/* Security Dashboard Styles (from systems page) */
.security-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  width: 100%;
}

/* ===== SECURITY GRID & CARDS ===== */
.seguranca {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-card.featured {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  background: var(--gradient-card);
  border-color: var(--accent-primary);
}

.security-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card);
}

.sec-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.security-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.security-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.sec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}

.sec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.sec-list li i {
  color: var(--accent-primary);
}

.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-weight: 600;
  transition: var(--transition-fast);
  margin-top: 10px;
}

.sec-link:hover {
  color: #fff;
  gap: 12px;
}

/* ===== THREAT MAP ===== */
.threat-map {
  width: 100%;
  max-width: 550px;
  background: rgba(10, 15, 20, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.05);
  position: relative;
  backdrop-filter: blur(20px);
}

.threat-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(34, 197, 94, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.tm-header,
.tm-footer {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.tm-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tm-header i {
  color: var(--accent-primary);
  filter: drop-shadow(0 0 5px var(--accent-primary));
}

.tm-body {
  position: relative;
  height: 400px;
  background:
    radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(34, 197, 94, 0.03) 1px, rgba(34, 197, 94, 0.03) 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Scanning Radar Effect */
.tm-body::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg, transparent, rgba(34, 197, 94, 0.2) 20deg, transparent 40deg);
  transform: translate(-50%, -50%);
  animation: radarRotate 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.tm-node {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 3;
  transition: all 0.3s ease;
}

.node-center {
  width: 100px;
  height: 100px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  flex-direction: column;
  font-size: 2rem;
  gap: 5px;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.node-center span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.tm-node:not(.node-center) {
  filter: grayscale(0.5);
  opacity: 0.8;
}

.tm-node.blocked {
  animation: nodePulse 2s infinite ease-in-out;
}

.node-1 {
  top: 15%;
  left: 15%;
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

.node-2 {
  bottom: 15%;
  left: 20%;
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

.node-3 {
  top: 20%;
  right: 15%;
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

.node-4 {
  bottom: 25%;
  right: 18%;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid #ffcc00;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
}

.tm-line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  transform-origin: 0 50%;
  z-index: 2;
  opacity: 0.4;
}

.tm-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: #fff;
  filter: blur(2px);
  animation: lineScan 2s infinite linear;
}

.line-1 {
  width: 180px;
  transform: rotate(225deg);
}

.line-2 {
  width: 160px;
  transform: rotate(145deg);
}

.line-3 {
  width: 170px;
  transform: rotate(-40deg);
}

.line-4 {
  width: 150px;
  transform: rotate(35deg);
}

.tm-footer {
  border-top: 1px solid var(--border-color);
  background: rgba(34, 197, 94, 0.08);
  color: var(--accent-primary);
  font-weight: 700;
  justify-content: center;
}

.tm-footer i {
  animation: blink 1s infinite;
}

.tm-status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  margin-left: auto;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: blink 1.5s infinite;
}

.tm-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
}

.tm-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  box-shadow: 0 0 15px var(--accent-primary);
  z-index: 4;
  animation: radarScanVertical 6s infinite linear;
}


.visual-deco {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
  width: 100%;
}

.deco-item {
  flex: 1;
  background: rgba(16, 21, 28, 0.6);
  border: 1px solid var(--border-color);
  padding: 12px 8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.deco-item:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.deco-item span:first-child {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.deco-item span:last-child {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

@keyframes radarScanVertical {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .security-card.featured {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-card.featured {
    grid-column: 1;
  }
}

/* ===== KEYFRAMES ===== */
@keyframes radarRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes lineScan {
  0% {
    left: 0;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes nodePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(255, 77, 77, 0);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0px rgba(255, 77, 77, 0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes codeFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero p {
    margin: 0 auto 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .technologies .container,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .float-badge {
    display: none;
  }

  .portfolio-card {
    min-width: calc(50% - 12px);
    width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start; /* Alinha ao topo para não sumir com o Início */
    gap: 20px;
    padding: 80px 30px 40px 30px; /* Mais espaço no topo para o botão X */
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-color);
    overflow-y: auto; /* Habilita o scroll vertical */
    z-index: 1001;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-trigger {
    width: 100%;
    padding: 15px 0 5px 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary) !important;
    pointer-events: none; /* Deixa de ser um link e vira um título */
  }

  .dropdown-trigger i {
    display: none; /* Esconde a setinha no mobile */
  }

  .dropdown-menu {
    position: static;
    display: flex !important; /* Sempre visível no mobile */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 5px;
    margin-top: 5px;
    min-width: 100%;
    border: none;
    box-shadow: none;
  }

  .dropdown-item {
    padding: 10px 15px !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-card-wide {
    grid-column: span 2;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-box {
    padding: 50px 30px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .portfolio-card {
    min-width: 100%;
    width: 100%;
  }

  .portfolio-image {
    height: 180px;
  }

  .portfolio-info {
    padding: 16px;
    height: auto;
  }

  .portfolio-info h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .portfolio-info p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .portfolio-techs {
    margin-bottom: 15px;
    gap: 6px;
  }

  .btn-demo {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .theme-toggle {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-card-wide {
    grid-column: span 1;
  }
}