:root {
	--dark-bg: #0a0a15;
	--card-bg: rgba(20, 20, 40, 0.85);
	--accent: #a46cff;
	--accent-hover: #7a3cff;
	--text: #f0f0f5;
	--chaos-1: #ff3860;
	--chaos-2: #00d1b2;
	--chaos-3: #ffdd57;
	--star-color: rgba(255, 255, 255, 0.8);
	--muted: #b3b3cc;
	--panel: rgba(255, 255, 255, 0.06);
	--panel-dark: rgba(0, 0, 0, 0.4);
	--panel-border: rgba(164, 108, 255, 0.24);
	--paid: #ffcc66;
}

html {
	scrollbar-color: rgba(164, 108, 255, 0.7) rgba(10, 10, 21, 0.96);
	scrollbar-width: thin;
}

::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: rgba(10, 10, 21, 0.96);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(164, 108, 255, 0.85), rgba(0, 209, 178, 0.65));
	border: 3px solid rgba(10, 10, 21, 0.96);
	border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(180, 132, 255, 0.95), rgba(45, 230, 204, 0.82));
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background: var(--dark-bg);
	color: var(--text);
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
}

/* Home page specific styles */
body.home-page {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 32px 20px 82px;
}

/* Stars background */
.stars-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
	animation: drift 60s linear infinite;
}
@keyframes drift {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-100px);
	}
}

.star {
	position: absolute;
	background: var(--star-color);
	border-radius: 50%;
	animation: twinkle 5s infinite ease-in-out;
	box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
	will-change: opacity, transform;
}

/* Constellation canvas */
#constellationCanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

/* Main card */
.card {
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
	width: 500px;
	padding: 40px 30px;
	text-align: center;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(122, 60, 255, 0.2);
	z-index: 10;
}

/* Glitch effect */
.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, var(--chaos-1), var(--accent), var(--chaos-2));
	animation: glitch-line 10s infinite;
}

.avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--accent);
	margin: 0 auto 20px;
	position: relative;
	overflow: hidden;
	background: linear-gradient(45deg, #3a1c71, #7a3cff);
	box-shadow: 0 0 20px rgba(122, 60, 255, 0.4);
	animation: pulse-border 4s infinite alternate;
}
.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@keyframes pulse-border {
	0% {
		box-shadow: 0 0 15px rgba(122, 60, 255, 0.3);
	}
	100% {
		box-shadow: 0 0 25px rgba(122, 60, 255, 0.6);
	}
}

.nickname {
	font-size: 2.5rem;
	margin-bottom: 10px;
	font-weight: 700;
	background: linear-gradient(45deg, var(--text), #b3b3ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	position: relative;
}
.nickname::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 50%;
	height: 3px;
	background: var(--accent);
	border-radius: 2px;
}

.tagline {
	color: #b3b3cc;
	margin-bottom: 30px;
	font-size: 1.1rem;
	line-height: 1.6;
}

/* Social links */
.socials {
	display: flex;
	justify-content: center;
	gap: 25px;
	margin: 30px 0;
	flex-wrap: wrap;
}

.social-link {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	color: var(--text);
	font-size: 1.4rem;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	overflow: visible;
	border: 1px solid rgba(122, 60, 255, 0.3);
	z-index: 1;
}
.social-link:hover {
	transform: translateY(-5px);
	color: white;
	box-shadow: 0 5px 15px rgba(122, 60, 255, 0.4);
}
.social-link:nth-child(1):hover {
	background: #333;
}
.social-link:nth-child(2):hover {
	background: #1da1f2;
}
.social-link:nth-child(3):hover {
	background: #7289da;
}
.social-link:nth-child(4):hover {
	background: #ff5f8f;
}
.social-link .tooltip {
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s,
		visibility 0.3s;
	z-index: 1000;
}
.social-link:hover .tooltip {
	opacity: 1;
	visibility: visible;
}

/* Navigation */
.nav-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 30px;
}

