/* Remove underline and set link color for project cards */
.project-card {
  text-decoration: none;
  color: inherit; /* keep same text color as normal text */
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fdfdfd;
  color: #333;
}

h1, h2 {
  margin: 0;
}

/* Header Banner */
.header-banner {
  width: 100%;
  height: 250px;
  background-color: #1b0036; /* solid professional color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-banner h1 {
  font-size: 2.8rem;
  text-shadow: 0 0 6px rgba(255,255,255,0.2);
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 0.5em;
  color: #ddd;
}

/* Content Wrapper */
.content-wrapper {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Project Cards */
.projects {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-card img.hero {
  width: 300px;
  border-radius: 12px;
  cursor: grab;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-info {
  flex: 1;
}

.project-info h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #111;
}

.project-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    text-align: center;
  }
  .project-card img.hero {
    width: 100%;
    max-width: 300px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #ddd;
  background-color: #f4f4f4;
}

/* Image Overlay */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: grab;
}

.image-overlay.active {
  display: flex;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.image-overlay-close {
  position: absolute;
  top: 24px;
  right: 36px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

/* ======== PROJECT PAGE STYLES ======== */
.header-banner.small {
  height: 180px;
  background-color: #1b0036;
  text-align: center;
}

.project-page article {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

/* Headings for project pages */
.project-page h2 {
  margin-top: 2em;
  font-size: 1.6rem;
  color: #111;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3em;
}

.project-page h3 {
  font-size: 1.3rem;
  margin-top: 1.5em;
  color: #222;
}

/* Paragraphs */
.project-page p {
  text-align: justify;
  margin: 1.2em 0;
}

/* Text emphasis */
.project-page strong {
  font-weight: 600;
  color: #000;
}

.project-page em {
  font-style: italic;
  color: #555;
}

/* Lists */
.project-page ol, .project-page ul {
  margin: 1em 0 1em 2em;
}

.project-page li {
  margin: 0.5em 0;
}

/* Images + captions */
.project-image {
  text-align: center;
  margin: 30px 0;
}

.project-image img {
  width: 800px;
  height: 500px;      /* pick any height you want */
  object-fit: cover;  /* preserves aspect ratio */
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}


.project-image figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* Links */
.project-page a {
  color: #2b6cb0;
  text-decoration: none;
}

.project-page a:hover {
  text-decoration: underline;
}

/* Back Button */
.back-btn {
  text-align: center;
  margin-top: 50px;
}

.back-btn a {
  text-decoration: none;
  color: #fff;
  background-color: #1b0036;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.back-btn a:hover {
  background-color: #3d1a72;
}

/* Overlay background */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Active state */
#overlay.active {
  display: flex;
}

/* Image inside overlay */
#overlay img {
  max-width: 90%;
  max-height: 90%;
  cursor: grab;
  transition: transform 0.1s ease;
}

/* Close button */
#overlayClose {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
