/* NDev Social Contact — footer icons + floating social panel */

.ndev-sc-floating {
	position: fixed;
	bottom: 1.25rem;
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
}

.ndev-sc-floating--right {
	right: 1rem;
	left: auto;
}

.ndev-sc-floating--left {
	left: 1rem;
	right: auto;
}

.ndev-sc-floating__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
}

.ndev-sc-floating__panel[hidden] {
	display: none !important;
}

.ndev-sc-floating__btn,
.ndev-sc-floating__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.1rem;
	height: 3.1rem;
	border: 0;
	border-radius: 9999px;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 24px rgb(15 23 42 / 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	background: #0f766e;
	padding: 0;
}

.ndev-sc-floating__btn:hover,
.ndev-sc-floating__btn:focus-visible,
.ndev-sc-floating__toggle:hover,
.ndev-sc-floating__toggle:focus-visible {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 12px 28px rgb(15 23 42 / 0.28);
	outline: none;
}

.ndev-sc-floating__toggle {
	background: linear-gradient(145deg, #0ea5e9, #0369a1);
}

.ndev-sc-floating.is-open .ndev-sc-floating__toggle {
	background: #334155;
}

.ndev-sc-floating__toggle-icon--close {
	display: none;
}

.ndev-sc-floating.is-open .ndev-sc-floating__toggle-icon--open {
	display: none;
}

.ndev-sc-floating.is-open .ndev-sc-floating__toggle-icon--close {
	display: inline-flex;
}

.ndev-sc-floating__btn svg,
.ndev-sc-floating__toggle svg {
	position: relative;
	z-index: 1;
}

.ndev-sc-floating__pulse {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	opacity: 0.45;
	animation: ndev-sc-pulse 2s ease-out infinite;
	pointer-events: none;
}

.ndev-sc-floating__btn .ndev-sc-floating__pulse {
	display: none;
}

@keyframes ndev-sc-pulse {
	0% {
		transform: scale(1);
		opacity: 0.5;
	}
	70% {
		transform: scale(1.45);
		opacity: 0;
	}
	100% {
		transform: scale(1.45);
		opacity: 0;
	}
}

.ndev-sc-floating__btn--youtube,
.ndev-sc-social-link--youtube {
	background: #ff0000;
}

.ndev-sc-floating__btn--facebook,
.ndev-sc-social-link--facebook {
	background: #1877f2;
}

.ndev-sc-floating__btn--zalo,
.ndev-sc-social-link--zalo {
	background: #0068ff;
}

.ndev-sc-icon-img {
	position: relative;
	z-index: 1;
	display: block;
	width: 1.15em;
	height: 1.15em;
	object-fit: contain;
}

.ndev-sc-floating__btn .ndev-sc-icon-img {
	width: 1.35rem;
	height: 1.35rem;
}

.ndev-sc-social-link .ndev-sc-icon-img {
	width: 1.05rem;
	height: 1.05rem;
}

.ndev-sc-floating__btn--linkedin,
.ndev-sc-social-link--linkedin {
	background: #0a66c2;
}

.ndev-sc-floating__btn--tiktok,
.ndev-sc-social-link--tiktok {
	background: #111;
}

.ndev-sc-floating__btn--email,
.ndev-sc-social-link--email {
	background: #64748b;
}

.ndev-sc-floating__btn--whatsapp,
.ndev-sc-social-link--whatsapp {
	background: #25d366;
}

.ndev-sc-floating__btn--call {
	background: #22c55e;
}

.ndev-sc-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.ndev-sc-social-link:hover,
.ndev-sc-social-link:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.08);
	outline: none;
}

@media (max-width: 640px) {
	.ndev-sc-floating {
		bottom: 0.9rem;
		gap: 0.55rem;
	}

	.ndev-sc-floating--right {
		right: 0.75rem;
	}

	.ndev-sc-floating--left {
		left: 0.75rem;
	}

	.ndev-sc-floating__btn,
	.ndev-sc-floating__toggle {
		width: 2.85rem;
		height: 2.85rem;
	}
}
