@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,600");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

/* Reset & Base */
html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
}

body {
	background: #fff;
	font-family: "Source Sans Pro", sans-serif;
	font-size: 19pt;
	font-weight: 300;
	line-height: 1.75em;
	color: #444;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 300;
	color: #333;
	line-height: 1.5em;
}

h2 {
	font-size: 2em;
	letter-spacing: -1px;
}

h2.alt,
h2.alt strong {
	color: #ffffff;
}

h3 {
	font-size: 1.5em;
}

a {
	text-decoration: none;
	color: #2c3e50;
	border-bottom: 1px dotted rgba(128, 128, 128, 0.5);
	transition: 0.3s;
}

a:hover {
	color: #e27689;
	border-bottom-color: transparent;
}

/* Layout Containers */
.container {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 20px;
}

section {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	margin-bottom: 3em;
}

section.visible {
	opacity: 1;
	transform: none;
}

/* Sidebar Navigation */
#header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #7a1e1e;
	color: #fff;
	width: 375px;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	overflow-y: auto;
	box-shadow: inset -0.25em 0 0.25em 0 rgba(0, 0, 0, 0.1);
}

#logo {
	text-align: center;
	padding: 2em 1em 1em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	background-color: rgba(255, 255, 255, 0.03);
}

#logo h1 {
	color: #fff;
	font-size: 1.4em;
	font-weight: 600;
	margin: 0;
}

#logo p {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.9em;
	margin: 0.5em 0 0;
}

#nav ul {
	list-style: none;
	padding-left: 0;
}

#nav ul li a {
	display: block;
	padding: 0.75em 1.5em;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9em;
	border-radius: 8px;
	transition: background 0.3s ease, transform 0.2s ease;
}

#nav ul li a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: translateX(5px);
}

#nav ul li a.active {
	background: rgba(0, 0, 0, 0.2);
	color: #fff;
	box-shadow: inset 0 0 0.25em rgba(0, 0, 0, 0.1);
}

/* Font Awesome Icons */
.icon:before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	display: inline-block;
	margin-right: 0.5em;
}

.icon.solid.fa-home:before {
	content: "\f015";
}
.icon.solid.fa-question:before {
	content: "\f128";
}
.icon.solid.fa-user:before {
	content: "\f007";
}
.icon.solid.fa-file:before {
	content: "\f15b";
}

/* Main Content Sections */
#main {
	margin-left: 375px;
}

#main > section {
	padding: 4em 0;
	text-align: center;
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

#main > section.cover {
	padding: 8em 0;
	background-size: cover;
	background-position: center;
}

#main > section.one {
	background-color: #d53333;
	background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
		url("../../images/banner.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	backdrop-filter: brightness(0.95) blur(1px);
}

#main > section.one h2 {
	font-size: 2.8em;
	font-weight: 600;
	line-height: 1.3em;
	margin-bottom: 0.5em;
}

#main > section.one p {
	font-size: 1.2em;
	font-weight: 300;
	margin-bottom: 1.5em;
}

#main > section.two {
	background-color: #ffd6d6;
}
#main > section.three {
	background-color: #ffe0e0;
}
#main > section.four {
	background-color: #ffebeb;
}
#main > section.five {
	background-color: #fff3f3;
}
#main > section.six {
	background-color: #fff7f7;
}
#main > section.seven {
	background-color: #fffafa;
}

#main > section:not(.cover) {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Buttons */
.button {
	font-size: 1.1em;
	padding: 1em 2.75em;
	border-radius: 0.75rem;
	background: #a83434;
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, background 0.3s ease;
}

@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(168, 52, 52, 0.7);
	}
	70% {
		transform: scale(1.05);
		box-shadow: 0 0 0 10px rgba(168, 52, 52, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(168, 52, 52, 0);
	}
}

.button:hover {
	animation: pulse 1s ease-out;
	background: #a72828;
}

