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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0e0e0e;
  color: #f5f5f5;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Título */
.Me {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.Me-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.typewriter {
  font-size: 1.5rem;
  color: #00ffd0;
  border-right: 2px solid;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 3s steps(30, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: #00ffd0 }
}

/* Links del landing */
.Me nav {
  margin-top: 2rem;
}

.Me nav a {
  color: #00ffd0;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.3s;
}

.Me nav a:hover {
  color: #fff;
}

/* Secciones */
.section {
  padding: 4rem 2rem;
  max-width: 1500px;
  min-height: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #333;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Cartas de projecto */


.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.project-image {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
  border-bottom: 2px solid #f0c040;
}



/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 0.9rem;
}

/* Game-like Button */
.game-btn {
  background: #2e2e2e;
  border: 2px solid #f0c040;
  color: #f0c040;
  padding: 0.5rem 1rem;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  cursor: pointer;
  text-shadow: 0 0 2px #000;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 #a07020;
}


/* Carousel */
.carousel-container {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  justify-content: center;

}

.carousel-track {
  display: flex;
  overflow-x: hidden;
  gap: 1rem;
  scroll-behavior: smooth;
  padding: 1rem 0;
}

.project-card {
  width: 400px;
  height: 600px;
  background-color: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  vertical-align: top;
  cursor: pointer;
  flex-shrink: 0;
}

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

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

.project-grid {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 1rem 0;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #00ffd0;
  cursor: pointer;
  padding: 0 1rem;
}



/* About me Section */
.about-section {
  padding: 40px;
  background-color: #111; 
  color: #fff;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  min-height: 900px;
  margin: 0 auto;
  flex-wrap: wrap; 
}

.about-image {
  width: 300px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.about-text {
  flex: 1;
  min-width: 250px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Links */
a {
  color: #00ffd0; 
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

a:visited {
  color: #00ffd0;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  z-index: 1000;
  display: none;
  justify-content: center;
  padding: 4rem 2rem; 
}

.modal.show {
  display: flex;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1c1c1c;
  color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto; 
  position: relative;
}

.modal-content::-webkit-scrollbar {
  width: 15px;
}

.modal-content::-webkit-scrollbar-track {
  background: #252835; 
  border-radius: 15px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #484d64; 
  border-radius: 15px;
  border: 3px solid #252835; 
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #686d85; 
}

body.modal-open {
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #2EC4B6;
  background: transparent;
  border: none;
}

/* Modal top part */
.modal-top h3 {       /*  Title */
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal-header { /* Section header */
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.modal-header img { /* Poster img */
  width: 100%;
  max-width: 45%;
  border-radius: 10px;
}

.modal-header p { /* Text */
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-body {
  margin-top: 2rem;
}

.video-text-block {
  margin-top: 40px;
}

.video-intro {
  margin-bottom: 15px;
}

.video-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.video-container video {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.video-description {
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.text-image-block {
  margin-bottom: 2rem;
}

.image-gallery {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.image-gallery img {
  display: inline-block !important;
  width: 190px;
  height: 135px;
}

.image-text-pair {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.images-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.images-column img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.text-column {
  flex: 1;
  display: flex;
  align-items: center;
}

.scroll-box {
  height: 300px;
  overflow-y: scroll;
  padding: 1rem;
  border: 1px solid #ccc;
}

.filter-buttons {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-buttons button {
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 5px;
}

.filter-buttons button.active {
  background: #333;
  color: white; 
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #323232;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-top: 0;
}

.tag {
  display: inline-block;
  background: #eee;
  color: #666;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

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

.modal-contentW {
  background: #ff00e1;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
}

#download{
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 5px;
}

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

/* Remove default bullets and set up space */
.grid-item ul {
  list-style: none;
  padding-left: 0;
}

.grid-item ul li {
  position: relative;
  padding-left: 28px; 
  margin-bottom: 8px;
}

.grid-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background-image: url('assets/images/BulletPoint.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  animation: Jitter 0.65s infinite;
}

@keyframes Jitter {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(0.5px, -0.5px) rotate(-1deg); }
  50% { transform: translate(-0.5px, 0.5px) rotate(1deg); }
  75% { transform: translate(0.5px, 0.5px) rotate(-0.5deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

