/* ============================================
   PORTFOLIO PESSOAL - EMANUELLE FRITZEN MACHADO
   Desenvolvido com foco em performance, acessibilidade e boas práticas
   ============================================ */

/* ============================================
   VARIÁVEIS CSS - SISTEMA DE DESIGN
   ============================================ */
:root {
  /* Cores principais */
  --color-primary: #64ffda;
  --color-primary-dark: #31ffcd;
  --color-secondary: #f06292;
  --color-background: #0a0e27;
  --color-surface: #112240;
  --color-surface-light: rgba(17, 34, 64, 0.5);
  --color-surface-lighter: rgba(17, 34, 64, 0.3);
  
  /* Cores de texto */
  --color-text-primary: #e6f1ff;
  --color-text-secondary: #ccd6f6;
  --color-text-muted: #8892b0;
  
  /* Fontes */
  --font-primary: "Inter", sans-serif;
  --font-mono: "Fira Code", monospace;
  
  /* Tamanhos */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --spacing-xxxl: 4rem;
  
  /* Bordas e sombras */
  --border-radius: 10px;
  --border-radius-sm: 5px;
  --border-radius-lg: 15px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  /* Transições */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* Tamanhos de container */
  --container-max-width: 1200px;
  --navbar-height: 80px;
}

/* ============================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px; /* Base para rem */
}

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

/* ============================================
   SCROLLBAR CUSTOMIZADA
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--spacing-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* Seleção de texto personalizada */
::selection {
  background: rgba(100, 255, 218, 0.3);
  color: var(--color-text-primary);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-background);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
}

.loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

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

.loader-code {
  font-size: 3rem;
  font-family: var(--font-mono);
  margin-bottom: var(--spacing-xl);
}

.loader-tag {
  color: var(--color-primary);
  animation: pulse 1.5s ease infinite;
}

.loader-name {
  color: var(--color-text-primary);
  animation: pulse 1.5s ease infinite 0.3s;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(230, 241, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--color-primary);
  animation: loading 1.5s ease-in-out infinite;
}

/* ============================================
   CURSOR PERSONALIZADO
   ============================================ */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transition: all 0.1s ease;
  z-index: 9998;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9997;
}

