/**
 * Glassmorphism Effects & Card Enhancements
 *
 * @package WaseemNasirLuxury
 * @since 1.0.0
 */

/* ==================================================
   GLASSMORPHISM CARD EFFECTS
================================================== */

/* Enhanced Premium Cards with Glassmorphism */
.card-premium {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.6) 0%,
		hsl(240, 10%, 8%, 0.4) 100%
	);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid hsl(240, 8%, 15%, 0.3);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.37),
		inset 0 1px 0 hsl(45, 30%, 94%, 0.05);
	position: relative;
	overflow: hidden;
}

/* Gradient overlay on hover */
.card-premium::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		hsl(42, 75%, 55%, 0) 0%,
		hsl(42, 75%, 55%, 0.02) 50%,
		hsl(42, 75%, 55%, 0.05) 100%
	);
	opacity: 0;
	transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.card-premium:hover::before {
	opacity: 1;
}

/* Enhanced hover states */
.card-premium:hover {
	border-color: hsl(42, 75%, 55%, 0.3);
	box-shadow:
		0 12px 48px rgba(0, 0, 0, 0.45),
		0 0 60px hsl(42, 75%, 55%, 0.08),
		inset 0 1px 0 hsl(45, 30%, 94%, 0.1);
	transform: translateY(-4px) scale(1.01);
}

/* Expertise Card Specific */
.expertise-card {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.5) 0%,
		hsl(240, 10%, 8%, 0.3) 100%
	);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.expertise-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		transparent 0%,
		hsl(42, 75%, 55%, 0.03) 100%
	);
	opacity: 0;
	transition: opacity 500ms ease;
	pointer-events: none;
}

.expertise-card:hover::after {
	opacity: 1;
}

/* Project Card Enhanced */
.project-card {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.7) 0%,
		hsl(240, 10%, 8%, 0.5) 100%
	);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
}

.project-card::before {
	background: radial-gradient(
		circle at top right,
		hsl(42, 75%, 55%, 0.08) 0%,
		transparent 70%
	);
}

/* Insight Card Featured */
.insight-card-featured {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.8) 0%,
		hsl(240, 10%, 8%, 0.6) 100%
	);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
}

/* Testimonial Card */
.testimonial-card {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.6) 0%,
		hsl(240, 10%, 8%, 0.4) 100%
	);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.testimonial-card:hover {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.7) 0%,
		hsl(240, 10%, 8%, 0.5) 100%
	);
}

/* Contact Card */
.contact-card {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.5) 0%,
		hsl(240, 10%, 8%, 0.3) 100%
	);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	transition: all 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card::before {
	background: radial-gradient(
		circle at center,
		hsl(42, 75%, 55%, 0.05) 0%,
		transparent 70%
	);
}

/* Pricing Card */
.pricing-card {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 6%, 0.7) 0%,
		hsl(240, 10%, 8%, 0.5) 100%
	);
	backdrop-filter: blur(25px) saturate(180%);
	-webkit-backdrop-filter: blur(25px) saturate(180%);
	border: 1px solid hsl(42, 75%, 55%, 0.2);
}

.pricing-card:hover {
	border-color: hsl(42, 75%, 55%, 0.4);
	box-shadow:
		0 16px 64px rgba(0, 0, 0, 0.5),
		0 0 80px hsl(42, 75%, 55%, 0.15);
}

/* FAQ Item */
.faq-item {
	background: transparent;
	transition: background 300ms ease;
}

.faq-item:hover {
	background: hsl(240, 10%, 6%, 0.3);
}

/* ==================================================
   3D TILT EFFECT
================================================== */

/* Add 3D perspective to container */
.card-premium-3d {
	perspective: 1000px;
	transform-style: preserve-3d;
}

/* Inner tilt element */
.card-premium-3d-inner {
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
	transform-style: preserve-3d;
}

/* ==================================================
   SHIMMER EFFECTS
================================================== */

/* Shimmer overlay for buttons */
.btn-primary::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(
		45deg,
		transparent 30%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 70%
	);
	transform: translateX(-100%) translateY(-100%) rotate(45deg);
	transition: transform 700ms;
	pointer-events: none;
}

.btn-primary:hover::after {
	transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* ==================================================
   GLOW EFFECTS
================================================== */

/* Enhanced glow on premium elements */
.glow-gold {
	box-shadow: 0 0 80px hsl(42, 75%, 55%, 0.15);
}

.glow-gold-hover {
	transition: box-shadow 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-gold-hover:hover {
	box-shadow: 0 0 120px hsl(42, 75%, 55%, 0.25);
}

/* Text glow effect */
.text-glow {
	text-shadow:
		0 0 20px hsl(42, 75%, 55%, 0.5),
		0 0 40px hsl(42, 75%, 55%, 0.3),
		0 0 60px hsl(42, 75%, 55%, 0.1);
}

/* ==================================================
   FROSTED GLASS NAVIGATION
================================================== */

.main-navigation.scrolled {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 4%, 0.85) 0%,
		hsl(240, 10%, 6%, 0.75) 100%
	);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.37),
		inset 0 -1px 0 hsl(42, 75%, 55%, 0.1);
}

/* ==================================================
   MOBILE MENU GLASSMORPHISM
================================================== */

.mobile-nav-overlay {
	background: linear-gradient(
		135deg,
		hsl(240, 10%, 4%, 0.95) 0%,
		hsl(240, 10%, 6%, 0.9) 100%
	);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ==================================================
   ACCESSIBILITY & REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {
	.card-premium,
	.card-premium::before,
	.expertise-card::after {
		transition: none !important;
	}

	.btn-primary::before,
	.btn-primary::after {
		display: none !important;
	}
}

/* ==================================================
   FALLBACK FOR BROWSERS WITHOUT BACKDROP-FILTER
================================================== */

@supports not (backdrop-filter: blur(10px)) {
	.card-premium,
	.expertise-card,
	.project-card,
	.insight-card-featured,
	.testimonial-card,
	.contact-card,
	.pricing-card {
		background: linear-gradient(
			135deg,
			hsl(240, 10%, 6%, 0.95) 0%,
			hsl(240, 10%, 8%, 0.9) 100%
		);
	}

	.main-navigation.scrolled {
		background: hsl(240, 10%, 4%, 0.98);
	}

	.mobile-nav-overlay {
		background: hsl(240, 10%, 4%);
	}
}

/* ==================================================
   CUSTOM CURSOR ENHANCEMENTS
================================================== */

.custom-cursor {
	position: fixed;
	width: 20px;
	height: 20px;
	border: 2px solid hsl(42, 75%, 55%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	mix-blend-mode: difference;
	transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
	transform: translate(-50%, -50%);
}

.custom-cursor.expand {
	width: 50px;
	height: 50px;
	background: hsl(42, 75%, 55%, 0.3);
	backdrop-filter: blur(5px);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
	.custom-cursor {
		display: none;
	}
}

/* ==================================================
   LOADING STATES
================================================== */

.card-skeleton {
	background: linear-gradient(
		90deg,
		hsl(240, 10%, 6%) 0%,
		hsl(240, 10%, 8%) 50%,
		hsl(240, 10%, 6%) 100%
	);
	background-size: 200% 100%;
	animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}
