/**
 * Index Page Enhanced Styles
 * Hero section, animations, UI components, and modals
 */

/* Source Han Serif (Noto Serif JP) is loaded via Google Fonts */

/* Enhanced Hero Subtitle and Tagline Styles */
.subtitle-enhanced {
			font-size: clamp(1.2rem, 3vw, 2rem);
	font-weight: 600;
	color: #00ffff;
	text-align: center;
	margin: 30px 0 20px;
	letter-spacing: 0.1em;
	text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
	opacity: 1 !important;
	transform: translateY(0) !important;
	z-index: 10;
	position: relative;
}

.tagline-enhanced {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: clamp(0.9rem, 2.5vw, 1.2rem);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
	margin: 20px 0 40px;
	line-height: 1.6;
	letter-spacing: 0.05em;
	opacity: 1 !important;
	transform: translateY(0) !important;
	z-index: 10;
	position: relative;
}

.morphing-word {
	color: #ff0080;
	font-weight: 700;
	text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* Enhanced Design System */
:root {
	--primary-cyan: #00ffff;
	--primary-magenta: #ff0080;
	--accent-green: #00ff80;
	--accent-yellow: #ffff00;
	--dark-bg: #000000;
	--dark-surface: #1a1a1a;
	--text-primary: #ffffff;
	--text-secondary: rgba(255, 255, 255, 0.8);
	--raleway: 'Raleway', sans-serif;
	--source-han-serif: 'Noto Serif JP', 'Source Han Serif JP', serif;
	--source-han-sans: 'Noto Sans JP', 'Source Han Sans JP', sans-serif;
}

/* Advanced Hero Section */
.hero-enhanced {
	position: relative;
	height: 100vh;
	background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}



/* CSS Gradient Background - Behind Everything */
.parallax-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -40;
	pointer-events: none;
	background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(26,26,62,0.3) 100%);
	transition: background 0.1s ease-out;
}

/* Animated Particles Background - Behind Content but Above Body */
.particles-container, .vanta-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	z-index: 1;
	pointer-events: auto;
	overflow: hidden;
}

/* Hero Content Container */
.hero-content-enhanced {
	position: relative;
	z-index: 20;
	text-align: center;
	max-width: 800px;
	padding: 0 20px;
	pointer-events: none;
}

.hero-content-enhanced * {
	pointer-events: auto;
}

/* Logo Animation */
.logo-enhanced {
	width: 120px;
	height: 120px;
	margin: 0 auto 40px;
	position: relative;
	opacity: 0;
	transform: scale(0.5) rotateY(-180deg);
}

.logo-enhanced img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Enhanced Title */
.title-enhanced {
	font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
	font-size: clamp(2.5rem, 8vw, 4rem);
	font-weight: 100;
	margin-bottom: 30px;
	position: relative;
}

