@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Outfit:wght@100..900&display=swap');

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

@font-face {
	font-family: 'Aerospace';
	src: url('Animated-Portfolio-main/Aerospace.otf') format('otf'), url('Animated-Portfolio-main/Aerospace.ttf') format('truetype'), url('Animated-Portfolio-main/AnkhSanctuary-PVK0B.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'font7';
	src: url('Animated-Portfolio-main/DamingaMedium.otf') format('otf');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'font4';
	src: url('Animated-Portfolio-main/GeographWeb-Medium.44477467.woff2') format('woff2');
}

@font-face {
	font-family: 'font2';
	src: url('Animated-Portfolio-main/AnkhSanctuary-PVK0B.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'font6';
	src: url('Animated-Portfolio-main/underwave.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'font8';
	src: url('Animated-Portfolio-main/Montserrat-Regular.2cf917c2.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'font9';
	src: url('Animated-Portfolio-main/Montserrat-SemiBold.a62d229e.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'font4';
	src: url('Animated-Portfolio-main/Solaris.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'font5';
	src: url('Animated-Portfolio-main/Glaser\ Stencil\ W01.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'font3';
	src: url('./Animated-Portfolio-main/Infusive.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'font0';
	src: url('./Animated-Portfolio-main/AquireBold-8Ma60.f61ae48e.otf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

@media (max-width: 768px) {
	html {
		font-size: 90%;
	}
}

body {
	font-family: font3, sans-serif;
	font-optical-sizing: auto;
	overflow-x: hidden;
	background-color: #02012d;
	/* background-image: url('./Animated-Portfolio-main/members/preview-620836-7A3zSwW4po-high_0012.jpg'); */
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	color: #e2eff7;
}

.page1 {
	min-height: 100vh;
	text-align: center;
	background: rgba(3, 1, 64, 0.7);
	backdrop-filter: blur(5px);
}

.page1 h1 {
	padding-top: 6rem;
	font-size: 3rem;
	font-family: font0;
	background: linear-gradient(#fff, #b6b4f1);
	-webkit-text-fill-color: transparent;
	-webkit-background-clip: text;
	text-transform: uppercase;
	text-align: center;
	margin: 0.5rem 0;
}

.members {
	position: fixed;
	left: 50%;
	top: 75%;
	transform: translate(-50%, -50%);
	max-width: 80vw;
	width: 100%;
	margin: 0;
	z-index: 100;
	pointer-events: none;
	/* This allows scrolling through the nav */
}

.batch-nav {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin: 0;
	padding: 1.5rem;
	background: rgba(2, 1, 45, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	pointer-events: auto;
	/* Re-enable pointer events for the navigation */
	max-width: fit-content;
	margin: 0 auto;
}

.batch-nav li {
	margin: 0;
}

.batch-nav a {
	font-size: 1.5rem;
	color: #7489c6;
	text-decoration: none;
	font-family: font3;
	padding: 0.8rem 2rem;
	border-radius: 15px;
	transition: all 0.3s ease;
	position: relative;
	white-space: nowrap;
	background: rgba(4, 23, 103, 0.41);
}

.batch-nav a:hover {
	color: #e2eff7;
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

.batch-nav a.active {
	color: #e2eff7;
	background: rgba(255, 255, 255, 0.15);
}

.batch-nav a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: #7489c6;
	transition: width 0.3s ease;
}

.batch-nav a:hover::after,
.batch-nav a.active::after {
	width: 80%;
}

.members ul {
	list-style: none;
	font-size: 2rem;
	color: #7489c6;
	font-family: font3;
	text-align: left;
}

.members li {
	margin-top: 1rem;
}

.yantrika {
	max-width: 80vw;
	padding-top: 2rem;
	margin: auto;
	text-align: center;
	color: #e2eff7;
	/* border: 2px solid red; */
}

.member-card {
	background: #02012d;
	border-radius: 15px;
	padding: 20px;
	transition: transform 0.1s ease-out;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	transform-style: preserve-3d;
	perspective: 1000px;
	will-change: transform;
	/* min-width: 310px; */
	min-width: 250px;
	min-height: 250px;
	margin: 0 auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.member-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	border-color: #ffffffec;
	background-color: #ffffff10;
}

.member-image {
	width: 150px;
	height: 150px;
	margin: 0 auto 15px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.member-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.3s ease;
}

.member-card:hover .member-image {
	border-color: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.member-info {
	text-align: center;
	color: #e2eff7;
}

.member-info h3 {
	letter-spacing: 0.2rem;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: #ffffff;
}

.member-info h4 {
	font-size: 0.7rem;
	font-weight: 500;
	color: #7489c6;
	margin-bottom: 5px;
}

.member-info p {
	font-size: 0.6rem;
	color: #a0a0a0;
	margin-bottom: 15px;
}

.linkedin-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0077b5;
	text-decoration: none;
	font-family: 'Outfit', sans-serif;
	font-size: 0.9rem;
	padding: 8px 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.linkedin-link:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.linkedin-link svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.role-section {
	width: 100%;
	margin-bottom: 3rem;
	max-width: 80vw;
	margin: auto;
	padding: 1rem;
	background: rgba(3, 1, 64, 0.7);
	backdrop-filter: blur(5px);
	border-radius: 15px;
	margin-top: 2rem;
}

.role-title {
	color: #7489c6;
	text-align: center;
	/* font-size: 1.8rem; */
	margin: 1.5rem;
	position: relative;
	letter-spacing: 0.1rem;
	padding: 0 1rem;
	word-wrap: break-word;
}

.role-title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 2px;
	background: #7489c6;
	border-radius: 2px;
}

.members-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	/* max-width: 1200px; */
	margin: 0 auto;
	padding: 1rem;
}

/* Center single member card */
.members-grid:has(> :only-child) {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 600px;
}

.members-grid:has(> :only-child) .member-card {
	max-width: 300px;
	width: 100%;
}

/* Center two member cards */
.members-grid:has(> :nth-child(2):last-child) {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	max-width: 800px;
}

.members-grid:has(> :nth-child(2):last-child) .member-card {
	max-width: 300px;
	width: 100%;
}

.office-bearers,
.next-gen,
.alumni {
	padding: 2rem 0;
	max-width: 100vw;
	margin-inline: auto;
}

.office-bearers h2,
.next-gen h2,
.alumni h2 {
	text-align: center;
	color: #e2eff7;
	font-size: 2rem;
	margin-bottom: 2rem;
	position: relative;
}

.office-bearers h2::after,
.next-gen h2::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: #7489c6;
	border-radius: 2px;
}

@media (max-width: 992px) {
	.members-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 1.5rem;
	}

	.role-title {
		font-size: 1rem;
	}

	.member-image {
		width: 120px;
		height: 120px;
	}

	.batch-nav a {
		font-size: 1.3rem;
		padding: 0.6rem 1.5rem;
	}
}

@media (max-width: 768px) {
	.members-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 1rem;
	}

	.members-grid:has(> :nth-child(2):last-child) {
		display: block;
	}

	.role-title {
		font-size: 1rem;
	}

	.member-card {
		margin-top: 1rem;
		width: 250px;
	}

	.member-image {
		width: 100px;
		height: 100px;
	}

	.member-info h3 {
		font-size: 0.7rem;
	}

	.member-info h4 {
		font-size: 0.8rem;
	}

	.role-title {
		margin-top: 1rem;
		font-size: 1rem;
	}

	.page1 h1 {
		padding-top: 10rem;
		font-size: 3rem;
	}

	.batch-nav {
		flex-direction: column;
		align-items: center;
		padding: 1rem;
		gap: 0.8rem;
	}

	.batch-nav a {
		font-size: 1.2rem;
		padding: 0.5rem 1.5rem;
		width: 100%;
		text-align: center;
	}
	.club {
		flex-direction: column;
	}
}

@media (max-width: 576px) {
	.members-grid {
		grid-template-columns: 1fr;
		max-width: 300px;
	}

	.member-card {
		max-width: 200px;
		min-width: 100%;
		margin: 1rem auto;
	}

	.member-image {
		width: 120px;
		height: 120px;
	}

	.member-info h3 {
		font-size: 1rem;
	}

	.member-info h4 {
		font-size: 0.85rem;
	}

	.member-info p {
		font-size: 0.7rem;
		margin-bottom: 10px;
	}

	/* Center single member card */
	.members-grid:has(> :only-child) {
		/* display: flex; */
		justify-content: center;
		align-items: center;
	}

	.members-grid:has(> :only-child) .member-card {
		max-width: 300px;
		width: 100%;
	}

	/* Center two member cards */
	.members-grid:has(> :nth-child(2):last-child) {
		/* display: flex; */
		justify-content: center;
		align-items: center;
		gap: 2rem;
	}

	.members-grid:has(> :nth-child(2):last-child) .member-card {
		max-width: 300px;
		width: 100%;
	}

	.members {
		max-width: 95vw;
	}

	.batch-nav {
		padding: 0.8rem;
		max-width: 80vw;
	}

	.batch-nav a {
		font-size: 1.1rem;
		padding: 0.4rem 1.2rem;
	}

	.role-title {
		font-size: 1.3rem;
	}
}

/* filter */
/* .position-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  padding: 10px;
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
}


.role-section {
  padding: 20px 0;
  scroll-margin-top: 100px;
}

.role-section.active {
  display: block;
}

.batch-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.batch-nav a {
  padding: 8px 16px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.batch-nav a:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.batch-nav a.active {
  background-color: #007bff;
}

html {
  scroll-behavior: smooth;
} */

.position-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin: 20px 0;
	padding: 10px;
	position: sticky;
	top: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 100;
}

.position-btn {
	font-size: 0.5rem;
	color: #fbfbfb;
	text-decoration: none;
	font-family: font3;
	padding: 0.2rem 0.3rem;
	border-radius: 15px;
	transition: all 0.3s ease;
	position: relative;
	white-space: nowrap;
	background: rgba(4, 23, 103, 0.41);
}

.position-btn:hover {
	background-color: #555;
	transform: translateY(-2px);
}

.position-btn.active {
	background-color: #007bff;
}

/* .box {
	grid-template-columns: repeat(auto-fit, minmax(40vw, 1fr));
	display: inline-grid;
	display: grid;
	flex-wrap: wrap;
	grid-template-rows: revert;
	justify-content: center;
	align-items: center;
}
.box2 {
	display: flex;
	flex-wrap: wrap;
}
#box1 {
} */

.dropdown-toggle {
	display: none;
}

#dropdown {
	/* display: none; */
}

#dropdown.active {
	display: block;
}

.batch-link {
	/* display: none; */
}

.dropdown-toggle.active + #dropdown .batch-link {
	display: block;
}

.club {
	gap: 1rem;
	display: flex;
	flex: 1;
	max-width: 80vw;
	margin: 0 auto;
}
