/**
 * File: assets/css/pages/projects/base.css
 * Description: Base layout and hero styling for the Projects page.
 *
 * MAGIDA PROJECTS PAGE PASS 10:
 * - Loads only on /projects/.
 * - Shares inner-page hero rhythm with About and Services.
 *
 * MAGIDA PROJECTS FIX PASS 10.1.1:
 * - Prevents the hero browser card from clipping long project titles.
 */

.magida-template--projects {
	position: relative;
	/* MAGIDA PROJECTS PAGE PASS 10: Same hero rhythm tokens used by About/Services after pass 9.0. */
	--magida-inner-hero-padding-top: clamp(82px, 8vw, 118px);
	--magida-inner-hero-padding-bottom: 94px;
	--magida-inner-hero-breadcrumb-gap: 44px;
	--magida-inner-hero-grid-gap: clamp(34px, 6vw, 76px);
	--magida-inner-hero-visual-min-height: 440px;
	overflow: hidden;
}

.magida-template--projects::before {
	/* MAGIDA PROJECTS PAGE PASS 10: Page atmosphere stays coded until real project media is locked. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(
			circle at 12% 7%,
			rgba(5, 223, 254, 0.13),
			transparent 34%
		),
		radial-gradient(
			circle at 88% 10%,
			rgba(124, 106, 251, 0.15),
			transparent 36%
		),
		linear-gradient(180deg, rgba(6, 7, 11, 0.07), rgba(6, 7, 11, 0.96) 53%);
}

.magida-projects-section {
	padding: 92px 0;
	border-top: 1px solid rgba(190, 189, 229, 0.08);
}

.magida-projects-section:first-child {
	border-top: 0;
}

.magida-projects-section-header {
	max-width: 780px;
	margin-bottom: 38px;
}

.magida-projects-section-header h2,
.magida-projects-coming h2,
.magida-projects-final-cta h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 4.35rem);
	line-height: 1;
	letter-spacing: -0.07em;
}

.magida-projects-section-header p,
.magida-projects-coming p,
.magida-projects-final-cta p {
	margin: 18px 0 0;
	max-width: 720px;
	color: var(--magida-text-soft);
	font-size: clamp(1rem, 1.45vw, 1.18rem);
	line-height: 1.8;
}

.magida-projects-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: var(--magida-inner-hero-breadcrumb-gap);
	padding: 10px 14px;
	border: 1px solid rgba(190, 189, 229, 0.12);
	border-radius: var(--magida-radius-full);
	background: rgba(255, 255, 255, 0.025);
	color: var(--magida-text-muted);
	font-family: var(--magida-font-heading);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.magida-projects-breadcrumb a {
	color: var(--magida-text-soft);
}

.magida-projects-breadcrumb strong,
.magida-projects-breadcrumb a:hover,
.magida-projects-breadcrumb a:focus-visible {
	color: var(--magida-cyan);
}

.magida-projects-hero {
	position: relative;
	padding: var(--magida-inner-hero-padding-top) 0
		var(--magida-inner-hero-padding-bottom);
	border-bottom: 1px solid rgba(190, 189, 229, 0.1);
}

.magida-projects-hero::after {
	/* MAGIDA PROJECTS PAGE PASS 10: Thin glow line matches other inner-page heroes. */
	content: "";
	position: absolute;
	right: 8%;
	bottom: 0;
	left: 8%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(5, 223, 254, 0.55),
		rgba(124, 106, 251, 0.4),
		transparent
	);
}

.magida-projects-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
	gap: var(--magida-inner-hero-grid-gap);
	align-items: center;
}

.magida-projects-hero__title {
	max-width: 850px;
	margin: 0;
	font-size: clamp(4rem, 9.5vw, 8.8rem);
	line-height: 0.86;
	letter-spacing: -0.09em;
}

.magida-projects-hero__description {
	max-width: 780px;
	margin: 28px 0 0;
	color: var(--magida-text-soft);
	font-size: clamp(1.08rem, 1.75vw, 1.45rem);
	line-height: 1.7;
}

