* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #0f0f11;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  overflow-x: hidden;
}
a:link, a:visited{
  color: #8ee8d0;
}
a:hover{
  color: #54a0ff;
}

.no-style-link {
  color: inherit;       /* keep the parent text color */
  text-decoration: none; /* remove underline */
  font-weight: inherit;  /* keep normal weight */
  font-style: inherit;   /* keep italics if any */
  cursor: inherit;       /* default cursor, optional */
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(6px);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
header.sticky-active {
  background-color: rgba(15, 15, 17, 0.5); /* color nuevo al pegar */
}
nav {
  display: flex;
  gap: 2rem;
}
.logo {
  color: rgba(29, 209, 161, 1);
  font-weight: bold;
  font-size: 1.5rem;
}
header.sticky-active .logo {
  color: #54a0ff;
}
.logo span{
  color: rgba(15, 15, 17, 0.5);
}
header.sticky-active .logo span{
  color: white;
}
nav a:link, nav a:visited {
  text-decoration: none;
  color: white;
}
nav a:hover {
  color: #8ee8d0;
}
canvas#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hello {
  padding: 5rem 2rem;
  max-height: 500px;
  z-index: 1;
  position: relative;
  overflow: hidden; /* prevents canvas overflow */
}
.hello-content {
  position: relative; /* so it's above the canvas */
  z-index: 1;
  max-width: 40vw;
  margin-left: 20vw; /* 1/4 from left */
}
.hello-content-aboutme {
  position: relative; /* so it's above the canvas */
  z-index: 1;
  max-width: 80vw;
  margin-left: 10vw; /* 1/4 from left */
}
.hello h1 {
  font-size: 3rem;
  line-height: 1.2;
}
.hello p {
  margin-top: 1rem;
  color: #9b9ea3;
  margin-bottom: 1rem; 
}
.highlight {
  color: #54a0ff;
}
.hello .btn {
  display: inline-block;
  margin-top: 1rem;
  border: 1px solid #54a0ff;
  padding: 0.8rem 2rem;
  text-decoration: none;
  color: white;
  background-color: rgba(15, 15, 17, 0.7); /* con 50% de transparencia */
  border-radius: 3px;
}

.hello-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind text */
  
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  background-color: rgba(0,0,0,0.5); /* tint */
  background-blend-mode: overlay; 
}

.skills, .about-me, .contact,
footer {
  padding: 4rem 2rem;
}

.contact {
  text-align: center;
}
.contact ul {
  list-style: none;
}

footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777; /* subtle, muted */
  background-color: #0f0f11; /* optional: darker than main content */
}

h2{
  font-size: 2rem;
  margin-bottom: 2rem;
}
.skills h2 {
  text-align: right;
}

h3{
  color: #56ddb9;
}

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* General image rule for .skills */
.skills img {
  width: 20vw;
  max-width: 400px;
  height: auto;
}

/* Layout for image + columns in .skills section */
.skills .content-img-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: space-between;
}

/* About section layout (left image) stays as-is */
.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.about-layout img {
  width: 25vw;
  max-width: 300px;
  height: auto;
}

.about-content {
  flex: 1;
}


.projects {
  display: flex;
  padding: 4rem 2rem;
  align-items: center;
}
.projects img {
  width: 50%;
  max-width: 400px;
}
.projects ul {
  margin-left: 2rem;
  list-style: none;
}
.gallery {
  padding: 4rem 2rem;
  text-align: center;
  background: #2a2a2c;
}
.gallery .btn,
.project-card .btn
{
  display: inline-block;
  margin-top: 0rem;
  margin: 0rem 0rem 2.5rem 0rem;
  border: 1px solid #8ee8d0;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.project-card .btn{
  border: 1px solid #54a0ff;
}

.gallery .btn:hover ,
.project-card .btn:hover
{
  background-color: rgba(84, 160, 255, 0.1);
  color: white;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  margin: 0rem auto;   /* center horizontally */
  text-align: center;
  max-width: 50%;      /* takes at most half the page width */
}

.thumbnails img {
  width: 100%;       /* image fills the column */
  max-width: 70px;  /* but stays small */
  height: auto;
  border-radius: 6px;
}

.thumbnails p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.thumb p a {
  text-decoration: none; /* removes underline */
  font-weight: bold;     /* makes it bold */
}

.thumbnails .thumb img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* optional, makes it look cleaner */
}

.thumbnails .thumb img:hover {
  transform: scale(1.05); /* tiny zoom-in */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* subtle lift */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 2rem; /* space between cards */
  margin-top: 2rem;
}

.project-card {
  background: #202020;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card p span,
.highlight-green {
  font-weight: bold;
  color: #8ee8d0;
}


.project-card h2 {
  margin-bottom: 1rem;
}

.project-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card p {
  margin: 0.3rem 0;
}

.tooltip {
  position: relative;
  cursor: help; /* cursor changes to a question mark or help icon */
  color: #54a0ff;
  border-bottom: 1px dotted #54a0ff;
}

.tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: rgba(15,15,17, 0.9);
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* position above the text */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  font-size: 0.9rem;
  line-height: 1.3;
  pointer-events: none; /* so it doesn't block mouse */
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
