/* --- RESET & BASICS --- */
:root {
  --bg-color: #050505;
  --text-main: #b8b8b8;
  --accent: #00ff41; /* Terminal Green */
  --accent-secondary: #bd00ff; /* Cyber Purple */
  --border-style: 2px solid #333;
  --font-stack: 'VT323', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 18px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-main);
  transition: 0.3s;
}

a:hover {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  text-shadow: 0 0 5px var(--accent);
}

/* --- LAYOUT CONTAINER --- */
.container {
  max-width: 1000px;
  margin: 20px auto;
  border: 1px solid #333;
  background: #0a0a0a;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  position: relative;
  z-index: 2; /* Sits above scanlines */
}

/* --- HEADER --- */
header {
  border-bottom: var(--border-style);
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 2px 2px 0px var(--accent-secondary);
}

.blink {
  animation: blinker 1s linear infinite;
  color: var(--accent);
}

@keyframes blinker {
  50% { opacity: 0; }
}

nav {
  margin-top: 15px;
  word-spacing: 15px;
}

/* --- MAIN CONTENT GRID --- */
.main-content {
  display: grid;
  grid-template-columns: 250px 1fr; /* Sidebar fixed, content flex */
  min-height: 600px;
}

/* --- SIDEBAR --- */
aside {
  border-right: var(--border-style);
  padding: 20px;
  background: #080808;
}

.profile-pic img {
  width: 100%;
  border: 2px ridge var(--accent);
  filter: grayscale(100%);
}

.sidebar-box {
  margin-top: 20px;
  border: 1px dotted #333;
  padding: 10px;
}

.sidebar-box h3 {
  margin-top: 0;
  border-bottom: 1px solid #333;
  color: #fff;
}

.accent {
  color: var(--accent);
}

.link-list {
  list-style: square;
  padding-left: 20px;
}

.badges {
  margin-top: 30px;
  text-align: center;
}

.badges img {
  image-rendering: pixelated;
  margin: 2px;
}

/* --- MAIN GALLERY AREA --- */
main {
  padding: 20px;
}

.gallery-intro {
  border: 1px solid #222;
  padding: 10px;
  background: #000;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.timestamp {
  color: var(--accent);
  text-transform: uppercase;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.photo-card {
  background: #111;
  border: 1px solid #333;
  padding: 5px;
  transition: transform 0.2s;
}

.photo-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.1);
}

.img-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for uniformity */
  overflow: hidden;
  border: 1px solid #222;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: 0.4s;
}

/* Hover Effect: Bring back color */
.photo-card:hover .img-wrapper img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.1);
}

.caption {
  font-size: 0.8rem;
  margin-top: 5px;
  text-align: right;
  color: #666;
}

/* --- FOOTER --- */
footer {
  border-top: var(--border-style);
  padding: 10px;
  background: #000;
  color: var(--accent);
  font-size: 0.9rem;
}

/* --- EXTRAS: SCANLINES & SCROLLBAR --- */

/* CRT Scanlines Overlay */
.scanlines {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.2)
  );
  background-size: 100% 4px;
  pointer-events: none; /* Allows clicking through */
  z-index: 10;
  opacity: 0.6;
}

/* Custom Scrollbar (Webkit only) */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #000; 
  border-left: 1px solid #333;
}
::-webkit-scrollbar-thumb {
  background: #333; 
  border: 1px solid #555;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Mobile Responsiveness */
@media (max-width: 700px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  aside {
    border-right: none;
    border-bottom: var(--border-style);
  }
}