/* --- 1. VARIABLES & RESET (DARK MODE) --- */
:root {
  /* DARK MODE PALETTE */
  --bg: #0d1117;          /* GitHub Dark Background */
  --card: #161b22;        /* Dark Grey for cards */
  --border: #30363d;      /* Subtle borders */
  --accent: #2ea043;      /* Coder Green */
  --accent-hover: #3fb950;
  --text-main: #c9d1d9;   /* Soft White text */
  --text-header: #ffffff; /* Bright White headers */
  --muted: #8b949e;       /* Grey for subtitles */
  
  --glass: rgba(22, 27, 34, 0.7); /* Dark Glass effect (See-through) */
  
  /* TERMINAL COLORS */
  --terminal-bg: #010409;
  --terminal-text: #e6edf3;
}

* { box-sizing: border-box; } 

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif; 
  margin: 0; 
  min-height: 100vh;
  padding-bottom: 50px;
  color: var(--text-main);

  /* OPTION 1: THE HACKER GRID BACKGROUND */
  background-color: var(--bg);
  background-image: 
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px; /* Size of the grid squares */
  background-position: center;
  background-attachment: fixed;
}

/* --- 2. HEADER --- */
.main-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 30px 0 20px 0;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

h1 { margin: 0; font-size: 1.8rem; color: var(--text-header); }
.subtitle { color: var(--muted); margin-top: 5px; font-weight: 500; font-size: 0.9rem; }

.heart-pulse {
    display: inline-block;
    color: var(--accent);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- 3. THE MENU (Single Row of 6) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 12px;
    max-width: 750px; 
    margin: 0 auto 40px auto; 
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: flex; 
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    aspect-ratio: 1 / 1; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 160, 67, 0.15); /* Green glow */
    border-color: var(--accent);
}

.icon { 
    font-size: 2rem; 
}

/* MOBILE TWEAK: Swipeable Row */
@media (max-width: 600px) {
    .bento-grid {
        display: flex;
        overflow-x: auto; 
        padding-bottom: 10px; 
        gap: 10px;
    }
    
    .card {
        min-width: 70px; 
        min-height: 70px;
    }
}

/* --- 4. TERMINAL STORY --- */
.story-section { margin-bottom: 30px; }

.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: 'Courier Prime', 'Courier New', monospace;
}

.terminal-header {
    background: #161b22;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.title { margin-left: auto; color: var(--muted); font-size: 0.75rem; font-family: sans-serif;}

.terminal-body {
    padding: 25px;
    color: var(--terminal-text);
    line-height: 1.6;
    font-size: 0.9rem; 
    text-align: justify;
}

.terminal-body h2 { color: var(--accent); margin-top: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; font-size: 1.2rem;}
.terminal-body strong { color: #ffffff; font-weight: 700; }

.highlight-link { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); transition: 0.2s;}
.highlight-link:hover { color: #fff; background: var(--accent-hover); border-bottom: none;}

/* --- 5. GALLERY --- */
.gallery-section {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.gallery-section h2 { margin-top: 0; color: var(--text-header); margin-bottom: 20px; font-size: 1.4rem;}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: zoom-in;
    opacity: 0.9; 
}

.photo-grid img:hover { 
    transform: scale(1.03); 
    opacity: 1;
}

@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* --- 6. FOOTER --- */
footer {
    text-align: center;
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.8rem;
}