.title-char {
	display: inline-block;
	opacity: 0;
	transform: translateY(100px) rotateX(-90deg);
	transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 4つのeの色設定 - 会社サイトと完全一致 */
.title-char.e1 {
	color: limegreen; /* #32CD32 - 1番目のe */
}

.title-char.e2 {
	color: deepskyblue; /* #00BFFF - 2番目のe */
}

.title-char.e3 {
	color: purple; /* #800080 - 3番目のe */
}

.title-char.e4 {
	color: red; /* #FF0000 - 4番目のe */
}


/* Dynamic Subtitle - LCP最適化 */
.subtitle-enhanced {
	font-family: var(--raleway);
	font-size: clamp(1rem, 3vw, 1.5rem);
	font-weight: 300;
	letter-spacing: 0.2em;
	margin-bottom: 20px;
	opacity: 0.1;  /* LCP最適化: 0.1でLCP候補として認識される */
	transform: translateY(50px);
}

.morphing-word {
	display: inline-block;
	background: linear-gradient(90deg, var(--primary-cyan), var(--accent-green), var(--primary-magenta));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	background-size: 300% 100%;
	animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* Tagline */
.tagline-enhanced {
	font-family: var(--source-han-sans);
	font-size: clamp(0.9rem, 2.5vw, 1.2rem);
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 50px;
	opacity: 0.1;  /* LCP最適化: 0.1でLCP候補として認識される */
	transform: translateY(30px);
}

/* Mouse Scroll Indicator */
.mouse-scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	opacity: 0;
	text-align: center;
}

.mouse {
	width: 30px;
	height: 50px;
	border: 2px solid var(--primary-cyan);
	border-radius: 15px;
	position: relative;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	margin: 0 auto;
}

.scroll-wheel {
	width: 4px;
	height: 8px;
	background: var(--primary-cyan);
	border-radius: 2px;
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	animation: mouseScroll 2s infinite ease-in-out;
	box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

@keyframes mouseScroll {
	0% {
		transform: translateX(-50%) translateY(0);
		opacity: 1;
	}
	50% {
		transform: translateX(-50%) translateY(15px);
		opacity: 0.7;
	}
	100% {
		transform: translateX(-50%) translateY(0);
		opacity: 1;
	}
}

.mouse-scroll-indicator:hover .mouse {
	border-color: var(--accent-green);
	box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.mouse-scroll-indicator:hover .scroll-wheel {
	background: var(--accent-green);
	box-shadow: 0 0 15px rgba(0, 255, 128, 0.7);
}

.scroll-text {
	font-family: var(--raleway);
	font-size: 0.8rem;
	color: var(--text-secondary);
	letter-spacing: 0.1em;
	text-align: center;
	margin-top: 15px;
	opacity: 0.8;
	transition: all 0.3s ease;
}

.mouse-scroll-indicator:hover .scroll-text {
	color: var(--accent-green);
	opacity: 1;
}

/* Text Scramble Styles */
.text-scramble-container {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 20px 0;
	padding: 15px 20px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(0, 255, 255, 0.2);
	border-radius: 8px;
	backdrop-filter: blur(10px);
}

.text-scramble-word {
	font-family: var(--orbitron);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--primary-cyan);
	text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
	letter-spacing: 0.05em;
	min-width: 140px;
	text-align: left;
}

.text-scramble-meaning {
	font-family: var(--raleway);
	font-size: 1rem;
	color: var(--accent-green);
	font-weight: 400;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.5s ease;
}

.text-scramble-meaning.show {
	opacity: 1;
	transform: translateY(0);
}


.demo-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: rgba(0, 0, 0, 0.8);
	border: 1px solid rgba(255, 0, 128, 0.3);
	border-radius: 20px;
	color: var(--primary-magenta);
	text-decoration: none;
	font-family: var(--orbitron);
	font-size: 0.8rem;
	font-weight: 600;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.demo-link:hover {
	background: rgba(255, 0, 128, 0.1);
	box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
	transform: translateY(-2px);
}

/* Section Enhancements */
.section-enhanced {
	position: relative;
	overflow: hidden;
	z-index: 10;
	pointer-events: none;
}

/* Allow pointer events on section backgrounds for particles click */
.section-enhanced::before,
.section-enhanced::after {
	pointer-events: none;
}

/* Only interactive and content elements should block particles click */
.section-enhanced a,
.section-enhanced button,
.section-enhanced input,
.section-enhanced textarea,
.section-enhanced select,
.section-enhanced video,
.section-enhanced iframe,
.section-enhanced form,
.section-enhanced .clickable {
	position: relative;
	z-index: 15;
	pointer-events: auto;
}

/* Text content and containers allow particles click through padding/margins */
.section-enhanced h2,
.section-enhanced .vision,
.section-enhanced .wrap,
.section-enhanced .inner,
.section-enhanced .content,
.section-enhanced .case_div,
.section-enhanced ul,
.section-enhanced li,
.section-enhanced p,
.section-enhanced img {
	position: relative;
	z-index: 15;
	pointer-events: auto;
}

/* Allow click through on empty spaces within containers */
.section-enhanced .wrap,
.section-enhanced .inner,
.section-enhanced .content {
	pointer-events: none;
}

/* Re-enable for actual content */
.section-enhanced .wrap > *,
.section-enhanced .inner > *,
.section-enhanced .content > * {
	pointer-events: auto;
}

/* Navigation should always receive clicks */
#mainnav,
#mainnav *,
.bg-animation-selector,
.bg-animation-selector *,
.ai-dx-chat-button,
.ai-dx-chat-button * {
	pointer-events: auto !important;
}

.section-bg-animation {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.05;
	z-index: 1;
}

/* Scroll Triggered Animations */
.scroll-animate {
	opacity: 0;
	transform: translateY(50px);
}

.scroll-animate.animate {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Service Cards Enhancement */
.service-card-enhanced {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.service-card-enhanced::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
	transition: left 0.5s ease;
	z-index: 1;
}

.service-card-enhanced:hover::before {
	left: 100%;
}

/* Counter Animation */
.animated-counter {
	font-family: var(--orbitron);
	font-weight: 700;
	color: var(--primary-cyan);
}

/* Progress Bars */
.skill-progress {
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	overflow: hidden;
	margin: 10px 0;
}

.skill-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--primary-cyan), var(--accent-green));
	width: 0%;
	transition: width 2s ease;
}

