@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Orbitron:wght@500;600;700;800;900&display=swap');

:root {
  --neon-pink: #ff21af;
  --electric-purple: #7d1cef;
  --cyan: #00f0f1;
  --deep-blue: #020418;
  --dark-purple: #0e001d;
  --radius: 0.75rem;

  --background: #01010e;
  --foreground: #f0f1f9;
  --card: #080420;
  --card-foreground: #f0f1f9;
  --popover: #050318;

  --primary: #ff21af;
  --primary-foreground: #020210;
  --secondary: #170b37;
  --secondary-foreground: #f0f1f9;
  --muted: #110b2a;
  --muted-foreground: #a1a2bd;
  --accent: #00f0f1;
  --accent-foreground: #020210;

  --border: rgba(158, 69, 177, 0.25);
  --border-hover: rgba(255, 33, 175, 0.45);
  --ring: rgba(255, 33, 175, 0.6);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--foreground);
}

/* Scanlines overlay */
body::before {
  content: "";
  pointer-events: none;
  z-index: 999;
  /* Removed mix-blend-mode: overlay — forces full compositing tree, kills scroll perf */
  opacity: 0.18;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.25) 3px,
      rgba(0, 0, 0, 0) 4px);
  position: fixed;
  inset: 0;
  /* Own compositor layer — never repaints */
  will-change: transform;
  transform: translateZ(0);
}

/* Background Glowing Orbs & 3D Animated Grid */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--background);
}

.orb-pink {
  position: absolute;
  top: -8rem;
  left: 20%;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: rgba(255, 33, 175, 0.22);
  /* Reduced blur: 80px instead of 140px — huge GPU memory saving */
  filter: blur(80px);
  /* Promoted to its own GPU layer — no repaint on scroll */
  will-change: transform;
  transform: translateZ(0);
}

.orb-purple {
  position: absolute;
  top: 35%;
  right: -5%;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: rgba(125, 28, 239, 0.22);
  filter: blur(80px);
  will-change: transform;
  transform: translateZ(0);
}

.orb-cyan {
  position: absolute;
  bottom: -5rem;
  left: -5%;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: rgba(0, 240, 241, 0.16);
  filter: blur(80px);
  will-change: transform;
  transform: translateZ(0);
}

/* 3D Synthwave Horizon Grid */
.grid-container {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 52%;
  perspective: 480px;
  overflow: hidden;
}

.grid-plane {
  position: absolute;
  inset: 0;
  transform-origin: bottom center;
  transform: rotateX(72deg);
  background-image:
    linear-gradient(to right, rgba(255, 33, 175, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 241, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-scroll 3s linear infinite;
  mask-image: linear-gradient(to top, black 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 90%);
  /* Own GPU layer for smooth animation */
  will-change: transform;
}

@keyframes grid-scroll {
  0% {
    transform: rotateX(72deg) translateY(0);
  }

  100% {
    transform: rotateX(72deg) translateY(40px);
  }
}

@keyframes gradient-pan {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Aesthetic Utility Classes */
.text-glow-pink {
  text-shadow: 0 0 8px rgba(255, 33, 175, 0.6), 0 0 24px rgba(255, 33, 175, 0.35);
}

.text-glow-cyan {
  text-shadow: 0 0 8px rgba(0, 240, 241, 0.6), 0 0 24px rgba(0, 240, 241, 0.35);
}

.glow-pink {
  box-shadow: 0 0 20px rgba(255, 33, 175, 0.35), 0 0 60px rgba(255, 33, 175, 0.15);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 240, 241, 0.3), 0 0 60px rgba(0, 240, 241, 0.12);
}

.glass {
  background: linear-gradient(135deg, rgba(23, 11, 55, 0.75), rgba(5, 3, 24, 0.70));
  /* backdrop-filter only on the navbar glass pill, not on every card */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}

.glass-card {
  /* Replaced backdrop-filter with a solid dark semi-transparent bg.
     backdrop-filter on 15+ cards is the #1 scroll jank cause on this page.
     The visual result is nearly identical since the orbs are behind a fixed container. */
  background: linear-gradient(135deg, rgba(18, 8, 45, 0.85), rgba(5, 3, 24, 0.80));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  /* Only animate GPU-composited properties (no layout/paint triggers) */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(255, 33, 175, 0.25);
  transform: translateY(-3px);
}

.gradient-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #ff21af, #7d1cef, #00f0f1, #ff21af) 0 0 / 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-pan 6s linear infinite;
  display: inline-block;
}

/* Typography Defaults */
.font-heading {
  font-family: var(--font-heading);
}

.font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Floating Navbar */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.75rem 1.5rem;
}