/* Ocultar cursor em dispositivos móveis */
@media (max-width: 768px) {
  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* ============================================
   NAVEGAÇÃO
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: var(--spacing-md) 0;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  padding: var(--spacing-sm) 0;
  box-shadow: var(--box-shadow);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-tag {
  color: var(--color-primary);
}

.logo-name {
  color: var(--color-text-primary);
  margin: 0 var(--spacing-xs);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-number {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-right: var(--spacing-sm);
}

/* Navegação mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    padding-top: 50px;
    gap: var(--spacing-xxxl);
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    justify-content:start;
    transition: right var(--transition-fast);
  }

  .nav-text{
    font-size: x-large;
  }
  
  .nav-menu.active {
    right: 0;
  }
}

/* ============================================
   SEÇÃO HERO
   ============================================ */
.hero {
  min-height: calc(100vh - var(--navbar-height));
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--spacing-xl);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle at 20% 50%, 
    rgba(100, 255, 218, 0.1) 0%, 
    transparent 50%
  ), 
  radial-gradient(
    circle at 80% 80%, 
    rgba(240, 98, 146, 0.1) 0%, 
    transparent 50%
  );
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  max-width: var(--container-max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxxl);
  align-items: center;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-greeting {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  display: block;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.5s ease;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  animation: fadeInUp 0.5s ease 0.2s both;
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.5s ease 0.4s both;
}

.typed-cursor {
  animation: blink 1s ease infinite;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.5s ease 0.6s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  animation: fadeInUp 0.5s ease 0.8s both;
}

@media (max-width: 768px) {
  .hero-cta {
    justify-content: center;
  }
}

/* Efeito glitch no nome */
.glitch {
  position: relative;
}

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

.glitch:hover::before {
  animation: glitch-1 0.3s linear infinite;
  color: var(--color-primary);
  opacity: 0.8;
}

.glitch:hover::after {
  animation: glitch-2 0.3s linear infinite;
  color: var(--color-secondary);
  opacity: 0.8;
}

/* ============================================
   CÓDIGO VISUAL (HERO)
   ============================================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 1s both;
}

@media (max-width: 768px) {
  .hero-visual {
    display: none;
  }
}

.code-window {
  width: 100%;
  max-width: 500px;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-hover);
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform var(--transition-fast);
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.code-header {
  background: rgba(11, 23, 43, 1);
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-dots {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

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

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

.code-title {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.code-body {
  padding: var(--spacing-xl);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Sintaxe do código */
.keyword { color: #c792ea; }
.variable { color: #82aaff; }
.property { color: #80cbc4; }
.string { color: #c3e88d; }
.boolean { color: #ff5370; }

/* ============================================
   INDICADOR DE SCROLL
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  animation: bounce 2s ease infinite;
}

.scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 2s ease infinite;
}

/* ============================================
   COMPONENTES REUTILIZÁVEIS
   ============================================ */

/* Container padrão */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Seções */
.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* Cabeçalho de seção */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xxxl);
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.section-number {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-right: var(--spacing-sm);
}

.section-line {
  height: 1px;
  background: rgba(136, 146, 176, 0.2);
  flex: 1;
  margin-left: var(--spacing-xl);
}

@media (max-width: 768px) {
  .section-line {
    display: none;
  }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem var(--spacing-xl);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn i {
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left var(--transition-fast);
}

.btn:hover i {
  transform: translateX(5px);
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-background);
  font-weight: 600;
}

.btn-primary::before {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  color: var(--color-background);
}

.btn-secondary::before {
  background: var(--color-primary);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(100, 255, 218, 0.1);
  color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: var(--transition-fast);
}

.tag:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   SEÇÃO SOBRE
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-xxxl);
  align-items: center;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

.about-intro {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.about-text p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.highlight {
  color: var(--color-primary);
  font-weight: 500;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(100, 255, 218, 0.05);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.info-item:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.info-item i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

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

/* Imagem sobre */
.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.image-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.image-box img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition-fast);
}

.image-box:hover img {
  filter: grayscale(0%);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(100, 255, 218, 0.3);
  transition: var(--transition-fast);
}

.image-box:hover .image-overlay {
  opacity: 0;
}

.image-frame {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  z-index: -1;
  transition: var(--transition-fast);
}

.about-image:hover .image-frame {
  top: 15px;
  left: 15px;
}

/* ============================================
   SEÇÃO HABILIDADES
   ============================================ */
.skills {
  background: var(--color-surface);
}

.skills-content {
  display: block;
}

.skills-categories {
  display: grid;
  gap: var(--spacing-xxl);
}

.category-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
  font-size: 1.3rem;
}

.category-title i {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.skill-items {
  display: grid;
  gap: var(--spacing-lg);
}

.skill-item {
  display: grid;
  grid-template-columns: 50px 150px 1fr;
  align-items: center;
  gap: var(--spacing-md);
}

@media (max-width: 480px) {
  .skill-item {
    grid-template-columns: 40px 100px 1fr;
    gap: 0.75rem;
  }
}

.skill-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.skill-icon .icon-text {
  font-size: 0.8rem;
  font-weight: 600;
}

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

.skill-bar {
  height: 8px;
  background: rgba(136, 146, 176, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
  position: relative;
}

.skill-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s ease infinite;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1);
  background: rgba(100, 255, 218, 0.2);
}


/* ============================================
   TIMELINE DE EXPERIÊNCIA
   ============================================ */
.timeline {
  position: relative;
  padding-left: 50px;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 30px;
  }
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(136, 146, 176, 0.2);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--spacing-xxxl);
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInLeft 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -56px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--color-text-muted);
  border-radius: 50%;
  border: 2px solid var(--color-background);
  transition: var(--transition-fast);
}

