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

html {
  scroll-behavior: smooth;
}

body {
  background: #070b14;
  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;

  overflow-x: hidden;
}

/* BACKGROUND */

.background-glow {
  position: fixed;

  top: -200px;
  right: -200px;

  width: 500px;
  height: 500px;

  background: radial-gradient(
    circle,
    rgba(108, 99, 255, 0.12),
    transparent 70%
  );

  filter: blur(80px);

  z-index: -1;
}

/* LIGHTNING PATTERN */

.lightning-pattern {
  position: fixed;
  top: -150px;
  left: -150px;
  right: -150px;
  bottom: -150px;
  
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M65 10 L40 70 H60 L45 130 L95 55 H70 L85 10 Z' fill='%237f7bff' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 150px;
  background-repeat: repeat;

  animation: lightningMove 8s linear infinite;
  will-change: transform; 
}

.lightning-pattern {
  position: fixed;
  top: -150px;
  left: -150px;
  
  width: calc(100vw + 300px);
  height: calc(100vh + 300px);
  
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M65 10 L40 70 H60 L45 130 L95 55 H70 L85 10 Z' fill='%237f7bff' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 150px;
  background-repeat: repeat;

  animation: lightningMove 8s linear infinite;
  will-change: transform; 
}

@keyframes lightningMove {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-150px, 150px);
  }
}

body::before {
  content: "";

  position: fixed;

  bottom: -250px;
  left: -250px;

  width: 500px;
  height: 500px;

  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.10),
    transparent 70%
  );

  filter: blur(90px);

  z-index: -1;
}

/* LINKS */

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */

.header {
  width: 100%;
  height: 80px;

  padding: 0 8%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: fixed;
  top: 0;

  background: rgba(10, 15, 30, 0.65);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.05);

  z-index: 999;
}

/* LOGO */

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #6c63ff;

  text-shadow:
    0 0 8px rgba(108, 99, 255, 0.55),
    0 0 18px rgba(108, 99, 255, 0.25);
}

/* NAV */

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #cfcfcf;

  transition: 0.3s ease;
}

.nav a:hover {
  color: #7f7bff;
}

/* HERO */

.hero {
  min-height: 100vh;

  padding: 140px 8% 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6rem;
}

/* HERO CONTENT */

.hero-content {
  max-width: 600px;
}

.eyebrow {
  color: #7f7bff;

  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 4rem;

  line-height: 1.1;

  margin-bottom: 1rem;
}

.hero h1 span {
  color: #6c63ff;

   text-shadow:
    0 0 10px rgba(108, 99, 255, 0.55),
    0 0 22px rgba(108, 99, 255, 0.20);
}

.hero h2 {
  font-size: 1.5rem;

  color: #d1d5db;

  margin-bottom: 1.5rem;
}

.hero p {
  color: #9ca3af;

  line-height: 1.7;
}

/* BUTTONS */

.hero-actions {
  display: flex;
  gap: 1rem;

  margin-top: 2rem;
}

.btn {
  padding: 14px 24px;

  border-radius: 12px;

  font-weight: bold;

  transition: 0.3s ease;
}

.primary {
  background: linear-gradient(
    135deg,
    #6c63ff,
    #3b82f6
  );

  color: white;

  box-shadow:
    0 0 25px rgba(108, 99, 255, 0.35);
}

.primary:hover {
  transform: translateY(-3px);
}

.secondary {
  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.08);
}

.secondary:hover {
  background: rgba(255,255,255,0.08);
}

/* MINI TERMINAL */

.mini-terminal {
  margin-top: 3rem;

  width: 100%;
  max-width: 420px;

  padding: 24px;

  border-radius: 18px;

  background: rgba(15, 20, 35, 0.85);

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 0 25px rgba(108, 99, 255, 0.08);
}

.terminal-title {
  display: block;

  color: #86efac;

  margin-bottom: 1rem;

  font-family: monospace;
}

.terminal-line {
  color: #d1d5db;

  margin-bottom: 0.8rem;
}

/* HERO SIDE */

.hero-side {
  width: 500px;
}

/* CODE WINDOW */

.code-window {
  width: 100%;

  background: rgba(15, 20, 35, 0.9);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 0 40px rgba(76, 70, 255, 0.2),
    0 0 100px rgba(59, 130, 246, 0.08);
}

