@charset "utf-8";

/* ================================================================
   assets/css/3d.css  –  3D Cube effect  (modernised 2026-02)
   ================================================================ */

.font_2 {
	font-family: var(--font-sans);
}

/* 3D stage */
.global_stage {
	width: min(400px, 90vw);
	perspective: 400px;
	margin-top: 5rem;
	margin-left: -4rem;
	font-family: var(--font-serif);
	font-weight: lighter;
}

.two {
	margin-left: -8rem;
}

.stage {
	perspective: 400px;
	margin-bottom: 4rem;
}

.cube {
	height: 200px;
	width: 200px;
	position: relative;
	margin: 0 auto;
	transform-style: preserve-3d;
	transition: transform 1s;
}

.stage:hover .cube {
	transform: rotateX(-270deg);
}

.cube div {
	height: 200px;
	width: 200px;
	position: absolute;
	color: var(--color-primary);
	text-shadow:
		-1px -1px var(--color-white),
		1px -1px var(--color-white),
		-1px 1px var(--color-white),
		1px 1px var(--color-white);
	text-align: center;
	line-height: 200px;
	box-shadow: var(--shadow-card);
}

/* Cube faces */
.side_top {
	background: rgba(0, 0, 0, 0.7);
	top: -100px;
	left: 0;
	transform: rotateX(90deg);
}

.side_bottom {
	background: var(--color-bg);
	bottom: -100px;
	left: 0;
	transform: rotateX(-90deg);
}

.side_front {
	top: 0;
	left: 0;
	transform: translateZ(100px);
}

.side_back {
	background-image: url("../img/bk.jpg");
	background-size: cover;
	top: 0;
	left: 0;
	transform: translateZ(-100px);
}

.side_right {
	background: rgba(0, 160, 233, 0.7);
	top: 0;
	right: -100px;
	transform: rotateY(90deg);
}

.side_left {
	background: rgba(0, 160, 233, 0.7);
	top: 0;
	left: -100px;
	transform: rotateY(-90deg);
}

/* Cube face images */
.first {
	background: url("../img/01.jpg") center / cover;
}

.second {
	background: url("../img/02.jpg") center / cover;
}

.third {
	background: url("../img/03.jpg") center / cover;
}

.forth {
	background: url("../img/04.jpg") center / cover;
}

.fifth {
	background: url("../img/05.jpg") center / cover;
}

.sixth {
	background: url("../img/06.jpg") center / cover;
}

.seventh {
	background: url("../img/07.jpg") center / cover;
}

.eighth {
	background: url("../img/08.jpg") center / cover;
}

.ten {
	background: url("../img/10.jpg") center / cover;
}

.eleventh {
	background: url("../img/11.jpg") center / cover;
}

.twelfth {
	background: url("../img/12.jpg") center / cover;
}

/* Hide 3D cubes on small screens (they overflow) */
@media screen and (max-width: 639px) {
	.global_stage {
		display: none;
	}
}