:root {
    --bg-body: #0f212e;
    --bg-card: #1a2c38;
    --accent: #00e701;
    --text-main: #ffffff;
    --text-dim: #b1bad3;
}

body { font-family: sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; }

header { background-color: var(--bg-card); padding: 1rem 2rem; border-bottom: 2px solid #2f4553; }
header img { height: 40px; }

nav ul { display: flex; list-style: none; background: var(--bg-card); padding: 10px 20px; margin: 0; }
nav li a { color: var(--text-dim); text-decoration: none; padding: 10px 15px; font-weight: bold; transition: 0.2s; }
nav li a:hover { color: var(--accent); }

main { padding: 20px; max-width: 900px; margin: auto; }

/* --- Section Visibility Logic --- */

/* 1. Hide all sections by default */
section {
    display: none;
    background: var(--bg-card);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* 2. Show the targeted section */
section:target {
    display: block;
}

/* 3. If no section is targeted, show Projects by default */
body:not(:has(:target)) #github-repos {
    display: block;
}

/* 4. If About or Contact IS targeted, hide the Projects section */
#about:target ~ #github-repos,
#contact:target ~ #github-repos {
    display: none;
}

/* --- UI Elements --- */

h2 { color: var(--accent); border-bottom: 1px solid #2f4553; padding-bottom: 10px; }
input, textarea { width: 100%; background: #0f212e; border: 1px solid #2f4553; color: white; padding: 10px; border-radius: 4px; box-sizing: border-box; }
input[type="submit"] { background: var(--accent); color: #000; border: none; padding: 10px 20px; cursor: pointer; }

a { color: var(--text-dim); text-decoration: none; padding: 10px 15px; font-weight: bold>
a:hover { color: var(--accent); }

/* --- Updated Link Visibility --- */
#repo-content a {
    color: #ffffff; /* Change from text-dim to white for better contrast */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

#repo-content a:hover {
    color: var(--accent); /* Still turns bright green on hover */
    text-decoration: underline; /* Adds underline on hover for clarity */
}

