/**
 * Team Section Styles
 * Team members cards with glassmorphism effect
 *
 * @package Eryvium
 * @since Eryvium 1.0.0
 */

/* ============================================
   TEAM SECTION
   ============================================ */

.team-section {
	position: relative;
	padding: clamp(80px, 12vw, 160px) 0;
	background: linear-gradient(180deg, #FFFFFF 0%, #CCE3FB 100%);
	overflow: hidden;
}

.team-section__container {
	width: 100%;
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.team-section .section-header {
	margin-bottom: 60px;
}

/* ============================================
   CO-FOUNDERS
   ============================================ */

.team-co-founders {
	margin-bottom: 80px;
}

.team-subsection-title {
	font-family: var(--font-heading);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-text-primary);
	margin: 0 0 32px 0;
}

.team-co-founders-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
}

.team-co-founder-item {
	background: rgba(255, 255, 255, 0.8);
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.team-co-founder-name {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-text-primary);
	margin: 0 0 8px 0;
}

.team-co-founder-title {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-sky-pulse);
	margin: 0 0 16px 0;
}

.team-co-founder-description {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: #4F6478;
	margin: 0;
}

/* ============================================
   LEADERSHIP TEAM
   ============================================ */

.team-leadership {
	margin-bottom: 80px;
}

.team-leadership-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}

.team-leadership-card {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid rgba(79, 100, 120, 0.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
}

.team-leadership-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-color: rgba(7, 179, 241, 0.3);
}

.team-leadership-card__image {
	width: 100%;
	height: 465px;
	overflow: hidden;
	position: relative;
	background: #f5f5f5;
}

.team-leadership-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	display: block;
}

.team-leadership-card:hover .team-leadership-card__image img {
	transform: scale(1.05);
}

.team-leadership-card__content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.team-leadership-card__name {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-text-primary);
	margin: 0 0 8px 0;
}

.team-leadership-card__title {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #4F6478;
	margin: 0;
}

/* ============================================
   CORE EXECUTION TEAM
   ============================================ */

.team-core-execution {
	margin-bottom: 40px;
}

.team-core-execution-wrapper {
	background: #ffffff;
	padding: 60px 40px;
	border-radius: 16px;
}

.team-core-execution-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px 40px;
}

.team-core-execution-department {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

.team-core-execution-department-title {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-text-primary);
	margin: 0 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(7, 179, 241, 0.3);
}

.team-core-execution-members {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.team-core-execution-member {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: #4F6478;
	margin: 0;
	padding: 0;
	position: relative;
	padding-left: 24px;
	transition: color 0.2s ease;
}

.team-core-execution-member:hover {
	color: var(--color-text-primary);
}

.team-core-execution-member::before {
	content: '•';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--color-sky-pulse);
	font-weight: 600;
}

.team-core-execution-member-name {
	font-weight: 600;
	color: var(--color-sky-pulse);
}

.team-core-execution-member-title {
	color: #4F6478;
	font-weight: 400;
}

/* ============================================
   OLD TEAM CARDS (kept for backward compatibility)
   ============================================ */

.team-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}

.team-card {
	position: relative;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	will-change: transform;
	transform: translateZ(0);
}

.team-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.team-card__image {
	width: 100%;
	height: 400px;
	overflow: hidden;
	position: relative;
}

.team-card__image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
	pointer-events: none;
}

.team-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	will-change: transform;
	transform: translateZ(0);
}

.team-card:hover .team-card__image img {
	transform: scale(1.1);
}

.team-card__content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.team-card__name {
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-text-primary);
	margin: 0 0 8px 0;
}

.team-card__title {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-sky-pulse);
	margin: 0 0 16px 0;
}

.team-card__description {
	font-family: var(--font-family-body);
	font-size: 16px;
	line-height: 1.6;
	color: #4F6478;
	margin: 0 0 24px 0;
	flex: 1;
}

.team-card__social {
	display: flex;
	gap: 16px;
	align-items: center;
}

.team-card__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.5);
	transition: transform 0.3s ease, background 0.3s ease;
	will-change: transform;
	transform: translateZ(0);
}

.team-card__social-link:hover {
	transform: scale(1.1);
	background: rgba(255, 255, 255, 1);
}

.team-card__social-link img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	filter: brightness(0);
	transition: filter 0.3s ease;
}

.team-card__social-link:hover img {
	filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(1352%) hue-rotate(162deg) brightness(95%) contrast(89%);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
	.team-co-founders-list {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	
	.team-leadership-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
	
	.team-core-execution-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
	}
	
	.team-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.team-card__image {
		height: 350px;
	}
}

@media (max-width: 768px) {
	.team-section__container {
		width: 100%;
		max-width: var(--container-max-width);
		margin: 0 auto;
		/* padding: 0 var(--container-padding); */
	}
	
	.team-section {
		padding: clamp(60px, 10vw, 120px) 0;
	}
	
	.team-section .section-header {
		margin-bottom: 40px;
	}
	
	.team-co-founders,
	.team-leadership,
	.team-core-execution {
		margin-bottom: 60px;
	}
	
	.team-subsection-title {
		font-size: 24px;
		margin-bottom: 24px;
	}
	
	.team-co-founders-list {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.team-co-founder-item {
		padding: 24px;
	}
	
	.team-leadership-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	
	.team-leadership-card__image {
		height: 345px;
	}
	
	.team-core-execution-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.team-core-execution-department {
		padding: 24px;
	}
	
	.team-cards {
		grid-template-columns: 1fr;
		gap: 32px;
		max-width: 500px;
	}
	
	.team-card__image {
		height: 400px;
	}
	
	.team-card__content {
		padding: 24px;
	}
	
	.team-card__name {
		font-size: 24px;
	}
	
	.team-card__title {
		font-size: 16px;
	}
	
	.team-card__description {
		font-size: 15px;
	}
}

@media (max-width: 456px) {
	.team-core-execution-wrapper {
		background: #ffffff;
		padding: 14px 14px;
		border-radius: 16px;
	}
	
	.team-leadership-cards {
		grid-template-columns: repeat(1, 1fr);
		gap: 24px;
	}
	
	.team-leadership-card__image {
		height: 460px;
	}
}

