/**
 * Project Hover Glass Cursor
 */

:root {
	--phgc-cursor-size: 120px;
	--phgc-glass-bg: rgba(255, 255, 255, 0.14);
	--phgc-glass-blur: 18px;
	--phgc-glass-border: rgba(255, 255, 255, 0.38);
	--phgc-glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	--phgc-cursor-text-color: rgba(255, 255, 255, 0.92);
	--phgc-animation-speed: 0.38s;
	--phgc-media-scale: 1.04;
	--phgc-card-aspect-ratio: 1 / 1;
	--phgc-liquid-segs-per-side: 12;
	--phgc-liquid-wake-radius: 150;
	--phgc-liquid-strength: 160;
	--phgc-liquid-damping: 0.72;
	--phgc-liquid-attraction: 0.045;
	--phgc-liquid-smooth-factor: 0.5;
	--phgc-cursor-smoothness: 0.14;
	--phgc-title-blur-height: 45%;
	--phgc-title-blur-amount: 14px;
	--phgc-title-blur-overlay: 0.35;
}

.phgc-card,
.e-loop-item.phgc-card {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	isolation: isolate;
	width: 100%;
	aspect-ratio: var(--phgc-card-aspect-ratio);
}

.phgc-card .elementor-section-wrap,
.phgc-card .elementor-section,
.phgc-card .elementor-container,
.phgc-card .elementor-column {
	height: 100%;
	min-height: 100%;
}

.phgc-card .elementor-section,
.phgc-card .elementor-column,
.phgc-card .elementor-container,
.phgc-card .elementor-widget-wrap,
.phgc-card .elementor-widget-container,
.phgc-card .e-con,
.phgc-card .e-con-inner {
	border-radius: 0;
}

.phgc-card.phgc-has-media .elementor-section,
.phgc-card.phgc-has-media .elementor-column,
.phgc-card.phgc-has-media .elementor-container,
.phgc-card.phgc-has-media .elementor-widget-wrap,
.phgc-card.phgc-has-media .elementor-widget-container,
.phgc-card.phgc-has-media .e-con,
.phgc-card.phgc-has-media .e-con-inner,
.phgc-card.phgc-has-media .elementor-background-overlay,
.phgc-card.phgc-has-media .elementor-motion-effects-layer {
	background-color: transparent !important;
	background-image: none !important;
}

.phgc-card .elementor-widget-wrap.elementor-element-populated {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	height: 100%;
	padding: 1.25rem;
	box-sizing: border-box;
}

.phgc-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: 0;
	pointer-events: none;
}

.phgc-media-inner {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
	will-change: transform, clip-path;
}

.phgc-media img.phgc-clip-target {
	position: absolute !important;
	inset: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover !important;
	object-position: center center;
	clip-path: none !important;
	-webkit-clip-path: none !important;
}

.phgc-card-link {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: block;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
	border-radius: 0;
}

.phgc-title-blur {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--phgc-title-blur-height, 45%);
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.01);
	background-image: linear-gradient(
		to top,
		rgba(0, 0, 0, var(--phgc-title-blur-overlay, 0.35)) 0%,
		rgba(0, 0, 0, calc(var(--phgc-title-blur-overlay, 0.35) * 0.35)) 55%,
		transparent 100%
	);
	backdrop-filter: blur(var(--phgc-title-blur-amount, 14px));
	-webkit-backdrop-filter: blur(var(--phgc-title-blur-amount, 14px));
	mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 40%, #000 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 40%, #000 100%);
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
}

.phgc-title-blur-on .e-loop-item,
.phgc-title-blur-on .project-hover-card {
	position: relative;
	overflow: hidden;
}

.phgc-title-blur-on .e-loop-item:not(.phgc-has-title-blur)::after,
.phgc-title-blur-on .project-hover-card:not(.phgc-has-title-blur)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--phgc-title-blur-height, 45%);
	z-index: 1;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.01);
	background-image: linear-gradient(
		to top,
		rgba(0, 0, 0, var(--phgc-title-blur-overlay, 0.35)) 0%,
		rgba(0, 0, 0, calc(var(--phgc-title-blur-overlay, 0.35) * 0.35)) 55%,
		transparent 100%
	);
	backdrop-filter: blur(var(--phgc-title-blur-amount, 14px));
	-webkit-backdrop-filter: blur(var(--phgc-title-blur-amount, 14px));
	mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 40%, #000 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 40%, #000 100%);
	transform: translate3d(0, 0, 0);
	-webkit-transform: translate3d(0, 0, 0);
}

.phgc-title-blur-on .e-loop-item .elementor-widget-wrap.elementor-element-populated,
.phgc-title-blur-on .project-hover-card .elementor-widget-wrap.elementor-element-populated,
.phgc-card.phgc-has-title-blur .elementor-widget-wrap.elementor-element-populated {
	position: relative;
	z-index: 2;
}

.phgc-card.phgc-has-title-blur .elementor-widget-wrap.elementor-element-populated {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.phgc-card.phgc-active {
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.phgc-card.phgc-active .phgc-media-inner {
	transform: scale(var(--phgc-media-scale));
}

.phgc-card .elementor-widget-spacer {
	display: none !important;
}

html.phgc-hovering,
html.phgc-hovering body {
	cursor: none;
}

.phgc-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--phgc-cursor-size);
	height: var(--phgc-cursor-size);
	border: 1px solid var(--phgc-glass-border);
	border-radius: 50%;
	background: var(--phgc-glass-bg);
	backdrop-filter: blur(var(--phgc-glass-blur));
	-webkit-backdrop-filter: blur(var(--phgc-glass-blur));
	box-shadow: var(--phgc-glass-shadow);
	color: var(--phgc-cursor-text-color);
	pointer-events: none;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(-9999px, -9999px, 0) scale(0.82);
	transition:
		opacity var(--phgc-animation-speed) ease,
		visibility var(--phgc-animation-speed);
	will-change: transform, opacity;
}

.phgc-cursor.phgc-cursor--visible {
	opacity: 1;
	visibility: visible;
}

.phgc-cursor.phgc-cursor--leaving {
	opacity: 0;
	visibility: hidden;
}

.phgc-cursor__text {
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.25;
	padding: 0 12px;
}

@media (prefers-reduced-motion: reduce) {
	.phgc-card.phgc-active .phgc-media-inner,
	.phgc-card.phgc-active img.phgc-clip-target {
		transform: none;
	}
}

@media (hover: none), (pointer: coarse) {
	.phgc-cursor {
		display: none !important;
	}

	html.phgc-hovering,
	html.phgc-hovering body {
		cursor: auto;
	}

	.phgc-card.phgc-active {
		box-shadow: none;
	}

	.phgc-card.phgc-active .phgc-media-inner,
	.phgc-card.phgc-active img.phgc-clip-target {
		transform: none;
	}

	.phgc-title-blur,
	.phgc-title-blur-on .e-loop-item:not(.phgc-has-title-blur)::after,
	.phgc-title-blur-on .project-hover-card:not(.phgc-has-title-blur)::after {
		background-image: linear-gradient(
			to top,
			rgba(0, 0, 0, calc(var(--phgc-title-blur-overlay, 0.35) + 0.2)) 0%,
			rgba(0, 0, 0, calc(var(--phgc-title-blur-overlay, 0.35) * 0.55)) 65%,
			transparent 100%
		);
	}
}
