/* pstyle.css — styles for projects.html, matching site header/footer bar colors from STYLE.css */
:root {
	--bg-1: #0f1724;
	--bg-2: #0b1220;
	--bar-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	--card: #f7fafc;
	--accent: #16a34a;
	--muted: #6b7280;
	--max-width: 1100px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0
}

html,
body {
	height: 100%
}

body {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
	color: #111827;
	padding: 28px 14px;
	padding-bottom: 120px;
	/* Space for fixed footer */
}

.container {
	max-width: var(--max-width);
	margin: 0 auto
}

header {
	background: var(--bar-bg);
	padding: 18px 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 26px;
	border: 2px solid #ffffff;
}

header #logo {
	height: 64px;
	width: 64px;
	border-radius: 50%;
	object-fit: cover;
}

header h1 {
	font-size: 1.4rem;
	color: #fff;
	letter-spacing: 0.6px;
	margin-left: 12px;
}

nav ul {
	display: flex;
	gap: 12px;
	list-style: none;
	margin-left: auto
}

nav a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
}

nav a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--accent)
}

section {
	background: var(--card);
	border-radius: 10px;
	padding: 18px;
	margin: 12px auto 24px auto;
	box-shadow: 0 8px 24px rgba(2, 6, 23, 0.28);
	max-width: var(--max-width)
}

section h2 {
	color: #0f1724;
	margin-bottom: 10px;
	font-size: 1.5rem
}

section h1 {
	color: #0f1724;
	margin-top: 16px;
	margin-bottom: 12px;
	font-size: 1.8rem
}

section p {
	color: #1f2937;
	margin-bottom: 12px;
	line-height: 1.6
}

section button {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	margin-top: 16px;
	transition: background 0.2s ease;
}

section button:hover {
	background: #15803d
}

section button:focus {
	outline: 3px solid rgba(22, 163, 74, 0.3);
	outline-offset: 2px
}

.social-media {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap
}

.social-media img {
	height: 34px;
	width: auto;
	border-radius: 4px
}

.email-link {
	font-weight: 600;
	color: inherit;
	text-decoration: none
}

/* Footer */
/* Footer layout: full-width bar, inner .container centers the content.
   This visually separates the site footer from the content cards above. */
footer {
	position: relative;
	width: 100%;
	max-width: var(--max-width);
	margin: 40px auto 0 auto;

	background: var(--bar-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	border: 2px solid #ffffff;
	border-radius: 10px;

	padding: 18px 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.95rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	z-index: 10;
}

/* center the content inside the full-width footer */
footer>.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
}

footer small {
	display: block;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem
}

/* MA Services logo in footer - make circular */
footer .site-credit img {
	border-radius: 50%;
	width: 36px;
	height: 36px;
	object-fit: cover;
}

/* Utilities */
.muted {
	color: var(--muted)
}

/* Responsive */
@media (max-width:800px) {
	header {
		flex-direction: column;
		align-items: flex-start
	}

	nav ul {
		flex-wrap: wrap
	}

	header h1 {
		margin-left: 0;
		margin-top: 8px
	}

	footer>.container {
		flex-direction: column;
		gap: 16px
	}
}

@media (max-width:420px) {
	body {
		padding: 18px 12px
	}

	header #logo {
		height: 56px;
		width: 56px;
	}

	section h1 {
		font-size: 1.5rem
	}

	section h2 {
		font-size: 1.3rem
	}
}

/* Accessibility focus styles */
a:focus {
	outline: 3px solid rgba(14, 165, 164, 0.18);
	outline-offset: 2px
}

button:focus {
	outline: 3px solid rgba(14, 165, 164, 0.3);
	outline-offset: 2px
}

/* Auth button and avatar styles (match STYLE.css) */
.auth-actions .auth-btn {
	display: inline-block;
	background: #16a34a;
	/* green */
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 6px 14px rgba(22, 163, 74, 0.12);
}

.auth-actions .auth-btn:hover {
	opacity: 0.95
}

.auth-actions .auth-btn:focus {
	outline: 3px solid rgba(16, 185, 129, 0.18);
	outline-offset: 2px
}

.user-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.12)
}

/* Grid layout for project cards */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 24px;
	margin-bottom: 24px;
}

/* Individual project card styling */
.project-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-card h2 {
	color: #111827;
	font-size: 1.35rem;
	margin-bottom: 12px;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 8px;
	display: inline-block;
}

.project-card p {
	color: #4b5563;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 16px;
	flex-grow: 1;
}

.project-card h3 {
	margin-top: auto;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--accent);
	font-weight: 700;
	text-align: right;
}