.navbar {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.site-header.scrolled .navbar {
  background: rgba(8, 4, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(0, 240, 241, 0.4);
  background: rgba(0, 240, 241, 0.1);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 240, 241, 0.3);
  transition: transform 0.3s ease;
  letter-spacing: 0 !important;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.logo-link:hover .logo-badge {
  transform: rotate(6deg) scale(1.08);
}

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

.nav-link {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
  text-shadow: 0 0 8px rgba(255, 33, 175, 0.6);
}

.btn-contact-header {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255, 33, 175, 0.6);
  background: rgba(255, 33, 175, 0.12);
  color: var(--foreground);
  transition: all 0.25s ease;
}

.btn-contact-header:hover {
  background: rgba(255, 33, 175, 0.25);
  box-shadow: 0 0 16px rgba(255, 33, 175, 0.45);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset-inline: 1rem;
  top: 5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(8, 4, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  z-index: 45;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.mobile-menu.open {
  display: flex;
}

/* Main Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}

.hero-content {
  max-width: 58rem;
  margin-inline: auto;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
  background: rgba(23, 11, 55, 0.6);
  border: 1px solid var(--border);
}

.hero-badge svg {
  color: var(--accent);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

/* Hero letter animation — JS triggers opacity/blur/translateY to revealed state */
.hero-letter {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
  display: inline-block;
}

.hero-name-word {
  display: inline-block;
  margin-inline: 0.35rem;
  white-space: nowrap;
}

.hero-tech-stack {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(255, 33, 175, 0.6), 0 0 48px rgba(255, 33, 175, 0.25);
  transform: scale(1.03);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  background: rgba(8, 4, 32, 0.7);
  border: 1px solid rgba(0, 240, 241, 0.35);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 240, 241, 0.3);
  transform: scale(1.03);
}



/* Sections Styling */
.section-container {
  max-width: 68rem;
  margin-inline: auto;
  padding: 6.5rem 1.5rem;
  position: relative;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

/* Section Sobre */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.highlight-box {
  padding: 1.25rem;
  border-radius: 0.85rem;
  background: rgba(255, 33, 175, 0.06);
  border-left: 3px solid var(--primary);
  margin-top: 0.5rem;
  color: var(--foreground);
  font-size: 0.98rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0.4rem;
}

.stat-sub {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.15rem;
}

/* Timeline / Trajetória */
.timeline-wrap {
  position: relative;
  margin-top: 3.5rem;
}

.timeline-line {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1.25rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--electric-purple), var(--accent));
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 3.5rem;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  padding: 1.75rem;
  border-radius: 1.25rem;
  width: 100%;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.35rem;
  color: var(--foreground);
}

.timeline-subtitle {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 0.85rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tag-item {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(23, 11, 55, 0.6);
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.tag-item:hover {
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
  }

  .timeline-item.left {
    margin-right: auto;
    padding-right: 3rem;
    text-align: right;
  }

  .timeline-item.left .timeline-dot {
    left: auto;
    right: -3rem;
    transform: translateX(50%);
  }

  .timeline-item.left .tag-list {
    justify-content: flex-end;
  }

  .timeline-item.right {
    margin-left: auto;
    padding-left: 3rem;
    text-align: left;
  }

  .timeline-item.right .timeline-dot {
    left: -3rem;
    transform: translateX(-50%);
  }
}

/* Skills Arsenal */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 33, 175, 0.12);
  border: 1px solid rgba(255, 33, 175, 0.3);
  color: var(--primary);
}

