/* Custom Styles for a premium feel */
body {
	font-family: 'Inter', sans-serif;
	background-color: #0D1117;
	color: #C9D1D9;
	overflow-x: hidden;
	scroll-behavior: smooth;
}
.font-poppins { font-family: 'Poppins', sans-serif; }
.gradient-text {
	background: linear-gradient(90deg, #38BDF8, #A78BFA, #F472B6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hero-bg {
	background-image: radial-gradient(circle at 50% 50%, rgba(38, 70, 83, 0.3) 0%, rgba(13, 17, 23, 0) 60%);
}
.glass-card {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
}
.step-line {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background: linear-gradient(to bottom, #38BDF8, #A78BFA, #F472B6);
	opacity: 0.3;
}
.step-dot {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background-color: #38BDF8;
	box-shadow: 0 0 15px #38BDF8;
}
.stakeholder-tab.active {
	background: linear-gradient(90deg, #38BDF8, #A78BFA);
	color: #fff;
	box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

/* Animation states */
.reveal-element {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-element.visible {
	opacity: 1;
	transform: translateY(0);
}
.book-container:hover .book-cover { transform: rotateY(-60deg); }
.book-cover { transition: transform 0.7s ease; transform-origin: left; }

.choice-card {
	border: 1px solid #374151;
	border-radius: 1rem;
	padding: 1.5rem;
	text-align: left;
	/* Added for 3D tilt effect */
	transform-style: preserve-3d; 
}
/* Vertical timeline */
.timeline-container::before {
	content: '';
	position: absolute;
	left: 1rem;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(to bottom, #38BDF8, #A78BFA, #F472B6);
	opacity: 0.1;
	border-radius: 2px;
}
@media (min-width: 768px) {
	.timeline-container::before {
		left: 50%;
		transform: translateX(-50%);
	}
}
.timeline-item {
	position: relative;
	padding-left: 3rem;
}
@media (min-width: 768px) {
	.timeline-item {
		width: 50%;
		padding-left: 2rem;
		padding-right: 2rem;
	}
	.timeline-item:nth-child(odd) {
		align-self: flex-start;
		padding-right: 4rem;
		padding-left: 0;
	}
	.timeline-item:nth-child(even) {
		align-self: flex-end;
		padding-left: 4rem;
		padding-right: 0;
	}
}
.timeline-dot {
	content: '';
	position: absolute;
	left: 1rem;
	top: 0.5rem;
	transform: translateX(-50%);
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 9999px;
	background-color: #0D1117;
	border: 4px solid;
	box-shadow: 0 0 15px;
}

.timeline-dot-teacher {
	border-color: #A78BFA;
	box-shadow: 0 0 15px #A78BFA;
}

.timeline-dot-student {
	 border-color: #38BDF8;
	box-shadow: 0 0 15px #38BDF8;
}

@media (min-width: 768px) {
	.timeline-dot {
		left: 50%;
	}
	 .timeline-item:nth-child(odd) .timeline-dot {
		left: auto;
		right: -0.75rem;
		transform: translateX(50%);
	}
	 .timeline-item:nth-child(even) .timeline-dot {
		left: -0.75rem;
		 transform: translateX(-50%);
	}
}

/* Card Flip styles */
.benefit-card {
	background-color: transparent;
	min-height: 280px; /* Ensure cards have enough height */
	perspective: 1000px;
}
.benefit-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.8s;
	transform-style: preserve-3d;
}
.benefit-card:hover .benefit-card-inner {
	transform: rotateY(180deg);
}
.benefit-card-front, .benefit-card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden; /* Safari */
	backface-visibility: hidden;
}
.benefit-card-back {
	transform: rotateY(180deg);
}

/* Scrollytelling styles */
.scrolly-container {
	display: grid;
	grid-template-columns: 1fr;
}
 @media (min-width: 1024px) {
	.scrolly-container {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: flex-start;
	}
 }

.scrolly-sticky-side {
	position: relative;
	height: 650px;
}
 @media (min-width: 1024px) {
	.scrolly-sticky-side {
		position: sticky;
		top: 120px;
		height: calc(100vh - 120px);
	}
 }

.scrolly-sticky-content {
	 display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.scrolly-text-side {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
 @media (min-width: 1024px) {
	.scrolly-text-side {
		 gap: 50vh; /* space between triggers */
		padding-bottom: 50vh;
	}
 }

.scrolly-step {
	transition: opacity 0.4s ease-in-out;
	opacity: 0.3;
}
.scrolly-step.is-active {
	opacity: 1;
}
.phone-screen-scrolly {
	background: #111827;
	position: relative;
	overflow: hidden;
}
.phone-feature-scrolly {
	position: absolute;
	inset: 0;
	padding: 1.5rem;
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.phone-feature-scrolly.active {
	 opacity: 1;
	transform: translateX(0);
}

/* --- Group Hover Effect for Principal Section --- */
.group-hover-container .glass-card {
	transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
/* On container hover, dim all cards */
.group-hover-container:hover .glass-card {
	opacity: 0.6;
	transform: scale(0.98);
}
/* On individual card hover, bring it back to full focus */
.group-hover-container .glass-card:hover {
	opacity: 1;
	transform: scale(1.02);
	box-shadow: 0 0 30px rgba(244, 114, 182, 0.3); /* Add a subtle glow */
	border-color: rgba(244, 114, 182, 0.4);
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { opacity: 0.3; } }
.generative-icon .pulse-element { animation: pulse 2s infinite ease-in-out; }
.fade-in-section.visible .generative-icon .pulse-element { animation-delay: 3s; }

.modal-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7);
	display: flex; justify-content: center; align-items: center; z-index: 1000;
	opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content {
	background: white; padding: 2rem; border-radius: 1rem; width: 90%; max-width: 600px; max-height: 90vh;
	overflow-y: auto; transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.visible .modal-content { transform: scale(1); }

.loader {
	border: 4px solid #f3f3f3; border-top: 4px solid #8B5CF6; border-radius: 50%;
	width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 2rem auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.generative-texture-text {
	background: linear-gradient(45deg, #3B82F6, #8B5CF6, #EC4899, #3B82F6); background-size: 400% 400%;
	-webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient-animation 10s ease infinite;
}
@keyframes gradient-animation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.light-and-shadow-text { color: #4a5568; text-shadow: 0 3px 5px rgba(0,0,0,0.15), 0 -1px 1px rgba(255,255,255,0.8); }

.institution-card {
	background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-radius: 1.5rem; padding: 2.5rem; border: 1px solid rgba(255, 255, 255, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: left;
}
.institution-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); }

/* Floating Podcast Icon */
.floating-podcast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; }
.podcast-main-button {
	width: 60px; height: 60px; border-radius: 50%; background-color: #8B5CF6;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	cursor: pointer; transition: transform 0.3s ease;
}
.podcast-main-button:hover { transform: scale(1.1); }
.podcast-options {
	position: absolute; bottom: 70px; right: 0; display: flex; flex-direction: column; gap: 1rem;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.floating-podcast-container:hover .podcast-options { opacity: 1; visibility: visible; transform: translateY(0); }
.podcast-option {
	display: flex; align-items: center; gap: 0.5rem; background: white; padding: 0.5rem 1rem;
	border-radius: 9999px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); color: #1f2937;
	font-weight: 600; cursor: pointer; transition: background-color 0.2s ease;
}
.podcast-option:hover { background-color: #f3f4f6; }

/* MP3 Player Modal */
#mp3-player-modal .modal-content {
	background: rgba(31, 41, 55, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1); color: white; width: 90%; max-width: 400px;
}
#track-artwork { position: relative; }
#audio-visualizer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

input[type="range"] {
	-webkit-appearance: none; appearance: none; width: 100%; height: 4px;
	background: rgba(255, 255, 255, 0.3); border-radius: 5px; outline: none; transition: opacity .2s;
}
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 16px; height: 16px;
	background: #8B5CF6; cursor: pointer; border-radius: 50%;
}

/* Minimized Player */
#minimized-player {
	position: fixed;
	bottom: -100px; /* Initially hidden */
	right: 2rem;
	z-index: 1001;
	background: rgba(31, 41, 55, 0.8);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 0.75rem;
	padding: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 320px;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
	transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#minimized-player.visible {
	bottom: 2rem;
}

#mobile-menu { display: none; }

/* Dropdown menu styles */
.dropdown {
	display: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.group:hover .dropdown {
	display: block;
	opacity: 1;
	transform: translateY(0);
	margin-top: -0px;
}