/* Lightbulb toggle button */
.shine-toggle {
	background: #1e1c1c;
	border: 1px solid #2a2727;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: all .3s ease;
	padding: 0;
	color: var(--muted);
}

.bulb-icon {
	width: 24px;
	height: 24px;
	transition: all .3s ease;
}

.shine-toggle:hover {
	background: #222020;
	border-color: #2e2a2a;
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.shine-toggle:active {
	transform: translateY(0);
}

/* Shine mode active state */
body.shine-mode .shine-toggle {
	background: linear-gradient(180deg, var(--accent), var(--accent-2));
	border-color: var(--accent);
	color: #1a1200;
	box-shadow: var(--glow), 0 0 40px rgba(255, 199, 44, 0.5);
	animation: bulb-pulse 2s ease-in-out infinite;
}

body.shine-mode .bulb-icon {
	filter: drop-shadow(0 0 4px currentColor);
	animation: bulb-flicker 3s ease-in-out infinite;
}

@keyframes bulb-pulse {
	0%, 100% { box-shadow: var(--glow), 0 0 40px rgba(255, 199, 44, 0.5); }
	50% { box-shadow: var(--glow), 0 0 60px rgba(255, 199, 44, 0.8); }
}

@keyframes bulb-flicker {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.9; }
	51% { opacity: 1; }
	52% { opacity: 0.95; }
	53% { opacity: 1; }
}

/* ============================================
   SHINE MODE - Over the top effects!
   ============================================ */

/* Brighten and saturate everything - avoid filter on body for Safari fixed positioning */
body.shine-mode {
	/* Filter removed to fix Safari mobile sticky button glitch */
}

body.shine-mode main,
body.shine-mode .site-header,
body.shine-mode .site-footer {
	filter: brightness(1.15) saturate(1.2);
}

html {
	overflow-x: hidden;
	width: 100%;
}

body {
	overflow-x: hidden;
	width: 100%;
}

@keyframes bg-brighten {
	from { filter: brightness(1) saturate(1); }
	to { filter: brightness(1.15) saturate(1.2); }
}

/* Prevent any fixed/absolute elements from causing overflow */
body.shine-mode .container {
	max-width: var(--maxw);
	overflow: visible;
}

@keyframes bg-shift-fast {
	0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
	100% { background-position: 40px 0, -40px 0, 20px 0, -20px 0, 0 0; }
}

/* Enhance the logo glow massively */
body.shine-mode .logo-wrap::before {
	animation: spin 8s linear infinite, mega-glow-pulse 2s ease-in-out infinite !important;
	box-shadow: 
		0 0 40px rgba(255, 199, 44, 0.8),
		0 0 80px rgba(255, 153, 0, 0.6),
		0 0 120px rgba(255, 199, 44, 0.4);
	filter: brightness(1.4);
	transform: translateZ(0);
	backface-visibility: hidden;
}

body.shine-mode .logo-wrap::after {
	animation: pulse 2s ease-in-out infinite, rotate-reverse 12s linear infinite !important;
	opacity: 1 !important;
	background: radial-gradient(
		closest-side, 
		rgba(255,199,44,0.4), 
		rgba(255,153,0,0.2), 
		transparent 60%
	);
	filter: blur(8px);
	transform: translateZ(0);
	backface-visibility: hidden;
}

@keyframes mega-glow-pulse {
	0%, 100% { 
		box-shadow: 
			0 0 40px rgba(255, 199, 44, 0.8),
			0 0 80px rgba(255, 153, 0, 0.6),
			0 0 120px rgba(255, 199, 44, 0.4);
	}
	50% { 
		box-shadow: 
			0 0 60px rgba(255, 199, 44, 1),
			0 0 100px rgba(255, 153, 0, 0.8),
			0 0 160px rgba(255, 199, 44, 0.6);
	}
}

@keyframes rotate-reverse {
	to { transform: rotate(-360deg); }
}

/* Make the electric text shimmer and glow */
body.shine-mode .electric-text {
	animation: text-shimmer 3s ease-in-out infinite;
	filter: drop-shadow(0 0 8px rgba(255, 199, 44, 0.8)) drop-shadow(0 0 16px rgba(255, 153, 0, 0.6));
	background: linear-gradient(
		90deg, 
		#fff 0%, 
		#ffe9a1 20%,
		#ffc72c 40%,
		#fff 50%,
		#ffc72c 60%,
		#ffe9a1 80%,
		#fff 100%
	);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	transform: translateZ(0);
	backface-visibility: hidden;
	will-change: background-position;
}

@keyframes text-shimmer {
	0%, 100% { background-position: 0% center; }
	50% { background-position: 100% center; }
}

/* Make tagline glow */
body.shine-mode .tagline {
	animation: tagline-glow 2s ease-in-out infinite;
	text-shadow: 0 0 10px rgba(255, 199, 44, 0.6);
	transform: translateZ(0);
	backface-visibility: hidden;
}

@keyframes tagline-glow {
	0%, 100% { text-shadow: 0 0 10px rgba(255, 199, 44, 0.6); }
	50% { text-shadow: 0 0 20px rgba(255, 199, 44, 0.9), 0 0 30px rgba(255, 153, 0, 0.6); }
}

/* Cards get intense borders and glow */
body.shine-mode .card {
	border-color: rgba(255, 199, 44, 0.3);
	box-shadow: 
		0 10px 30px rgba(0,0,0,0.25),
		0 0 30px rgba(255, 199, 44, 0.15),
		inset 0 0 40px rgba(255, 199, 44, 0.05);
	animation: card-glow-pulse 3s ease-in-out infinite;
	transform: translateZ(0);
	backface-visibility: hidden;
}