/* Section Title Concentric Rings Background */
.section-rings {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120px;
	height: 120px;
	z-index: -1;
	transform-style: preserve-3d;
	perspective: 200px;
	opacity: 0.5; /* 透過率50% */
	margin-top: 0.4em; /* 文字の中央に合わせるための微調整 */
}

.section-rings .ring {
	position: absolute;
	border: 2px solid;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform-style: preserve-3d;
}

.section-rings .ring-1 {
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: 0s;
}

.section-rings .ring-2 {
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: -0.1s;
}

.section-rings .ring-3 {
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: -0.2s;
}

.section-rings .ring-4 {
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: -0.3s;
}

.section-rings .ring-5 {
	width: 68px;
	height: 68px;
	margin: -34px 0 0 -34px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: -0.4s;
}

.section-rings .ring-6 {
	width: 80px;
	height: 80px;
	margin: -40px 0 0 -40px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: -0.5s;
}

.section-rings .ring-7 {
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: -0.6s;
}

.section-rings .ring-8 {
	width: 104px;
	height: 104px;
	margin: -52px 0 0 -52px;
	border-color: #00ffff;
	animation: sectionRingRotate 5s infinite ease-in-out;
	animation-delay: -0.7s;
}

@keyframes sectionRingRotate {
	0% {
		transform: rotate3d(1, -1, 0, 0deg);
		opacity: 0.4;
	}
	20% {
		transform: rotate3d(1, -1, 0, 72deg);
		opacity: 0.8;
	}
	25% {
		transform: rotate3d(1, -1, 0, 90deg);
		opacity: 0.8;
	}
	45% {
		transform: rotate3d(1, -1, 0, 162deg);
		opacity: 0.8;
	}
	50% {
		transform: rotate3d(1, -1, 0, 180deg);
		opacity: 0.8;
	}
	70% {
		transform: rotate3d(1, -1, 0, 252deg);
		opacity: 0.8;
	}
	75% {
		transform: rotate3d(1, -1, 0, 270deg);
		opacity: 0.8;
	}
	95% {
		transform: rotate3d(1, -1, 0, 342deg);
		opacity: 0.8;
	}
	100% {
		transform: rotate3d(1, -1, 0, 360deg);
		opacity: 0.4;
	}
}

/* Background Animation Selector */
.bg-animation-selector {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1001;
	background: rgba(0, 0, 0, 0.95);
	border: 2px solid rgba(0, 255, 255, 0.7);
	border-radius: 8px;
	border-right: none;
	backdrop-filter: blur(20px);
	box-shadow: 0 6px 30px rgba(0, 255, 255, 0.3);
	pointer-events: auto;
	display: flex;
	align-items: stretch;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(0);
}

.bg-animation-selector.collapsed {
	/* PC: 左余白20pxを考慮してToggle部分のみ表示 */
	transform: translateX(calc(-100% + 32px - 20px));
}

.bg-selector-content {
	padding: 12px;
	min-width: 140px;
	min-height: 130px;
	border-radius: 8px 0 0 8px;
	background: rgba(0, 0, 0, 0.95);
	display: flex;
	flex-direction: column;
}

