body{
	background-image: url('assets/img/sanskrkbg.jpg');
	font-family: 'Open Sans', sans-serif;
	margin: 0;
	min-height: 10vh;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.hombg {
	background-image: url('../../assets/img/sanskritbg.jpg');
	font-family: 'Open Sans', sans-serif;
	margin: 0;
	min-height: 100vh; /* ensures it fills screen height, even on mobile */
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.catbg {
	background-image: url('https://img.freepik.com/free-photo/white-wood-background_74190-3527.jpg');
	font-family: 'Open Sans', sans-serif;
	margin: 0;
	min-height: 10vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	padding: 20px 0;
	position: relative;
	overflow: hidden;
}

/* Sparkle container */
.catbg .sparkle {
	position: absolute;
	width: 6px;
	height: 6px;
	background: white;
	border-radius: 50%;
	box-shadow: 0 0 8px 4px white;
	animation: sparkleMove 4s linear infinite, sparklePulse 2s ease-in-out infinite;
	opacity: 0.8;
}

/* Random positioning with delays for natural effect */
.catbg .sparkle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s, 0s; }
.catbg .sparkle:nth-child(2) { top: 30%; left: 70%; animation-delay: 1s, 1s; }
.catbg .sparkle:nth-child(3) { top: 60%; left: 40%; animation-delay: 2s, 0.5s; }
.catbg .sparkle:nth-child(4) { top: 80%; left: 80%; animation-delay: 3s, 1.5s; }
.catbg .sparkle:nth-child(5) { top: 50%; left: 10%; animation-delay: 2.5s, 0.8s; }

@keyframes sparkleMove {
	0% { transform: translateY(0); opacity: 0.8; }
	50% { transform: translateY(-10px); opacity: 1; }
	100% { transform: translateY(0); opacity: 0.8; }
}

@keyframes sparklePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.5); }
}


.card-container {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: white;
	transition: background 0.3s ease, box-shadow 0.3s ease;
	width: 100%;
}

h1, p {
	color: white;
}

img#rotateimg {
	width: 100%;
	height: 100%;
	animation: rotation 20s linear infinite;
	filter: invert(1) brightness(2);
	object-fit: contain;
}

@keyframes rotation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.image-container {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
}

.center-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background-color: rgba(255, 255, 255, 0.85);
	border: none;
	border-radius: 50%;
	font-size: 16px;
	text-align: center;
	line-height: 60px;
	cursor: pointer;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
	color: black;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.center-button:hover {
	background-color: #ff4400;
	color: #fff;
}

.glass-btn {
	display: inline-block;
	border-radius: 30px;
	font-weight: 600;
	padding: 12px 30px;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	color: white;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
	margin: 5px 10px;
}		 

.glass-btn.outline {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.7);
	color: white;
}

.glass-btn.outline:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: white;
	box-shadow: 0 0 10px white;
	transform: scale(1.05);
	text-decoration: none;
}

/* Responsive Styles */

/* Small devices (mobile phones, less than 576px) */
@media (max-width: 575.98px) {
	.card-container {
		padding: 20px;
		border-radius: 15px;
	}

	h1.display-4 {
		font-size: 1.8rem;
	}

	p.lead {
		font-size: 1rem;
	}

	.image-container {
		max-width: 250px;
		margin: 20px auto 0;
		aspect-ratio: auto;
	}

	img#rotateimg {
		width: 100%;
		height: auto;
	}

	.center-button {
		width: 50px;
		height: 50px;
		font-size: 14px;
		line-height: 50px;
	}

	.glass-btn.outline {
		display: block;
		margin: 10px auto;
		width: 80%;
		max-width: 300px;
	}

	.w-100.mt-4.text-center {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* Medium devices (tablets, 576px to 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
	h1.display-4 {
		font-size: 2.5rem;
	}

	p.lead {
		font-size: 1.1rem;
	}

	.image-container {
		max-width: 300px;
	}

	.center-button {
		width: 55px;
		height: 55px;
		font-size: 15px;
		line-height: 55px;
	}

	.glass-btn.outline {
		width: auto;
		margin: 5px;
	}
}
@media (max-width: 575.98px) {
	#mobileExplore a {
		display: block;
		width: 100%;
		margin: 10px auto;
	}
	h1.display-4 {
		font-size: 2.5rem;
		text-align: center;
	}

	p.lead {
		font-size: 1rem;
		text-align: center;
	}
	.text-slider p {
		position: absolute;
		width: 100%;
		opacity: 0;
		animation: slideRightToLeft 16s infinite;
		white-space: normal;
		word-wrap: break-word;
		text-align: center !important;

	}
	
}
.text-slider {
	position: relative;
	width: 100%;
	height: 6em;
	overflow: hidden;
}

.text-slider p {
	position: absolute;
	width: 100%;
	opacity: 0;
	animation: slideRightToLeft 16s infinite;
	white-space: normal;
	word-wrap: break-word;
	text-align: left;

}

.text-slider p:nth-child(1) { animation-delay: 0s; }
.text-slider p:nth-child(2) { animation-delay: 4s; }
.text-slider p:nth-child(3) { animation-delay: 8s; }
.text-slider p:nth-child(4) { animation-delay: 12s; }

@keyframes slideRightToLeft {
	0% {
		transform: translateX(100%);
		opacity: 0;
	}
	10% {
		transform: translateX(0%);
		opacity: 1;
	}
	25% {
		transform: translateX(0%);
		opacity: 1;
	}
	35% {
		transform: translateX(100%);
		opacity: 0;
	}
	100% {
		opacity: 0;
		transform: translateX(-100%);
	}
}