* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a;
  color: #e2e8f0;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: #020617;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav h2 {
  color: #38bdf8;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #38bdf8;
}

/* HERO */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 20px;
}

/* BOTÓN */
.btn {
  background: #38bdf8;
  color: #020617;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* SECCIONES */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  margin-bottom: 20px;
  color: #38bdf8;
}

.dark {
  background: #020617;
}

/* PROYECTOS GRID */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARD PRO */
.project-card {
  background: #1e293b;
  border-radius: 15px;
  overflow: hidden;
  position: relative;

  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* IMAGEN */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* HOVER 3D */
.project-card:hover {
  transform: translateY(-12px) scale(1.02) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  background: #334155;
}

/* ZOOM IMAGEN */
.project-card:hover img {
  transform: scale(1.08);
}

.project-card span {
  color: #38bdf8;
  font-size: 0.9rem;
}

/* CONTENIDO */
.project-content {
  padding: 20px;
}

.project-content p {
  font-size: 0.9rem;
  margin: 10px 0;
  color: #cbd5f5;
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  background: #334155;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  color: #38bdf8;
}

/* ========================= */
/* OVERLAY PROYECTOS */
/* ========================= */

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;

  background: rgba(0, 0, 0, 0.75);

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

  opacity: 0;
  transition: all 0.3s ease;
}

/* BOTÓN OVERLAY */
.overlay-btn {
  background: #38bdf8;
  color: #020617;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;

  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* HOVER OVERLAY */
.project-card:hover .overlay {
  opacity: 1;
}

.project-card:hover .overlay-btn {
  transform: translateY(0);
}

/* EXTRA PRO */
.overlay {
  backdrop-filter: blur(3px);
}

/* SKILLS */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  background: #38bdf8;
  color: #020617;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
}

/* CONTACTO */
.contact-full {
  width: 100%;
  background: #020617;
  padding: 80px 20px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* BOTÓN CONTACTO */
.contact-container .btn {
  margin-top: 20px;
}

/* FOOTER */
.footer-full {
  width: 100%;
  background: #020617;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1e293b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
  }
}