.project-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-light);
}

*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item, .fade-in, .fade-in-left, .fade-in-right, .fade-in-up, .fade-in-down {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: var(--header-shadow);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 1.5rem;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.language-selector {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.language-selector button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-selector button[aria-current="true"] {
  opacity: 1;
}

.language-selector button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.language-selector img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

main > section:not(.hero) {
  position: relative;
  z-index: 1;
  background: var(--bg-primary, #fff);
  box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.08), 0 12px 32px -12px rgba(0,0,0,0.18);
}

body {
  padding-top: 100vh;
}


#blackhole-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.home-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

 .profile-wrapper {
  flex-shrink: 0;
  position: relative;
  width: 270px;
  height: 270px;
  display: grid;
  place-items: center;
}

.profile-wrapper.animated-border::before,
.profile-wrapper.animated-border::after {
  display: none;
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-color) 0%, var(--primary) 18%, var(--accent-color) 40%, var(--primary-light) 60%, var(--accent-color) 82%, var(--primary) 100%);
  filter: blur(22px) saturate(1.4) brightness(1.05);
  animation: spinGradient 11s linear infinite;
  z-index: -2;
  opacity: .95;
}

.profile-wrapper.animated-border::after {
  animation: spinGradient 16s linear infinite reverse, pulseGlow 2s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: .8;
}

@keyframes spinGradient {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%,100% { filter: blur(14px) brightness(1); }
  50% { filter: blur(22px) brightness(1.25); }
}

.profile-wrapper.animated-border .blob-layer {
  display: none;
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 25% 35%, var(--accent-color) 0%, rgba(0,0,0,0) 62%),
    radial-gradient(circle at 70% 65%, var(--primary-light) 0%, rgba(0,0,0,0) 68%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35) 0%, rgba(0,0,0,0) 55%);
  animation: blobMorph 9s ease-in-out infinite, pulseGlow 7s ease-in-out infinite;
  opacity: .55;
  z-index: -1;
  mix-blend-mode: plus-lighter;
  filter: blur(26px) saturate(1.6);
  pointer-events: none;
}

@keyframes blobMorph {
  0%,100% { transform: translate(0,0) scale(1); border-radius: 46% 54% 48% 52% / 50% 46% 54% 50%; }
  25% { transform: translate(4px,-6px) scale(1.03); border-radius: 55% 45% 52% 48% / 47% 58% 42% 53%; }
  50% { transform: translate(-6px,4px) scale(0.97); border-radius: 50% 50% 46% 54% / 57% 43% 57% 43%; }
  75% { transform: translate(3px,3px) scale(1.05); border-radius: 43% 57% 50% 50% / 45% 55% 48% 52%; }
}

.profile-img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 25px -4px var(--accent-color), 0 6px 28px -8px rgba(0,0,0,0.55);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), rgba(0,0,0,0) 60%);
}

.liquid-border { overflow: visible; }
.liquid-border .liquid-ring { position:absolute; inset:0; width:100%; height:100%; z-index:-2; }
.liquid-border .liquid-path { transform-origin:50% 50%; }


@media (prefers-reduced-motion: reduce) {
}