.bg-selector-toggle {
	width: 32px;
	background: rgba(0, 255, 255, 0.7);
	border: 2px solid rgba(0, 255, 255, 0.7);
	border-left: none;
	border-radius: 0 8px 8px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	gap: 8px;
	/* marginを除去して境界線を正確に整列 */
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.bg-selector-toggle:hover {
	background: rgba(0, 255, 255, 0.85);
	border-color: #00ffff;
	box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.bg-selector-toggle-arrow {
	color: rgba(0, 0, 0, 0.9);
	font-size: 0.9rem;
	font-weight: bold;
	transition: transform 0.3s ease;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	flex-shrink: 0;
}

.bg-selector-toggle-text {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	color: rgba(0, 0, 0, 0.9);
			font-size: 0.5rem;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	flex-grow: 1;
	display: flex;
	align-items: center;
}

/* .bg-animation-selector.collapsed .bg-selector-toggle-arrow {
	transform: rotate(180deg);
} */
/* JavaScript で制御するためコメントアウト */

.bg-selector-label {
	color: #00ffff;
	font-size: 0.8rem;
	margin-bottom: 5px;
			text-align: center;
	text-shadow: 0 0 5px currentColor;
}

.bg-selector-dropdown {
	background: rgba(0, 0, 0, 0.9);
	border: 1px solid rgba(0, 255, 255, 0.5);
	border-radius: 5px;
	color: #fff;
	padding: 8px 12px;
			font-size: 0.75rem;
	outline: none;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 140px;
}

.bg-selector-dropdown:hover {
	border-color: #00ffff;
	box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.bg-selector-dropdown option {
	background: #000;
	color: #fff;
	padding: 5px;
}

.animation-samples-link {
	display: block;
	margin-top: 8px;
	margin-bottom: 10px;
	padding: 6px 10px;
	background: rgba(255, 0, 128, 0.1);
	border: 1px solid rgba(255, 0, 128, 0.5);
	border-radius: 4px;
	color: #ff0080;
	text-decoration: none;
			font-size: 0.7rem;
	text-align: center;
	transition: all 0.3s ease;
	text-shadow: 0 0 5px currentColor;
}

.animation-samples-link:hover {
	background: rgba(255, 0, 128, 0.2);
	border-color: #ff0080;
	box-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
	transform: translateY(-1px);
}

.particles-instruction {
	margin-top: 8px;
	padding: 4px 8px;
	background: rgba(0, 255, 255, 0.05);
	border-radius: 4px;
	color: #00ffff;
			font-size: 0.65rem;
	text-align: center;
	opacity: 0.8;
	min-height: 26px;
	box-sizing: border-box;
}

/* Loading indicator for bg changes */
.bg-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	background: rgba(0, 0, 0, 0.8);
	color: #00ffff;
	padding: 20px 30px;
	border-radius: 10px;
	border: 1px solid rgba(0, 255, 255, 0.3);
			text-align: center;
	display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.bg-animation-selector {
		top: 10px;
		left: 10px;
	}

	.bg-animation-selector.collapsed {
		/* スマホ: 左余白10pxでToggle部分のみ表示 (元の計算) */
		transform: translateX(calc(-100% + 30px));
	}

	.bg-selector-content {
		padding: 8px;
		min-height: 110px;
		min-width: 120px;
	}

	.bg-selector-dropdown {
		min-width: 100px;
		font-size: 0.65rem;
		padding: 4px 6px;
	}

	.animation-samples-link {
		font-size: 0.6rem;
		padding: 4px 6px;
		margin-top: 4px;
		margin-bottom: 5px;
	}

	.bg-selector-label {
		font-size: 0.7rem;
		margin-bottom: 3px;
	}

	.particles-instruction {
		font-size: 0.55rem;
		padding: 2px 4px;
		margin-top: 4px;
		min-height: 20px;
	}
	.hero-enhanced {
		padding: 0 20px;
	}

	.subtitle-enhanced {
		font-size: clamp(1rem, 4vw, 1.4rem);
		margin: 20px 0 15px;
	}

	.tagline-enhanced {
		font-size: clamp(0.8rem, 3.5vw, 1rem);
		margin: 15px 0 30px;
	}

	.hero-content-enhanced {
		padding: 0 10px;
	}
}

@media (max-width: 480px) {
	.bg-animation-selector {
		top: 5px;
		left: 5px;
	}

	.bg-selector-content {
		padding: 6px;
		min-height: 100px;
		min-width: 110px;
	}

	.bg-selector-dropdown {
		min-width: 90px;
		font-size: 0.6rem;
		padding: 3px 5px;
	}

	.animation-samples-link {
		font-size: 0.55rem;
		padding: 3px 5px;
		margin-top: 3px;
		margin-bottom: 5px;
	}

	.bg-selector-label {
		font-size: 0.65rem;
		margin-bottom: 2px;
	}

	.particles-instruction {
		font-size: 0.55rem;
		padding: 2px 4px;
		margin-top: 3px;
	}
}

/* Success Modal Styles */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.modal-overlay.show {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background: linear-gradient(135deg, rgba(0, 30, 60, 0.95), rgba(0, 0, 0, 0.95));
	border: 2px solid var(--primary-cyan);
	border-radius: 20px;
	padding: 40px;
	max-width: 500px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
	transform: scale(0.8) translateY(50px);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.modal-overlay.show .modal-content {
	transform: scale(1) translateY(0);
}

.modal-content::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, var(--primary-cyan), var(--primary-magenta), var(--accent-green));
	border-radius: 20px;
	z-index: -1;
	animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
	0% { opacity: 0.5; }
	100% { opacity: 1; }
}

.modal-header {
	margin-bottom: 30px;
}

.success-icon {
	margin: 0 auto 20px;
}

.check-mark {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: block;
	stroke-width: 3;
	stroke: var(--accent-green);
	stroke-miterlimit: 10;
	margin: 0 auto;
	box-shadow: inset 0 0 0 var(--accent-green);
	animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
	position: relative;
}

.check-mark-circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke-width: 3;
	stroke-miterlimit: 10;
	stroke: var(--accent-green);
	fill: none;
	animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	position: absolute;
	top: 0;
	left: 0;
	border: 3px solid var(--accent-green);
}

