:root{
  --bg:#0b0f14;--bg2:#0f1620;--card:#121a25;--text:#e6edf3;--muted:#9fb0c2;--brand:#6bc2ff;--accent:#7affc6;
  --border: #1e2a38;--shadow: rgba(0,0,0,0.25);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;line-height:1.6}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:24px}
.nav{position:sticky;top:0;background:rgba(11,15,20,.72);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--border);z-index:20}
.nav-inner{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 24px}
.brand{display:flex;gap:12px;align-items:center;font-weight:700;letter-spacing:.4px}
.badge{font-size:12px;padding:3px 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted)}
.nav a{padding:8px 12px;border-radius:10px}
.nav a.active, .btn-primary{background:linear-gradient(135deg,var(--brand),#7aa7ff);color:#081018;box-shadow:0 8px 30px -8px var(--shadow)}
.grid{display:grid;gap:16px}
.grid.cards{grid-template-columns:repeat(auto-fill, minmax(260px,1fr))}
.card{background:linear-gradient(180deg,var(--card),var(--bg2));border:1px solid var(--border);border-radius:16px;box-shadow:0 10px 30px -18px var(--shadow);overflow:hidden}
.card > *{padding:16px 18px}
.card h3{margin:0 0 6px}
.card .muted{color:var(--muted);font-size:14px}
.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center}
.hero .title{font-size:42px;line-height:1.1;margin:0 0 12px}
.hero .subtitle{color:var(--muted);margin:0 0 20px}
.section{margin:40px 0}
.kbd{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;background:#0b1320;border:1px solid var(--border);padding:2px 6px;border-radius:6px;color:#c7d2fe}
/* Footer line (like header) */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px; /* pushes footer slightly down */
}


.btn-row{display:flex;gap:12px;flex-wrap:wrap}
.btn, .btn-primary{display:inline-block;padding:10px 14px;border-radius:12px;border:1px solid var(--border)}
.btn:hover{background:#0f1620}
ul.clean{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.tag{display:inline-block;border:1px solid var(--border);padding:6px 10px;border-radius:999px;color:var(--muted);font-size:13px;margin:4px 6px 0 0}
.project-img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-bottom:1px solid var(--border)}
@media (max-width: 860px){
  .hero{grid-template-columns:1fr}
  .hero .title{font-size:34px}
}

/* Icon hover effect */
.footer img:hover, .card img.icon-link:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(107,194,255,0.6));
  transition: all 0.2s ease-in-out;
}


/* Ensure consistent icon style */
.footer img, .contact-icons img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background-color: #0f1620;
  padding: 6px;
}

/* Hover effect */
.footer img:hover, .contact-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(107,194,255,0.6));
  transition: all 0.2s ease-in-out;
}


/* Uniform icon style */
.footer img, .contact-icons img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  background-color: #0f1620;
  padding: 6px;
}

/* Hover effect with tooltip */
.footer img:hover, .contact-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(107,194,255,0.6));
  transition: all 0.2s ease-in-out;
}


/* Before/After image row for Project 5 */
.img-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:12px;
}
.img-row img{
  width:100%;
  height:360px;
  object-fit:contain; /* show full images */
  background:#0f1620;
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px;
}
.img-row figure{margin:0}
.img-row figcaption{margin-top:6px;font-size:12px}

/* Social icon sizing + hover for About + Footer */
.social-icons img, .footer img{
  height:48px;
  width:48px;
  border-radius:50%;
  background:#0f1620;
  padding:6px;
  transition:transform .2s ease, filter .2s ease;
}
.social-icons img:hover, .footer img:hover{
  transform:scale(1.08);
  filter:drop-shadow(0 0 6px rgba(107,194,255,.6));
}


/* Clean footer icons: consistent size + hover */
.footer img{
  height:36px;
  width:36px;
  border-radius:50%;
  background:#0f1620;
  padding:4px;
  transition:transform .2s ease, filter .2s ease;
  vertical-align:middle;
}
.footer img:hover{
  transform:scale(1.08);
  filter:drop-shadow(0 0 6px rgba(107,194,255,.6));
}

/* Portfolio: 2-column layout + larger images */
.grid.cards.two-col{grid-template-columns:repeat(2,minmax(300px,1fr));gap:20px}
.card.large{grid-column:1 / -1}
.project-img{height:420px;object-fit:contain;background:#0f1620;border-bottom:1px solid var(--border)}
@media (max-width:960px){
  .grid.cards.two-col{grid-template-columns:1fr}
  .project-img{height:340px}
}
