/* =========================================
           1. DESIGN TOKENS (VARIABLES)
           ========================================= */
:root {
	/* --- Palette: Light Theme Definitions --- */
	--color-sign-light: #000000;
	--color-bold-light: #101010;
	--bg-surface-light: #f9f9f9;
	--bg-form-light: #ffffff;

	/* Gradient Components */
	--bg-start-light: #f5f5f5;
	--bg-mid-light: #f3f3f3;
	--bg-end-light: #dfe3e6;

	/* Text */
	--text-primary-light: #333333;
	--text-secondary-light: #666666;
	--text-muted-light: #737373;
	--accent-blue-light: #0066cc;
	--accent-text-light: #2563eb;

	/* UI Elements */
	--input-bg-start-light: #e9e9e91e;
	--input-bg-end-light: #cffdd01e;
	--input-border-light: rgba(0, 0, 0, 0.06);
	--button-bg-light: #1980cc;

	/* Magical Gradients */
	--magical-text-start-light: #e6b800;
	--magical-text-mid-light: #5ad6fb;
	--magical-text-end-light: #19e950;

	--btn-grad-start: #669985f5;
	--btn-grad-mid: #806699f5;
	--btn-grad-end: #4d4d80f5;

	--h1-grad-start: #e64d4d;
	--h1-grad-mid: #80b366;
	--h1-grad-end: #99ccff;

	--form-grad: #ecececa1;
	--form-grad-trans: #a7a7a70b;

	/* --- Mapping: Active Theme (Defaulting to Light) --- */
	--bg: #ffffff;
	--surface: var(--bg-surface-light);
	--fg: #151515;
	--text-primary: var(--text-primary-light);
	--text-secondary: var(--text-secondary-light);
	--text-muted: var(--text-muted-light);
	--accent: var(--accent-text-light);
	--accent-blue: var(--accent-blue-light);

	--border: #e5e5e5;
	--color-border-subtle: rgba(0, 0, 0, 0.125);

	/* Forms */
	--form-bg: var(--bg-form-light);
	--form-width: 90vw;
	--form-height: 70vh;
	--form-top: 20vh;

	/* Fonts */
	--font-head: "Times New Roman", Times, serif;
	--font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, sans-serif;

	/* Animation Easings */
	--ease-elegant: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out-quad: cubic-bezier(0.45, 0, 0.55, 1);

	/* Spacing */
	--pad-global: clamp(2rem, 6vw, 8rem);
	--container-max: 1400px;
	--space-section: clamp(5rem, 12vw, 10rem);
}

/* =========================================
           2. RESET & BASE
           ========================================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	overflow-x: hidden;
}

body {
	background: var(--surface);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
}

a {
	color: inherit;
	transition: 0.3s;
}

a.underline {
	text-decoration: underline;
}

a:hover {
	color: var(--accent);
}

/* =========================================
           3. TYPOGRAPHY
           ========================================= */
h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	color: #000;
	font-weight: normal;
}

.display-hero {
	font-size: clamp(3.5rem, 10vw, 8rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.display-section {
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	margin-bottom: 1.5rem;
	letter-spacing: -0.02em;
}

.text-overline {
	font-family: var(--font-body);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
	display: block;
	font-weight: 500;
}

.text-body {
	color: #404040;
	max-width: 50ch;
	line-height: 1.8;
	margin-top: 1rem;
}

.caption {
	font-size: 1rem;
	color: var(--text-muted);
	margin-top: 1rem;
	display: block;
	font-style: italic;
}

.nowrap {
	white-space: nowrap;
}

/* =========================================
           4. LAYOUT & GRID
           ========================================= */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	position: relative;
}

.container.section {
	padding-left: var(--pad-global);
	padding-right: var(--pad-global);
}

.section {
	margin-top: var(--space-section);
}

.grid-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(3rem, 8vw, 8rem);
	align-items: center;
}

.grid-split.reversed .visual-col {
	order: 1;
}

.grid-split.reversed .content-col {
	order: 2;
}

.visual-frame {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	aspect-ratio: 4/3;
	border-radius: 17px;
	border: 1px solid var(--color-border-subtle);
	box-shadow: rgba(0, 0, 0, 0.1) 0 10px 10px;
}

.visual-frame img {
	transition: transform 1.8s var(--ease-elegant);
}

.ai {
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-fill-color: transparent;

	background-image: conic-gradient(
		#34a853 0deg,
		#ffd314 65deg,
		#ff4641 180deg,
		#3186ff 260deg,
		#3186ff 360deg
	);
	background-size: 200% 200%;
	animation: rainbow 5s linear infinite, text-grow 5s linear infinite;
}

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

@keyframes text-grow {
	0%,
	100% {
		text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
	}
	25% {
		text-shadow: 0 0 1px rgba(255, 255, 0, 0.7);
	}
	50% {
		text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
	}
	75% {
		text-shadow: 0 0 5px rgba(0, 0, 255, 0.7);
	}
}
/* =========================================
           5. HERO & FORM COMPONENT
           ========================================= */