@keyframes card-glow-pulse {
	0%, 100% { 
		box-shadow: 
			0 10px 30px rgba(0,0,0,0.25),
			0 0 30px rgba(255, 199, 44, 0.15),
			inset 0 0 40px rgba(255, 199, 44, 0.05);
	}
	50% { 
		box-shadow: 
			0 10px 30px rgba(0,0,0,0.25),
			0 0 50px rgba(255, 199, 44, 0.25),
			inset 0 0 60px rgba(255, 199, 44, 0.08);
	}
}

/* Service pills light up */
body.shine-mode .pill-list li {
	background: linear-gradient(135deg, #2a2727, #1e1c1c);
	border-color: rgba(255, 199, 44, 0.3);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 20px rgba(255, 199, 44, 0.1);
	animation: pill-shimmer 4s ease-in-out infinite;
	animation-delay: calc(var(--pill-index, 0) * 0.15s);
	backface-visibility: hidden;
	will-change: transform, box-shadow;
}

body.shine-mode .pill-list li:nth-child(1) { --pill-index: 0; }
body.shine-mode .pill-list li:nth-child(2) { --pill-index: 1; }
body.shine-mode .pill-list li:nth-child(3) { --pill-index: 2; }
body.shine-mode .pill-list li:nth-child(4) { --pill-index: 3; }
body.shine-mode .pill-list li:nth-child(5) { --pill-index: 4; }
body.shine-mode .pill-list li:nth-child(6) { --pill-index: 5; }
body.shine-mode .pill-list li:nth-child(7) { --pill-index: 6; }

@keyframes pill-shimmer {
	0%, 100% { 
		box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 20px rgba(255, 199, 44, 0.1);
		transform: translateY(0) translateZ(0);
	}
	50% { 
		box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 30px rgba(255, 199, 44, 0.3);
		transform: translateY(-2px) translateZ(0);
	}
}

/* Primary button becomes super glowy */
body.shine-mode .btn.primary {
	box-shadow: 
		var(--glow),
		0 0 40px rgba(255, 199, 44, 0.6),
		0 0 60px rgba(255, 153, 0, 0.4);
	animation: btn-mega-glow 2s ease-in-out infinite;
	transform: translateZ(0);
	backface-visibility: hidden;
}

@keyframes btn-mega-glow {
	0%, 100% { 
		box-shadow: 
			var(--glow),
			0 0 40px rgba(255, 199, 44, 0.6),
			0 0 60px rgba(255, 153, 0, 0.4);
	}
	50% { 
		box-shadow: 
			var(--glow),
			0 0 60px rgba(255, 199, 44, 0.8),
			0 0 80px rgba(255, 153, 0, 0.6);
	}
}

/* Social links glow */
body.shine-mode .social-link {
	border-color: rgba(255, 199, 44, 0.2);
	box-shadow: 0 8px 20px rgba(0,0,0,0.25), 0 0 20px rgba(255, 199, 44, 0.15);
}

/* Add sparkle particles */
body.shine-mode::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: 
		radial-gradient(circle, var(--accent) 1px, transparent 1px),
		radial-gradient(circle, #fff 1px, transparent 1px),
		radial-gradient(circle, var(--accent-2) 1px, transparent 1px);
	background-size: 200px 200px, 300px 300px, 250px 250px;
	background-position: 0 0, 50px 50px, 100px 100px;
	opacity: 0.15;
	animation: sparkle-float 20s linear infinite;
	mix-blend-mode: screen;
	will-change: background-position;
	overflow: hidden;
}

@keyframes sparkle-float {
	0% { 
		background-position: 0 0, 50px 50px, 100px 100px;
		opacity: 0.15;
	}
	50% {
		opacity: 0.25;
	}
	100% { 
		background-position: 200px 200px, 250px 250px, 300px 300px;
		opacity: 0.15;
	}
}

/* Light rays removed - was causing page height issues */

/* Team member cards get extra special glow */
body.shine-mode .person {
	animation: card-glow-pulse 3s ease-in-out infinite, person-float 4s ease-in-out infinite;
	will-change: transform;
	backface-visibility: hidden;
}

body.shine-mode .person:nth-child(1) {
	animation-delay: 0s, 0s;
}

body.shine-mode .person:nth-child(2) {
	animation-delay: 0.5s, 0.5s;
}

@keyframes person-float {
	0%, 100% { transform: translateY(0) translateZ(0); }
	50% { transform: translateY(-4px) translateZ(0); }
}

/* Make headings glow */
body.shine-mode h2,
body.shine-mode h3 {
	text-shadow: 0 0 20px rgba(255, 199, 44, 0.3);
	animation: heading-glow 3s ease-in-out infinite;
	transform: translateZ(0);
	backface-visibility: hidden;
}

@keyframes heading-glow {
	0%, 100% { text-shadow: 0 0 20px rgba(255, 199, 44, 0.3); }
	50% { text-shadow: 0 0 30px rgba(255, 199, 44, 0.5), 0 0 40px rgba(255, 153, 0, 0.3); }
}

/* Footer gets subtle glow */
body.shine-mode .site-footer {
	border-top-color: rgba(255, 199, 44, 0.2);
	box-shadow: 0 -20px 40px rgba(255, 199, 44, 0.05);
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
	body.shine-mode,
	body.shine-mode *,
	body.shine-mode::before,
	body.shine-mode::after {
		animation: none !important;
		transition: none !important;
	}
	
	/* Keep static glow effects but no animation */
	body.shine-mode .card {
		box-shadow: 
			0 10px 30px rgba(0,0,0,0.25),
			0 0 40px rgba(255, 199, 44, 0.2),
			inset 0 0 50px rgba(255, 199, 44, 0.07);
	}
}
