:root {
  --primary: #ff007f;
  --secondary: #ff7f50;
  --accent: #ffd700;
  --bg-color: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #ffe9fd;
  --button-primary: rgba(255, 0, 128, 0.526);
  --button-primary-border: rgba(255, 0, 127, 0.4);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --backdrop-blur: blur(16px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  opacity: 0.8;
  background: radial-gradient(circle at 50% 50%, #050508 0%, #000 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  top: 0;
  left: 0;
}
.orb-1 {
  width: 40vw;
  height: 40vw;
  background: var(--primary);
}
.orb-2 {
  width: 40vw;
  height: 40vw;
  background: var(--secondary);
}
.orb-3 {
  width: 35vw;
  height: 35vw;
  background: #7b2cbf;
}
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-highlight),
    transparent
  );
  opacity: 0.5;
}

header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  border-radius: 50px;
}

.logo {
  font-family: "Fira Code", monospace;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}
nav a:hover::after {
  width: 100%;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 20px 80px;
  position: relative;
}

.hero-glass-container {
  padding: 60px 40px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Efeito glass extra forte para o hero */
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tagline {
  font-family: "Fira Code", monospace;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  background: rgba(255, 127, 80, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 127, 80, 0.3);
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #fff, var(--secondary));
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnim 5s ease infinite;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Botões Glass */
.btn {
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--button-primary);
  border-color: var(--button-primary-border);
  color: var(--text-primary);
  box-shadow: 0 0 rgba(255, 0, 127, 0.2);
}

.btn-primary:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgb(255, 255, 255);
}

.cta-group {
  display: flex;
  gap: 20px;
}

/* --- SECTIONS --- */
section {
  padding: 100px 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
  /* text-align: center; */
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  display: inline-block;
}
.section-title span {
  color: var(--primary);
}

/* --- ABOUT & SYSTEM (Layout Grid) --- */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.text-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
}
.text-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.visual-content {
  position: relative;
}

.profile-frame {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 400px;
  margin: 0 auto;
}
.profile-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  filter: grayscale(10%);
  transition: 0.5s;
}
.profile-frame:hover .profile-img {
  filter: grayscale(0%);
}

/* Terminal Style */
.terminal-window {
  background: rgba(15, 15, 20, 0.85); /* Vidro escuro */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: "Fira Code", monospace;
  overflow: hidden;
}
.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.terminal-body {
  padding: 25px;
  font-size: 0.9rem;
  color: #a1a1aa;
}
.code-key {
  color: var(--primary);
}
.code-str {
  color: var(--secondary);
}
.code-val {
  color: var(--accent);
}

/* --- PROJECTS (Cards com Glow do Mouse) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  padding: 40px 30px;
  transition: transform 0.3s;
  /* Para o efeito de luz do mouse */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Glow do Mouse */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.project-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}
.tech-stack {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tech-pill {
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

/* --- CONTACT --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: flex-start;
}

.social-links {
  display: flex;
  gap: 15px;
  margin: 30px 0;
}
.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.social-btn:hover {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  transform: translateY(-3px);
}

/* Form inputs estilo "sunken glass" */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary); /* Laranja Flamingo */
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.form-button {
  width: auto;
  padding: 12px 40px;
  border: none;
}
.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3); /* Mais escuro para dar contraste */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.1);
  background: rgba(0, 0, 0, 0.5);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

footer {
  text-align: center;
  text-shadow: 1px 1px 2px black;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  filter: blur(5px);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes gradientAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  header {
    width: 95%;
    padding: 15px;
    border-radius: 15px;
    flex-direction: column;
    gap: 10px;
    background: rgba(10, 10, 10, 0.8);
  }
  /* nav ul {
    display: none;
  } */
  .grid-layout,
  .contact-container {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 180px;
  }
  .cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-container .contact-info {
    order: 1;
  }
  .contact-container .contact-form-wrapper {
    order: 2;
  }

  .about-grid .text-content {
    order: 1;
  }
  .about-grid .profile-frame {
    order: 2;
  }
}