.check-mark-stem {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 3px;
	background: var(--accent-green);
	transform: translate(-50%, -50%) rotate(45deg);
	margin-left: -5px;
	margin-top: 5px;
}

.check-mark-kick {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 25px;
	height: 3px;
	background: var(--accent-green);
	transform: translate(-50%, -50%) rotate(-45deg);
	margin-left: 5px;
	margin-top: 10px;
}

@keyframes stroke {
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes scale {
	0%, 100% {
		transform: none;
	}
	50% {
		transform: scale3d(1.1, 1.1, 1);
	}
}

@keyframes fill {
	100% {
		box-shadow: inset 0 0 0 30px var(--accent-green);
	}
}

.modal-title {
	font-family: var(--orbitron);
	font-size: 1.8rem;
	color: var(--primary-cyan);
	margin: 0;
	font-weight: 700;
}

.modal-body {
	margin-bottom: 30px;
}

.modal-message {
	font-size: 1.1rem;
	color: var(--text-primary);
	margin-bottom: 15px;
	line-height: 1.6;
}

.modal-description {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.5;
	margin: 0;
}

.modal-footer {
	margin-top: 30px;
}

.modal-close-button {
	background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
	border: none;
	border-radius: 25px;
	padding: 12px 30px;
	color: white;
	font-family: var(--orbitron);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.modal-close-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

.modal-close-button:active {
	transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
	.modal-content {
		padding: 30px 20px;
		margin: 20px;
	}

	.modal-title {
		font-size: 1.5rem;
	}

	.modal-message {
		font-size: 1rem;
	}

	.check-mark {
		width: 60px;
		height: 60px;
	}

	.check-mark-circle {
		width: 60px;
		height: 60px;
	}
}

/* Fallback animation for WebGL alternatives */
@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* CSS Radial Pulse Animation */
@keyframes pulse {
	0%, 100% {
		transform: scale(0.8);
		opacity: 0.5;
	}
	50% {
		transform: scale(1.2);
		opacity: 1;
	}
}

/* Message Section 3D Cubes */
#sec02 .wrap {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

#sec02 .wrap .bg {
	flex: 0 0 50%;
	width: 50%;
}

#sec02 .wrap .txt {
	flex: 0 0 50%;
	width: 50%;
	text-align: left;
}

#sec02 .wrap .txt p {
	text-align: left;
}

.message-cube-container {
	width: 100%;
	height: 400px;
	min-height: 400px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.message-cube-container canvas {
	display: block;
	margin: 0 auto;
}

/* Responsive adjustments for cubes */
@media (max-width: 768px) {
	#sec02 .wrap {
		flex-direction: column;
		width: 90%;
	}

	#sec02 .wrap .bg,
	#sec02 .wrap .txt {
		flex: 1 1 100%;
		width: 100%;
	}

	.message-cube-container {
		height: 300px;
		min-height: 300px;
	}
}
