﻿
html { height: 100%; background: #cbd5e1; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f172a; line-height: 1.6; }
:root { --hero-collapsed-h: 112px; --hero-current-h: 240px; }
* { box-sizing: border-box; }

/* Layout helpers */
.container { width: min(100%, 960px); margin: 0 auto; padding: 0 16px; }
.main { padding: 240px 0 0px; }

/* Hero */
.hero { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #0a3d62 url('../images/banner.svg') center/cover no-repeat; color: #fff; min-height: 220px; transition: min-height .28s ease, padding .28s ease, box-shadow .28s ease, backdrop-filter .28s ease; }
.hero__content { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 16px; transition: padding .28s ease; }
.hero__left { display: flex; align-items: center; gap: 16px; }
.hero__right { text-align: right; }
.hero-link { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.7); padding: 8px 14px; border-radius: 999px; display: inline-block; font-weight: 600; letter-spacing: 0.2px; background: rgba(255,255,255,0.08); }
/* Keep hero link white in all states so it doesn't change to blue/visited */
.hero-link:link,
.hero-link:visited { color: #fff; text-decoration: none; border-color: rgba(255,255,255,0.7); }
.hero-link:hover,
.hero-link:active { color: #fff; text-decoration: none; background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.9); }

/* Compact header state (after scroll) */
.hero--compact { min-height: var(--hero-collapsed-h); box-shadow: 0 6px 24px rgba(2,6,23,0.15); backdrop-filter: saturate(130%) blur(2px); opacity: 0.9; }
.hero--compact .hero__content { padding: 8px 16px; }
.hero--compact .tagline { display: none; }
.hero--compact .intro h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.8); box-shadow: 0 8px 24px rgba(0,0,0,0.25); background: #fff; }
.intro h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.2; }
.tagline { margin: 0 0 8px; color: #e2e8f0; font-size: 18px; font-weight: 600; }
.links a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.6); padding: 6px 12px; border-radius: 20px; display: inline-block; }
.links a:hover { background: rgba(255,255,255,0.15); }

/* Cards */
.card { background: #f0f4f8; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 8px 24px rgba(15,23,42,0.05); width: min(100%, 820px); margin: 0 auto 16px; }

/* Typography */
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; line-height: 20px; display: block; padding: 10px 20px; margin: -18px -20px 12px; background-color: rgba(10, 61, 98, 0.10); color: #0a3d62; border-radius: 12px 12px 0 0; }
p { margin: 10px 0; color: #1f2937; }

/* Text alignment: justify main content paragraphs */
.main .card p { text-align: justify; text-justify: inter-word; }

/* Skills */
.skills { list-style: none; padding: 0; margin: 0; }
.skills a { background-color: #f8fafc; display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: 999px; color: #0a3d62; }
/* Ensure skills link color stays consistent across states and overrides global link colors */
.skills a:link,
.skills a:visited,
.skills a:hover,
.skills a:active { color: #0a3d62; }
.skills a:hover { background-color: #eef2ff; text-decoration: none; }
.skills li { border: 1px solid #cbd5e1; display: inline-block; margin: 4px 6px 0 0; border-radius: 999px; }
li.primary-skill { font-weight: 700; }

/* Footer: match header's dark theme */
.site-footer { border-top: 1px solid rgba(255,255,255,0.15); background: linear-gradient(180deg, #0a3d62 0%, #09445d 100%); color: #fff; }
.site-footer .container { padding: 16px; text-align: center; color: #e2e8f0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/*div.box
{
    background: url(../images/bg_box.png) bottom left no-repeat;
    padding: 10px 30px 20px 30px;
    width: 300px;
}
html>body div.box 
{
    width: 240px;
} 

#outer
{
	_height: 100%;
	background-color: #DDEDFF;
	border-left: 10px solid #E0EEFF;
	border-right: 10px solid #E0EEFF;
	border-top: 0px;
	min-height: 100%;
	text-align: center; 
	z-index: 0;
}

#inner
{
	background-color: #FFFFFF;
	border-left: solid 2px #E0EEFF;
	border-right: solid 2px #E0EEFF;
	min-height: 100%;
	margin: 0 auto;
	text-align: center;
	width: 800px;
}*/

td  { line-height: 30px; }

/* Legacy utility remnants and modals retained but hidden by default */
#screen, #under-construction2, #browser-error { display: none; }

/* Links */
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #2563eb; }

/* Responsive */
@media (max-width: 640px) {
	:root { --hero-collapsed-h: 88px; }
	.hero__content { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
	.hero__right { align-self: stretch; text-align: left; }
	.avatar { width: 88px; height: 88px; }
}