/* TOP WINDOW */

.window-top {
  height: 50px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 20px;

  background: rgba(255,255,255,0.03);

  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.window-top span {
  width: 12px;
  height: 12px;

  border-radius: 50%;
}

.window-top span:nth-child(1) {
  background: #ff5f56;
}

.window-top span:nth-child(2) {
  background: #ffbd2e;
}

.window-top span:nth-child(3) {
  background: #27c93f;
}

.window-top p {
  margin-left: auto;

  color: #9ca3af;

  font-size: 0.85rem;
}

/* CODE */

pre {
  padding: 30px;
}

code {
  display: block;

  line-height: 1.8;

  color: #d1d5db;

  font-size: 0.95rem;
}

/* COLORS */

.keyword {
  color: #c084fc;
}

.operator {
  color: white;
}

.property {
  color: #60a5fa;
}

.string {
  color: #86efac;
}

.function {
  color: #f9a8d4;
}

.method {
  color: #facc15;
}

/* HERO STATS */

.hero-stats {
  margin-top: 2rem;

  display: flex;
  gap: 1rem;
}

.stat-card {
  flex: 1;

  padding: 1.2rem;

  border-radius: 18px;

  background: rgba(15, 20, 35, 0.85);

  border: 1px solid rgba(255,255,255,0.06);

  transition: 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);

  border-color: rgba(108, 99, 255, 0.25);
}

.stat-card h3 {
  color: #7f7bff;

  font-size: 1.5rem;

  margin-bottom: 0.5rem;

  text-shadow:
  0 0 10px rgba(108, 99, 255, 0.35);
}

.stat-card p {
  color: #cfcfcf;
}

/* SECTIONS */

.projects-section,
.about-section {
  padding: 80px 8%;
}

/* SECTION HEADER */

.section-header {
  max-width: 650px;

  margin-bottom: 3rem;
}

.section-label {
  color: #7f7bff;

  font-weight: bold;

  margin-bottom: 0.8rem;

  text-shadow:
  0 0 8px rgba(127, 123, 255, 0.35);
}

.section-header h2 {
  font-size: 2.5rem;

  margin-bottom: 1rem;
}

.section-header p {
  color: #9ca3af;

  line-height: 1.7;
}

/* PROJECTS */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 2rem;
}

.project-card {
  background: rgba(15, 20, 35, 0.85);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 20px;

  overflow: hidden;

  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);

  border-color: rgba(108, 99, 255, 0.3);
}

