/* ===== CSS Variables ===== */
:root {
  --background: hsl(240, 15%, 3%);
  --foreground: hsl(240, 10%, 92%);
  --card: hsl(240, 12%, 6%);
  --card-foreground: hsl(240, 10%, 92%);
  --primary: hsl(263, 70%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(263, 70%, 60%);
  --primary-dark: hsl(263, 70%, 40%);
  --primary-glow: hsl(263, 80%, 60%);
  --muted: hsl(240, 10%, 20%);
  --muted-foreground: hsl(240, 10%, 65%);
  --border: hsl(263, 30%, 20%);
  --radius: 0.75rem;
  --star-purple: hsl(263, 70%, 80%);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== Space Background ===== */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: -20;
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, hsl(280, 40%, 8%) 0%, hsl(240, 20%, 2%) 50%, hsl(0, 0%, 0%) 100%);
}

.stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, hsl(0, 0%, 100%), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--star-purple), transparent),
    radial-gradient(1px 1px at 90px 40px, hsl(0, 0%, 100%), transparent),
    radial-gradient(2px 2px at 160px 120px, var(--star-purple), transparent),
    radial-gradient(1px 1px at 230px 80px, hsl(0, 0%, 90%), transparent),
    radial-gradient(2px 2px at 300px 200px, var(--star-purple), transparent),
    radial-gradient(1px 1px at 350px 150px, hsl(0, 0%, 100%), transparent),
    radial-gradient(1px 1px at 400px 50px, hsl(263, 80%, 85%), transparent),
    radial-gradient(2px 2px at 450px 180px, hsl(0, 0%, 95%), transparent),
    radial-gradient(1px 1px at 500px 100px, var(--star-purple), transparent);
  background-size: 550px 250px;
  animation: star-move 25s linear infinite;
}

.stars-layer-2 {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 10px 10px, hsl(0, 0%, 100%), transparent),
    radial-gradient(1px 1px at 150px 150px, var(--star-purple), transparent),
    radial-gradient(1px 1px at 280px 50px, hsl(0, 0%, 85%), transparent),
    radial-gradient(2px 2px at 400px 200px, var(--star-purple), transparent),
    radial-gradient(1px 1px at 520px 130px, hsl(0, 0%, 90%), transparent);
  background-size: 600px 300px;
  animation: star-move-reverse 30s linear infinite;
}

.stars-layer-3 {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 80px 60px, hsl(0, 0%, 100%), transparent),
    radial-gradient(1px 1px at 200px 100px, var(--star-purple), transparent),
    radial-gradient(2px 2px at 320px 180px, hsl(0, 0%, 95%), transparent),
    radial-gradient(1px 1px at 480px 40px, var(--star-purple), transparent),
    radial-gradient(1.5px 1.5px at 100px 220px, hsl(0, 0%, 90%), transparent);
  background-size: 520px 280px;
  animation: star-move 35s linear infinite reverse;
}

.nebula {
  position: absolute;
  z-index: -10;
  right: -15%;
  top: -20%;
  width: 80vmin;
  height: 80vmin;
  background: conic-gradient(from 200deg at 50% 50%, hsla(263, 70%, 55%, 0.18), hsla(230, 70%, 55%, 0.12), hsla(170, 50%, 30%, 0.06));
  filter: blur(80px);
  opacity: 0.7;
  transform: rotate(25deg);
  animation: nebula-drift 20s ease-in-out infinite;
}

.nebula-2 {
  position: absolute;
  z-index: -10;
  left: -20%;
  bottom: -10%;
  width: 60vmin;
  height: 60vmin;
  background: conic-gradient(from 100deg at 50% 50%, hsla(280, 70%, 40%, 0.15), hsla(220, 70%, 50%, 0.1), hsla(263, 60%, 30%, 0.08));
  filter: blur(70px);
  opacity: 0.6;
  animation: nebula-drift 25s ease-in-out infinite reverse;
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  border-radius: 9999px;
  opacity: 0;
  background: linear-gradient(90deg, hsla(0, 0%, 100%, 0), hsla(263, 80%, 70%, 0.8), hsla(0, 0%, 100%, 0.9));
  animation: shooting 6s ease-in-out infinite;
}

.shooting-star:nth-child(5) {
  top: 15%;
  left: 70%;
}