.nav-secondary-links {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-link {
	padding: 15px;
	text-decoration: none;
	color: var(--text);
	background: rgba(122, 60, 255, 0.1);
	border-radius: 10px;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(122, 60, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.nav-link-primary {
	background: linear-gradient(120deg, rgba(164, 108, 255, 0.24), rgba(0, 209, 178, 0.14));
	border-color: rgba(0, 209, 178, 0.42);
	font-size: 1.02rem;
	padding: 17px;
}

.nav-link-secondary {
	font-size: 0.92rem;
	padding: 12px 10px;
}

.nav-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background: var(--accent);
	transform: scaleY(0);
	transition: transform 0.3s ease;
}
.nav-link:hover {
	background: rgba(122, 60, 255, 0.2);
	color: #ffffff;
	text-shadow: 0 0 5px rgba(164, 108, 255, 0.75);
}
.nav-link:hover::before {
	transform: scaleY(1);
}

/* Animations */
@keyframes twinkle {
	0%,
	100% {
		opacity: 0.2;
	}
	50% {
		opacity: 1;
	}
}
@keyframes glitch-line {
	0% {
		opacity: 0.2;
	}
	15% {
		opacity: 0.8;
	}
	30% {
		opacity: 0.3;
	}
	45% {
		opacity: 0.6;
	}
	60% {
		opacity: 0.4;
	}
	75% {
		opacity: 0.7;
	}
	90% {
		opacity: 0.5;
	}
	100% {
		opacity: 0.2;
	}
}

/* Footer */
.footer {
	width: 100%;
	text-align: center;
	color: rgba(180, 180, 220, 0.7);
	font-size: 0.9rem;
	text-shadow: 0 0 5px rgba(122, 60, 255, 0.3);
}
.footer::before {
	content: '✦';
	display: inline-block;
	margin-right: 5px;
	color: var(--accent);
}

body.home-page .footer,
body.contact-page .footer,
body.projects-page .footer {
	position: absolute;
	left: 0;
	bottom: 20px;
}

body.projects-page {
	padding-bottom: 112px;
}

body.projects-page.support-hidden {
	padding-bottom: 0;
}

body.projects-page.support-collapsed {
	padding-bottom: 82px;
}

/* === Sticky Navbar === */
.navbar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(15, 15, 30, 0.6);
	backdrop-filter: blur(12px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

/* Add flex layout to nav container */
.navbar .nav {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Navbar avatar */
.navbar .logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo {
	color: var(--accent);
	font-weight: 500;
	text-decoration: none;
}

.navbar-avatar {
	height: 30px;
	width: 30px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--accent);
}

.navbar .nav-link {
	margin-left: 0;
	color: #fff;
	font-weight: 500;
	padding: 10px 14px;
	border-radius: 8px;
	transition:
		color 0.3s,
		text-shadow 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
	background: rgba(122, 60, 255, 0.2);
	color: #ffffff;
	text-shadow: 0 0 5px rgba(164, 108, 255, 0.75);
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
	transform: scaleY(1);
}

.support-link {
	border-color: rgba(255, 95, 143, 0.45);
}

.support-link::before {
	background: #ff5f8f;
}

/* === Projects Grid === */
.projects-container,
.contact-container,
.home-container {
	max-width: 1400px;
	margin: 40px auto 50px;
	padding: 0 20px;
	color: #fff;
}

.contact-container {
	max-width: 1000px;
}

.page-hero {
	max-width: 820px;
	margin: 0 auto 30px;
	text-align: center;
}

.projects-page .page-hero {
	max-width: 1040px;
}

.eyebrow {
	color: var(--chaos-2);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.page-title {
	font-size: 3rem;
	margin-bottom: 14px;
	text-align: center;
	text-shadow: 0 0 10px rgba(122, 60, 255, 0.7);
}

.page-intro {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.projects-section {
	margin-top: 42px;
}

.section-heading {
	margin-bottom: 18px;
	text-align: center;
}

.section-heading .eyebrow {
	margin-bottom: 8px;
}

.section-title {
	font-size: 1.75rem;
	text-shadow: 0 0 8px rgba(122, 60, 255, 0.5);
}

.client-work-section {
	background: rgba(255, 204, 102, 0.045);
	border: 1px solid rgba(255, 204, 102, 0.2);
	border-radius: 18px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 18px 42px rgba(0, 0, 0, 0.14);
	padding: 28px 24px 34px;
	position: relative;
	overflow: hidden;
}

.client-work-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, transparent, rgba(255, 204, 102, 0.85), rgba(0, 209, 178, 0.65), transparent);
}

.client-work-section .eyebrow,
.client-card .project-category {
	color: var(--paid);
}

.client-card {
	border-color: rgba(255, 204, 102, 0.5);
	box-shadow: 0 0 18px rgba(255, 204, 102, 0.08);
}

.projects-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
}

.projects-grid[hidden] {
	display: none;
}

.featured-projects-grid {
	margin-bottom: 30px;
}

.project-card {
	display: flex;
	flex: 1 1 340px;
	flex-direction: column;
	max-width: 420px;
	min-width: min(100%, 340px);
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: 20px;
	backdrop-filter: blur(12px);
	overflow: hidden;
	box-shadow: 0 0 15px rgba(122, 60, 255, 0.1);
}

.project-card.featured {
	border-color: rgba(0, 209, 178, 0.42);
	flex-basis: 390px;
	max-width: 470px;
}

.project-card.archived {
	opacity: 0.72;
}

.project-card-skeleton {
	pointer-events: none;
}

.skeleton-block,
.skeleton-line {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 37%, rgba(255, 255, 255, 0.06) 63%);
	background-size: 400% 100%;
	animation: skeleton-shimmer 1.6s ease-in-out infinite;
	border-radius: 8px;
}

.skeleton-block {
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.skeleton-line {
	height: 14px;
	margin: 14px 20px;
}

.skeleton-line-title {
	height: 20px;
	width: 60%;
}

.skeleton-line-short {
	width: 40%;
}

@keyframes skeleton-shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: 0 0;
	}
}

