/* ==========================================
   PORTFÓLIO RETRO FUTURISTA - CYBERPUNK
   Tema: Azul Escuro + Neon
   ========================================== */

/* ==========================================
   RESET & VARIÁVEIS
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores de Fundo - Azul Escuro */
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1729;
  --bg-tertiary: #151b3b;
  --bg-card: #1a1f3a;

  /* Neon Colors */
  --neon-cyan: #00d9ff;
  --neon-blue: #0099ff;
  --neon-purple: #cc00ff;
  --neon-pink: #ff00ff;
  --neon-green: #00ff88;
  --neon-orange: #ffaa00;

  /* Cores de Texto */
  --text-primary: #e0e6ff;
  --text-secondary: #8892b0;
  --text-muted: #4a5578;
  --text-white: #ffffff;

  /* Glows */
  --glow-cyan: 0 0 10px rgba(0, 217, 255, 0.5), 0 0 20px rgba(0, 217, 255, 0.3),
    0 0 30px rgba(0, 217, 255, 0.2);
  --glow-purple: 0 0 10px rgba(204, 0, 255, 0.5),
    0 0 20px rgba(204, 0, 255, 0.3);
  --glow-green: 0 0 10px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);

  /* Fontes */
  --font-primary: "Rajdhani", sans-serif;
  --font-display: "Orbitron", monospace;

  /* Transições */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   EFEITOS DE FUNDO
   ========================================== */

/* Scanlines Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 50%, rgba(0, 217, 255, 0.02) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  animation: scanline 10s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}

/* Grid Background */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

/* ==========================================
   NAVEGAÇÃO
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo-bracket {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  font-size: 1.8rem;
}

.logo-text {
  color: var(--text-white);
  letter-spacing: 2px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
}

.nav-number {
  color: var(--neon-cyan);
  font-family: var(--font-display);
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.nav-link:hover::before {
  width: calc(100% - 2rem);
}

/* Menu Toggle */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-icon span {
  width: 30px;
  height: 3px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.circle-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.15) 0%,
    transparent 70%
  );
  filter: blur(40px);
  top: 20%;
  left: 10%;
  animation: float 20s ease-in-out infinite;
}

.circle-glow-2 {
  background: radial-gradient(
    circle,
    rgba(204, 0, 255, 0.15) 0%,
    transparent 70%
  );
  top: 50%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(50px, -50px);
  }
  66% {
    transform: translate(-30px, 30px);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Glitch Effect */
.glitch-wrapper {
  margin-bottom: 2rem;
}

.glitch {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  color: var(--text-white);
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.8), 0 0 20px rgba(0, 217, 255, 0.6),
    0 0 30px rgba(0, 217, 255, 0.4);
  animation: glitch 5s infinite;
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  91% {
    transform: translate(-2px, 2px);
  }
  92% {
    transform: translate(2px, -2px);
  }
  93% {
    transform: translate(-2px, 2px);
  }
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--neon-cyan);
  z-index: -1;
  animation: glitch-1 2s infinite;
}

.glitch::after {
  color: var(--neon-pink);
  z-index: -2;
  animation: glitch-2 2s infinite;
}

@keyframes glitch-1 {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
  }
  10% {
    clip-path: inset(20% 0 60% 0);
  }
  20% {
    clip-path: inset(80% 0 10% 0);
  }
  30% {
    clip-path: inset(50% 0 30% 0);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
  }
  15% {
    clip-path: inset(60% 0 20% 0);
  }
  25% {
    clip-path: inset(10% 0 80% 0);
  }
  35% {
    clip-path: inset(30% 0 50% 0);
  }
}

/* Terminal Text */
.terminal-text {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.prompt {
  color: var(--neon-green);
  text-shadow: var(--glow-green);
}

.typing {
  color: var(--text-primary);
  border-right: 2px solid var(--neon-cyan);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--neon-cyan);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  letter-spacing: 2px;
  font-weight: 500;
}

.text-glow {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-item {
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid var(--neon-cyan);
  padding: 2rem 1rem;
  clip-path: polygon(
    0 10px,
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  position: relative;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--neon-cyan);
  opacity: 0;
  transition: var(--transition);
}

.stat-item:hover::before {
  opacity: 0.1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  clip-path: polygon(
    0 8px,
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}

.btn-neon {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
}

.btn-neon:hover {
  background: var(--text-white);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.8), 0 0 40px rgba(0, 217, 255, 0.6);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.2);
}

.btn-outline:hover {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* Social Links */
.social-cyber {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-item i {
  font-size: 2rem;
  padding: 1rem;
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.social-item:hover i {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-5px) rotate(5deg);
}

.social-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  z-index: 3;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--neon-cyan));
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   SECÇÕES GERAIS
   ========================================== */