.shooting-star:nth-child(6) {
  top: 40%;
  left: 30%;
  animation-delay: 3s;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: hsla(240, 15%, 3%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(263, 70%, 50%, 0.1);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px hsla(263, 70%, 50%, 0.2);
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.header-role {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.header-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsla(263, 70%, 50%, 0.4);
  background: hsla(263, 70%, 50%, 0.1);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  border-color: hsla(263, 70%, 50%, 0.6);
  background: hsla(263, 70%, 50%, 0.2);
  box-shadow: 0 10px 25px -5px hsla(263, 70%, 50%, 0.2);
  transform: scale(1.05);
}

.nav-btn-primary {
  background: linear-gradient(to right, var(--primary), hsla(263, 70%, 50%, 0.8));
  color: var(--primary-foreground);
  border: none;
  box-shadow: 0 0 15px hsla(263, 80%, 60%, 0.5), 0 0 30px hsla(263, 80%, 60%, 0.3);
}

.nav-btn-primary:hover {
  box-shadow: 0 0 20px hsla(263, 80%, 60%, 0.7), 0 0 40px hsla(263, 80%, 60%, 0.4);
  transform: scale(1.05);
}

/* ===== Main ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  padding-top: 100px;
}

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 120px);
  position: relative;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
  width: 100%;
  margin: 4rem 0;
}

.hero-text {
  order: 1;
}

.hero-text h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-description {
  color: var(--muted-foreground);
  margin-top: 1rem;
  font-size: 1.125rem;
}

.hero-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.tech-badge {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid hsla(0, 0%, 100%, 0.05);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-card {
  order: 2;
}

/* ===== Botões ===== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: linear-gradient(to right, var(--primary), hsla(263, 70%, 50%, 0.8));
  color: var(--primary-foreground);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px hsla(263, 80%, 60%, 0.5), 0 0 30px hsla(263, 80%, 60%, 0.3);
  overflow: hidden;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px hsla(263, 80%, 60%, 0.7), 0 0 40px hsla(263, 80%, 60%, 0.4);
}

.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  box-shadow: 0 0 25px 8px hsla(263, 80%, 60%, 0.7);
  opacity: 0;
  animation: pulse 2s infinite;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsla(263, 70%, 50%, 0.4);
  background: hsla(263, 70%, 50%, 0.1);
  color: var(--foreground);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: hsla(263, 70%, 50%, 0.6);
  background: hsla(263, 70%, 50%, 0.2);
  box-shadow: 0 10px 25px -5px hsla(263, 70%, 50%, 0.2);
  transform: scale(1.05);
}

/* ===== Scroll ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: bounce-down 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid hsla(240, 10%, 65%, 0.5);
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-wheel {
  width: 0.25rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  animation: scroll-wheel 2s ease-in-out infinite;
}

.chevron-down {
  color: var(--muted-foreground);
  animation: bounce 1s ease-in-out infinite;
}

/* ===== Gradient Texto ===== */
.gradient-text {
  background: linear-gradient(90deg, hsl(0, 0%, 100%), hsl(263, 60%, 85%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Float Animação ===== */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* ===== Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Reveal Sections ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding: 5rem 0;
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ===== Projeto ===== */
.project-card {
  background: linear-gradient(to bottom, hsla(0, 0%, 100%, 0.02), hsla(0, 0%, 100%, 0.01));
  border: 1px solid hsla(0, 0%, 100%, 0.04);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: hsla(263, 70%, 50%, 0.2);
  transform: translateY(-4px);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(240, 12%, 6%, 0.8), transparent);
}

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

.project-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.project-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid hsla(0, 0%, 100%, 0.05);
}

.tech-item img {
  width: 1rem;
  height: 1rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-links .btn-primary,
.project-links .btn-secondary {
  flex: 1;
}

/* ===== Contato ===== */
#contact {
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-4px);
}

.contact-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsla(263, 70%, 50%, 0.3);
  background: hsla(263, 70%, 50%, 0.1);
  color: var(--primary);
  transition: all 0.3s ease;
}

.contact-btn:hover .contact-icon {
  border-color: hsla(263, 70%, 50%, 0.6);
  background: hsla(263, 70%, 50%, 0.25);
  box-shadow: 0 10px 25px -5px hsla(263, 70%, 50%, 0.3);
  color: var(--foreground);
}

.contact-btn span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.contact-btn:hover span {
  color: var(--foreground);
}

/* ===== Footer ===== */
footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.05);
}

/* ===== Keyframes ===== */
@keyframes star-move {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-550px) translateY(-250px); }
}

@keyframes star-move-reverse {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(600px) translateY(300px); }
}

@keyframes nebula-drift {
  0%, 100% { transform: rotate(25deg) translate(0, 0); }
  50% { transform: rotate(30deg) translate(20px, -10px); }
}

@keyframes shooting {
  0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 0; }
  5% { opacity: 1; }
  15% { transform: translateX(-200px) translateY(200px) rotate(-45deg); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.25); }
  100% { opacity: 0.6; transform: scale(1); }
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

@keyframes scroll-wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-text {
    text-align: center;
    order: 2;
  }
  
  .hero-card {
    order: 1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-techs,
  .hero-buttons {
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    justify-content: center;
  }
  
  .header-nav {
    width: 100%;
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .project-links {
    flex-direction: column;
  }
}
.hero-floating-image {
  width: 320px;
}
@media (max-width: 768px) {
  .hero-floating-image {
    width: 95vw;
    max-width: 420px;
  }
}


.hero-floating-image {
  width: 80vw;
  max-width: 800px;
  display: flex;
  justify-content: center;
}

.hero-floating-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@keyframes float-soft {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-12px) rotate(0.6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.hero-floating-image {
  animation: float-soft 6s ease-in-out infinite;
}
.hero-floating-image::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(
    circle,
    hsla(263, 70%, 55%, 0.25),
    transparent 85%
  );
  filter: blur(60px);
  z-index: -1;
}



