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

body {
  background-color: #0f172a;
  color: #e5e7eb;
  scroll-behavior: smooth;
}

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

header {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  padding: 18px 60px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  color: #22c55e;
  font-weight: bold;
}

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

nav a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 500;
  transition: 0.25s;
}

nav a:hover {
  color: #22c55e;
}

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

.hero{
  min-height: 60vh;              /* ocupa toda la pantalla */
  display: flex;
  flex-direction: column;         /* elementos uno debajo del otro */
  justify-content: center;        /* centra vertical */
  align-items: center;            /* centra horizontal */
  text-align: center;             /* centra el texto */
  min-height:1vh;   

}

.hero h1 {
  font-size: 3.4rem;
  letter-spacing: 1px;
}

.hero h3 {
  color: #22c55e;
  margin: 12px 0;
  font-weight: 500;
}

.hero p {
  color: #94a3b8;
}

#about{
  display:flex;
  justify-content:center;
  padding:80px 20px;
  text-align: center;
}

/* CARD */
.about-card{
  max-width:800px;
  padding:40px;
  border-radius:18px;

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

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
      0 10px 30px rgba(0,0,0,0.35),
      inset 0 0 0.5px rgba(255,255,255,0.4);

  transition: all .35s ease;
}


.hero button {
  margin-top: 20px;
  padding: 20px 20px;
  background: linear-gradient(135deg,#22c55e,#4ade80);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.25s;
}

.hero button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(34,197,94,.25);
}

/* ===== SECTIONS ===== */

section {
  padding: 80px 12%;
}

section h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

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

.projects {
  background: #020617;
  text-align: center;
}

.project-card {
  background: #111827;
  padding: 26px;
  margin-top: 25px;
  border-radius: 14px;
  transition: 0.25s;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-6px);
  border: 1px solid #22c55e;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.project-card h3 {
  margin-bottom: 10px;
}

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

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  text-align: center;
  padding-top: 80px;
}

.modal-content {
  max-width: 70%;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.controls {
  margin-top: 20px;
}

.controls button {
  background: #22c55e;
  border: none;
  padding: 10px 20px;
  margin: 0 15px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
}


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

.contact p {
  margin: 6px 0;
}


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

footer {
  text-align: center;
  padding: 25px;
  background: #111827;
  color: #9ca3af;
}


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

.skills {
  background: #0f172a;
  text-align: center;
  padding: 80px 20px;
  
}

.skills-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;   /* centra las columnas */
  gap: 40px;
  max-width: 900px;          /* evita que se expandan demasiado */
  margin: 0 auto;            /* centra todo el bloque */
}

/* Si queda uno solo en la última fila → ocupar todo el ancho */
.skills-container > :last-child:nth-child(odd){
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 320px;
}

.skill-category {
  background: #111827;
  padding: 10px;
  border-radius: 14px;
  transition: 0.25s;
  border: 1px solid transparent;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100px; 
}

.skill-category:hover {
  border: 1px solid #22c55e;
  transform: translateY(-5px);
}

.skill-category h3 {
  margin-bottom: 15px;
  color: #22c55e;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background: #1f2937;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: 0.25s;
}

.skill-tags span:hover {
  background: #22c55e;
  color: #020617;
}

.skill-icons{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}



.skill {
  display: flex;
   max-width: 1200px;   /* más ancho */
  align-items: center;
  gap: 12px;
  background: #1f2937;
  padding: 10px 15px;
  border-radius: 10px;
  transition: 0.25s;
}

.skill:hover {
  background: #22c55e;
  color: #020617;
  transform: translateY(-2px);
}

.skill i {
  font-size: 28px;
}

.socials{
  display:flex;
  gap:14px;
}

.social{
  width:45px;
  height:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  font-size:22px;
  color:white;
  transition: all .3s ease;
  margin-top: 5px;
}

.social:hover{
  transform: translateY(-4px) scale(1.08);
}


.btn-gallery{
  position: relative;
  padding: 10px 20px;
  margin-top: 50px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.35s ease;
}

/* Glow border */
.btn-gallery::before{
  content:"";
  position:absolute;
  inset: -1px;
  border-radius:12px;
  background: linear-gradient(120deg,#00c3ff,#7a5cff,#00ffa6);
  opacity:0;
  transition:opacity .35s;
  z-index:-1;
}

/* Shine animation */
.btn-gallery::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:50%;
  height:100%;
  background: linear-gradient(120deg,transparent,rgba(255,255,255,.5),transparent);
  transform: skewX(-25deg);
}

/* Hover */
.btn-gallery:hover{
  transform: translateY(-3px);
  border-color: transparent;
}

.btn-gallery:hover::before{
  opacity:1;
}

.btn-gallery:hover::after{
  animation: shine 0.9s ease;
}

/* Click */
.btn-gallery:active{
  transform: translateY(0px) scale(0.96);
}

@keyframes shine{
  100%{ left:140%; }
}

.project-card{
  position:relative;
  background:#161616;
  padding:25px;
  border-radius:16px;
  transition:.3s;
}

/* contenedor */
.tech-stack{
  position:absolute;
  top:15px;
  right:15px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  max-width:60%;
  justify-content:flex-end;
}

/* cada badge */
.tech-stack span{
  font-size:11px;
  padding:4px 8px;
  border-radius:20px;
  background:#222;
  color:#bbb;
  border:1px solid #333;
  font-weight:500;
}

.project-card:hover .tech-stack span{
  border-color:#4fc3f7;
  color:#4fc3f7;
}

