/* ============================================
   SABRINA SILVA — PORTFÓLIO
   Paleta: preto profundo + gama vinho/bordô
   ============================================ */

:root {
  --bg-base:      #0A0A0F;
  --bg-alt:       #14101A;
  --wine-deep:    #5C1322;
  --wine:         #8B1E2F;
  --wine-light:   #C4495C;
  --rose:         #E8C4C9;
  --text-main:    #F5EDE8;
  --text-dim:     #B8ABA8;
  --border-dim:   rgba(232, 196, 201, 0.12);

  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }

/* ============ ESTRELAS LATERAIS ============ */
.stars-col {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  color: var(--wine);
  font-size: 18px;
  z-index: 50;
  opacity: 1;
  pointer-events: none;
}
.stars-col.left { left: 0; }
.stars-col.right { right: 0; }

@media (max-width: 768px) {
  .stars-col { display: none; }
}

/* ============ NAV ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 44px;
  right: 44px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 48px;
  background: linear-gradient(180deg, rgba(10,10,15,0.9) 0%, transparent 100%);
}

@media (max-width: 768px) {
  .navbar { left: 0; right: 0; }
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--wine-light); }

@media (max-width: 600px) {
  .nav-links { gap: 18px; }
  .navbar { padding: 18px 24px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.code-bg {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(232, 96, 116, 0.42);
  white-space: pre;
  padding: 40px;
  overflow: hidden;
  user-select: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.25) 0%, rgba(10,10,15,0.75) 70%, var(--bg-base) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(10,10,15,0.5) 0%, var(--bg-base) 88%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--wine-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brace { color: var(--wine); font-size: 1.2em; font-family: var(--font-display); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--text-main);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--wine-light);
}

.subtitle {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--rose);
  margin-bottom: 48px;
  height: 28px;
}

.subtitle .cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--wine-light);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink { 50% { opacity: 0; } }

.cta-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  display: inline-block;
}

.btn:focus-visible {
  outline: 2px solid var(--wine-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--wine);
  color: var(--text-main);
  border: 1px solid var(--wine);
}
.btn-primary:hover {
  background: var(--wine-light);
  border-color: var(--wine-light);
}

.btn-secondary {
  background: transparent;
  color: var(--rose);
  border: 1px solid var(--border-dim);
}
.btn-secondary:hover {
  border-color: var(--wine-light);
  color: var(--text-main);
}

/* ============ SECTIONS GENERAL ============ */
.section {
  padding: 88px 48px;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--wine-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 44px;
  color: var(--text-main);
}

@media (max-width: 600px) {
  .section { padding: 64px 24px; }
}

/* ============ SOBRE ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 28px;
  line-height: 1.25;
}

.about-text h2 em {
  font-style: italic;
  color: var(--wine-light);
}

.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.about-text strong { color: var(--text-main); font-weight: 600; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  border: 1px solid var(--border-dim);
  border-left: 2px solid var(--wine);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(139, 30, 47, 0.04);
}

.info-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine-light);
}

.info-card-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
}

.info-card-sub {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ STACK CAROUSEL ============ */
.carousel-wrap {
  overflow: hidden;
  position: relative;
  padding: 24px 0;
  margin-top: 16px;
}

.carousel-wrap::before,
.carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.carousel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-alt), transparent);
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.carousel-wrap:hover .carousel-track {
  animation-play-state: paused;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
  background: rgba(232, 196, 201, 0.02);
}

.tech-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============ PROJETOS ============ */
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-top: -16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--wine-light);
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--text-main);
}

.filter-tab:focus-visible {
  outline: 2px solid var(--wine-light);
  outline-offset: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  border: 1px solid var(--border-dim);
  padding: 32px;
  background: rgba(232, 196, 201, 0.02);
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  border-color: var(--wine);
  transform: translateY(-2px);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine-light);
  border: 1px solid var(--wine-deep);
  padding: 4px 10px;
  border-radius: 999px;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.project-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rose);
  background: rgba(139, 30, 47, 0.15);
  padding: 4px 10px;
  border-radius: 3px;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.project-link:hover {
  color: var(--wine-light);
  gap: 10px;
}

.project-link .arrow {
  transition: transform 0.2s ease;
}

/* ============ CONTATO ============ */
.contact-section {
  text-align: center;
}

.contact-section .section-label,
.contact-section .section-title {
  justify-content: center;
  display: flex;
  align-items: center;
}

.contact-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 48px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--border-dim);
  padding: 28px 40px;
  min-width: 140px;
  transition: all 0.25s ease;
}

.contact-btn:hover {
  border-color: var(--wine-light);
  background: rgba(139, 30, 47, 0.08);
  transform: translateY(-3px);
}

.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-icon-invert {
  filter: invert(1) brightness(1.4) sepia(1) saturate(4) hue-rotate(310deg);
}

.contact-btn span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 56px 24px 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--rose);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--wine-light);
}

.footer-dot {
  color: var(--wine);
}

.footer-brand {
  color: var(--text-dim);
}

.footer .brace { color: var(--wine); }