.hero-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero {
	display: flex;
	align-items: center;
}

.mask-group {
	position: relative;
	pointer-events: none;
	height: var(--form-height);
	margin-top: calc(var(--form-top) / 2);
	border-radius: 17px;
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05));
	overflow: hidden;
}

/* Form Container */
.form {
	border: 1px solid var(--bg-end-light);
	z-index: 1;
	position: relative;
	width: var(--form-width);
	height: var(--form-height);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5rem 0;
	background: linear-gradient(
		196deg,
		var(--form-grad) 1.7%,
		var(--form-grad-trans) 21%,
		var(--form-grad-trans) 73%
	);
	border-radius: 33px;
	user-select: none;
}

/* Form States (Critical for JS) */
.form.starts {
	display: flex;
}

.form.continues {
	display: none;
}

/* Interactive Elements inside Form */
.form input,
.form a,
.form .button-check {
	pointer-events: auto;
}

/* Typography inside Form */
.form h1,
.form .color-h1 {
	font-family: var(--font-head);
	font-size: min(13vw, 13vh);
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
	background: linear-gradient(
		180deg,
		var(--text-primary) 0%,
		var(--text-secondary) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Animated Gradient Title */
.form .color-h1 {
	position: absolute;
	transition: 1s var(--ease-in-out-quad);
	background-image: linear-gradient(
		94deg,
		var(--h1-grad-start),
		var(--h1-grad-mid),
		var(--h1-grad-end)
	);
	opacity: 0;
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		transparent 50%,
		black 50%,
		black 100%
	);
	mask-size: 200% 100%;
	mask-position: 0% 0;
}

.form h2 {
	font-size: min(4vw, 4vh);
	margin-top: 0.5rem;
	font-weight: 350;
}

.form h3 {
	font-family: var(--font-body) !important;
}

/* Input Fields */
.input-group {
	margin-top: 2rem;
	width: 70%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.input-group label {
	font-size: 0.9rem;
	color: var(--accent-blue);
	margin-left: 0.3rem;
}

.horizontal-group {
	display: flex;
	width: 100%;
	position: relative;
}

.horizontal-group input {
	width: 100%;
	height: 2.5rem;
	padding-left: 0.5rem;
	border-radius: 11px;
	border: 1.5px solid var(--input-border-light);
	background: linear-gradient(
		90deg,
		var(--input-bg-start-light),
		var(--input-bg-end-light)
	);
	font-size: 16px;
	color: var(--text-primary);
	outline: none;
	transition: width 0.5s var(--ease-out-expo);
}

.horizontal-group input:focus {
	width: calc(100% - 2.3rem);
}

.horizontal-group input:focus + .button-check {
	width: 2.3rem;
	opacity: 1;
}

.button-check {
	width: 0;
	height: 2.5rem;
	margin-left: 0.2rem;
	background: var(--button-bg-light) url("assets/check.svg") no-repeat
		center/contain;
	border-radius: 11px;
	opacity: 0;
	transition: all 0.5s var(--ease-in-out-quad);
}

/* Start Button */
.button-start {
	margin-top: 1rem;
	opacity: 0;
	pointer-events: none;
	transform: scale(0.8);
	transition: 1s var(--ease-out-expo);
}

.journey-button {
	pointer-events: none;
}

.button-border {
	border-radius: 10px;
	padding: 1.8px;
	background: conic-gradient(
		from var(--button-gradient-start) at 50% 50%,
		#ff8282 0deg,
		#e6e64d 90deg,
		#e6e6e6 180deg,
		#8989f6 270deg,
		#ff8282 360deg
	);
}

.journey-button {
	background: linear-gradient(
		91deg,
		var(--btn-grad-start),
		var(--btn-grad-mid),
		var(--btn-grad-end)
	);
	color: white;
	border: none;
	border-radius: 9px;
	padding: 0 0.5rem;
	height: 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.magical {
	display: inline-block;
	font-size: 3rem;
	padding: 0 0.5rem;
	text-shadow: 0px 14px 15px rgba(0, 0, 0, 0.4);
	--magical-text-start-light: #e6b800;
	--magical-text-mid-light: #5ad6fb;
	--magical-text-end-light: #19e950;
	--magical-text-start: var(--magical-text-start-light);
	--magical-text-mid: var(--magical-text-mid-light);
	--magical-text-end: var(--magical-text-end-light);
	background: linear-gradient(
		90deg,
		var(--magical-text-start) 0%,
		var(--magical-text-mid) 50%,
		var(--magical-text-end) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-fill-color: transparent;
	line-height: 1.2;
	transform: translateY(-3rem) scale(0.7);
	font-family: "Rouge Script", cursive;
	font-weight: 400;
	font-style: normal;
	transition: 1s var(--ease-out-expo);
	transition-delay: 0.1s;
}

.disclaimer {
	position: absolute;
	bottom: 2rem;
	font-size: 12px;
	color: var(--text-muted);
	opacity: 0.5;
	text-align: center;
	width: 80%;
}

.scc-image-text {
	background-image: url(https://sccl4c.web.app/assets/scc.svg);
	background-size: cover;
	color: transparent;
	font-size: max(5vw, 3vh);
	user-select: none;
}

/* Form Visual Border */
.form-border {
	position: absolute;
	top: calc(-1 * var(--form-height));
	left: 50%;
	transform: translateX(-50%);
	width: var(--form-width);
	height: var(--form-height);
	z-index: -1;
	pointer-events: none;
}

.form-border .border {
	width: 100%;
	height: 100%;
	border-radius: 34px;
	background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 36%);
	opacity: 0.1;
}

.loading {
	display: none;
	margin-top: 1rem;
	color: var(--text-muted);
}

.vr-img {
	z-index: -1;
	mask-image: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 1) 50%,
		rgba(0, 0, 0, 0) 90%
	);
}

.vr-content {
	position: relative;
	z-index: 1;
	transform: translateY(-50%);
}

/* =========================================
           6. STATES & ANIMATIONS
           ========================================= */
/* Ready State (Triggered by JS) */
.ready h1 {
	opacity: 1;
}

.ready .color-h1 {
	opacity: 1;
	mask-position: -100% 0;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
}

.ready .button-start {
	opacity: 1;
	pointer-events: all;
	margin-top: 3rem;
	transform: scale(1);
}

.ready .journey-button {
	pointer-events: all;
}

.ready .magical {
	transform: translateY(0) scale(1);
}

.ready .magical-background {
	opacity: 1;
}

/* Background Effects */
#canvas-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0.5;
	pointer-events: none;
}

.magical-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.7s;
	filter: blur(100px);
}

