/* --- NatLabs Retro Theme v2 --- */

/* Base layout */
body {
  margin: 0;
  background-color: #e9e9e9;
  font-family: "Verdana", "Geneva", sans-serif;
  color: #222;
  image-rendering: pixelated;
}

/* Retro-style header */
header {
  background: linear-gradient(to bottom, #0e728a, #045067);
  color: white;
  text-align: center;
  padding: 24px 12px;
  border-bottom: 4px double #fff;
  box-shadow: 0 3px 0 #033949, 0 6px 0 #022a36;
}

header h1 {
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  font-size: 36px;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #033949;
}

/* Navigation bar */
nav {
  background-color: #d6ecf3;
  border-bottom: 2px solid #0e728a;
  text-align: center;
  padding: 10px 0;
  box-shadow: inset 0 -2px 0 #b2dbe5;
}

nav a {
  color: #045067;
  text-decoration: underline;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  color: #0e728a;
  background-color: #e1f6ff;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Main layout container */
main {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border: 3px ridge #0e728a;
  padding: 20px;
  box-shadow: 4px 4px 0 #045067;
}

/* Headings */
h2 {
  color: #045067;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 4px;
  font-size: 22px;
  font-family: "Trebuchet MS", sans-serif;
}

/* Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 50px 0 20px;
}

/* --- Project Cards --- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.project-card {
  border: 2px groove #0e728a;
  background: #d6ecf3;
  padding: 10px;
  box-shadow: 2px 2px 0 #045067;
}

.project-card h3 {
  margin-top: 0;
  color: #045067;
  font-size: 18px;
}

/* --- Gallery --- */
.main-image {
  text-align: center;
  margin: 20px 0;
}

.main-image img {
  width: 100%;
  max-width: 700px;
  border: 4px double #045067;
  background: #d6ecf3;
  padding: 6px;
  box-shadow: 3px 3px 0 #045067;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  border: 3px solid #0e728a;
  background-color: #fff;
  padding: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  box-shadow: 2px 2px 0 #045067;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  border-color: #045067;
  background-color: #e1f6ff;
}

/* --- Responsive Gallery --- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .main-image img {
    max-width: 100%;
  }
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.85);
  text-align: center;
  padding-top: 60px;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border: 4px double #fff;
  background-color: #d6ecf3;
  padding: 8px;
  box-shadow: 0 0 8px #fff;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  font-family: "Courier New", monospace;
  background: #045067;
  padding: 6px 12px;
  border: 2px solid #fff;
  box-shadow: 2px 2px 0 #033949;
}

.lightbox .close:hover {
  background: #0e728a;
}

/* --- Image fallback --- */
img.loading {
  background: repeating-linear-gradient(
    45deg,
    #d6ecf3,
    #d6ecf3 10px,
    #e8f9ff 10px,
    #e8f9ff 20px
  );
}
/* --- Retro window frame for gallery --- */
.gallery-window {
  border: 2px solid #000;
  background-color: #c0c0c0;
  box-shadow: 4px 4px 0 #808080;
  margin: 20px auto;
  padding: 0;
  max-width: 750px;
}

.gallery-window .title-bar {
  background: linear-gradient(to bottom, #000080, #0000a0);
  color: #fff;
  font-family: "Tahoma", "Geneva", sans-serif;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 14px;
  border-bottom: 2px solid #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-window .title-bar .buttons {
  display: flex;
  gap: 4px;
}

.gallery-window .title-bar .buttons span {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: #ff5c5c; /* red close button */
  border: 1px solid #800000;
  cursor: pointer;
}
/* --- Profile image for About page --- */
.profile-image {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
  width: 150px;
  height: 150px;
  border: 3px double #045067;
  background-color: #d6ecf3;
  padding: 4px;
  box-shadow: 2px 2px 0 #045067;
  object-fit: cover;
}
/* --- Skills badges --- */
ul {
  list-style: none; /* remove default bullets */
  padding: 0;
}

ul li {
  display: inline-block;
  background-color: #d6ecf3;
  color: #045067;
  font-weight: bold;
  padding: 6px 12px;
  margin: 5px;
  border: 2px ridge #0e728a;
  box-shadow: 2px 2px 0 #045067;
  font-family: "Trebuchet MS", sans-serif;
  cursor: default;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

ul li:hover {
  background-color: #e1f6ff;
  transform: translateY(-2px);
}
/* --- Profile image hover effect --- */
.profile-image {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
  width: 150px;
  height: 150px;
  border: 3px double #045067;
  background-color: #d6ecf3;
  padding: 4px;
  box-shadow: 2px 2px 0 #045067;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 3px 3px 0 #045067, 0 0 10px #0e728a;
}
/* --- Skills list with proficiency bars --- */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  margin: 10px 0;
  font-family: "Trebuchet MS", sans-serif;
}

.skill-name {
  display: inline-block;
  width: 120px; /* adjust width as needed */
  font-weight: bold;
  color: #045067;
}

.skill-bar {
  display: inline-block;
  vertical-align: middle;
  width: 200px;
  height: 16px;
  background-color: #d6ecf3;
  border: 2px ridge #0e728a;
  box-shadow: 2px 2px 0 #045067;
  margin-left: 10px;
  position: relative;
}

.skill-level {
  height: 100%;
  background-color: #0e728a;
  border-right: 2px solid #045067;
  box-shadow: inset 1px 0 0 #045067;
}
/* --- Projects page --- */
.project-card {
  border: 2px solid #0e728a;
  background: #d6ecf3;
  padding: 10px;
  box-shadow: 2px 2px 0 #045067;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
  margin-bottom: 10px;
}

.project-card:hover {
  transform: scale(1.02);
  background-color: #e1f6ff;
}

.project-card h3 {
  margin-top: 0;
  color: #045067;
}

.project-details {
  margin-top: 10px;
  padding: 8px;
  border-top: 2px dashed #045067;
  background-color: #f0f9ff;
}
/* --- Animated project details --- */
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-top: 10px;
  padding: 0 8px;
  border-top: 2px dashed #045067;
  background-color: #f0f9ff;
}

/* When active */
.project-card.active .project-details {
  max-height: 1000px; /* large enough to fit content */
  padding: 10px 8px;
}

/* Project gallery inside details */
.project-gallery {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.project-gallery img {
  width: 100px;
  height: 70px;
  border: 2px solid #0e728a;
  padding: 2px;
  background-color: #d6ecf3;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
  border-color: #045067;
}
/* --- Updated Magenta + Pastel Yellow Retro Theme --- */

/* Backgrounds and text */
body {
  background-color: #fff8d6; /* pastel yellow */
  color: #800080; /* deep magenta */
  font-family: "Verdana", "Geneva", sans-serif;
  image-rendering: pixelated;
}

/* Header */
header {
  background: #ff99ff; /* light magenta */
  color: #fff8d6; /* pastel yellow */
  text-align: center;
  padding: 24px 12px;
  border-bottom: 4px double #ff66ff; /* darker magenta border */
  box-shadow: 0 3px 0 #cc33cc, 0 6px 0 #990099;
}

header h1 {
  font-size: 36px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #cc33cc;
}

/* Navigation */
nav {
  background-color: #fff0b3; /* very light pastel yellow */
  border-bottom: 2px solid #ff66ff;
  text-align: center;
  padding: 10px 0;
}

nav a {
  color: #800080;
  text-decoration: underline;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  color: #ff33ff;
  background-color: #fff8d6;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Project Cards */
.project-card {
  border: 2px solid #ff66ff;
  background: #fff8d6;
  box-shadow: 2px 2px 0 #ff33ff;
}

.project-card:hover {
  background-color: #fff0b3;
  transform: scale(1.02);
}

.project-card h3 {
  color: #800080;
}

/* Project Details */
.project-details {
  background-color: #fffacd; /* pale yellow */
  border-top: 2px dashed #ff66ff;
}

/* Project Gallery */
.project-gallery img {
  border: 2px solid #ff66ff;
  background-color: #fff0b3;
}

.project-gallery img:hover {
  border-color: #ff33ff;
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  background-color: rgba(128, 0, 128, 0.85); /* semi-transparent magenta overlay */
}

.lightbox-content {
  background-color: #fff8d6;
  border: 4px double #ff66ff;
}

.lightbox .close {
  background: #ff33ff;
  border: 2px solid #fff8d6;
}
.lightbox .close:hover {
  background: #ff66ff;
}
/* Gallery Grid Images */
.gallery-grid img {
  width: 120px;       /* all images same width */
  height: 90px;       /* all images same height */
  object-fit: cover;  /* crop/scale to fill the box without distortion */
  border: 2px solid #008080;
  padding: 2px;
  background-color: #fff;
  margin: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  border-color: #004040;
}
#guestbook-form input, 
#guestbook-form textarea {
  width: 90%;
  padding: 6px;
  border: 2px solid #008080;
  box-shadow: 2px 2px 0 #004040;
  font-family: "Verdana", sans-serif;
  font-size: 14px;
}

#guestbook-form button {
  padding: 6px 12px;
  border: 2px solid #008080;
  background-color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 #004040;
}

#guestbook-form button:hover {
  background-color: #f0f0f0;
}

.guestbook-entry {
  background-color: #fff;
  border: 2px solid #008080;
  padding: 6px;
  margin-bottom: 8px;
  box-shadow: 2px 2px 0 #004040;
  text-align: left;
}
/* Small inline icons */
.small-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 4px;
}

