/* =============================================
   GENESISTEC — PORTFOLIO
   style.css
   ============================================= */

/* ── Variáveis ── */
:root {
  --cyan:      #00e5ff;
  --teal:      #00bcd4;
  --purple:    #c060f0;
  --pink:      #e040fb;
  --dark:      #050810;
  --dark2:     #0a0f1e;
  --dark3:     #0d1530;
  --glass:     rgba(0, 229, 255, 0.05);
  --glass2:    rgba(192, 96, 240, 0.05);
  --border:    rgba(0, 229, 255, 0.15);
  --text:      #c8e6f5;
  --text-dim:  #7aafcc;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── Cursor personalizado (ativado pelo JS só em PC com mouse) ── */
html.has-custom-cursor,
html.has-custom-cursor * { cursor: none !important; }

.cursor, .cursor-ring { display: none; }
html.has-custom-cursor .cursor,
html.has-custom-cursor .cursor-ring { display: block; }

.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.1s ease;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
}

/* ── Canvas de fundo ── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Scanlines ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9997;
}

/* ── Navegação ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  border-bottom: 1px solid var(--border);
}

/* fundo de vidro num pseudo-elemento: se ficasse no próprio nav,
   o backdrop-filter "prenderia" o menu mobile (position: fixed) dentro do nav */
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 8, 16, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  /* remove o fundo preto da logo (funciona com PNG transparente) */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.nav-logo span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
  box-shadow: 0 0 8px var(--cyan);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Menu toggle mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open { overflow: hidden; }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

/* ── Seções ── */
section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ── Hero ── */
#home {
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  /* mix-blend-mode: screen faz o fundo preto sumir em fundos escuros */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.5))
          drop-shadow(0 0 80px rgba(192, 96, 240, 0.3));
  animation: float 6s ease-in-out infinite;
  margin-bottom: 40px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(2deg); }
}

.hero-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 0.9;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 2px;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}
@keyframes fadeIn { to { opacity: 0.5; } }

.scroll-indicator span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.3; }
}

/* ── Botões ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--dark);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--cyan);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

/* ── Header de seção ── */
.section-header { margin-bottom: 70px; }

.section-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.1;
  color: #fff;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Projetos ── */
#projetos {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 50%, var(--dark) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 40px;
  backdrop-filter: blur(20px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: all 0.4s;
  overflow: hidden;
  cursor: default;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.03), rgba(192, 96, 240, 0.05));
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover::before { opacity: 1; }

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.1),
              inset 0 0 40px rgba(0, 229, 255, 0.03);
  transform: translateY(-4px);
}

.project-card.featured { grid-column: span 2; }

.project-corner {
  position: absolute;
  top: 0; right: 0;
  width: 20px; height: 20px;
  border-left: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-corner { opacity: 1; }

.project-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
  border: 1px solid rgba(192, 96, 240, 0.3);
  display: inline-block;
  padding: 4px 12px;
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--glass), var(--glass2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
}

.project-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 28px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card { display: flex; flex-direction: column; align-items: flex-start; }
.project-tech { margin-bottom: 28px; }

.project-link {
  margin-top: auto;
  position: relative;
  z-index: 1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
.project-link:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.7);
}
.project-link.is-private {
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: none;
  font-weight: 500;
}

.tech-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
}

/* ── Sobre ── */
#sobre { padding: 120px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
}

.about-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  animation: rotateBorder 6s linear infinite;
  z-index: 0;
}

@keyframes rotateBorder {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.about-logo-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: var(--dark2);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about-logo-img {
  width: 100%;
  /* mix-blend-mode para sumir fundo preto */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.4));
}

.about-text .section-header { margin-bottom: 30px; }

.about-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
}

.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Contato ── */
#contato {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark3) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

a.contact-item { text-decoration: none; color: inherit; }
.contact-item:hover { border-color: rgba(0, 229, 255, 0.4); }

.contact-item-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(192, 96, 240, 0.1));
  border: 1px solid var(--border);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.9rem;
  color: var(--text);
}

/* Formulário */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  padding: 14px 18px;
  outline: none;
  transition: all 0.3s;
  resize: none;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.form-group textarea { height: 140px; }

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  flex: 1 1 200px;
}

.btn-primary:disabled { cursor: default; }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.footer-brand span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ── Animações de reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ── Acessibilidade ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsivo ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .container { padding: 0 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 16, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.5rem; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-logo { width: 140px; height: 140px; margin-bottom: 28px; }
  .hero-subtitle { letter-spacing: 1px; font-size: 1rem; }
  .project-card { padding: 28px 22px; }
  .form-submit { justify-content: center; text-align: center; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-num { font-size: 1.8rem; }
}