.text-wrapper {
  flex: 1;
  min-width: 300px;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.tech-icon:hover {
  transform: translateY(-5px);
}

.tech-icon i,
.tech-icon img {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.tech-icon span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(142, 68, 173, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.section {
  padding: 6rem 0;
}

.about {
  background-color: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: 1.5rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.timeline-item.left .timeline-content {
  margin-left: auto;
}

.timeline-item.right .timeline-content {
  margin-right: auto;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.project h3 {
  padding: 1.5rem 1.5rem 0.5rem;
}

.project p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.project-buttons {
  display: flex;
  gap: .75rem;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  align-items: stretch;
}

.project-buttons .btn {
  flex: 1 1 0;
  justify-content: center;
  min-width: 120px;
}

.project-buttons .btn[aria-disabled="true"] {
  filter: grayscale(.3) brightness(.85);
  cursor: not-allowed;
}

.project a {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

footer {
  background-color: var(--footer-bg);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer {
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 32px 0 rgba(0,0,0,0.18);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .timeline-line {
    left: 30px;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .home-layout {
    flex-direction: column;
    text-align: center;
  }
  
  .tech-icons {
    justify-content: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background-color: var(--card-bg);
    width: 250px;
    height: calc(100vh - 80px);
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    margin: 0;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .profile-img {
    width: 200px;
    height: 200px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    padding: 1rem;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  body { padding-top: 80px; }
  .hero { position: relative; width: 100%; height: auto; padding: 7rem 0 4rem; }
}

@media (max-width: 768px) {
  .header-container { height: 70px; }
  .nav-links { top: 70px; height: calc(100vh - 70px); }
  body { padding-top: 70px; }
  .hero-title { font-size: 2.3rem; }
  .profile-wrapper { width: 230px; height: 230px; }
  .profile-img { width: 210px; height: 210px; }
}

@media (max-width: 576px) {
  .header-container { height: 60px; }
  .nav-links { top: 60px; height: calc(100vh - 60px); }
  body { padding-top: 60px; }
  .hero { padding: 5.5rem 0 3rem; }
  .home-layout { gap: 1.75rem; }
  .hero-title { font-size: 2.05rem; }
  .profile-wrapper { width: 200px; height: 200px; }
  .profile-img { width: 180px; height: 180px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.fade-out-spline { 
  transition: opacity .6s ease; 
  opacity: 0 !important; 
}
.spline-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--hero-bg, var(--bg-primary));
}

.spline-container, .spline-container * {
  pointer-events: none !important;
  user-select: none;
  -webkit-user-drag: none;
}

#spline-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
}

.round-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.language-selector button:hover .round-flag { transform: scale(1.1); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.language-selector button[aria-current="true"] .round-flag { box-shadow: 0 0 0 2px var(--accent-color); }

@media (max-width: 768px) {
  .spline-container { display:block; }
  [data-theme="dark"] .hero::after {
    content:"";
    position:absolute; inset:0; z-index:0;
    background: linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.68) 100%);
    pointer-events:none;
  }
  [data-theme="light"] .hero::after { content:none; }
  .hero .container { position:relative; z-index:1; }
}

.hero-cta .btn {
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  position: relative;
}
.hero-cta .btn-primary {
  background: var(--accent-color);
  box-shadow: 0 4px 18px -4px rgba(0,0,0,.35), 0 2px 6px -2px rgba(0,0,0,.4);
}
.hero-cta .btn-primary:hover { box-shadow: 0 6px 22px -4px rgba(0,0,0,.45), 0 3px 8px -2px rgba(0,0,0,.5); }

.hero-cta .btn-secondary {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--text-primary);
  box-shadow: 0 3px 14px -4px rgba(0,0,0,.5);
}
[data-theme="light"] .hero-cta .btn-secondary { background: rgba(255,255,255,.55); color: var(--text-primary); border: 1px solid rgba(0,0,0,.12); }
.hero-cta .btn-secondary:hover { background: rgba(0,0,0,.55); color: var(--accent-color); }
[data-theme="light"] .hero-cta .btn-secondary:hover { background: rgba(255,255,255,.75); color: var(--accent-color); }


@media (prefers-reduced-motion: reduce) {
  .spline-container { display: none; }
}

#botao-sll {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 300px;
  height: 100px;
  background: var(--cover) !important;
  z-index: 5;
  border: 0;
  border-radius: 0;
  outline: none;
  padding: 0;
  margin: 0;
  box-shadow: none !important;
  pointer-events: none;
}
@media (max-width: 768px) {
  #botao-sll { width: 180px; height: 60px; bottom: 6px; right: 6px; }
  [data-theme="dark"] #botao-sll { background: var(--hero-cover-color, var(--bg-primary)) !important; }
}