.project-image-wrap {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
}

.project-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.project-image.is-placeholder {
	object-fit: cover;
}

.project-status {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(10, 10, 21, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 6px 10px;
}

.project-featured-ribbon {
	background: linear-gradient(90deg, rgba(0, 209, 178, 0.95), rgba(164, 108, 255, 0.95));
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	left: -42px;
	letter-spacing: 0.08em;
	padding: 7px 44px;
	position: absolute;
	text-transform: uppercase;
	top: 19px;
	transform: rotate(-45deg);
	z-index: 2;
}

.project-archive-badge {
	background: rgba(10, 10, 21, 0.82);
	border: 1px solid rgba(255, 221, 87, 0.5);
	border-radius: 999px;
	color: var(--chaos-3);
	font-size: 0.78rem;
	font-weight: 700;
	left: 12px;
	padding: 6px 10px;
	position: absolute;
	top: 46px;
}

.project-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.project-title {
	font-size: 1.4rem;
	margin: 0;
}

.project-title-row {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-bottom: 8px;
}

.project-stars {
	align-items: center;
	background: rgba(255, 221, 87, 0.12);
	border: 1px solid rgba(255, 221, 87, 0.28);
	border-radius: 999px;
	color: var(--chaos-3);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 700;
	gap: 5px;
	padding: 5px 8px;
	text-decoration: none;
}

.project-stars:hover {
	background: rgba(255, 221, 87, 0.2);
	color: #ffffff;
}

.project-category {
	color: var(--chaos-2);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.project-summary {
	color: #ffffff;
	font-size: 0.98rem;
	line-height: 1.55;
	margin-bottom: 12px;
}

.project-description {
	font-size: 0.95rem;
	opacity: 0.85;
	line-height: 1.55;
	margin-bottom: 16px;
	flex-grow: 1;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.project-tags span {
	background: rgba(164, 108, 255, 0.13);
	border: 1px solid rgba(164, 108, 255, 0.2);
	border-radius: 999px;
	color: rgba(240, 240, 245, 0.82);
	font-size: 0.85rem;
	padding: 6px 10px;
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
}

.project-links a {
	display: inline-block;
	color: var(--accent);
	font-weight: 500;
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}

.project-links a:hover {
	color: white;
	text-shadow: var(--accent-hover);
}

.project-links a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: white;
	transition: width 0.3s ease;
}

.project-links a:hover::after {
	width: 100%;
}

.project-error {
	grid-column: 1 / -1;
	color: var(--muted);
	text-align: center;
}

.support-strip {
	align-items: center;
	background: rgba(12, 12, 26, 0.88);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(164, 108, 255, 0.2);
	border-radius: 14px 14px 0 0;
	border-bottom: 0;
	bottom: 0;
	box-shadow:
		0 14px 38px rgba(0, 0, 0, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	display: flex;
	gap: 24px;
	justify-content: space-between;
	left: 50%;
	margin: 0;
	max-width: min(512px, calc(100vw - 28px));
	opacity: 0;
	padding: 12px 16px;
	position: fixed;
	transform: translate(-50%, 100%);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		background 0.25s ease;
	width: 100%;
	z-index: 1001;
}

.support-strip::before {
	background: linear-gradient(90deg, transparent, rgba(255, 95, 143, 0.75), rgba(0, 209, 178, 0.65), transparent);
	content: '';
	height: 2px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.support-strip.is-visible {
	opacity: 0.86;
	transform: translate(-50%, 0);
}

.support-strip.is-visible:hover,
.support-strip.is-visible:focus-within {
	background: rgba(12, 12, 26, 0.95);
	opacity: 1;
}

.support-strip h2 {
	font-size: 1rem;
	margin-bottom: 3px;
}

.support-strip p {
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.45;
}

.support-actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.button-link {
	align-items: center;
	background: rgba(255, 95, 143, 0.16);
	border: 1px solid rgba(255, 95, 143, 0.45);
	border-radius: 10px;
	color: #ffffff;
	display: inline-flex;
	font-weight: 700;
	gap: 8px;
	padding: 10px 14px;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background 0.25s ease,
		transform 0.25s ease;
}

.support-dismiss {
	align-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	color: var(--muted);
	cursor: pointer;
	display: inline-flex;
	font-size: 1rem;
	height: 38px;
	justify-content: center;
	transition:
		background 0.25s ease,
		color 0.25s ease;
	width: 38px;
}

.support-dismiss:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.support-mini {
	align-items: center;
	background: rgba(255, 95, 143, 0.18);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 95, 143, 0.45);
	border-radius: 50%;
	bottom: 18px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.15rem;
	height: 48px;
	justify-content: center;
	position: fixed;
	right: 18px;
	transition:
		background 0.25s ease,
		transform 0.25s ease;
	width: 48px;
	z-index: 1001;
}

.support-mini-tooltip {
	background: rgba(10, 10, 21, 0.92);
	border: 1px solid rgba(255, 95, 143, 0.35);
	border-radius: 8px;
	bottom: calc(100% + 10px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 700;
	opacity: 0;
	padding: 8px 10px;
	pointer-events: none;
	position: absolute;
	right: 0;
	transform: translateY(4px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
	white-space: nowrap;
}

.support-mini-tooltip::after {
	border: 6px solid transparent;
	border-top-color: rgba(10, 10, 21, 0.92);
	content: '';
	position: absolute;
	right: 18px;
	top: 100%;
}

.support-mini:hover {
	background: rgba(255, 95, 143, 0.3);
	transform: translateY(-2px);
}

.support-mini:hover .support-mini-tooltip,
.support-mini:focus-visible .support-mini-tooltip {
	opacity: 1;
	transform: translateY(0);
}

.support-mini[hidden] {
	display: none;
}

.button-link:hover {
	background: rgba(255, 95, 143, 0.28);
	transform: translateY(-2px);
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.contact-card {
	align-items: center;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: 18px;
	color: var(--text);
	display: flex;
	gap: 18px;
	min-height: 126px;
	padding: 22px;
	text-decoration: none;
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.contact-card:hover {
	border-color: rgba(0, 209, 178, 0.45);
	box-shadow: 0 0 25px rgba(122, 60, 255, 0.22);
	transform: translateY(-3px);
}

.contact-card i {
	align-items: center;
	background: rgba(164, 108, 255, 0.12);
	border: 1px solid rgba(164, 108, 255, 0.24);
	border-radius: 50%;
	color: var(--accent);
	display: flex;
	flex: 0 0 auto;
	font-size: 1.4rem;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.contact-card strong,
.contact-card small {
	display: block;
}

.contact-card strong {
	font-size: 1.12rem;
	margin-bottom: 6px;
}

.contact-card small {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.support-card {
	border-color: rgba(255, 95, 143, 0.35);
}

.support-card i {
	background: rgba(255, 95, 143, 0.12);
	border-color: rgba(255, 95, 143, 0.28);
	color: #ff8ab0;
}

/* Discord dropdown */
.discord-card {
	padding: 0;
	position: relative;
}

.discord-toggle {
	align-items: center;
	background: none;
	border: none;
	color: var(--text);
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 18px;
	min-height: 126px;
	padding: 22px;
	text-align: left;
	width: 100%;
}

.discord-card .discord-chevron {
	background: none;
	border: none;
	border-radius: 0;
	color: var(--muted);
	flex: 0 0 auto;
	font-size: 0.9rem;
	height: auto;
	margin-left: auto;
	transition: transform 0.25s ease;
	width: auto;
}

.discord-toggle[aria-expanded='true'] .discord-chevron {
	color: var(--text);
	transform: rotate(180deg);
}

.discord-dropdown {
	background: rgba(12, 12, 26, 0.95);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(164, 108, 255, 0.3);
	border-radius: 14px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
	left: 0;
	padding: 16px;
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 20;
}

.discord-dropdown[hidden] {
	display: none;
}

.discord-dropdown-note {
	color: var(--muted);
	font-size: 0.85rem;
	line-height: 1.5;
	margin-bottom: 12px;
}

.discord-server-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
}

.discord-server-item a {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(164, 108, 255, 0.16);
	border-radius: 10px;
	color: var(--text);
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	text-decoration: none;
	transition:
		background 0.2s ease,
		border-color 0.2s ease;
}

.discord-server-item a:hover,
.discord-server-item a:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(0, 209, 178, 0.45);
}

.discord-server-item strong {
	font-size: 0.98rem;
	margin-bottom: 0;
}

.discord-server-item small {
	font-size: 0.85rem;
	line-height: 1.4;
}

.discord-server-error {
	color: var(--muted);
	font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Responsive adjustments */
@media (max-width: 760px) {
	body.projects-page {
		padding-bottom: 186px;
	}
	body.projects-page.support-hidden {
		padding-bottom: 0;
	}
	body.projects-page.support-collapsed {
		padding-bottom: 92px;
	}
	.navbar-inner {
		align-items: center;
		flex-direction: column;
	}
	.navbar .nav {
		justify-content: center;
		width: 100%;
	}
	.navbar .nav-link {
		flex: 1 1 auto;
		min-width: max-content;
		padding: 10px 12px;
	}
	.support-strip {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
	.support-actions {
		width: 100%;
	}
	.button-link {
		justify-content: center;
	}
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	body.home-page {
		align-items: flex-start;
	}
	.card {
		padding: 30px 20px;
		width: 100%;
		max-width: 500px;
	}
	.nickname {
		font-size: 2rem;
	}
	.tagline {
		font-size: 1rem;
	}
	.socials {
		gap: 15px;
	}
	.social-link {
		width: 45px;
		height: 45px;
		font-size: 1.2rem;
	}
	.social-link .tooltip {
		position: fixed;
		bottom: 60px;
		left: 50%;
		transform: translateX(-50%);
		width: max-content;
		max-width: 90vw;
	}
	.nav-secondary-links {
		grid-template-columns: 1fr;
	}
	.page-title {
		font-size: 2.25rem;
	}
	.projects-container,
	.contact-container {
		margin-top: 28px;
	}
	.contact-card {
		align-items: flex-start;
		background-color: var(--panel-dark);
	}
}