/* Layouts: Grid and Flex Containers */
.team-container,
.committee-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 40px;
	justify-items: center;
	margin-top: 60px;
}

.sponsor-container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
	margin-top: 40px;
	padding: 0 1rem;
}

/* Cards: Team, Committee, Sponsors */
.team-member,
.committee-member,
.sponsor-member {
	background: #ffffff;
	border-radius: 1rem;
	padding: 1.25em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.team-member {
	position: relative;
	width: 240px;
	padding-top: 3.5em;
}

/* .team-member img {
	position: absolute;
	top: -60px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	background: #fff;
} */

.card-flip {
	perspective: 1000px;
}

.card-inner {
	position: relative;
	width: 240px;
	height: 300px;
	transform-style: preserve-3d;
	transition: transform 0.6s ease;
}

.card-flip:hover .card-inner {
	transform: rotateY(180deg);
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 1rem;
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1em;
	text-align: center;
}

.card-front img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1em;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-back {
	transform: rotateY(180deg);
	font-size: 0.95em;
	font-style: italic;
	font-weight: 300;
	line-height: 1.6em;
	color: #666;
	padding: 1.5em;
}

.committee-member {
	min-height: 200px;
	width: 250px;
}

.sponsor-member {
	min-height: 200px;
	width: 250px;
}

.team-member p,
.committee-member p,
.sponsor-member p {
	margin-top: 0.1em;
	font-size: 1.2em;
	font-weight: 700;
}

.team-member em,
.committee-member em,
.sponsor-member em {
	margin-top: 0.25em;
	font-size: 0.95em;
	color: #666;
	font-style: italic;
}

.committee-member:hover,
.sponsor-member:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
	background-color: #f9f9f9;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Documentation & Videos */
.document-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 2em;
}

.document-card {
	background: #fff;
	padding: 1.25em;
	border-radius: 1rem;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.document-card:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
	background-color: #f9f9f9;
}

.document-card a {
	font-weight: 600;
	font-size: 1em;
	color: #2c3e50;
	border-bottom: 2px solid transparent;
	transition: color 0.3s ease, border 0.3s ease;
}

.document-card a:hover {
	color: #e27689;
	border-color: #e27689;
}

.document-card iframe {
	width: 100%;
	height: 315px;
	margin-top: 10px;
	border-radius: 12px;
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 25px;
	height: 0;
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	transition: transform 0.3s ease;
}

.video-wrapper:hover iframe {
	transform: scale(1.02);
}

/* Mobile Header Toggle */
#headerToggle {
	position: fixed;
	top: 1em;
	left: 1em;
	z-index: 1001;
	display: none;
}

#headerToggle .toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3em;
	height: 3em;
	background: rgba(34, 38, 41, 0.9);
	border-radius: 8px;
	color: white;
	font-size: 1.5em;
	text-decoration: none;
	transition: background 0.3s ease;
}

#headerToggle .toggle:hover {
	background: rgba(34, 38, 41, 1);
}

/* Responsive Design */
@media screen and (max-width: 960px) {
	#header {
		width: 275px;
		transform: translateX(-275px);
		transition: transform 0.5s ease;
	}
	body.header-visible #header {
		transform: translateX(0);
	}
	#main {
		margin-left: 0;
		transition: transform 0.5s ease;
	}
	body.header-visible #main {
		transform: translateX(275px);
	}
	#headerToggle {
		display: block;
		transition: opacity 0.3s ease;
	}
	body.header-visible #headerToggle {
		display: none;
		opacity: 0;
		pointer-events: none;
	}
}

@media screen and (max-width: 736px) {
	body {
		font-size: 16pt;
	}
	h2 {
		font-size: 1.5em;
	}
	.container {
		padding: 0 15px;
	}
	#main > section {
		padding: 2em 0;
	}
	#main > section.one h2 {
		font-size: 2em;
	}
	#main > section.one p {
		font-size: 1em;
	}
	.button {
		width: 100%;
		text-align: center;
	}
}
