@use "../utilities" as *;

/* START: Case Study CSS */
.h6-project {
	background-color: var(--tj-color-theme-dark);
	border-radius: 12px;
	position: relative;
	overflow: hidden;
	z-index: 1;
	.heading-wrap-content {
		align-items: flex-end;
	}
	.sec-heading.style-2 {
		.sub-title {
			background-color: var(--tj-color-grey-3);
		}
		.sec-title {
			color: var(--tj-color-common-white);
		}
	}
	&-inner {
		display: flex;
		gap: 30px;
		padding: 0 18px;
		@media #{$lg,$sm, $xs} {
			gap: 20px;
			padding: 0 8px;
		}
		@media #{$md} {
			gap: 15px;
			padding: 0 3px;
		}
		@media #{$sm, $xs} {
			flex-direction: column;
		}
	}
	&-item {
		width: 184px;
		height: 580px;
		transition: all 0.5s ease-in-out;
		border-radius: 10px;
		@media (min-width: 1921px) {
			width: 13%;
			height: 600px;
		}
		@media #{$xl, $lg,$md} {
			height: 400px;
		}
		@media #{$sm, $xs} {
			width: 100%;
			height: 300px;
		}

		&-inner {
			background-size: cover;
			background-repeat: no-repeat;
			background-position: center;
			position: relative;
			height: 100%;
			min-height: 100%;
			transform: translateY(0);
			z-index: 0;
			overflow: hidden;
			&::after {
				content: " ";
				width: 100%;
				height: 100%;
				background: rgba(12, 30, 33, 0.5);
				position: absolute;
				inset-inline-start: 0;
				bottom: 0;
				opacity: 0;
				transition: all 0.4s;
				z-index: 1;
				@media #{$sm, $xs} {
					opacity: 1;
				}
			}
		}
		.project-content {
			position: absolute;
			inset-inline-start: 0;
			bottom: 0;
			width: 100%;
			padding: 30px;
			z-index: 3;
			transform: translateY(100%);
			transition: 0.4s 0.3s;

			@media #{$xl} {
				padding: 20px 20px;
			}
			@media #{$lg} {
				padding: 20px 15px;
			}
			@media #{$md} {
				padding: 20px 10px;
			}
			@media #{$sm,$xs} {
				transform: translateY(0);
			}
			@media #{$xs} {
				padding: 15px 15px;
			}
			.categories {
				a {
					background-color: rgba(255, 255, 255, 0.1);
					color: var(--tj-color-common-white);
					border: 1px solid rgba(255, 255, 255, 0.1);
					backdrop-filter: blur(10px);
					&:hover {
						background-color: var(--tj-color-theme-primary);
					}
				}
			}
			.project-text {
				display: flex;
				flex-wrap: wrap;
				align-items: center;
				justify-content: space-between;
				margin-top: 18px;
				gap: 15px;
				.title {
					color: var(--tj-color-common-white);
					max-width: 351px;
					min-width: 351px;
					width: 100%;
					margin-bottom: 0;
					a {
						color: var(--tj-color-common-white);
						&:hover {
							opacity: 0.8;
						}
					}
					@media #{$md} {
						min-width: 284px;
					}
					@media #{$sm} {
						font-size: 20px;
						max-width: 200px;
						min-width: auto;
					}
					@media #{$xs} {
						font-size: 20px;
						width: calc(100% - 70px);
						min-width: auto;
					}
				}
				@media #{$xs} {
					margin-top: 12px;
				}
			}
			.project-btn {
				width: 64px;
				height: 64px;
				border-radius: 50%;
				background-color: rgba(255, 255, 255, 0.1);
				border: 2px solid rgba(255, 255, 255, 0.1);
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 22px;
				backdrop-filter: blur(15px);
				opacity: 1;
				i {
					color: var(--tj-color-common-white);
					font-weight: var(--tj-fw-normal);
					transform: rotate(-45deg);
					transition: all 0.3s ease-in-out;
				}
				&:hover {
					background-color: var(--tj-color-theme-primary);
					border-color: var(--tj-color-theme-primary);
					i {
						color: var(--tj-color-common-white);
						transform: rotate(0);
					}
				}

				@media #{$sm} {
					width: 50px;
					height: 50px;
					font-size: 18px;
				}
				@media #{$xs} {
					width: 55px;
					height: 55px;
					font-size: 18px;
				}
			}
		}

		&:hover {
			.project-content {
				transform: translateY(100%);
			}
		}

		&.active {
			width: 759px;
			place-content: unset;
			@media (min-width: 1921px) {
				width: 48%;
			}
			@media #{$sm, $xs} {
				width: 100%;
				height: 300px;
			}
			.h6-project-item-inner {
				&::after {
					opacity: 1;
				}

				.project-content {
					transform: translateY(0);
				}
			}
		}
	}
}
/* !END: Case Study CSS */
