:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: rgba(255,255,255,0.07);
  --text: #e8e4de;
  --muted: #6b6b6b;
  --accent: #c8f04d;
  --accent2: #ff6b35;
  --accent3: #7b5ea7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(200,240,77,0.7), 0 0 30px rgba(200,240,77,0.25);
  top: -20px; left: -20px;
  transition: none;
}
.cursor-trail {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(200,240,77,0.6);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  top: -20px; left: -20px;
  transition: none;
}

/* Cursor preto sobre fundo verde - Portfolio */
.cursor.black {
  background: #111;
  box-shadow: none;
  mix-blend-mode: normal;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  cursor: none;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #0a0a0a !important;
  padding: 10px 20px;
  font-weight: 400;
  transition: transform 0.2s, background 0.2s !important;
  cursor: none;
}
.nav-cta:hover { background: var(--text) !important; transform: translateY(-1px); }

/* HERO PHOTO */
.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 50vw;
  object-fit: cover;
  object-position: top;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 60%, transparent 100%),
              linear-gradient(to top, transparent 0%, black 15%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.85) 55%, transparent 100%);
  opacity: 0;
  animation: fadeIn 1.2s ease 0.6s forwards;
  pointer-events: none;
  filter: grayscale(20%) contrast(1.05);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(200,240,77,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,240,77,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

.hero-badge {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-badge::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title .line2 {
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,228,222,0.3);
  display: block;
}
.hero-title .accent-word { color: var(--accent); }

.hero-desc {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.5;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  padding: 16px 32px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--text); transform: translateY(-2px); }

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 16px 32px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.5s ease infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; }
}

.hero-stats {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}
.hero-stat {
  text-align: right;
}
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent); 
  line-height: 1;
}
.hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: white;
  text-transform: uppercase;
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* MARQUEE */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.marquee-dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SECTIONS */
section { padding: 120px 48px; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: 48px 40px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  cursor: none;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before { transform: translateY(0); }
.service-card:hover .service-num,
.service-card:hover .service-name,
.service-card:hover .service-desc,
.service-card:hover .service-tags span { color: #0a0a0a !important; border-color: rgba(10,10,10,0.2) !important; }

.service-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.service-icon {
  font-size: 40px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-icon i { font-size: inherit; line-height: 1; }

.service-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
  line-height: 1.1;
}

.service-desc {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.service-tags span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 4px 10px;
  color: var(--muted);
  transition: all 0.3s;
}

/* ABOUT */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-photo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  filter: grayscale(15%);
  transition: filter 0.3s, transform 0.3s;
  cursor: none;
}
.about-photo-img:hover { filter: grayscale(0%); transform: scale(1.02); }
.about-photo-img.landscape {
  aspect-ratio: 4/3;
  grid-column: span 2;
  object-position: center 20%;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px;
  position: relative;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  right: 8px; bottom: 8px;
  border: 1px solid var(--accent);
  z-index: -1;
}

.about-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 24px;
}

