/* Intro Section */
.intro-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.intro-text {
  flex: 2;
  font-size: 1.15rem;
  line-height: 1.8;
}

.intro-photo img {
  width: 280px;        /* force width */
  height: 280px;       /* force height (same as width) */
  object-fit: cover;   /* crop instead of squish */
  border-radius: 50%;  /* perfect circle */
  margin-left: 1.5rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}


/* Skills Grid */
.skills-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-column {
  flex: 1;
}

.skill-column h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.skill-column ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.skill-column li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Responsive */
@media (max-width: 900px) {
  .skills-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-column {
    width: 100%;
  }
}

/* Skills Grid */
.skills-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-column {
  flex: 1;
}

.skill-column h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.skill-column ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}

.skill-column li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Responsive */
@media (max-width: 900px) {
  .skills-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-column {
    width: 100%;
  }
}

/* ===== Projects Grid ===== */
.grid-container.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.project-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.project-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0.35rem 0;
  color: #444;
  line-height: 1.55;
}

.project-card ul {
  margin: 0.4rem 0 0.6rem 1.1rem;
}

.project-card li {
  margin-bottom: 0.35rem;
}

.project-tech {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.4rem;
}

.project-links a {
  color: #0b6efd;
  text-decoration: none;
  font-weight: 600;
}

.grid-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover; /* keeps image proportional while filling width */
  margin-bottom: 0.8rem;
}

.project-links a:hover { text-decoration: underline; }

/* optional: light section separators */
.section > h2, .level2 > h2 { margin-top: 2rem; }

/* ===== Modal Styles ===== */
.modal {
  display: none; /* hidden by default */
  position: fixed; 
  z-index: 1000; /* make sure it's on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay */
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto; /* center vertically and horizontally */
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

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

.modal-content p {
  color: #444;
  line-height: 1.55;
}

.modal-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 10px; /* spacing between images */
  margin-top: 15px;
}

.modal-image-grid img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #000;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideIn {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

.skills-lists {
  display: flex;
  gap: 5rem; /* space between lists */
  flex-wrap: wrap; /* wrap on smaller screens */
}

.skills-lists ul {
  list-style-type: disc; /* optional */
  padding-left: 1.2rem;
  margin: 0; /* remove default margin */
}