section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.title-number {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  font-size: 1.8rem;
}

.title-text {
  color: var(--text-white);
  letter-spacing: 3px;
}

.title-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, var(--neon-cyan), transparent);
  box-shadow: var(--glow-cyan);
}

/* ==========================================
   SOBRE SECTION
   ========================================== */
.sobre {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

/* Cyber Card */
.cyber-card {
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid var(--neon-cyan);
  padding: 3rem;
  position: relative;
  clip-path: polygon(
    0 20px,
    20px 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
}

.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--neon-purple);
  box-shadow: var(--glow-purple);
}

.card-corner.tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.card-corner.tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}
.card-corner.bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}
.card-corner.br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.card-title {
  font-family: "Courier New", monospace;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.cyber-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.highlight {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Info Boxes */
.sobre-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-box {
  background: rgba(26, 31, 58, 0.5);
  border-left: 4px solid var(--neon-cyan);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  transition: var(--transition);
}

.info-box:hover {
  background: rgba(26, 31, 58, 0.8);
  border-left-color: var(--neon-purple);
  transform: translateX(10px);
}

.info-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  color: var(--neon-cyan);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 1.2rem;
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

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

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-panel {
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid var(--neon-blue);
  overflow: hidden;
  transition: var(--transition);
}

.skill-panel:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
  transform: translateY(-5px);
}

.panel-header {
  background: rgba(0, 217, 255, 0.1);
  border-bottom: 2px solid var(--neon-cyan);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-header i {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--text-white);
}

.panel-body {
  padding: 2rem;
}

/* Skill Bars */
.skill-bar-item {
  margin-bottom: 2rem;
}

.skill-bar-item:last-child {
  margin-bottom: 0;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.skill-bar-header span:first-child {
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-value {
  color: var(--neon-cyan);
  font-family: var(--font-display);
}

.skill-bar-track {
  height: 12px;
  background: rgba(10, 14, 39, 0.8);
  border: 1px solid var(--text-muted);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: var(--skill-width);
  background: linear-gradient(
    90deg,
    var(--neon-blue) 0%,
    var(--neon-cyan) 100%
  );
  border-radius: 10px;
  position: relative;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tech-tag {
  padding: 0.6rem 1.2rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: default;
}

.tech-tag:hover {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* ==========================================
   PROJETOS SECTION
   ========================================== */
.projetos {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.projeto-card {
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid var(--text-muted);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.projeto-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
  transform: translateY(-10px);
}

.projeto-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--neon-purple);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}

.projeto-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.projeto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.projeto-card:hover .projeto-image img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.3),
    rgba(204, 0, 255, 0.3)
  );
  opacity: 0;
  transition: var(--transition);
}

.projeto-card:hover .image-overlay {
  opacity: 1;
}

.projeto-content {
  padding: 2rem;
}

.projeto-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.projeto-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 1px;
}

.projeto-links {
  display: flex;
  gap: 1rem;
}

.projeto-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition);
}

.projeto-link:hover {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
  transform: rotate(360deg) scale(1.1);
}

