/* --- Fonts Import --- */
/* JetBrains Mono for headers, Inter for text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=JetBrains+Mono:wght@400;700&display=swap');

/* --- CSS Variables for Easy Color Management --- */
:root {
  --bg-color: #0f172a;       /* Deep Navy Canvas */
  --panel-bg: #1e293b;       /* Slightly lighter Navy for panels */
  --text-color: #e2e8f0;     /* Silver/White Text */
  --border-color: #334155;   /* Muted Silver-Gray Wireframes */
  --accent-color: #f2973b;   /* Signature Orange */
}

/* --- Base Styles --- */
body {
  margin: auto;
  width: 95%;
  text-align: left;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-color);
  font-weight: 700;
  margin-top: 1.5em;
}

/* --- Structural Bounding Boxes (The "IDE" Panels) --- */
section, header, footer {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: var(--panel-bg);
}

/* --- Link Micro-Interactions --- */
a {
  color: #feddbe; /* A distinct slate-silver color so in-line links are easy to spot */
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* The left-to-right drawing underline */
a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 2px;
  left: 0; 
  background: var(--accent-color);
  transition: width 0.3s ease; 
}

a:hover::after {
  width: 100%;
}

/* --- Fixes for Gallery Link Double Borders --- */
.gallery-item a, .two-column-item a {
  display: block; /* Makes the entire image block cleanly clickable */
}

.gallery-item a::after, .two-column-item a::after {
  content: none !important; /* Completely removes the text underline effect from images */
}

/* --- Images & Videos Bounding Boxes --- */
video {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 10px 0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.video-item {
  margin-bottom: 30px;
  padding: 0px;
  /* Original white background removed to match dark mode */
}

.featured-images {
  margin-bottom: 2rem;
}

.video-sized-image {
  margin-bottom: 30px;
}

.video-sized-image img {
  width: 100%; 
  max-width: 600px;
  height: auto;
  display: block;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* --- Responsive Gallery --- */
.responsive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 15px;
  border: 1px solid var(--border-color); /* Wireframe around the whole gallery */
  border-radius: 6px;
  background-color: var(--bg-color); /* Recessed look against the panel */
}

/* Gallery Items (The "Pop" Effect) */
.gallery-item {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--panel-bg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  border-width: 2px; 
  border-color: var(--accent-color); 
  transform: translateY(-4px); 
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px 3px 0 0; /* Rounds top corners of image to stay inside the border */
}

.desc {
  padding: 15px;
  text-align: center;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace; /* Technical font for captions */
}

/* --- Two-Column Clean Gallery --- */
.two-column-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-color);
}

.two-column-item {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.two-column-item:hover {
  border-width: 3px;            /* Slightly increases the thickness on hover */
  border-color: var(--accent-color);
  transform: translateY(-4px);
}

.two-column-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Index Page Two-Column Layout --- */
.index-columns-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px; 
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  background-color: var(--panel-bg);
}

.index-column {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px;
  background-color: var(--bg-color);
}

@media (max-width: 600px) {
  .index-columns-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
