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

:root {
  --c1: #C2185B;
  --c2: #F48FB1;
  --c3: #F48FB1;
  --c4: #C2185B;
  --c5: #AD1457;
  --bg: #F9F9F9;
  --bg-nav: #F9F9F9ee;
  --bg-card: #FFFFFF;
  --bg-card2: #F4F4F4;
  --bg-contact: linear-gradient(135deg, #F0F0F0, #F9F9F9);
  --text-primary: #111111;
  --text-secondary: #444444;
  --text-muted: #888888;
  --border: #e0e0e0;
  --border-accent: #C2185B20;
  --dark: #F9F9F9;
  --card: #FFFFFF;
  --mono: 'Space Mono', monospace;
  --display: 'Syne', sans-serif;
  --transition-theme: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] {
  --bg: #0D0006;
  --bg-nav: #0D0006ee;
  --bg-card: #1A000D;
  --bg-card2: #140009;
  --bg-contact: linear-gradient(135deg, #2D0A1E40, #C2185B18);
  --text-primary: #F8F0F5;
  --text-secondary: #C9A0B0;
  --text-muted: #8A5570;
  --border: #2D0A1E;
  --border-accent: #C2185B35;
  --dark: #0D0006;
  --card: #1A000D;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
  font-family: var(--display);
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  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='1'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 999;
}

/* ─── NAV ─── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.5rem;
  border-bottom: 1px solid var(--border-accent);
  position: sticky;
  top: 0;
  background: var(--bg-nav);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  z-index: 100;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--c1), var(--c4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #333333;
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #000000; }

/* ─── HERO ─── */
.hero {
  padding: 6rem 2.5rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  animation: fadeUp 0.7s ease both;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C2185B12;
  border: 1px solid #C2185B30;
  border-radius: 99px;
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #F48FB1;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F48FB1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 #F48FB166; }
  50%      { opacity: 0.5; box-shadow: 0 0 0 5px #F48FB100; }
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

h1 .greeting {
  color: #555;
  display: block;
  font-size: 0.4em;
  font-weight: 400;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

h1 .name {
  display: block;
  background: linear-gradient(135deg, #2D0A1E 0%, #C2185B 45%, #F48FB1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1rem;
  color: #111111;
  max-width: 520px;
  line-height: 1.75;
  font-family: var(--mono);
  margin-bottom: 3rem;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  padding: 13px 30px;
  background: #C2185B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.82; transform: translateY(-2px); }

.btn-outline {
  padding: 13px 30px;
  background: transparent;
  color: #C2185B;
  border: 1px solid #C2185B40;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: #F8D7E3; color: #880033; }

/* ─── SKILLS ─── */
.skills-strip {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  transition: background 0.3s ease;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.skill-tag {
  padding: 7px 16px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.15s;
}
.skill-tag:hover { transform: translateY(-2px); }
.t1 { background: #C2185B18; color: var(--c1); border: 1px solid #C2185B35; }
.t2 { background: #AD145718; color: #F06292; border: 1px solid #AD145735; }
.t3 { background: #88003318; color: #F48FB1; border: 1px solid #88003335; }
.t4 { background: #C2185B18; color: #FCB8CF; border: 1px solid #C2185B35; }
.t5 { background: #F48FB118; color: #F8C8D8; border: 1px solid #F48FB135; }

/* ─── SECTION ─── */
.section {
  padding: 4rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #C2185B;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #C2185B40, transparent);
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}



.about-text p {
  color: #111111;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-text p span { color: var(--c1); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #C2185B, #F48FB1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #333333;
  margin-top: 4px;
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-card2);
  border: 1px solid var(--border-accent);
  transition: background 0.3s ease;
  border-radius: 14px;
  padding: 1.6rem;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
}
.project-card.p1::before { background: linear-gradient(90deg, #2D0A1E, #C2185B); }
.project-card.p2::before { background: linear-gradient(90deg, #C2185B, #F48FB1); }
.project-card.p3::before { background: linear-gradient(90deg, #F48FB1, #2D0A1E); }
.project-card:hover { border-color: #C2185B80; transform: translateY(-4px); }

.project-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 1rem;
}
.p1 .project-icon { background: #C2185B18; }
.p2 .project-icon { background: #AD145718; }
.p3 .project-icon { background: #88003318; }

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.project-card p {
  font-size: 0.82rem;
  color: #111111;
  line-height: 1.65;
  font-family: var(--mono);
  margin-bottom: 1.1rem;
}
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #333333;
  background: #C2185B08;
  border: 1px solid #C2185B20;
  padding: 3px 9px;
  border-radius: 4px;
}

/* ─── CONTACT ─── */
.contact-box {
  background: linear-gradient(135deg, #F3F3F3, #F9F9F9);
  border: 1px solid #C2185B30;
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
}
.contact-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}
.contact-box p {
  color: #111111;
  font-family: var(--mono);
  font-size: 0.84rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  background: var(--bg-card2);
  border: 1px solid var(--border-accent);
  transition: background 0.3s ease;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--c1);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.contact-link:hover { background: #C2185B18; color: #880033; transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 2.5rem;
  font-family: var(--mono);
  font-size: 0.73rem;
  color: #F8F0F5;
  background: #1A000D;
  border-top: 3px solid #C2185B;
  margin-top: 2rem;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #C2185B; border-radius: 99px; }

/* ─── ADMIN TRIGGER ─── */
#admin-trigger {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  vertical-align: middle;
  flex-shrink: 0;
  pointer-events: all;
}
#admin-trigger:hover {
  opacity: 1;
  background: #C2185B;
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── CONTACT FORM ─── */
.contact-form {
  margin-top: 2rem;
  border-top: 1px solid #C2185B20;
  padding-top: 2rem;
  text-align: left;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}


.contact-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.contact-form-group label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form-group input,
.contact-form-group textarea {
  padding: 11px 14px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus { border-color: #C2185B; }
.contact-form-group textarea { min-height: 110px; resize: vertical; }
.btn-send {
  padding: 12px 28px;
  background: #C2185B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.btn-send:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
#form-feedback {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  min-height: 1.2rem;
}
.feedback-success { color: #2e7d32; }
.feedback-error { color: #C2185B; }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-accent);
  border-radius: 99px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.theme-toggle:hover {
  background: #C2185B18;
  transform: rotate(20deg);
}

[data-theme="dark"] .contact-form-group input,
[data-theme="dark"] .contact-form-group textarea {
  background: #140009;
  color: #F8F0F5;
  border-color: #2D0A1E;
}
[data-theme="dark"] .contact-form-group input::placeholder,
[data-theme="dark"] .contact-form-group textarea::placeholder {
  color: #8A5570;
}
[data-theme="dark"] .contact-box {
  background: linear-gradient(135deg, #2D0A1E40, #C2185B18);
}
[data-theme="dark"] footer {
  background: #0D0006;
  color: #8A5570;
  border-top-color: #2D0A1E;
}
[data-theme="dark"] .contact-form {
  border-top-color: #2D0A1E;
}
[data-theme="dark"] .project-card h3 {
  color: #F8F0F5;
}
[data-theme="dark"] .contact-link {
  background: #1A000D;
  color: #F48FB1;
}
[data-theme="dark"] .section-label {
  color: #F48FB1;
}
[data-theme="dark"] .stat-card {
  background: #1A000D;
}

/* ─── DARK MODE GLOBAL FIX ─── */
[data-theme="dark"] body {
  color: #F8F0F5;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] a {
  color: #F8F0F5;
}
[data-theme="dark"] .hero-sub {
  color: #C9A0B0;
}
[data-theme="dark"] h1 .greeting {
  color: #8A5570;
}
[data-theme="dark"] .nav-links a {
  color: #8A5570;
}
[data-theme="dark"] .nav-links a:hover {
  color: #F8F0F5;
}
[data-theme="dark"] .about-text p {
  color: #C9A0B0;
}
[data-theme="dark"] .about-text p span {
  color: #F48FB1;
}
[data-theme="dark"] .project-card p {
  color: #8A5570;
}
[data-theme="dark"] .project-tags span {
  color: #8A5570;
  background: #2D0A1E;
  border-color: #3D1A2E;
}
[data-theme="dark"] .skill-tag {
  color: #F48FB1;
  background: #2D0A1E;
  border-color: #C2185B35;
}
[data-theme="dark"] .contact-box p {
  color: #C9A0B0;
}
[data-theme="dark"] .contact-box h2 {
  color: #F8F0F5;
}
[data-theme="dark"] .nav-email {
  color: #8A5570;
}
[data-theme="dark"] .project-num {
  color: #8A5570;
}
[data-theme="dark"] .message-date {
  color: #8A5570;
}
[data-theme="dark"] nav {
  background: #0D0006ee;
  border-bottom-color: #2D0A1E;
}
[data-theme="dark"] .nav-hamburger span { background: #F8F0F5; }
[data-theme="dark"] .nav-hamburger { border-color: #2D0A1E; }
[data-theme="dark"] .skills-strip {
  background: transparent;
}

/* ─── DARK MODE TEXT BRIGHTNESS FIX ─── */
[data-theme="dark"] body,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li {
  color: #F0E0E8;
}
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .about-text p,
[data-theme="dark"] .contact-box p,
[data-theme="dark"] .project-card p {
  color: #D4AABB;
}
[data-theme="dark"] h1 .greeting,
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .project-num,
[data-theme="dark"] .project-tags span,
[data-theme="dark"] .message-date {
  color: #B07888;
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .about-text p span,
[data-theme="dark"] .contact-box h2,
[data-theme="dark"] .project-card h3 {
  color: #FADADD;
}
[data-theme="dark"] .skill-tag {
  color: #F4B8CC;
  background: #2D0A1E;
  border-color: #C2185B40;
}

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 200;
  transition: background 0.2s;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-hamburger:hover { background: #C2185B15; }

/* ─── RESPONSIVIDADE ─── */

/* Tablet largo (900px) */
@media (max-width: 960px) {
  .hero, .section, .skills-strip {
    max-width: 100%;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalogo-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Tablet (768px) */
@media (max-width: 768px) {

  /* Nav — hambúrguer */
  nav { padding: 1rem 1.25rem; position: relative; }
  .logo { font-size: 1rem; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 1.25rem;
    left: 1.25rem;
    background: var(--bg-nav);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 1rem;
    gap: 0.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(194,24,91,0.12);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.2s;
    color: var(--text-primary);
  }
  .nav-links a:hover { background: #C2185B15; color: var(--c1); }
  .nav-links li:last-child { padding-top: 0.5rem; border-top: 1px solid var(--border-accent); margin-top: 0.25rem; }
  .theme-toggle { width: 100%; border-radius: 8px; }

  /* Hero */
  .hero { padding: 3rem 1.25rem 2.5rem; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); letter-spacing: -0.03em; }
  .hero-sub { font-size: 0.88rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 13px 20px; }

  /* Skills */
  .skills-strip { padding: 1.5rem 1.25rem; gap: 8px; }
  .skill-tag { font-size: 0.7rem; padding: 5px 12px; }

  /* Sections */
  .section { padding: 2.5rem 1.25rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-num { font-size: 1.6rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card { padding: 1.25rem; }

  /* Design */
  .design-grid { grid-template-columns: 1fr; }

  /* Empresa */
  .empresa-box { flex-direction: column; gap: 1.25rem; }
  .empresa-logo-placeholder { width: 72px; height: 72px; font-size: 2.2rem; }
  .empresa-links { gap: 6px; }
  .empresa-social-link { font-size: 0.7rem; padding: 6px 12px; }

  /* Catálogo */
  .catalogo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

  /* Contact */
  .contact-box { padding: 2rem 1.25rem; border-radius: 14px; }
  .contact-box h2 { font-size: 1.5rem; }
  .contact-links { flex-direction: column; gap: 10px; }
  .contact-link { justify-content: center; width: 100%; }
  .contact-form-row { grid-template-columns: 1fr; }
  .btn-send { width: 100%; text-align: center; }

  /* Footer */
  footer { padding: 1.75rem 1.25rem; font-size: 0.68rem; }

  /* Modal */
  .modal-box { max-height: 95vh; border-radius: 14px; }
  .modal-content { padding: 1.25rem; }
  .modal-images img { max-height: 180px; }
  #cat-modal .modal-box { max-width: 98vw; }
  .cat-modal-imgs { grid-template-columns: 1fr; }
  .cat-compare { grid-template-columns: 1fr; }
}

/* Mobile médio (480px) */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .badge { font-size: 0.68rem; padding: 6px 12px; }
  .section { padding: 2rem 1rem; }
  .skills-strip { padding: 1.25rem 1rem; }
  .about-text p { font-size: 0.82rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .catalogo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .empresa-social-link span { display: none; }
  .empresa-social-link { padding: 8px 10px; }
  .contact-box { padding: 1.75rem 1rem; }
  .contact-box h2 { font-size: 1.3rem; }
  .modal-content { padding: 1rem; }
  .modal-header h2 { font-size: 1.1rem; }
}

/* Mobile pequeno (400px) */
@media (max-width: 400px) {
  h1 { font-size: 2rem; }
  .catalogo-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.4rem; }
  .section-label { font-size: 0.65rem; }
  .empresa-badges span { font-size: 0.62rem; padding: 2px 8px; }
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 0, 6, 0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.modal-close:hover { background: #C2185B; color: #fff; border-color: #C2185B; }

/* Imagens - Carrossel */
.modal-images {
  width: 100%;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #000;
  position: relative;
}
.modal-images img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  background: #0D0006;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,0,6,0.6);
  border: 1px solid #C2185B40;
  color: #F48FB1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
}
.carousel-btn:hover { background: #C2185B; color: #fff; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffffff50;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: #F48FB1; }

/* Conteúdo */
.modal-content { padding: 1.75rem; }

/* Topo: ícone + título + período */
.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.modal-icon {
  font-size: 2.2rem;
  width: 52px; height: 52px;
  background: #C2185B12;
  border: 1px solid #C2185B25;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-header-text { flex: 1; }
.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.modal-period {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
}

/* Descrição */
.modal-description {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* Seção tecnologias */
.modal-section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.modal-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.modal-tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #C2185B;
  background: #C2185B10;
  border: 1px solid #C2185B30;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Ações */
.modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.project-card { cursor: pointer; }

/* Dark mode modal */
[data-theme="dark"] .modal-box { background: #1A000D; border-color: #C2185B35; }
[data-theme="dark"] .modal-close { background: #2D0A1E; color: #F48FB1; }
[data-theme="dark"] .modal-period { background: #2D0A1E; border-color: #3D1A2E; color: #B07888; }
[data-theme="dark"] .modal-description { color: #D4AABB; }
[data-theme="dark"] .modal-header h2 { color: #FADADD; }
[data-theme="dark"] .modal-header { border-bottom-color: #2D0A1E; }
[data-theme="dark"] .modal-actions { border-top-color: #2D0A1E; }
[data-theme="dark"] .modal-section-label { color: #8A5570; }
[data-theme="dark"] .modal-icon { background: #2D0A1E; border-color: #C2185B35; }




/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  cursor: default;
}
.lightbox.open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: #C2185B; }
.modal-images img { cursor: zoom-in; }

/* ─── DESIGN SECTION ─── */
.design-intro {
  margin-bottom: 2rem;
}
.design-intro p {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
}
.design-intro p span { color: var(--c1); }

.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.design-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 1.6rem;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.design-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #2D0A1E, #C2185B, #F48FB1);
}
.design-card:hover {
  border-color: #C2185B60;
  transform: translateY(-4px);
}
.design-card-icon {
  font-size: 1.8rem;
  width: 48px; height: 48px;
  background: #C2185B10;
  border: 1px solid #C2185B20;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.design-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.design-card p {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.design-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.design-tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #C2185B;
  background: #C2185B10;
  border: 1px solid #C2185B25;
  padding: 3px 9px;
  border-radius: 4px;
}

[data-theme="dark"] .design-card {
  background: var(--bg-card);
}
[data-theme="dark"] .design-card h3 { color: #FADADD; }
[data-theme="dark"] .design-card p { color: #D4AABB; }




/* ─── EMPRESA BOX ─── */
.empresa-box {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.empresa-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #2D0A1E, #C2185B, #F48FB1);
}
.empresa-logo-placeholder {
  font-size: 3rem;
  width: 88px;
  height: 88px;
  background: var(--bg-card2);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(194,24,91,0.08);
}
.empresa-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  padding: 6px;
}
.empresa-nome {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.empresa-desc {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.empresa-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.empresa-badges span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #C2185B;
  background: #C2185B10;
  border: 1px solid #C2185B25;
  padding: 3px 10px;
  border-radius: 4px;
}
.empresa-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.empresa-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c1);
  background: #C2185B0D;
  border: 1px solid #C2185B30;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}
.empresa-social-link:hover {
  background: #C2185B;
  color: #fff;
  border-color: #C2185B;
  transform: translateY(-2px);
}
.empresa-social-link svg { flex-shrink: 0; }

/* ─── CATÁLOGO TABS ─── */
.catalogo-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.cat-tab {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.cat-tab:hover { border-color: #C2185B; color: #C2185B; }
.cat-tab.active { background: #C2185B; color: #fff; border-color: #C2185B; }

/* ─── CATÁLOGO GRID ─── */

.cat-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.cat-item:hover { transform: scale(1.02); border-color: #C2185B60; }
.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,0,6,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cat-item:hover .cat-overlay { opacity: 1; }
.cat-overlay span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #F48FB1;
  background: #0D000680;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid #C2185B40;
}
.cat-item.hidden { display: none; }
.catalogo-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* dark mode */
[data-theme="dark"] .empresa-box { background: #1A000D; }
[data-theme="dark"] .empresa-nome { color: #FADADD; }
[data-theme="dark"] .empresa-desc { color: #D4AABB; }
[data-theme="dark"] .empresa-logo-placeholder { background: #2D0A1E; border-color: #C2185B35; }
[data-theme="dark"] .empresa-social-link { background: #2D0A1E; color: #F48FB1; border-color: #C2185B40; }
[data-theme="dark"] .empresa-social-link:hover { background: #C2185B; color: #fff; }



@media (max-width: 400px) {
  
}

/* ─── CATÁLOGO NOVO ─── */

.cat-card:hover {
  transform: translateY(-4px);
  border-color: #C2185B60;
  box-shadow: 0 8px 24px rgba(194,24,91,0.1);
}


.cat-card:hover 
.cat-card-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-muted);
}
.cat-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #fff;
  background: #C2185B;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  z-index: 2;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card-info {
  padding: 1rem;
}
.cat-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cat-card-info p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal catálogo antes/depois */
.cat-antes-depois {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}
.cat-ad-block, .cat-anuncio-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}
.cat-ad-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cat-ad-block img, .cat-anuncio-block img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.cat-ad-block img:hover, .cat-anuncio-block img:hover { transform: scale(1.01); }
.cat-modal-images { margin-top: 0.5rem; }

[data-theme="dark"] 

/* ─── CATÁLOGO CARDS ─── */


.cat-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #C2185B60;
  box-shadow: 0 12px 32px rgba(194, 24, 91, 0.15);
}


.cat-card:hover 
.cat-card-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #C2185B40;
}

.cat-card-info {
  padding: 1rem 1.1rem;
}
.cat-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.cat-card-info p {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.cat-card-icons {
  display: flex;
  gap: 6px;
  font-size: 0.7rem;
  color: #C2185B;
  font-family: var(--mono);
}

/* ─── MODAL CATÁLOGO IMAGENS ─── */
.cat-antes-depois {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 1rem;
}
.cat-img-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-img-col img {
  width: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  object-fit: cover;
  max-height: 200px;
  border: 1px solid var(--border);
  transition: opacity 0.2s;
}
.cat-img-col img:hover { opacity: 0.85; }
.cat-img-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #C2185B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.cat-img-divider {
  font-size: 1.5rem;
  color: #C2185B;
  flex-shrink: 0;
}
.cat-img-single {
  width: 100%;
  border-radius: 10px;
  cursor: zoom-in;
  object-fit: cover;
  max-height: 260px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  display: block;
}
.cat-anuncio-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #C2185B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 0.5rem;
}

[data-theme="dark"] 
@media (max-width: 400px) {
  
}

/* ─── CATÁLOGO CARDS ─── */

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  gap: 12px;
}

.cat-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #C2185B60;
  box-shadow: 0 12px 32px rgba(194, 24, 91, 0.15);
}
.cat-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-card2);
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cat-card:hover .cat-card-img img { transform: scale(1.08); }
.cat-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  color: #C2185B40;
}

.cat-card-body {
  padding: 1.1rem 1.25rem;
}
.cat-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.cat-card-body p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.cat-card-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #C2185B;
  letter-spacing: 0.03em;
}

/* ─── MODAL CATÁLOGO IMAGENS ─── */
.cat-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}
.cat-compare-item, .cat-anuncio { display: flex; flex-direction: column; gap: 6px; }
.cat-compare-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cat-compare-item img, .cat-anuncio img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  cursor: zoom-in;
  border: 1px solid var(--border);
  transition: opacity 0.2s;
}
.cat-compare-item img:hover, .cat-anuncio img:hover { opacity: 0.9; }
.cat-anuncio { margin-top: 0.5rem; }

[data-theme="dark"] .cat-card { background: #1A000D; }
[data-theme="dark"] .cat-card-body h3 { color: #FADADD; }
[data-theme="dark"] .cat-card-body p { color: #D4AABB; }

@media (max-width: 768px) {
  #cat-modal .modal-box { max-width: 98vw; }
  .cat-modal-imgs { grid-template-columns: 1fr; }
}

/* ─── E-COMMERCE LINKS ─── */
.cat-ecommerce-links {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.cat-ecommerce-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.cat-ecommerce-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-ecommerce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.cat-ecommerce-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.cat-ecommerce-btn svg { flex-shrink: 0; }