/* Theme tokens */
:root {
	--bg: #0b1020;
	--bg-2: #101a33;
	--text: #e6edf5;
	--muted: #9aa8bb;
	--accent: #5dd6ff;
}

/* Global reset + fluid base */
* {
	box-sizing: border-box;
}

html, body { height: 100%; }

/* Smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(700px circle at 15% 20%, rgba(93, 214, 255, 0.14), transparent 36%),
		radial-gradient(600px circle at 80% 10%, rgba(93, 214, 255, 0.10), transparent 40%),
		linear-gradient(135deg, var(--bg), var(--bg-2));
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
	line-height: 1.6;
}

/* Fluid, centered hero */
header {
	min-height: 68vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: clamp(1.25rem, 3vw, 3rem);
	gap: 1.1rem;
	position: relative;
	overflow: hidden;
}

/* Soft fluid accent behind the title */
header::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto -10%;
	height: 60vh;
	background: radial-gradient(closest-side, rgba(93, 214, 255, 0.15), transparent 70%);
	filter: blur(40px);
	z-index: 0;
}

h1 {
	margin: 0 0 0.75rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	font-size: clamp(2.25rem, 6.5vw, 4.75rem);
	line-height: 1.08;
	position: relative;
	z-index: 1;
	background: linear-gradient(180deg, #ffffff, #cfe8f7 60%, #b7dcf3);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

header p {
	max-width: 70ch;
	margin: 0;
	color: var(--muted);
	position: relative;
	z-index: 1;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
}

nav {
	position: relative;
	z-index: 1;
}

.btn, nav a {
	display: inline-block;
	margin: 0.5rem 0.6rem;
	padding: 0.6rem 0.9rem;
	color: var(--bg);
	background: var(--accent);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 10px 25px rgba(93, 214, 255, 0.15);
}

.btn:hover, nav a:hover { filter: brightness(1.06); }

/* Content area spacing */
main, footer {
	padding: clamp(1rem, 3vw, 2rem);
}

h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* Project logo in Projects section */
.project-logo {
	width: clamp(140px, 30vw, 220px);
	height: auto;
	display: inline-block;
	border-radius: 12px;
}

/* Clickable project card (image + label) */
.project-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 0.9rem 1rem;
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(93, 214, 255, 0.18);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
	width: 100%;
	height: 100%;
	transition: transform 160ms cubic-bezier(.2,.7,.2,1),
				box-shadow 160ms ease,
				border-color 160ms ease,
				filter 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
	outline: none;
	transform: translateY(-1px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), 0 10px 26px rgba(93, 214, 255, 0.12);
	border-color: color-mix(in oklab, var(--accent) 55%, transparent);
}

.project-card__label {
	display: inline-block;
	padding: 0.42rem 0.75rem;
	border-radius: 10px;
	/* Fallback, then modern mix to reduce saturation */
	background: rgba(93, 214, 255, 0.14);
	background: color-mix(in oklab, var(--accent) 18%, transparent);
	color: var(--text);
	font-weight: 600;
	font-size: 0.92rem;
	border: 1px solid rgba(93, 214, 255, 0.24);
	box-shadow: 0 6px 16px rgba(93, 214, 255, 0.12);
	transition: background 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.project-card:hover .project-card__label,
.project-card:focus-visible .project-card__label {
	background: rgba(93, 214, 255, 0.22);
	background: color-mix(in oklab, var(--accent) 28%, transparent);
	border-color: color-mix(in oklab, var(--accent) 45%, transparent);
}

/* Responsive grid for project cards */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(0.9rem, 2.5vw, 1.5rem);
	align-items: stretch;
}

/* CTA under project logo */
.project-cta { text-align: center; margin-top: 0.4rem; }

/* Headshot (responsive) */
.hero-headshot { position: relative; z-index: 1; }
.hero-headshot .headshot {
	display: block;
	width: clamp(140px, 35vw, 260px);
	height: auto;
	border-radius: 50%;
	/* Keep subtle glow with drop-shadow; no ring */
	box-shadow: none;
	filter: drop-shadow(0 10px 28px rgba(93, 214, 255, 0.22))
			drop-shadow(0 2px 12px rgba(0, 0, 0, 0.15));
}

/* Make images scale nicely */
img { max-width: 100%; height: auto; }

/* Responsive layout for content */
main {
	max-width: min(72rem, 92vw);
	margin-inline: auto;
}

section {
	padding-block: clamp(1.25rem, 2.5vw, 2.5rem);
}

.demo-sticky {
	position: fixed;
	bottom: 0;
	top: auto;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	background: rgba(255, 243, 238, 0.95);
	color: #4b2b22;
	border-top: 1px solid rgba(75,43,34,0.06);
	z-index: 1400;
	font-size: 0.95rem;
}
.demo-sticky__text { font-weight: 700; }
.demo-sticky__close { background: transparent; border: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: inherit; padding: 4px 8px; }

/* when banner present, add top spacing to body via variable */
:root { --demo-banner-height: 0px; }
/* apply spacing at the bottom when the banner is visible */
body { padding-bottom: var(--demo-banner-height); }

/* Contact link buttons with visible site names */
.contact-links {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.6rem;
	flex-wrap: wrap;
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.8rem;
	background: var(--accent);
	color: var(--bg);
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(93, 214, 255, 0.12);
	transition: transform 140ms ease, filter 140ms ease;
}

.contact-btn svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }

.contact-btn .btn-text { font-weight: 700; color: var(--bg); font-size: 0.95rem; }

.contact-btn:hover, .contact-btn:focus { transform: translateY(-2px); filter: brightness(1.03); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h2 {
	font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

h3 {
	font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

@media (min-width: 768px) {
	header { min-height: 72vh; }
	.hero-headshot .headshot { width: clamp(200px, 22vw, 300px); }
	nav a { padding: 0.7rem 1rem; }
}

/* Desktop-only two-column layout for sections */
@media (min-width: 1024px) {
	main {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(1.25rem, 3vw, 2.5rem);
		align-items: start;
	}
	main > section {
		/* Ensure sections look clean in columns */
		padding-block: clamp(1.25rem, 2vw, 2rem);
	}

	/* Center the Projects grid within its section on desktop */
	/* Make Projects span full width of the two-column layout */
	#projects { grid-column: 1 / -1; }
	#projects .project-grid {
		max-width: min(64rem, 92vw);
		margin-inline: auto;
		justify-items: center;
	}
}

/* Pricing cards styles */
.pricing-grid {
	display: block;
	margin: 0;
}

.pricing-col {
	display: block;
}

/* Desktop: two independent column stacks so expanding a card in one
   column doesn't affect the other column. Each `.pricing-col` becomes
   a vertical stack that grows independently. */
@media (min-width: 1024px) {
	.pricing-grid {
		display: flex;
		gap: 1rem;
		align-items: flex-start;
	}
	.pricing-col {
		flex: 1 1 0px;
		display: flex;
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}
	details.pricing-card { width: 100%; }
}

/* Mobile: flatten the column wrappers so we can control visual order
   without changing markup. This produces: Static, Dynamic, Full-Service */
@media (max-width: 1023px) {
	.pricing-grid {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	/* treat the column containers as transparent for layout so their
	   children behave as direct children of .pricing-grid */
	.pricing-col { display: contents; }

	/* default ordering - keep safe high value */
	.pricing-card { order: 99; }

	/* Static (left column, first card) */
	.pricing-col--left > .pricing-card:first-of-type { order: 1; }

	/* Dynamic (right column card) */
	.pricing-col--right > .pricing-card { order: 2; }

	/* Full-Service explicit */
	.pricing-card--fullservice { order: 3; }
}

details.pricing-card {
	display: block;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	background: rgba(255,255,255,0.02);
	box-shadow: 0 8px 20px rgba(0,0,0,0.18);
	overflow: hidden;
}

details.pricing-card > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
}

details.pricing-card > summary::-webkit-details-marker { display: none; }

.summary-heading { display: flex; flex-direction: column; gap: 0.15rem; }
.summary-heading h3 { margin: 0; }
.summary-heading .price { margin: 0; font-weight: 800; color: var(--accent); }

.disclosure-indicator {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-weight: 700;
}
.disclosure-indicator::before { content: '+'; font-size: 18px; }
details[open] .disclosure-indicator::before { content: '−'; }

.card-body { padding: 0.6rem 1rem 1rem; }
.card-desc, .note { margin: 0 0 0.5rem 0; color: var(--muted); font-size: 0.95rem; }

.pricing-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pricing-card li { padding-left: 0; }

/* Make summary focusable and visible. Use box-shadow instead of outline to avoid
   a thin artifact line showing above the card body when the details are opened. */
details.pricing-card > summary {
	position: relative;
	z-index: 2;
}
details.pricing-card .card-body { position: relative; z-index: 1; }
details.pricing-card > summary:focus {
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 28%, transparent);
	border-radius: 10px;
}

@media (prefers-reduced-motion: no-preference) {
    details.pricing-card { transition: transform 160ms ease, box-shadow 160ms ease; }
    details.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,0,0,0.22); }
}