.timeline-item.active::before,
.timeline-item:hover::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.2);
}

.timeline-date {
  position: absolute;
  left: -200px;
  top: 0;
  width: 150px;
  text-align: right;
}

@media (max-width: 1024px) {
  .timeline-date {
    position: relative;
    left: 0;
    text-align: left;
    margin-bottom: var(--spacing-sm);
  }
}

.date-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.timeline-content {
  background: var(--color-surface-light);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  border: 1px solid rgba(136, 146, 176, 0.1);
  transition: var(--transition-fast);
}

.timeline-content:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.timeline-title {
  color: var(--color-text-primary);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.timeline-company {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.timeline-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.timeline-details {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.timeline-details li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.timeline-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* ============================================
   PROJETOS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  border: 1px solid rgba(136, 146, 176, 0.1);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: var(--box-shadow-hover);
}

.project-card:hover::before {
  transform: translateX(0);
}

.project-card:hover .project-icon {
  transform: scale(1.1);
  background: rgba(100, 255, 218, 0.2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.project-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: var(--border-radius);
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.project-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.project-link {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

.project-title {
  color: var(--color-text-primary);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
}

.project-description {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.project-tech {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(100, 255, 218, 0.1);
  color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ============================================
   CONTATO
   ============================================ */
.contact {
  background: var(--color-surface);
}

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

.contact-subtitle {
  color: var(--color-text-primary);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.contact-text {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-xxl) 0;
}

@media (max-width: 768px) {
  .contact-items {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
  padding: var(--spacing-lg);
  background: var(--color-surface-lighter);
  border-radius: var(--border-radius);
  border: 1px solid rgba(136, 146, 176, 0.1);
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: var(--box-shadow);
}

.contact-item:hover .contact-icon {
  background: var(--color-primary);
  color: var(--color-background);
}

.contact-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: var(--border-radius);
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.contact-details {
  text-align: center;
}

@media (max-width: 768px) {
  .contact-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  
  .contact-details {
    text-align: left;
  }
}

.contact-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--color-text-secondary);
  font-size: 1rem;
  word-break: break-all;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--spacing-xxl) 0;
  background: rgba(4, 6, 18, 1);
}

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

.footer-logo {
  font-size: 1.2rem;
  font-family: var(--font-mono);
  margin-bottom: var(--spacing-md);
}

.footer-text {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.footer-text i {
  color: var(--color-secondary);
  animation: heartbeat 1.5s ease infinite;
}

.footer-copy {
  color: rgba(83, 94, 126, 1);
  font-size: 0.9rem;
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-background);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.back-to-top i {
  font-size: 1.2rem;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes loading {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes glitch-2 {
  0%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }
  25% {
    clip-path: inset(20% 0 0 0);
    transform: translate(-2px, 2px);
  }
  50% {
    clip-path: inset(50% 0 0 0);
    transform: translate(2px, -2px);
  }
  75% {
    clip-path: inset(80% 0 0 0);
    transform: translate(-2px, -2px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes wheel {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 25px;
    opacity: 0;
  }
}

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

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================
   ANIMAÇÕES DE SCROLL
   ============================================ */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-content {
    padding: 0 var(--spacing-md);
  }
  
  .code-body {
    font-size: 0.7rem;
    padding: var(--spacing-md);
  }
  
  :root {
    --spacing-xl: 1rem;
    --spacing-xxl: 1.5rem;
    --spacing-xxxl: 2rem;
  }
}

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

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.overflow-hidden { overflow: hidden; }

/* ============================================
   MODO ESCURO (já está implementado)
   ============================================ */
/* O design já está otimizado para modo escuro */

/* ============================================
   ACESSIBILIDADE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Foco para navegação por teclado */
.nav-link:focus,
.btn:focus,
.project-link:focus,
.contact-item:focus,
.back-to-top:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .cursor,
  .cursor-follower,
  .loader,
  .back-to-top {
    display: none !important;
  }
  
  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero {
    min-height: auto;
  }
}