.skill-cat-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(23, 11, 55, 0.7);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.skill-chip:hover {
  border-color: rgba(255, 33, 175, 0.5);
  background: rgba(255, 33, 175, 0.15);
  transform: translateY(-2px);
}

.skill-chip.primary-tech {
  border-color: rgba(0, 240, 241, 0.4);
  background: rgba(0, 240, 241, 0.08);
}

.skill-chip.primary-tech:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 240, 241, 0.3);
}

/* Projects / Cases */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Minimalist Tech Banner Headers for Project Cards */
.project-banner-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.banner-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
  pointer-events: none;
}

.banner-cloudflare {
  background: radial-gradient(circle at 70% 30%, rgba(0, 240, 241, 0.18), rgba(255, 33, 175, 0.1) 50%, rgba(5, 3, 24, 0.95));
}

.banner-backend {
  background: radial-gradient(circle at 70% 30%, rgba(125, 28, 239, 0.25), rgba(0, 240, 241, 0.08) 50%, rgba(5, 3, 24, 0.95));
}

.banner-frontend {
  background: radial-gradient(circle at 70% 30%, rgba(255, 33, 175, 0.22), rgba(125, 28, 239, 0.12) 50%, rgba(5, 3, 24, 0.95));
}

.banner-badge-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}

.tech-glow-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 32, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.tech-glow-icon.cyan {
  color: var(--cyan);
  border-color: rgba(0, 240, 241, 0.4);
  box-shadow: 0 0 20px rgba(0, 240, 241, 0.2);
}

.tech-glow-icon.purple {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.tech-glow-icon.pink {
  color: var(--neon-pink);
  border-color: rgba(255, 33, 175, 0.4);
  box-shadow: 0 0 20px rgba(255, 33, 175, 0.2);
}

.project-card:hover .tech-glow-icon {
  transform: scale(1.1) translateY(-2px);
}

.banner-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 2;
}

.banner-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(8, 4, 32, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.banner-pill.pill-cyan {
  border-color: rgba(0, 240, 241, 0.35);
  color: var(--cyan);
}

.banner-pill.pill-pink {
  border-color: rgba(255, 33, 175, 0.35);
  color: var(--neon-pink);
}

.banner-pill.pill-purple {
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.banner-pill.pill-code {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--muted-foreground);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(8, 4, 32, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  z-index: 3;
}

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

.project-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(158, 69, 177, 0.15);
}

.btn-project-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-project-detail:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(255, 33, 175, 0.6);
  transform: translateX(2px);
}

.btn-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--accent);
  transition: all 0.2s ease;
}

.btn-project-link:hover {
  text-shadow: 0 0 8px rgba(0, 240, 241, 0.6);
}

/* Conquistas / Diferenciais */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.achievement-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 33, 175, 0.1);
  border: 1px solid rgba(255, 33, 175, 0.35);
  color: var(--primary);
  transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon-box {
  background: rgba(255, 33, 175, 0.25);
  box-shadow: 0 0 16px rgba(255, 33, 175, 0.5);
  transform: scale(1.05);
}

.achievement-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Contact Section */
.contact-container {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.contact-subtitle {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.contact-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}

.contact-info-card {
  padding: 1.25rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-info-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 240, 241, 0.2);
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  word-break: break-all;
}

.copy-hint {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
  background: rgba(1, 1, 14, 0.6);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(23, 11, 55, 0.4);
  transition: all 0.25s ease;
}

.footer-social-link:hover {
  color: var(--accent);
  border-color: rgba(0, 240, 241, 0.4);
  background: rgba(0, 240, 241, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 241, 0.2);
  transform: translateY(-2px);
}

/* Modal Dialog */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 44rem;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.25rem;
  position: relative;
  padding: 2.25rem;
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(23, 11, 55, 0.7);
  border: 1px solid var(--border);
  color: var(--foreground);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  background: rgba(8, 4, 32, 0.95);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 0 24px rgba(0, 240, 241, 0.4);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll Animation Reveal Classes */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .btn-contact-header {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section-container {
    padding: 4.5rem 1.25rem;
  }

  .hero-section {
    padding: 6rem 1rem 3rem;
  }
}