@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Lexend', sans-serif;
}
section,
.content {
	width: 100%;
	height: 100svh;
	overflow: hidden;
}
.images {
	position: absolute;
	width: 100%;
	height: 100%;
	img {
		position: absolute;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
		z-index: var(--index);
		will-change: mask-image;
	}
}
.content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 10;
	color: #fff;
	font-size: 20px;
}
.content .top,
.content .bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	position: relative;
}
.content .top-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}
.content .top-right,
.content .bottom .top-right {
	text-align: right;
}
.content .center {
	width: 100%;
	max-width: clamp(300px, 95vw, 1200px);
	margin: auto;
	display: flex;
	flex-direction: column;
	gap: 100px;
	align-items: center;
	text-align: center;
	padding: 0 20px;
}
.content .center .top-title {
	font-size: clamp(15px, 4vw, 50px);
	background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.content .center .title-center {
	text-align: center;
	font-size: clamp(30px, 8vw, 100px);
	line-height: 1.2;
	background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.content .center .title-bottom {
	text-align: right;
	font-size: clamp(15px, 4vw, 50px);
	background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.social-link {
	color: white;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: opacity 0.3s ease;
}
.last-section {
	width: 100%;
	height: 100svh;
	background: black;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: visible;
	--index: calc(1vw + 1vh);
	--gap-base: 0.2rem;
	--shift: 0px;
}

.wrapper {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.items {
	display: flex;
	gap: var(--gap, var(--gap-base));
	perspective: calc(var(--index) * 35);
	perspective-origin: 50% 50%;
	transform: translateX(var(--shift));
	transform-style: preserve-3d;
	will-change: transform;
	overflow: visible;
	transition: transform 0.6s cubic-bezier(0.1, 0.7, 0, 1);
	padding-inline: 48px;
	margin-inline: -48px;
}

.items.hovering {
	--gap: calc(var(--gap-base) / 2);
}

.item {
	position: relative;
	width: calc(var(--index) * 3);
	height: calc(var(--index) * 18);
	background: #222 center/cover no-repeat;
	cursor: pointer;
	transition: transform 1.25s cubic-bezier(0.1, 0.7, 0, 1), width 0.5s cubic-bezier(0.1, 0.7, 0, 1);
	transform-style: preserve-3d;
	backface-visibility: hidden;
	will-change: transform, width;
	outline: none;
	border-radius: 12px;
	flex: 0 0 auto;
	user-select: none;
}

/* Hover layout */
.item.is-hover-main {
	transform: translateZ(calc(var(--index) * 10));
	z-index: 10;
}

.item.is-right-1 {
	transform: translateZ(calc(var(--index) * 8.5)) rotateY(35deg);
	z-index: 9;
}

.item.is-right-2 {
	transform: translateZ(calc(var(--index) * 5.6)) rotateY(40deg);
	z-index: 8;
}

.item.is-right-3 {
	transform: translateZ(calc(var(--index) * 2.5)) rotateY(30deg);
	z-index: 7;
}

.item.is-right-4 {
	transform: translateZ(calc(var(--index) * 0.6)) rotateY(15deg);
	z-index: 6;
}

.item.is-left-1 {
	transform: translateZ(calc(var(--index) * 8.5)) rotateY(-35deg);
	z-index: 9;
}

.item.is-left-2 {
	transform: translateZ(calc(var(--index) * 5.6)) rotateY(-40deg);
	z-index: 8;
}

.item.is-left-3 {
	transform: translateZ(calc(var(--index) * 2.5)) rotateY(-30deg);
	z-index: 7;
}

.item.is-left-4 {
	transform: translateZ(calc(var(--index) * 0.6)) rotateY(-15deg);
	z-index: 6;
}

/* Open state */
.items.is-open .item {
	transition: transform 0.8s cubic-bezier(0.1, 0.7, 0, 1), width 0.6s cubic-bezier(0.1, 0.7, 0, 1);
}

.item.is-open {
	width: 20vw;
	z-index: 100;
	transform: translateZ(calc(var(--index) * 10));
}

html, body, .last-section, .wrapper, .items {
	overflow: visible !important;
}
.last-section-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 60px;
}
.gallery-container {
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 30px;
}
.gallery-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	width: 100%;
}
.gallery-wrapper {
	width: 100%;
	height: 500px;
	overflow: hidden;
	border-radius: 10px;
}
.gallery-track {
	display: flex;
	flex-direction: column;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item {
	min-height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
}
.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img {
	transform: scale(1.05);
	filter: brightness(1.1);
}
.gallery-arrow {
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid white;
	color: white;
	font-size: 24px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.gallery-arrow:hover {
	background: rgba(255, 255, 255, 0.4);
	transform: scale(1.1);
}
.gallery-dots {
	display: flex;
	gap: 12px;
}
.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: all 0.3s ease;
}
.dot.active {
	background: #fff;
	transform: scale(1.3);
}