/* =========================================================================
   2026.css — shared component system for sidrikblal.com
   Layered on top of 2021.css, which sets the global type + animated gradient.
   Used by index.html and work.html.
   ========================================================================= */

/* ---- Page layout: overrides the very large global .mainContent scale ---- */
.homePage .mainContent {
	width: min(1060px, 90vw);
	font-size: 1rem;
	margin-top: 4rem;
	margin-bottom: 4rem;
	overflow: visible;
}
.homePage .mainContent p { margin: 0; line-height: 1.5; font-weight: 400; }

/* ---- Identity block ---- */
.intro-container {
	display: flex;
	align-items: center;
	gap: 2rem;
	text-align: left;
}
.profile-portrait {
	width: 132px;
	height: 132px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
	flex-shrink: 0;
	background: #ffffff40;
}
.intro-name {
	font-size: 1.05rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
	opacity: 0.9;
	margin-bottom: 0.5rem !important;
}
.intro-title {
	font-size: clamp(1.9rem, 4.4vw, 2.9rem);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 0.55rem 0;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}
.intro-location {
	font-size: 0.95rem;
	opacity: 0.85;
	margin-bottom: 0.9rem !important;
}

/* The animated gradient cycles to a very light blue (#9bd7e0). Text sitting
   directly on it — i.e. not inside a dark card — needs a shadow to stay legible. */
.intro-name, .intro-location, .pitch, .section-label, .page-kicker, .back-link {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* ---- Open to work badge ---- */
.badge-open {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	background: #ffffff;
	color: #0f5b52;
	border-radius: 999px;
	padding: 0.5rem 1.05rem;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.3;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.badge-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #16a34a;
	flex-shrink: 0;
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

/* ---- Lead paragraph ---- */
.pitch {
	font-size: clamp(1.05rem, 2.1vw, 1.3rem) !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	max-width: 62ch;
	margin-top: 2.2rem !important;
}

/* ---- Stack chips ---- */
.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.4rem;
}
.chip {
	background: rgba(0, 0, 0, 0.24);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	padding: 0.34rem 0.85rem;
	font-size: 0.83rem;
	font-weight: 500;
	white-space: nowrap;
}

/* ---- Section headings ---- */
.section-label {
	font-size: 0.78rem;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	font-weight: 600;
	opacity: 0.82;
	margin: 3.2rem 0 1.1rem 0 !important;
}

/* ---- Summary cards (homepage) ---- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
	gap: 1.1rem;
}
.card {
	background: rgba(0, 0, 0, 0.26);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #fff;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
a.card:hover, a.card:focus {
	transform: translateY(-3px);
	background: rgba(0, 0, 0, 0.36);
	border-color: rgba(255, 255, 255, 0.42);
}
.card-meta {
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.78;
	margin-bottom: 0.5rem !important;
}
.card-title {
	font-size: 1.16rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.55rem 0;
}
.card-role {
	font-size: 0.9rem;
	font-weight: 600;
	opacity: 0.95;
	margin-bottom: 0.5rem !important;
}
.card-body { font-size: 0.92rem !important; opacity: 0.92; }
.card-tags {
	margin-top: auto;
	padding-top: 1rem;
	font-size: 0.78rem;
	opacity: 0.8;
	letter-spacing: 0.03em;
}

/* ---- Compact credential cards ---- */
.cred-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
	gap: 0.9rem;
}
.cred {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	padding: 1.05rem 1.15rem;
}
.cred-year {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	opacity: 0.75;
	margin-bottom: 0.3rem !important;
}
.cred-name { font-size: 0.94rem !important; font-weight: 600; line-height: 1.35; }

/* ---- Pull quote ---- */
.quote-card {
	background: rgba(0, 0, 0, 0.2);
	border-left: 3px solid rgba(255, 255, 255, 0.55);
	border-radius: 0 12px 12px 0;
	padding: 1.3rem 1.6rem;
	margin-top: 3.2rem;
}
.quote-card p:first-child {
	font-size: 1.02rem !important;
	font-style: italic;
	line-height: 1.55 !important;
}
.quote-attr {
	font-size: 0.83rem !important;
	opacity: 0.82;
	margin-top: 0.7rem !important;
}

