/* ============================================================
   SUPERNOVA.TI — Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ---- TOKENS ---- */
:root {
  --accent:       #5c52d5;
  --accent-light: #7b72e3;
  --accent-dim:   rgba(92, 82, 213, 0.1);
  --accent-dim2:  rgba(92, 82, 213, 0.18);

  /* Light mode */
  --bg:           #fafafa;
  --bg-card:      #ffffff;
  --bg-subtle:    #f2f2f7;
  --border:       #e4e4ef;
  --text:         #111118;
  --text-muted:   #6b6b80;
  --text-faint:   #a0a0b8;
  --nav-bg:       rgba(250,250,250,0.88);
  --shadow:       0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(92,82,213,0.12);
}

[data-theme="dark"] {
  --bg:           #080d1a;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-subtle:    rgba(255,255,255,0.05);
  --border:       rgba(255,255,255,0.08);
  --text:         #eeeef5;
  --text-muted:   #8888a8;
  --text-faint:   #555570;
  --nav-bg:       rgba(8,13,26,0.85);
  --shadow:       0 2px 16px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 32px rgba(92,82,213,0.2);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* Stars canvas (dark mode only) */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
[data-theme="dark"] #stars-canvas { opacity: 1; }

/* Everything above the canvas */
body > *:not(#stars-canvas) { position: relative; z-index: 1; }

/* Fix: nav must stay fixed regardless of the rule above */
nav {
  position: fixed !important;
  z-index: 100 !important;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

/* ---- SECTION LABEL ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 3.5rem;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  color: var(--text-muted);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92,82,213,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim2);
}
.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dim2);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 440px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 340px;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-stat {
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 1rem;
  transition: background 0.35s ease;
}

.hero-stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ---- DIVIDER ---- */
.section-divider {
  height: 1px;
  background: var(--border);
  transition: background 0.35s ease;
}

/* ---- SERVICES ---- */
#servicos { background: var(--bg-subtle); transition: background 0.35s ease; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.25s ease;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.project-card.featured {
  border-color: var(--accent-dim2);
}

.project-thumb {
  height: 210px;
  background: linear-gradient(135deg, var(--accent-dim) 0%, rgba(92,82,213,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-thumb-icon {
  font-size: 2.5rem;
  opacity: 0.35;
}

/* Overlay label on thumb */
.project-thumb-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-thumb-label { opacity: 1; }

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.2rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.tech-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Sora', sans-serif;
}

/* ---- ABOUT ---- */
#sobre { background: var(--bg-subtle); transition: background 0.35s ease; }

.about-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 780px;
}

.about-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.about-photo {
  width: 120px; height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-faint);
}

.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.about-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.about-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.about-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.about-content p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-highlights li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-highlights li::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- CONTACT ---- */
#contato {}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover { color: var(--accent); }

.contact-link-icon {
  width: 32px; height: 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.contact-link:hover .contact-link-icon {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,82,213,0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select option { background: var(--bg); }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  transition: border-color 0.35s ease;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---- PORTFOLIO TABS ---- */
.portfolio-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.3rem;
  width: fit-content;
  margin-bottom: 2.5rem;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.portfolio-tab {
  background: none;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.portfolio-tab.active {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.portfolio-tab:hover:not(.active) {
  color: var(--text);
}

.portfolio-panel { display: none; }
.portfolio-panel.active { display: block; }

.concepts-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  font-style: italic;
}


.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- MOBILE ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    z-index: 99;
  }

  .projects-grid{
    width: 100%;
    display: flex;
    flex-wrap: wrap;

  }

  .nav-links.open { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.4rem; }

  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo-wrap { flex-direction: row; align-items: center; }

  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  section { padding: 4rem 0; }
}