.ellipse-1 {
	position: absolute;
	width: 234px;
	height: 234px;
	left: -58px;
	top: 257px;
	background: rgba(0, 51, 255, 0.11);
}

.ellipse-2 {
	position: absolute;
	width: 408px;
	height: 408px;
	left: 42px;
	top: 0px;
	background: rgba(255, 235, 51, 0.11);
}

.ellipse-3 {
	position: absolute;
	width: 234px;
	height: 234px;
	left: 201px;
	top: 653px;
	background: rgba(0, 153, 255, 0.11);
}

/* =========================================
           7. TEAM SECTION – 
   ========================================= */
.team-members {
	margin-top: 3rem;
}

.people {
	width: 100%;
	max-width: 1000px; /* slightly wider for better breathing room */
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: start;
	gap: 1.5rem 2rem; /* cleaner than margins */
}

/* Full-width for Chairman & Vice-Chairman */
.person.full {
	width: 100%;
	max-width: 700px; /* limits excessive stretching on huge screens */
}

/* Regular half-width members */
.person.half {
	width: calc(50% - 1rem); /* 2 per row with gap */
	max-width: 380px;
}

/* Mobile: everything full-width but Chairman still stands out */
@media (max-width: 900px) {
	.person.full,
	.person.half {
		width: 100%;
		max-width: 420px;
	}

	.person.half {
		border-left: none;
		padding-left: 0;
	}
}

/* Visual distinction for leadership */
.person.leader {
	padding: 1.5rem;
	border-left: none;
	border-bottom: 1px solid var(--color-border-subtle);
}

.person.leader h3 {
	font-size: 1.5rem;
	font-weight: 600;
}

.person.leader p {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-primary);
}

/* Common card styling */
.person {
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--color-border-subtle);
	padding-left: 1.5rem;
	transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.year-badge {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	margin-right: 0.8rem;
	min-width: 44px;
	text-align: center;

	height: fit-content;
}

.person h3 {
	margin: 0;
	font-size: 1.25rem;
	color: var(--text-primary);
}

.person p {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-top: 0.35rem;
}

/* =========================================
   Team Group Subtitle
   ========================================= */
.team-group {
	width: 100%;
	margin-top: 4rem;
}

.team-subtitle {
	text-align: left;
	font-family: var(--font-head);
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 2rem;
	position: relative;
}

.team-subtitle::after {
	content: "";
	display: block;
	width: 80px;
	height: 1px;
	background: var(--text-muted);
	border-radius: 2px;
}

/* Optional: slightly reduce top margin on first group */
.team-group:first-of-type {
	margin-top: 5rem;
}

/* =========================================
           8. UTILITIES & MEDIA QUERIES
           ========================================= */
.text-center {
	text-align: center;
}

.mt-4 {
	margin-top: 2rem;
}

.mb-4 {
	margin-bottom: 2rem;
}

.pt-2 {
	padding-top: 1rem;
}

@media (max-width: 900px) {
	:root {
		--pad-global: 1.5rem;
		--space-section: 5rem;
	}

	.grid-split,
	.grid-split.reversed {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.grid-split.reversed .visual-col {
		order: -1;
	}

	.display-hero {
		font-size: 3.5rem;
	}
}