/* Decorative corner icons inside page-box */
.corner-icon {
  width: 24px;
  height: 24px;
  position: absolute;
}

.page-box {
  position: relative; /* to contain corner icons */
}

/* Corner positions */
.corner-icon.top-left { top: 4px; left: 4px; }
.corner-icon.top-right { top: 4px; right: 4px; }
.corner-icon.bottom-left { bottom: 4px; left: 4px; }
.corner-icon.bottom-right { bottom: 4px; right: 4px; }
/* Guestbook Entries */
.guestbook-entry {
  background-color: #fff;
  border: 2px solid #008080;
  padding: 6px;
  margin-bottom: 8px;
  box-shadow: 2px 2px 0 #004040;
  text-align: left;
  position: relative;
}

/* Entry icons (stickers) */
.entry-icon {
  width: 30px;   /* increased from 20px */
  height: 30px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Inline small icons (header, buttons, headings) */
.small-icon {
  width: 30px;   /* increased from 20px */
  height: 30px;
  vertical-align: middle;
  margin: 0 4px;
}

/* Decorative corner icons */
.corner-icon {
  width: 36px;  /* slightly bigger */
  height: 36px;
  position: absolute;
}

.page-box {
  position: relative; /* for corner icons */
}

.corner-icon.top-left { top: 4px; left: 4px; }
.corner-icon.top-right { top: 4px; right: 4px; }
.corner-icon.bottom-left { bottom: 4px; left: 4px; }
.corner-icon.bottom-right { bottom: 4px; right: 4px; }

