.name {
  position: relative;
  display: inline-block;
  font-size:3.5rem;
  font-size:clamp(2.2rem, 6vw, 3.5rem);
  margin-bottom:10px;
}

.name::after {
  content: "";
  display: block;
  width: 200px;
  height: 4px;
  background: #3b82f6;
  margin: 5px auto 0;
  border-radius: 2px;
}

.hero{
  height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:0 20px;
}


.hero h2{
  font-size:1.8rem;
  font-weight:300;
}

.hero-actions{
  margin-top:20px;
  display:flex;
  gap:16px;
}

.hero-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 16px;
  border:1px solid #3b82f6;
  border-radius:6px;
  text-decoration:none;
  color:white;
  font-size:14px;
  transition:0.2s;
}

.hero-btn:hover{
  background:#3b82f6;
}

#about{
  max-width:700px;
  margin:80px auto;
  text-align:center;
  line-height:1.6;
  margin-top: 120px;
}

#about h2{
  margin-bottom:20px;
  font-size:28px;
}

#about p{
  margin-bottom:15px;
  color:#cfcfcf;
}

#about-me {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#about-me.visible {
  opacity: 1;
  transform: translateY(0);
}
#about-me span.highlight {
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

#about-me span.highlight:hover {
  color: #61dafb;
  text-shadow: 0 0 8px rgba(97, 218, 251, 0.7);
}

body{
  background:#0f0f0f;
  color:white;
  font-family:Arial, Helvetica, sans-serif;
  margin:0;
}

.tech-icons {
  margin-top: 15px;
  font-size: 28px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.tech-icons i {
  opacity: 0.8;
  transition: 0.2s;
}

.tech-icons i:hover {
  transform: scale(1.2);
  opacity: 1;
}

.tech-stack {
  text-align: center;
  margin-top:120px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.tech-column h3 {
  margin-bottom: 15px;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-items span {
  background: #2563eb;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block; /* necesario para que scale funcione bien */
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.tech-items span:hover {
  transform: scale(1.2);
  text-shadow: 
    0 0 5px rgba(255,255,255,0.6),
    0 0 10px rgba(255,255,255,0.4);
}

header{
  text-align:center;
  padding:40px;
}

.projects {
  margin: clamp(0px, 5vw, 50px);
}

.projects h2 {
  margin-bottom: 30px;
  text-align: center;
}

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

/* card */
.card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}


.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* imagen */
.project-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card-content h3 {
  margin-bottom: 8px;
}

.card-content p {
  font-size: 14px;
  color: #bbb;
}


.card{
  background:#1a1a1a;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(0,0,0,0.6);
  transition:transform .2s;
  text-align: center;
}


.card img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.card-content{
  padding:20px;
}

.card-content h3{
  margin-top:0;
}

.buttons{
  margin-top:15px;
}

.buttons a{
  text-decoration:none;
  color:white;
  background:#333;
  padding:8px 14px;
  margin-right:10px;
  border-radius:6px;
  font-size:14px;
}

.buttons a:hover{
  background:#555;
}

.project-img{
  width:100%;
  max-width:320px;
  height:200px;
  object-fit:cover;

  display:block;
  margin:15px auto; 
  border-radius:8px;
}

.card img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:15px;
}


.resume a{
  display:inline-block;
  padding:8px 14px;
  background:#333;
  color:white;
  text-decoration:none;
  margin-right:10px;
  border-radius:6px;
  font-weight:600;
  transition:all .25s ease;
}

.resume a:hover{
  transform:translateY(-2px);
  opacity:0.9;
  background:#555;
}


#contact {
  text-align: center;
  padding: 60px 20px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.contact-links a {
  font-size: 40px;
  color: #555;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
  color: #2563eb;
  transform: scale(1.2);
}

#circuit{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:-1;
  opacity:0.12;
}

canvas{
  filter: drop-shadow(0 0 3px #3b82f6);
}

.modal{
  display:none;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
}

.modal img{
  max-width:90%;
  max-height:90%;
}

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

.project-img{
  cursor:pointer;
  transition: transform .25s;
}

.project-img:hover{
  transform:scale(1.05);
}

#typing::after{
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink{
  0%{opacity:1}
  50%{opacity:0}
  100%{opacity:1}
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(5px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}