.about-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.about-role {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-bio {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}

.about-links {
  display: flex;
  gap: 12px;
}
.about-link {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  transition: all 0.2s;
  cursor: none;
}
.about-link:hover { border-color: var(--accent); color: var(--accent); }

.about-text h2 { margin-bottom: 32px; }

.about-text p {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}

.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.skill-item i {
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

/* PORTFOLIO PREVIEW */
.portfolio-preview {
  background: var(--surface);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.portfolio-item {
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: none;
  transition: border-color 0.3s;
}
.portfolio-item:hover { border-color: var(--accent); }

.portfolio-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.portfolio-thumb i { font-size: inherit; line-height: 1; }

.portfolio-thumb-1 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.portfolio-thumb-2 { background: linear-gradient(135deg, #0d1117, #1c1c3a); }
.portfolio-thumb-3 { background: linear-gradient(135deg, #0a1628, #1a3a5c); }

.portfolio-info {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.portfolio-cat {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.portfolio-tags span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,240,77,0.06) 0%, transparent 70%);
}

.cta-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 40px;
  position: relative;
}

.cta-subtitle {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 48px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
}
.footer-brand span { color: var(--accent); }

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.footer-copy i { margin-right: 6px; vertical-align: middle; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
  cursor: none;
}
.footer-links a:hover { color: var(--accent); }

/* Page transitions */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 9000;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Portfolio page styles */
.portfolio-hero {
  padding: 160px 48px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.hero-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.portfolio-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(56px, 8vw, 120px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.9; margin-bottom: 32px; }
.portfolio-hero p { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px; color: var(--muted); max-width: 600px; line-height: 1.6; }

.tabs-section {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex;
  gap: 0;
}

.tab {
  padding: 20px 32px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: none;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab:hover { color: var(--text); }
.tab.active-design { color: var(--design-accent); border-color: var(--design-accent); }
.tab.active-auto { color: var(--auto-accent); border-color: var(--auto-accent); }
.tab.active-dev { color: var(--dev-accent); border-color: var(--dev-accent); }

.category-section {
  padding: 80px 48px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.cat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
}

.cat-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; --design-accent: #ff6b35; --auto-accent: #c8f04d; --dev-accent: #7b8cff; }
.cat-title { font-family: 'Syne', sans-serif; font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.cat-desc { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 16px; color: var(--muted); max-width: 320px; text-align: right; line-height: 1.6; }

#design { background: #0a0a0a; }
#design .cat-label { color: var(--design-accent); }
#design .cat-title em { color: var(--design-accent); font-style: normal; }

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.design-card {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  cursor: none;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.design-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 45%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.design-card:hover::after {
  opacity: 0.85;
}

.design-card-media {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.design-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.design-carousel img {
  filter: grayscale(20%) contrast(1.1) !important;
}
.design-card-media.scroll img {
  height: 100%;
  object-position: top center;
  animation: designCardScroll 18s linear infinite alternate;
}
.design-card:hover .design-card-media img {
  transform: scale(1.06);
  opacity: 0.6;
}
@keyframes designCardScroll {
  0% { object-position: top center; }
  100% { object-position: bottom center; }
}

.youtube-card {
  margin-top: 24px;
  background: #0f0808;
  padding: 0;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.youtube-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,8,8,0.95) 0%, rgba(15,8,8,0.85) 20%, rgba(15,8,8,0.65) 45%, transparent 100%);
  pointer-events: none;
}
.youtube-card-body { position: relative; z-index: 1; padding: 40px; }
.youtube-card-media {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.youtube-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,8,8,0.95) 0%, rgba(15,8,8,0.85) 35%, rgba(15,8,8,0.5) 65%, transparent 90%);
  pointer-events: none;
}

.design-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  filter: blur(20px);
  color: var(--design-accent);
  z-index: 0;
}
.design-card:hover .design-bg { opacity: 0.3; transform: scale(1.1); }
.design-bg i { font-size: inherit; line-height: 1; }

.design-card-inner { position: relative; z-index: 2; }
.design-card-cat { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--design-accent); margin-bottom: 8px; }
.design-card-name { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.design-card-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }
.design-card.carousel-card .design-bg { display: none; }
.design-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
}
.design-carousel .design-slide,
.design-carousel .design-slide img { pointer-events: none; }
.design-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.design-slide img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(25%);
  transition: filter 0.3s ease;
}
.design-slide.active { opacity: 1; }
.design-slide.active img { filter: grayscale(5%); }

.design-gallery-section {
  display: none;
  margin-top: 48px;
  padding: 40px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--design-accent);
  background: #111;
}
.design-gallery-section.active { display: block; }
.design-gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.design-gallery-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--design-accent);
  margin-bottom: 6px;
}
.design-gallery-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.design-gallery-hint {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.6;
  text-align: right;
}
.design-gallery-grid {
  --gallery-columns: 3;
  --gallery-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gallery-gap);
}
.design-gallery-grid img {
  flex: 0 0 calc((100% - (var(--gallery-columns) - 1) * var(--gallery-gap)) / var(--gallery-columns));
  max-width: calc((100% - (var(--gallery-columns) - 1) * var(--gallery-gap)) / var(--gallery-columns));
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
@media (max-width: 1100px) {
  .design-gallery-grid { --gallery-columns: 2; }
}
@media (max-width: 640px) {
  .design-gallery-grid { --gallery-columns: 1; }
}

.design-featured {
  grid-column: span 3;
  aspect-ratio: auto;
  min-height: clamp(360px, 45vw, 500px);
}

#automacao { background: #070a04; }
#automacao .cat-label { color: var(--auto-accent); }
#automacao .cat-title em { color: var(--auto-accent); font-style: normal; }

.auto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.auto-card {
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .hero { padding: 120px 24px 60px; }
  .hero-stats { display: none; }
  .hero-scroll { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .design-grid { grid-template-columns: 1fr; }
  .category-section { padding: 60px 24px 40px; }
  .about-section { gap: 40px; }
}

:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --border: rgba(255,255,255,0.07);
    --text: #e8e4de;
    --muted: #6b6b6b;
    --accent: #c8f04d;
    --accent2: #ff6b35;
    --accent3: #7b5ea7;
    
    /* Per-section overrides */
    --design-accent: #ff6b35;
    --auto-accent: #c8f04d;
    --dev-accent: #7b8cff;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Mono', monospace;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
  }

  /* CURSOR */
  .cursor {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(200,240,77,0.7), 0 0 30px rgba(200,240,77,0.25);
    top: -20px; left: -20px;
    transition: width 0.15s ease, height 0.15s ease;
  }
  .cursor-trail {
    width: 32px; height: 32px;
    border: 1.5px solid rgba(200,240,77,0.6);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    top: -20px; left: -20px;
    opacity: 0.6;
  }
  /* PAGE TRANSITION */
  .page-transition {
    position: fixed;
    inset: 0;
    background: var(--accent);
    z-index: 9000;
    transform: translateY(-100%);
    pointer-events: none;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 24px 48px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,10,0.85); backdrop-filter: blur(20px);
  }
  .nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; cursor: none; }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 40px; list-style: none; }
  .nav-links a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; cursor: none; }
  .nav-links a:hover, .nav-links a.active { color: var(--accent); }
  .nav-cta { background: var(--accent); color: #0a0a0a !important; padding: 10px 20px; }
  .nav-cta:hover { background: var(--text) !important; }

  /* HERO */
  .portfolio-hero {
    padding: 160px 48px 80px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  .hero-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
  .hero-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
  .portfolio-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(56px, 8vw, 120px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.9; margin-bottom: 32px; }
  .portfolio-hero p { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px; color: var(--muted); max-width: 600px; line-height: 1.6; }

  /* TABS */
  .tabs-section {
    position: sticky;
    top: 72px;
    z-index: 50;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 48px;
    display: flex;
    gap: 0;
  }

  .tab {
    padding: 20px 32px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: none;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .tab:hover { color: var(--text); }
  .tab.active-design { color: var(--design-accent); border-color: var(--design-accent); }
  .tab.active-auto { color: var(--auto-accent); border-color: var(--auto-accent); }
  .tab.active-dev { color: var(--dev-accent); border-color: var(--dev-accent); }

  /* SECTION HEADERS */
  .category-section {
    padding: 80px 48px 60px;
    border-bottom: 1px solid var(--border);
    position: relative;
  }

  .cat-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 64px;
  }

  .cat-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
  .cat-title { font-family: 'Syne', sans-serif; font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
  .cat-desc { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 16px; color: var(--muted); max-width: 320px; text-align: right; line-height: 1.6; }

  /* DESIGN SECTION */
  #design { background: #0a0a0a; }
  #design .cat-label { color: var(--design-accent); }
  #design .cat-title em { color: var(--design-accent); font-style: normal; }

  .design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .design-card {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    cursor: none;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
  }

  .design-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    filter: blur(20px);
  }
  .design-card:hover .design-bg { opacity: 0.3; transform: scale(1.1); }

  .design-card-inner { position: relative; z-index: 3; }
  .design-card-cat { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--design-accent); margin-bottom: 8px; }
  .design-card-name { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
  .design-card-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

  .design-featured {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }

  /* AUTOMACAO SECTION */
  #automacao { background: #070a04; }
  #automacao .cat-label { color: var(--auto-accent); }
  #automacao .cat-title em { color: var(--auto-accent); font-style: normal; }

  .auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .auto-card {
    border: 1px solid var(--border);
    padding: 40px;
    position: relative;
    overflow: hidden;
    cursor: none;
    transition: border-color 0.3s;
    background: #080a05;
  }
  .auto-card:hover { border-color: var(--auto-accent); }

  .auto-card-glow {
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--auto-accent);
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.3s;
  }
  .auto-card:hover .auto-card-glow { opacity: 0.1; }

  .auto-num { font-size: 10px; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 32px; }
  .auto-icon { font-size: 32px; margin-bottom: 16px; }
  .auto-name { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.1; }
  .auto-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
  .auto-stack { display: flex; flex-wrap: wrap; gap: 6px; }
  .auto-stack span { font-size: 10px; color: var(--auto-accent); border: 1px solid rgba(200,240,77,0.2); padding: 4px 10px; letter-spacing: 0.05em; }

  .auto-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 48px;
    background: #080a05;
    border: 1px solid rgba(200,240,77,0.2);
  }

  .auto-featured-visual {
    background: #0d1a00;
    border: 1px solid rgba(200,240,77,0.1);
    padding: 32px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--auto-accent);
    line-height: 2;
    position: relative;
    overflow: hidden;
  }
  .auto-code-line { opacity: 0.7; }
  .auto-code-line .kw { color: #c678dd; }
  .auto-code-line .str { color: #98c379; }
  .auto-code-line .num { color: #d19a66; }
  .auto-code-cursor { display: inline-block; width: 8px; height: 14px; background: var(--auto-accent); vertical-align: middle; animation: blink 1s infinite; }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  /* DEV SECTION */
  #dev { background: #05050f; }
  #dev .cat-label { color: var(--dev-accent); }
  #dev .cat-title em { color: var(--dev-accent); font-style: normal; }

  .dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .dev-card {
    background: #07071a;
    border: 1px solid rgba(123,140,255,0.1);
    padding: 36px;
    cursor: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .dev-card:hover { border-color: var(--dev-accent); transform: translateY(-4px); }
  .dev-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--dev-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .dev-card:hover::before { opacity: 1; }

  .dev-icon { font-size: 28px; margin-bottom: 20px; }
  .dev-name { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
  .dev-desc { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
  .dev-link { font-size: 11px; letter-spacing: 0.08em; color: var(--dev-accent); text-decoration: none; text-transform: uppercase; display: flex; align-items: center; gap: 6px; cursor: none; }
  .dev-link:hover { text-decoration: underline; }
  .dev-link::after { content: '→'; }

  .dev-stack-row {
    margin-top: 48px;
    padding: 40px;
    background: #07071a;
    border: 1px solid rgba(123,140,255,0.1);
  }
  .dev-stack-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 32px; }
  .dev-stack-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .dev-stack-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 12px 16px;
  }
  .dev-stack-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dev-accent); flex-shrink: 0; }

  /* INFRA SECTION */
  .infra-section {
    padding: 80px 48px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .infra-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 48px;
  }
  .infra-item {
    background: var(--surface);
    padding: 32px 24px;
    text-align: center;
    transition: background 0.2s;
    cursor: none;
  }
  .infra-item:hover { background: #1a1a1a; }
  .infra-icon { font-size: 32px; margin-bottom: 12px; }
  .infra-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
  .infra-desc { font-size: 11px; color: var(--muted); line-height: 1.6; }

  /* CTA */
  .portfolio-cta {
    padding: 120px 48px;
    text-align: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
  }
  .cta-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(200,240,77,0.04) 0%, transparent 70%); }
  .portfolio-cta h2 { font-family: 'Syne', sans-serif; font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 32px; position: relative; }
  .portfolio-cta p { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px; color: var(--muted); margin-bottom: 48px; position: relative; }
  .cta-btns { display: flex; gap: 16px; justify-content: center; position: relative; }
  .btn-primary { background: var(--accent); color: #0a0a0a; padding: 16px 32px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; cursor: none; display: inline-block; }
  .btn-primary:hover { background: var(--text); transform: translateY(-2px); }
  .btn-secondary { border: 1px solid var(--border); color: var(--muted); padding: 16px 32px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; cursor: none; display: inline-block; }
  .btn-secondary:hover { border-color: var(--text); color: var(--text); }

  footer {
    border-top: 1px solid var(--border);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px; }
  .footer-brand span { color: var(--accent); }
  .footer-copy { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
  .footer-links { display: flex; gap: 24px; list-style: none; }
  .footer-links a { font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; transition: color 0.2s; cursor: none; }
  .footer-links a:hover { color: var(--accent); }

  @media (max-width: 768px) {
    nav { padding: 20px 24px; }
    .nav-links { display: none; }
    .portfolio-hero, .category-section, .infra-section { padding: 80px 24px 60px; }
    .tabs-section { padding: 0 24px; overflow-x: auto; }
    .portfolio-cta { padding: 80px 24px; }
    .design-grid, .auto-grid, .dev-grid, .infra-grid, .dev-stack-list { grid-template-columns: 1fr; }
    .design-featured { grid-column: span 1; }
    .auto-featured { grid-column: span 1; grid-template-columns: 1fr; }
    .cat-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cat-desc { text-align: left; }
    footer { flex-direction: column; gap: 24px; text-align: center; }
  }