.project-image {
  height: 230px;
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-status {
  display: inline-block;

  padding: 6px 10px;

  border-radius: 999px;

  background: rgba(34, 197, 94, 0.12);

  color: #4ade80;

  margin-bottom: 1rem;

  font-size: 0.8rem;
}

.project-status.progress {
  background: rgba(59, 130, 246, 0.12);

  color: #60a5fa;
}

.project-content h3 {
  font-size: 1.5rem;

  margin-bottom: 0.8rem;
}

.project-content p {
  color: #9ca3af;

  line-height: 1.6;

  margin-bottom: 1.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;

  margin-bottom: 1.4rem;
}

.project-tags span {
  padding: 6px 10px;

  border-radius: 8px;

  background: rgba(255,255,255,0.05);

  color: #d1d5db;

  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: #7f7bff;

  font-weight: bold;
}

/* ABOUT */

.about-container {
  display: grid;

  grid-template-columns: 2fr 1fr;

  gap: 2rem;
}

.about-card,
.side-card {
  padding: 2rem;

  border-radius: 20px;

  background: rgba(15, 20, 35, 0.85);

  border: 1px solid rgba(255,255,255,0.06);
}

.about-card h3 {
  font-size: 2rem;

  margin-bottom: 1.5rem;
}

.about-card h3 span {
  color: #7f7bff;
}

.about-card p {
  color: #d1d5db;

  line-height: 1.9;

  margin-bottom: 1.5rem;
}

.about-side {
  display: flex;
  flex-direction: column;

  gap: 1.5rem;
}

.side-card h4 {
  color: #7f7bff;

  margin-bottom: 1rem;

  text-shadow:
  0 0 8px rgba(108, 99, 255, 0.30);
}

.side-card p {
  color: #d1d5db;
}

/* RESPONSIVO */

@media (max-width: 1100px) {

  .hero {
    flex-direction: column;

    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .mini-terminal {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-side {
    width: 100%;
    max-width: 650px;
  }

}

@media (max-width: 900px) {

  .projects-grid,
  .about-container {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .social-links {
  justify-content: center;
}

   .header {
    height: 70px;
    padding: 0 6%;
  }

    .logo {
    font-size: 1.15rem;
  }

  .nav {
    display: none;
  }

   .hero {
    min-height: auto;
    padding: 110px 6% 50px;
    gap: 3rem;
  }

   .hero-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

    .eyebrow {
    font-size: 0.9rem;
  }


  .hero h1 {
    font-size: 2.8rem;
  }

   .hero h2 {
    font-size: 1.15rem;
  }

    .hero p {
    max-width: 340px;
  }

   .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
  }

    .btn {
    width: 100%;
    text-align: center;
  }

  .mini-terminal {
    max-width: 100%;
    padding: 20px;
  }

  .terminal-line {
    font-size: 0.9rem;
  }

   .hero-side {
    width: 100%;
  }

    .code-window {
    width: 100%;
  }

  code {
    font-size: 0.78rem;
    line-height: 1.7;
  }


  .projects-section,
  .about-section {
    padding: 60px 6%;
  }

  .section-header h2 {
    font-size: 2rem;
  }

   .project-image {
    height: 180px;
  }

   .project-content {
    padding: 1.2rem;
  }

  .about-card,
  .side-card {
    padding: 1.5rem;
  }

   .about-card h3 {
    font-size: 1.5rem;
  }

  .apollo-bot {
  right: 16px;
  bottom: 16px;
}

.apollo-img {
  width: 70px;
}

.apollo-speech {
  max-width: 170px;
  font-size: 0.75rem;
}
}

/* APOLLO */

.apollo-bot {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  cursor: pointer;
}

.apollo-img {
  width: 95px;
  height: auto;

  filter: drop-shadow(0 0 14px rgba(108, 99, 255, 0.35));

  animation: apolloFloat 3s ease-in-out infinite;
}

.apollo-speech {
  max-width: 220px;

  padding: 12px 14px;

  background: #101522;
  color: #d1d5db;

  border: 2px solid rgba(127, 123, 255, 0.6);
  border-radius: 8px;

  font-size: 0.85rem;
  line-height: 1.4;

  box-shadow: 0 0 18px rgba(108, 99, 255, 0.2);

  position: relative;
}

.apollo-speech::after {
  content: "";

  position: absolute;
  right: -10px;
  top: 22px;

  width: 14px;
  height: 14px;

  background: #101522;

  border-right: 2px solid rgba(127, 123, 255, 0.6);
  border-bottom: 2px solid rgba(127, 123, 255, 0.6);

  transform: rotate(-45deg);
}

/* APOLLO CLICK FEEDBACK */

.apollo-bot.apollo-clicked .apollo-img {
  animation:
    apolloFloat 3s ease-in-out infinite,
    apolloEyeBlink 0.45s ease;
}

.apollo-bot.apollo-clicked .apollo-speech {
  animation: speechShake 0.35s ease;
}

@keyframes apolloEyeBlink {
  0%, 100% {
    filter:
      brightness(1)
      drop-shadow(0 0 14px rgba(108, 99, 255, 0.35));
  }

  50% {
    filter:
      brightness(0.75)
      drop-shadow(0 0 6px rgba(108, 99, 255, 0.15));
  }
}

@keyframes speechShake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-1px);
  }
}

@keyframes apolloFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* SOCIAL LINKS */

.social-links {
  display: flex;

  gap: 1rem;

  margin-top: 2rem;
}

.social-links a {
  width: 54px;
  height: 54px;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 20, 35, 0.85);

  border: 2px solid rgba(255,255,255,0.06);

  color: #d1d5db;

  font-size: 1.2rem;

  transition: 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-4px);

  color: #7f7bff;

  border-color: rgba(108, 99, 255, 0.25);

  box-shadow:
    0 0 20px rgba(108, 99, 255, 0.15);
}