/* Theme */
:root {
	/* Modern, airy palette */
	--bg: #f9fafb;              /* gray-50 */
	--bg-elev: #ffffff;
	--surface: #f3f4f6;         /* gray-100 */
	--text: #0f172a;            /* slate-900 */
	--muted: #475569;           /* slate-600 */
	--primary: #0ea5a8;         /* teal-600 */
	--primary-700: #0f766e;     /* teal-700 */
	--secondary: #0284c7;       /* sky-700 */
	--ring: rgba(14,165,168,.3);
	--shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
	/* Typography scale */
	--h2-size: clamp(1.25rem, 2.2vw, 1.6rem);
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--text);
	background: radial-gradient(1200px 800px at 10% -10%, #e0f2fe 0%, transparent 50%),
							radial-gradient(900px 600px at 100% 0%, #f0fdfa 0%, transparent 40%),
							linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 55%);
	line-height: 1.65;
	overflow-x: hidden;
}

/* Canvas background */
#bg-canvas { position: fixed; inset: 0; z-index: -1; display: none; width: 100%; height: 100%; }

/* Layout */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(10px); background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(2, 132, 199, 0.14); box-shadow: 0 2px 12px rgba(2, 6, 23, 0.04); }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; max-width: 1100px; margin: 0 auto; }
.brand-link { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5rem; }
.brand-logo { width: 28px; height: 28px; display: inline-block; filter: drop-shadow(0 2px 6px rgba(14,165,168,0.25)); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(15,23,42,0.12); color: var(--text); border-radius: 8px; padding: .4rem .6rem; }
.site-nav { display: flex; gap: .6rem; align-items: center; padding: 0 1rem 1rem; max-width: 1100px; margin: 0 auto; }
.site-nav a { color: var(--muted); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--text); background: rgba(14, 165, 168, 0.14); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,168,0.18); }

.view-container { max-width: 1100px; margin: 1rem auto 2.5rem; padding: 0 1rem; min-height: 60vh; position: relative; }

/* Sections & Cards */
.section { background: linear-gradient(180deg, #fff, #fcfdfd); border: 1px solid rgba(15,23,42,0.06); border-radius: 18px; box-shadow: var(--shadow); padding: 1.35rem; margin: 1rem 0; }
.section h1, .section h2 { margin-top: 0; letter-spacing: .2px; }
.section h2 { font-size: var(--h2-size); }
.section p { color: var(--text); }
.muted { color: var(--muted); }

/* Home hero */
.hero-title { font-size: var(--h2-size); line-height: 1.15; margin-bottom: .35rem; }
.section > .muted:first-of-type { margin-top: 0; margin-bottom: .8rem; }

/* About name emphasis */
.about-name { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .4rem; letter-spacing: .2px; }

.grid { display: grid; gap: 1.1rem; }
.grid.blog { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.people { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--bg-elev); border: 1px solid rgba(15,23,42,0.08); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 180px; height: 180px; background: radial-gradient(100px 100px at 70% 30%, rgba(14,165,168,0.18), transparent 60%); transform: rotate(15deg); pointer-events: none; }
.card h3 { margin-top: 0; }
.card:hover { transform: translateY(-3px); transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 14px 32px rgba(2, 6, 23, 0.10); }
.section h1 { border-bottom: 2px solid rgba(2,132,199,0.15); padding-bottom: .4rem; }

/* Buttons & badges */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-radius: 12px; text-decoration: none; font-weight: 600; color: white; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%); box-shadow: 0 8px 24px rgba(14,165,168,0.25); transition: transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(14,165,168,0.28); }
.badge { display: inline-block; background: rgba(14,165,168,.12); color: var(--primary-700); padding: .25rem .5rem; border-radius: 999px; border: 1px solid rgba(14,165,168,.25); }

/* Social icons */
.socials { display: flex; gap: .5rem; margin-top: .5rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(15,23,42,0.1); color: var(--text); background: var(--bg-elev); box-shadow: 0 6px 20px rgba(2,6,23,0.06); }
.socials a:hover { background: rgba(14,165,168,0.12); }

/* Profile images */
.person-photo {
	width: 100%;
	height: auto; /* show full image height proportionally */
	object-fit: contain; /* avoid cropping */
	border-radius: 12px;
	border: 1px solid rgba(15,23,42,0.08);
	box-shadow: var(--shadow);
	margin-bottom: .75rem;
}
.profile-avatar {
	width: clamp(200px, 24vw, 280px);
	height: auto;
	border-radius: 12px; /* rectangular, not circular */
	object-fit: cover;
	border: 1px solid rgba(15,23,42,0.10);
	box-shadow: var(--shadow);
	float: right; /* position to top-right of section */
	margin: 0 .5rem .75rem 1rem; /* space from text */
}

/* Group photo styling */
.img-card { padding: 0; }
.img-card::after { content: none; }
.group-photo { display: block; width: 100%; height: auto; border-radius: 16px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(15,23,42,0.06); color: var(--muted); padding: 2rem 1rem; text-align: center; }

/* Transitions */
.view { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s ease, transform .35s ease; }
.view.enter { opacity: 1; transform: translateY(0) scale(1); }
.view.exit { opacity: 0; transform: translateY(-6px) scale(.99); }

.fade { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from{ opacity: 0 } to { opacity: 1 } }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1rem; align-items: start; }
.map-card { background: var(--bg-elev); border: 1px solid rgba(15,23,42,0.08); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.map-embed { width: 100%; aspect-ratio: 16 / 10; border: 0; display: block; height: auto; }
@media (min-width: 900px){
	.map-card.full { height: 70vh; }
	.map-card.full .map-embed { height: 100%; aspect-ratio: auto; }
}

/* Responsive */
@media (max-width: 720px) {
	.nav-toggle { display: inline-block; }
	.site-nav { display: none; flex-direction: column; padding: 0 1rem 1rem; }
	.site-nav.open { display: flex; }
  .profile-avatar { float: none; display: block; margin: 0 auto 1rem; width: 70%; max-width: 320px; }
	/* Make the home group photo full-bleed inside the padded section and taller */
	.img-card { margin-left: -1.35rem; margin-right: -1.35rem; border-radius: 0; }
	.group-photo { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; }
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