/* ---- Buttons ---- */
.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2.6rem;
}
.btn {
	display: inline-block;
	padding: 0.82rem 1.5rem;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover, .btn:focus { transform: translateY(-2px); }
.btn-primary { background: #ffffff; color: #0f5b52 !important; box-shadow: 0 4px 16px rgba(0,0,0,0.16); }
.btn-primary:hover { background: #f0fdfa; color: #0f5b52 !important; }
.btn-ghost { background: rgba(0,0,0,0.26); color: #fff !important; border: 1px solid rgba(255,255,255,0.34); }
.btn-ghost:hover { background: rgba(0,0,0,0.4); color: #fff !important; }


/* =========================================================================
   Language toggle (injected by /js/i18n.js)
   ========================================================================= */

.lang-toggle {
	position: fixed;
	top: 38px;
	right: 28px;
	z-index: 999999;
	display: flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.26);
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.lang-btn {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 0.34rem 0.7rem;
	border-radius: 999px;
	cursor: pointer;
	line-height: 1;
	opacity: 0.75;
	transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.is-active {
	background: #ffffff;
	color: #0f5b52;
	opacity: 1;
}
.lang-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.lang-toggle { top: 30px; right: 16px; }
	.lang-btn { padding: 0.3rem 0.6rem; font-size: 0.72rem; }
}

/* The slide-out menu is a fixed panel at z-index 1001; this toggle sits above it
   at 999999. On a phone the panel is 300px wide on a ~390px screen, so the pill
   clipped into its right edge — and in landscape the panel goes full-width and the
   pill floated over the middle of it. Hide the floating toggle while the menu is
   open at those sizes; the copy injected inside the menu takes over. */
.lang-toggle {
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
@media (max-width: 980px) {
	.show-menu .lang-toggle {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

/* Language switch inside the slide-out menu. Shares .lang-btn with the floating
   one, and i18n.js updates every .lang-btn on the page, so the two stay in sync. */
.lang-toggle-inline {
	display: flex;
	gap: 2px;
	width: -webkit-max-content;
	width: max-content;
	margin: 1.8em 0 0 0.8em;
	padding: 3px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.4);
}
.lang-toggle-inline .lang-btn { letter-spacing: 0.1em; }
@media (min-width: 981px) {
	.lang-toggle-inline { display: none; }
}


/* =========================================================================
   Case studies (work.html)
   ========================================================================= */

.back-link {
	display: inline-block;
	font-size: 0.85rem;
	opacity: 0.9;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.45);
	padding-bottom: 1px;
	margin-bottom: 2rem;
}
.back-link:hover { opacity: 1; }

.page-kicker {
	font-size: 0.78rem;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	font-weight: 600;
	opacity: 0.85;
	margin-bottom: 0.6rem !important;
}

/* ---- One case study ---- */
.case {
	background: rgba(0, 0, 0, 0.26);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	padding: 1.9rem 2rem;
	margin-bottom: 1.5rem;
}
.case-meta {
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.78;
	margin-bottom: 0.45rem !important;
}
.case-title {
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.35rem 0;
}
.case-role {
	font-size: 0.95rem !important;
	font-weight: 600;
	opacity: 0.95;
}
.case-summary {
	font-size: 1.02rem !important;
	line-height: 1.55 !important;
	margin-top: 0.9rem !important;
	max-width: 70ch;
	opacity: 0.95;
}

/* Context / What I built / Outcome */
.case-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1.6rem;
	margin-top: 1.7rem;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.case-block-label {
	font-size: 0.72rem !important;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.7;
	margin-bottom: 0.6rem !important;
}
.case-block p, .case-block li {
	font-size: 0.9rem !important;
	line-height: 1.5 !important;
	opacity: 0.93;
}
.case-block ul {
	margin: 0;
	padding-left: 1.05rem;
}
.case-block li { margin-bottom: 0.4rem; }

.case-stack {
	margin-top: 1.5rem;
	padding-top: 1.3rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.case-stack .chip-row { margin-top: 0.6rem; }
.case-stack .chip { background: rgba(0, 0, 0, 0.3); }

.case-link {
	display: inline-block;
	margin-top: 1.3rem;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	padding-bottom: 1px;
}

/* ---- Shorter "also" entries ---- */
.mini {
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
}
.mini-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.3rem 0; }
.mini-meta {
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.75;
	margin-bottom: 0.4rem !important;
}
.mini p:last-child { font-size: 0.88rem !important; opacity: 0.92; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
	.homePage .mainContent { margin-top: 5.5rem; width: 88vw; }
	.intro-container { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
	.profile-portrait { width: 108px; height: 108px; }
	.card { padding: 1.25rem; }
	.case { padding: 1.4rem 1.3rem; }
	.case-grid { gap: 1.3rem; }
	.btn { width: 100%; text-align: center; }
}
