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

body {
  background: radial-gradient(circle at 20% 30%, #0b0f2a, #070b14);
  font-family: 'Inter', sans-serif;
  color: #e5e7eb;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.header {
  text-align: center;
  padding: 60px 20px 40px;
}

.header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  color: #22d3ee;
  margin-bottom: 10px;
}

.header p {
  color: #a5b4fc;
  font-size: 1.2rem;
}

/* Portfolio Grid */
.portfolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 50px 50px;
}

/* Cards estilo espacial */
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(34,211,238,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9);
  transition: transform 0.3s, filter 0.3s;
}

.project-card:hover img {
  transform: scale(1.05) rotate(-1deg);
  filter: brightness(1);
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.project-card:hover .overlay {
  background: linear-gradient(to top, rgba(34,211,238,0.6), transparent);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Animación de fondo estelar */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

/* Responsive */
@media(max-width:768px){
  .header h1 { font-size: 2.2rem; }
  .header p { font-size: 1rem; }
  .portfolio .grid { padding: 0 20px 40px; }
}

