:root { 
  --bg:#0f1115; 
  --card:#151821; 
  --text:#e9edf1; 
  --muted:#a7b0be; 
  --accent:#7bd389; 
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
.wrap{max-width:880px;margin:0 auto;padding:40px 20px}

/* ===== Header: centered left/right ===== */
header{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:80px;
  margin-bottom:28px;
  flex-wrap:wrap;
}

.navcol{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.mono{
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:28px;
  font-weight:700;
  letter-spacing:.5px;
  margin-bottom:6px;
}

nav{
  display:flex;
  gap:24px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:center;
}
nav a{
  color:var(--muted);
  text-decoration:none;
}
nav a:hover{
  color:var(--text);
}

/* ===== Clock ===== */
header .clock{
  display:inline-flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  padding:10px 12px;
  background:#121520;
  border:1px solid #232838;
  border-radius:14px;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
  min-width:260px;
  max-width:360px;
}
.clock .title{
  font-weight:700;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:6px 8px 4px;
  border-radius:8px;
  background:#0b0f16;
  border:1px solid #1f2431;
  color:var(--muted);
  text-align:center;
  position:relative;
}
.clock .title::after{
  content:"";
  display:block;
  width:60%;
  height:1px;
  margin:4px auto 0;
  background:linear-gradient(90deg,transparent,#2a2f3a,transparent);
  opacity:.6;
}
.clock .subtitle{
  font-size:10px;
  text-transform:none;
  letter-spacing:0;
  color:var(--muted);
  opacity:.8;
  margin-top:2px;
}
.clock .clock-row{
  display:flex;
  justify-content:center;
}
.clock .digits{
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:36px;
  letter-spacing:1.5px;
  background:#0b0f16;
  border:1px solid #1f2431;
  border-radius:10px;
  padding:10px 14px;
  min-width:160px;
  text-align:center;
  color:var(--text);
}
.clock .caption{
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  text-align:center;
  padding:0 4px;
}

/* ===== Cards & footer ===== */
.card{
  background:var(--card);
  border:1px solid #1f2431;
  border-radius:16px;
  padding:18px;
  margin-top:16px;
}
.card h3{
  margin:0 0 6px;
  font-size:18px;
}
footer{
  margin:36px 0 12px;
  color:var(--muted);
  font-size:14px;
  text-align:center;
}

/* ===== Completed Projects: links + descriptions ===== */
.completed-project { margin-bottom: 14px; }
.completed-project:last-child { margin-bottom: 0; }

a.project-link,
a.project-link:visited {
  color: var(--accent);
  filter: brightness(1.3);      /* brightens without changing hue */
  font-weight: 600;
  text-decoration: none;
}

a.project-link:hover {
  filter: brightness(1.6);
  text-decoration: underline;
}

.project-desc {
  display: inline-block;
  margin-top: 4px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Contact Link Styling ===== */
#contact a,
#contact a:visited {
  color: #9ef3a3;              /* same light green as project links */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

#contact a:hover {
  color: #b6ffc2;              /* gentle glow on hover */
  text-decoration: underline;
}

@media (max-width:540px){
  header{flex-direction:column;gap:20px}
  header .clock{width:100%;max-width:100%}
}