.projeto-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.projeto-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-badge {
  padding: 0.4rem 0.9rem;
  background: rgba(0, 153, 255, 0.1);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.tech-badge:hover {
  background: var(--neon-blue);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.more-projects {
  text-align: center;
}

/* ==========================================
   CONTACTO SECTION
   ========================================== */
.contacto {
  background: var(--bg-secondary);
}

.contacto-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Card */
.contact-card {
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid var(--neon-purple);
  padding: 3rem;
  clip-path: polygon(
    0 30px,
    30px 0,
    calc(100% - 30px) 0,
    100% 30px,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    30px 100%,
    0 calc(100% - 30px)
  );
}

.contact-title {
  font-family: "Courier New", monospace;
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(10, 14, 39, 0.5);
  border-left: 4px solid var(--neon-green);
  text-decoration: none;
  transition: var(--transition);
}

.contact-method:hover {
  background: rgba(10, 14, 39, 0.8);
  transform: translateX(10px);
  border-left-color: var(--neon-cyan);
}

.method-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  color: var(--neon-green);
  font-size: 1.3rem;
}

.method-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.method-value {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Terminal Form */
.terminal-form {
  background: rgba(10, 14, 39, 0.8);
  border: 2px solid var(--neon-cyan);
  overflow: hidden;
}

.terminal-header {
  background: rgba(0, 217, 255, 0.1);
  border-bottom: 2px solid var(--neon-cyan);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.terminal-title {
  margin-left: auto;
  color: var(--text-secondary);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.terminal-body {
  padding: 2rem;
}

.form-line {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-line .prompt {
  color: var(--neon-green);
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  text-shadow: var(--glow-green);
  padding-top: 0.5rem;
}

.form-line input,
.form-line textarea {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--text-muted);
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.form-line input:focus,
.form-line textarea:focus {
  outline: none;
  border-bottom-color: var(--neon-cyan);
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-primary);
  border-top: 2px solid var(--neon-cyan);
  padding: 3rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content {
  text-align: left;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-link:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-5px) rotate(10deg);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
  .sobre-grid,
  .contacto-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Menu Mobile */
  .menu-icon {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 75px;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.98);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    padding: 2rem 0;
    gap: 0;
    border-top: 2px solid var(--neon-cyan);
  }

  .nav-menu li {
    padding: 1rem 0;
    width: 100%;
  }

  #menu-toggle:checked ~ .nav-menu {
    left: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  /* Hero */
  .glitch {
    font-size: 3rem;
  }

  .terminal-text {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  /* Sections */
  section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
    flex-wrap: wrap;
  }

  .title-line {
    width: 100%;
    margin-top: 1rem;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .glitch {
    font-size: 2.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .cyber-card,
  .contact-card {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================
   ANIMAÇÕES ADICIONAIS
   ========================================== */

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Styles */
@media print {
  .scanlines,
  .grid-bg,
  .navbar,
  .hero-buttons,
  .social-cyber,
  .scroll-indicator,
  .footer-social {
    display: none;
  }
}

/* ==========================================
   MELHORIAS DE RESPONSIVIDADE MOBILE
   ========================================== */

/* Tablet - 968px */
@media (max-width: 968px) {
  .sobre-grid,
  .contacto-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

/* Mobile - 768px - MELHORADO */
@media (max-width: 768px) {
  /* Navegação Mobile */
  .menu-icon {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 75px;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    padding: 2rem 0;
    gap: 0;
    border-top: 2px solid var(--neon-cyan);
  }

  .nav-menu li {
    padding: 1rem 0;
    width: 100%;
  }

  #menu-toggle:checked ~ .nav-menu {
    left: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  /* Hero - CORRIGIDO PARA MOBILE */
  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .glitch {
    font-size: 2.5rem !important;
    letter-spacing: 1px;
  }

  .terminal-text {
    font-size: 1rem !important;
  }

  .hero-description {
    font-size: 1rem !important;
    margin-bottom: 2rem;
    letter-spacing: 1px;
  }

  /* Stats Grid - Empilhar verticalmente */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Buttons - Largura total */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }

  /* Social Links */
  .social-cyber {
    gap: 1.5rem;
  }

  .social-item i {
    font-size: 1.5rem;
    padding: 0.8rem;
  }

  /* Secções */
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .title-number {
    font-size: 1.5rem;
  }

  .title-line {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Cards */
  .cyber-card,
  .contact-card {
    padding: 2rem 1.5rem !important;
  }

  /* Projetos e Skills */
  .projetos-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr !important;
  }

  .panel-header h3 {
    font-size: 1.1rem;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-content {
    text-align: center;
  }

  /* Esconder scroll indicator */
  .scroll-indicator {
    display: none;
  }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
  .glitch {
    font-size: 2rem !important;
  }

  .terminal-text {
    font-size: 0.9rem !important;
  }

  .hero-description {
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .title-number {
    font-size: 1.2rem;
  }

  .projeto-title {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.9rem 1.5rem;
  }
}

/* Landscape Mobile Fix */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 0 50px;
  }

  .scroll-indicator {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ============================================================
   FIX MOBILE - ELIMINAR SCROLL HORIZONTAL
   Adiciona isto no FINAL do teu style.css
   ============================================================ */

/* Prevenir overflow horizontal em TODA a página */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

body {
  width: 100%;
}

/* Garantir que todos os containers respeitam o viewport */
* {
  max-width: 100%;
}

/* ============================================================
   MOBILE - Tamanhos Comuns (320px - 428px)
   ============================================================ */

@media (max-width: 768px) {
  /* Prevenir overflow em containers */
  .container {
    padding: 0 15px !important;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Hero Section - FIX PRINCIPAL */
  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto;
    overflow-x: hidden !important;
    width: 100%;
  }

  .hero-content {
    padding: 0 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* GLITCH - Texto que transborda */
  .glitch-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }

  .glitch {
    font-size: 2rem !important;
    letter-spacing: 0.5px !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal !important;
    line-height: 1.2;
  }

  /* Desativar pseudo-elementos glitch em mobile (causam overflow) */
  .glitch::before,
  .glitch::after {
    display: none !important;
  }

  /* Terminal Text */
  .terminal-text {
    font-size: 0.85rem !important;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 0 5px;
  }

  .typing {
    word-break: break-all;
    white-space: normal;
  }

  /* Hero Description */
  .hero-description {
    font-size: 0.9rem !important;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    word-break: break-word;
    padding: 0 5px;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .stat-item {
    padding: 1.5rem 1rem;
    width: 100%;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
    word-break: break-word;
  }

  /* Buttons */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 0 5px;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    box-sizing: border-box;
  }

  /* Social Links */
  .social-cyber {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5px;
  }

  .social-item {
    flex-shrink: 0;
  }

  .social-item i {
    font-size: 1.5rem;
    padding: 0.8rem;
  }

  .social-label {
    font-size: 0.75rem;
  }

  /* Navbar - Garantir que fica visível */
  .navbar {
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
  }

  .navbar .container {
    padding: 1rem 15px;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-text {
    font-size: 1rem;
    white-space: nowrap;
  }

  /* Menu Mobile */
  .nav-menu {
    width: 100vw;
    max-width: 100vw;
    left: -100vw;
  }

  #menu-toggle:checked ~ .nav-menu {
    left: 0;
  }

  /* Secções */
  section {
    padding: 60px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .section-title {
    font-size: 1.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 10px;
    word-break: break-word;
  }

  .title-number {
    font-size: 1.3rem;
  }

  .title-text {
    font-size: 1.6rem;
    word-break: break-word;
  }

  .title-line {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Cards */
  .cyber-card,
  .contact-card {
    padding: 1.5rem 1rem !important;
    word-wrap: break-word;
  }

  /* Projetos */
  .projetos-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 0 10px;
  }

  .projeto-card {
    width: 100%;
    max-width: 100%;
  }

  .projeto-title {
    font-size: 1.2rem;
    word-break: break-word;
  }

  .projeto-desc {
    word-break: break-word;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding: 0 10px;
  }

  .panel-header h3 {
    font-size: 1.1rem;
    word-break: break-word;
  }

  /* Contacto */
  .contacto-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .contact-methods {
    gap: 1rem;
  }

  .method-value {
    word-break: break-all;
    font-size: 0.9rem;
  }

  /* Terminal Form */
  .terminal-form {
    width: 100%;
    max-width: 100%;
  }

  .form-line input,
  .form-line textarea {
    width: 100%;
    max-width: 100%;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 0 15px;
  }

  .footer-content {
    text-align: center;
  }

  .footer-text,
  .footer-copyright {
    word-break: break-word;
  }

  /* Esconder scroll indicator */
  .scroll-indicator {
    display: none;
  }

  /* Background effects - otimizar para mobile */
  .circle-glow,
  .circle-glow-2 {
    width: 400px;
    height: 400px;
  }
}

/* ============================================================
   SMALL MOBILE - Extra pequenos (320px - 375px)
   ============================================================ */

@media (max-width: 375px) {
  .glitch {
    font-size: 1.8rem !important;
  }

  .terminal-text {
    font-size: 0.75rem !important;
  }

  .hero-description {
    font-size: 0.85rem !important;
  }

  .stat-number {
    font-size: 2rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.9rem 1.2rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .title-text {
    font-size: 1.4rem;
  }
}

/* ============================================================
   MEDIUM MOBILE - Médios (375px - 414px)
   Nothing Phone 2a, iPhone, Galaxy S, Pixel, etc.
   ============================================================ */

@media (min-width: 376px) and (max-width: 414px) {
  .glitch {
    font-size: 2.2rem !important;
  }

  .terminal-text {
    font-size: 0.9rem !important;
  }

  .hero-description {
    font-size: 0.95rem !important;
  }
}

/* ============================================================
   LARGE MOBILE - Grandes (414px - 428px)
   iPhone Pro Max, Galaxy Plus, etc.
   ============================================================ */

@media (min-width: 415px) and (max-width: 428px) {
  .glitch {
    font-size: 2.4rem !important;
  }

  .terminal-text {
    font-size: 1rem !important;
  }
}

/* ============================================================
   LANDSCAPE MODE - Modo horizontal
   ============================================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ============================================================
   FIX FINAL - Garantir sem scroll horizontal
   ============================================================ */

@media (max-width: 768px) {
  /* Forçar tudo dentro do viewport */
  body > * {
    max-width: 100vw;
  }

  /* Remover qualquer margin negativa que cause overflow */
  * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .container,
  .hero-content,
  section,
  .navbar {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
