/* ================= RESET ================= */

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

html {
  scroll-behavior: smooth;
}

/* ================= BODY ================= */

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 25%),
    #0f1117;

  color: #f3f4f6;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ================= NAVBAR ================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(12px);

  background: rgba(15, 17, 23, 0.75);

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

nav {
  max-width: 1200px;
  margin: auto;

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

  padding: 1.2rem 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;

  list-style: none;
}

.nav-links a {
  color: #d1d5db;

  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 500;

  transition: 0.25s ease;
}

.nav-links a:hover {
  color: #8b5cf6;
}

/* ================= HERO ================= */

#inicio {
  min-height: 90vh;

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

  text-align: center;

  padding: 2rem;
}

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

.hero-tag {
  display: inline-block;

  padding: 0.5rem 1rem;

  border: 1px solid rgba(139, 92, 246, 0.3);

  border-radius: 999px;

  background: rgba(139, 92, 246, 0.08);

  color: #a78bfa;

  font-size: 0.9rem;

  margin-bottom: 1.5rem;
}

#inicio h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);

  line-height: 1;

  margin-bottom: 1.5rem;

  font-weight: 800;

  letter-spacing: -2px;

  background: linear-gradient(
    to right,
    #ffffff,
    #c4b5fd
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;

  color: #9ca3af;

  max-width: 750px;

  margin: auto auto 2rem;
}

/* ================= HERO BUTTONS ================= */

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

  justify-content: center;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  padding: 0.95rem 1.8rem;

  border-radius: 12px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.25s ease;
}

.primary-button {
  background: linear-gradient(
    135deg,
    #8b5cf6,
    #7c3aed
  );

  color: white;
}

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

  box-shadow:
    0 12px 30px rgba(139,92,246,0.25);
}

.secondary-button {
  border: 1px solid rgba(255,255,255,0.08);

  color: #d1d5db;

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

.secondary-button:hover {
  background: rgba(255,255,255,0.06);
}

/* ================= GENERAL SECTION ================= */

.section {
  max-width: 1200px;

  margin: auto;

  padding: 7rem 2rem;
}

.section-header {
  margin-bottom: 3rem;
}

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

  margin-bottom: 1rem;

  font-weight: 700;
}

.line {
  width: 80px;
  height: 4px;

  background: linear-gradient(
    to right,
    #8b5cf6,
    #3b82f6
  );

  border-radius: 999px;
}

/* ================= ABOUT ================= */

.about-card {
  background: rgba(255,255,255,0.03);

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

  border-radius: 24px;

  padding: 2.5rem;

  backdrop-filter: blur(8px);
}

.about-card p {
  color: #d1d5db;

  margin-bottom: 1.5rem;

  font-size: 1.05rem;
}

/* ================= SKILLS ================= */

.skills-grid {
  display: flex;
  flex-wrap: wrap;

  gap: 1rem;
}

.skill-card {
  padding: 0.9rem 1.2rem;

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

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

  border-radius: 12px;

  color: #d1d5db;

  font-weight: 500;

  transition: 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-3px);

  border-color: rgba(139,92,246,0.35);

  background: rgba(139,92,246,0.08);
}

/* ================= PROJECTS ================= */

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 2rem;
}

.project-card {
  background: rgba(255,255,255,0.03);

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

  border-radius: 24px;

  overflow: hidden;

  transition: 0.3s ease;

  position: relative;
}

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

  border-color: rgba(139,92,246,0.35);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.35);
}

.project-content {
  padding: 2rem;
}

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

  margin-bottom: 1rem;
}

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

  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 0.7rem;

  margin-bottom: 1.5rem;
}

.project-tags span {
  padding: 0.45rem 0.8rem;

  background: rgba(139,92,246,0.08);

  color: #c4b5fd;

  border-radius: 999px;

  font-size: 0.85rem;
}

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

.project-button {
  padding: 0.8rem 1.2rem;

  border-radius: 10px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.25s ease;
}

.project-button:first-child {
  background: #8b5cf6;
  color: white;
}

.project-button:first-child:hover {
  background: #7c3aed;
}

.project-button.secondary {
  border: 1px solid rgba(255,255,255,0.08);

  color: #d1d5db;
}

.project-button.secondary:hover {
  background: rgba(255,255,255,0.05);
}

/* ================= ARCHITECTURE ================= */

.architecture-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));

  gap: 1.5rem;
}

.architecture-card {
  background: rgba(255,255,255,0.03);

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

  padding: 2rem;

  border-radius: 20px;
}

.architecture-card h3 {
  margin-bottom: 1rem;

  font-size: 1.2rem;
}

.architecture-card p {
  color: #9ca3af;
}

/* ================= CONTACT ================= */

.contact-card {
  background: rgba(255,255,255,0.03);

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

  padding: 2.5rem;

  border-radius: 24px;

  text-align: center;
}

.contact-card p {
  color: #d1d5db;

  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-links a {
  padding: 0.9rem 1.2rem;

  border-radius: 12px;

  text-decoration: none;

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

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

  color: #d1d5db;

  transition: 0.25s ease;
}

.contact-links a:hover {
  background: rgba(139,92,246,0.08);

  border-color: rgba(139,92,246,0.35);
}

/* ================= FOOTER ================= */

footer {
  padding: 2rem;

  text-align: center;

  color: #6b7280;

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

  margin-top: 4rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  nav {
    justify-content: center;
  }

  .nav-links {
    gap: 1rem;

    flex-wrap: wrap;
  }

  #inicio {
    min-height: 80vh;
  }

  .hero-description {
    font-size: 1rem;
  }

  .project-buttons {
    flex-direction: column;
  }

}