.magida-projects-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.magida-projects-hero__visual {
	position: relative;
	min-height: var(--magida-inner-hero-visual-min-height);
	border: 1px solid rgba(5, 223, 254, 0.2);
	border-radius: 30px;
	background:
		linear-gradient(135deg, rgba(12, 15, 26, 0.94), rgba(12, 15, 26, 0.64)),
		radial-gradient(
			circle at 18% 16%,
			rgba(5, 223, 254, 0.18),
			transparent 32%
		),
		radial-gradient(
			circle at 88% 24%,
			rgba(124, 106, 251, 0.2),
			transparent 36%
		);
	box-shadow:
		0 34px 100px rgba(0, 0, 0, 0.34),
		var(--magida-glow-soft);
	overflow: hidden;
}

.magida-projects-hero__visual::before,
.magida-projects-hero__visual::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(190, 189, 229, 0.12);
	background: rgba(255, 255, 255, 0.026);
}

.magida-projects-hero__visual::before {
	inset: 34px 34px auto 34px;
	height: 118px;
	border-radius: 20px;
}

.magida-projects-hero__visual::after {
	right: 36px;
	bottom: 38px;
	width: 42%;
	height: 160px;
	border-radius: 28px;
	background: linear-gradient(
		135deg,
		rgba(5, 223, 254, 0.12),
		rgba(124, 106, 251, 0.12)
	);
}

.magida-projects-hero__screen {
	position: absolute;
	inset: 70px 70px auto 64px;
	z-index: 2;
	display: flex;
	gap: 8px;
	align-items: center;
	height: 52px;
	padding: 0 18px;
	border: 1px solid rgba(190, 189, 229, 0.12);
	border-radius: 16px;
	background: rgba(6, 7, 12, 0.72);
}

.magida-projects-hero__screen span {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(190, 189, 229, 0.22);
}

.magida-projects-hero__feature-card {
	position: absolute;
	z-index: 3;
	right: 58px;
	bottom: 72px;
	left: 58px;
	/* MAGIDA PROJECTS FIX PASS 10.1.1: More internal room for the browser-card text. */
	padding: clamp(24px, 2.3vw, 32px);
	border: 1px solid rgba(5, 223, 254, 0.25);
	border-radius: 22px;
	background: rgba(6, 8, 16, 0.86);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.magida-projects-hero__feature-card span,
.magida-projects-hero__feature-card em,
.magida-projects-hero__stack,
.magida-projects-category span {
	display: block;
	color: var(--magida-cyan);
	font-family: var(--magida-font-heading);
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 850;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.magida-projects-hero__feature-card strong {
	display: block;
	margin-top: 10px;
	color: var(--magida-text);
	font-family: var(--magida-font-heading);
	/* MAGIDA PROJECTS FIX PASS 10.1.1: Smaller cap keeps long titles inside the card. */
	font-size: clamp(1.65rem, 2.65vw, 2.55rem);
	line-height: 1;
	letter-spacing: -0.06em;
}

.magida-projects-hero__feature-card em {
	margin-top: 12px;
	color: var(--magida-text-muted);
}

.magida-projects-hero__stack {
	position: absolute;
	z-index: 4;
	padding: 12px 14px;
	border: 1px solid rgba(190, 189, 229, 0.14);
	border-radius: 16px;
	background: rgba(14, 16, 27, 0.86);
	color: var(--magida-text-soft);
}

.magida-projects-hero__stack--one {
	top: 178px;
	left: 78px;
}

.magida-projects-hero__stack--two {
	top: 198px;
	right: 58px;
}

.magida-projects-hero__stack--three {
	bottom: 36px;
	left: 88px;
}

@media (max-width: 1080px) {
	.magida-projects-hero__inner {
		grid-template-columns: 1fr;
	}

	.magida-projects-hero__visual {
		max-width: 680px;
	}
}

@media (max-width: 768px) {
	.magida-projects-section {
		padding: 72px 0;
	}

	.magida-projects-hero {
		padding-top: 72px;
		padding-bottom: 76px;
	}

	.magida-projects-breadcrumb {
		margin-bottom: 30px;
	}

	.magida-projects-hero__title {
		font-size: clamp(3.5rem, 19vw, 5.4rem);
	}

	.magida-projects-hero__visual {
		min-height: 380px;
	}

	.magida-projects-hero__feature-card {
		right: 24px;
		bottom: 58px;
		left: 24px;
	}

	.magida-projects-hero__screen {
		inset: 40px 24px auto 24px;
	}

	.magida-projects-hero__stack--one {
		top: 126px;
		left: 32px;
	}

	.magida-projects-hero__stack--two {
		top: 166px;
		right: 28px;
	}

	.magida-projects-hero__stack--three {
		display: none;
	}
}
