/* Styling the navigation bar */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: black; 
  color: white;
  padding: 10px;
  z-index: 100;
}

#navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

#navbar li {
  display: inline;
  margin-right: 20px;
}

#navbar a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

#navbar a:hover {
  color: #f0f0f0;
}

/* Body styling */
body {
  background-color: black;
  color: gray;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 60px; /* Space for the navbar */
}

/* Content styling */
#content {
  margin-top: 80px; 
  padding: 20px;
}

a {
  color: lightgray;
  text-decoration: none;
}

a:hover {
  color: white;
}

/* Regular text */
p, li, div {
  color: gray;
}

html {
  scroll-behavior: smooth;
}

/* Header styling */
#content h2 {
  color: white;
  font-weight: bold;
  text-align: center;
  margin: 4rem 0; /* Reduced space above and below */
  padding: 0; 
}

/* Section padding and margin */
section {
  margin-bottom: 40px;
}

/* Home section styling */
.home-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 66vh;
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto; 
  gap: 40px; 
}

.home-image {
  flex: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.home-description {
  flex: 1;
  text-align: left;
  color: white;
}

.home-description h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: white;
}

.home-description p {
  font-size: 1.2rem;
  color: gray;
}

/* Section container for smaller sections */
.section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 66%;
  margin: 0 auto;
  min-height: 80vh;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 10px 0;
}

/* Column styling inside sections */
.section-container .column {
  flex: 1 0 30%;
  box-sizing: border-box;
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 8px;
}

.section-container .column img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.section-container .column h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.section-container .column p {
  font-size: 1rem;
  color: gray;
}

/* Grid container for multiple items */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

.grid-item {
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.grid-item img {
  width: 100%;
  height: 60%;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

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

.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #0366d6; /* GitHub blue */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #024fa1; /* Darker blue */
}

/* Social links styling */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-links a {
  font-size: 32px;
  color: white;
  transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.social-links a:hover {
  color: #1DA1F2;
  transform: scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 700px;
  color: white;
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover {
  color: red;
}

.section-title {
  color: white;
  font-weight: bold;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap; /* Para responsive */
}

.about-left {
  flex: 1;
  min-width: 300px;
}

.about-right {
  flex: 1;
  min-width: 300px;
}

.about-right h3 {
  color: white;
  margin-bottom: 1rem;
}

.tech-columns {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tech-columns div {
  min-width: 150px;
}

.tech-columns h4.section-title {
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tech-columns ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.tech-columns ul li::marker {
  color: #00ff90; /* or whatever green you like */
}

.tech-columns li {
  margin-bottom: 0.3rem;
}

.modal-info-card h3 {
  margin-top: 0;
  color: #ffffff;
}

.modal-info-card ul {
  list-style-type: disc;
  padding-left: 1.5em;
  color: #ffffff; /* color blanco para texto y bullets */
}

.modal-info-card li strong {
  color: white; /* los labels como 'Client:' también en blanco */
}

.modal-info-card a {
  color: #3399ff; /* azul para los links */
  text-decoration: underline;
}

#modal ul {
  list-style-type: disc;
  color: white;
  padding-left: 1.5em;
}

#modal a {
  color: #3399ff; /* azul claro */
  text-decoration: underline;
}