/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Stack on small screens */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Flip Card Container */
.flip-card {
  background: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
}

/* Inner wrapper */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

/* Flip effect */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front and back sides */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
}

/* Front image */
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back */
.flip-card-back {
  background-color: #1e1e1e;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
  text-align: left;
}

.flip-card-back h3 {
  margin-bottom: 0.3rem;
  margin-top: 2px;
}

.flip-card-back p {
  font-size: 0.65rem;
  margin-bottom: 1rem;
}

.flip-card-back a {
  color: #ff9800;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 20px 20px 20px;
}

.project-grid {
  gap: 30px;
  row-gap: 60px;
}


.profile-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}




/* Stack on mobile */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }
}




.tng-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.tng-table th {
  text-align: left;
  border-bottom: 2px solid #444;
  padding: 8px 10px;
}

.tng-table td {
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 10px;
  vertical-align: top;
}

.tng-table th:first-child,
.tng-table td:first-child {
  width: 200px;
}

/* Alternating row shading */
.tng-table tbody tr:nth-child(even) {
  background-color: #f6f6f6;
}

/* Slight hover effect (optional but nice) */
.tng-table tbody tr:hover {
  background-color: #ececec;
}

.tng-table code {
  font-family: monospace;
  font-size: 0.75rem;
}

details summary {
  padding: 6px 0;
  cursor: pointer;
  font-family: monospace;
  font-size: 0.9rem;
}

details summary:hover {
  color: #2c5aa0;
}