/* Scoped: make headings vs paragraphs in Skills section visually clearer */
section[aria-labelledby="skills-title"] h3 {
	color: var(--text);
	font-weight: 700;
	margin: 1rem 0 0.3rem;
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}
section[aria-labelledby="skills-title"] p {
	color: var(--muted);
	margin: 0 0 0.9rem;
	font-size: clamp(0.95rem, 1.1vw, 1rem);
	line-height: 1.55;
}

/* Slight separation for groups: keep headings visually distinct */
section[aria-labelledby="skills-title"] h3 + p { margin-top: 0; }

/* Scoped styles for the "Why Choose Custom?" section */
#why-custom {
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 12px;
	padding: clamp(1rem, 2vw, 1.25rem);
	margin-bottom: 1.25rem;
	box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

#why-custom > p { color: var(--muted); margin: 0 0 0.8rem; }

#why-custom .why-list { margin-top: 0.6rem; }
#why-custom .why-list p { margin: 0 0 0.5rem; color: var(--text); font-weight: 700; }
#why-custom .why-list ul { margin: 0; padding-left: 1.15rem; color: var(--muted); }
#why-custom .why-list li { margin-bottom: 0.5rem; }

@media (min-width: 768px) {
	#why-custom { padding: clamp(1.1rem, 2.2vw, 1.5rem); }
}

/* Collapsible styling for Key benefits */
#why-custom .why-details summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	cursor: pointer;
	padding: 0.35rem 0.45rem;
	border-radius: 8px;
	background: rgba(255,255,255,0.01);
	color: var(--text);
	font-weight: 700;
}

#why-custom .why-details summary::-webkit-details-marker { display: none; }

#why-custom .why-details summary::after {
	content: '+';
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
	color: var(--text);
	font-weight: 700;
}

#why-custom .why-details[open] summary::after { content: '−'; }

#why-custom .why-details ul { margin: 0.6rem 0 0; padding-left: 1.05rem; }

#why-custom .why-details { border-radius: 10px; }

/* Styling for the Key benefits control when located outside of #why-custom */
.why-details {
	display: block;
	margin-top: 0.6rem;
	width: 100%;
}
.why-details summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	cursor: pointer;
	padding: 0.35rem 0.45rem;
	border-radius: 8px;
	background: rgba(255,255,255,0.01);
	color: var(--text);
	font-weight: 700;
}
.why-details summary::-webkit-details-marker { display: none; }
.why-details summary::after {
	content: '+';
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
	color: var(--text);
	font-weight: 700;
}
.why-details[open] summary::after { content: '−'; }
.why-details ul { margin: 0.6rem 0 0; padding-left: 1.05rem; }

/* Make Key benefits a standalone card separate from #why-custom */
.why-details {
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 12px;
	padding: clamp(0.6rem, 1.6vw, 0.9rem);
	margin-top: 0.9rem;
	box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.why-details summary {
	padding: 0.6rem 0.65rem;
	background: transparent;
	border-radius: 8px;
}
.why-details[open] {
	padding-bottom: 0.9rem;
}
.why-details ul { margin: 0.6rem 0 0; padding-left: 1.05rem; color: var(--muted); }

/* Smooth open/close transitions for all <details> content (non-summary children) */
details {
	/* allow visual overflow from summary while content is clipped by children */
}
details > *:not(summary) {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-6px);
	transition: max-height 260ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease, transform 220ms ease;
}
details[open] > *:not(summary) {
	/* large enough to fit typical content; avoids layout jump during transition */
	max-height: 1000px;
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	details > *:not(summary) {
		transition: none !important;
		transform: none !important;
	}
}

/* Mobile: slightly reduce paragraph text size to improve fit */
@media (max-width: 420px) {
	p { font-size: 0.95rem; }
}

