/* Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scroll-behavior: smooth;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
}

:root {
	--ease: linear(
		0 0%,
		0.5007 7.21%,
		0.7803 12.29%,
		0.8883 14.93%,
		0.9724 17.63%,
		1.0343 20.44%,
		1.0754 23.44%,
		1.0898 25.22%,
		1.0984 27.11%,
		1.1014 29.15%,
		1.0989 31.4%,
		1.0854 35.23%,
		1.0196 48.86%,
		1.0043 54.06%,
		0.9956 59.6%,
		0.9925 68.11%,
		1 100%
	);
	--hover-cursor: url(/assets/img/00global/custom_cursor_2.png) 19 19, auto;
	
	cursor: url(/assets/img/00global/custom_cursor_1.png) 19 19, auto;
}

/*///////////////////////////////////////////////////////////////////////////////////////////////// Styling for text */

a {
	text-decoration: none;
	cursor: default;
}

body {
	background-color: #1C1C1C;
	margin: 0;
	padding: 0;
	color: white;
	font-family: 'Sen', sans-serif;
}

h1 {
	font-size: 100px;
	font-weight: 400;
	font-family: 'Sen', sans-serif;
	margin: 0%;
}

h2 {
	font-size: 35px;
	font-weight: 400;
	font-family: 'Sen', sans-serif;
}

.large-body-text {
	font-size: 24px;
	font-weight: 400;
	font-family: 'Sen', sans-serif;
	margin: 10px 0;
}

body, p {
	font-size: 16px;
	font-weight: 400;
	font-family: 'Sen', sans-serif;
}

a {
	text-decoration: none;
	cursor: var(--hover-cursor);
}

body {
	background-color: #1C1C1C;
	color: #d9d9d9;
	font-family: 'Sen', sans-serif;
	margin: 0;
	padding: 0;
}

/* a utility class to make an element unselectable */
.prevent-select {
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
}

@keyframes fade-in {
	0% {
	  opacity: 0;
	}
	100% {
	  opacity: 1;
	}
  }

@keyframes fade-in-left {
	0% {
	  opacity: 0;
	  transform: translateX(-100px);
	}
	100% {
	  opacity: 1;
	  transform: translateX(0);
	}
}

@keyframes fade-in-right {
	0% {
	  opacity: 0;
	  transform: translateX(100px);
	}
	100% {
	  opacity: 1;
	  transform: translateX(0);
	}
}

@keyframes fade-in-top {
	0% {
	  opacity: 0;
	  transform: translateY(-100px);
	}
	100% {
	  opacity: 1;
	  transform: translateY(0);
	}
}

@keyframes fade-in-bottom {
	0% {
		opacity: 0;
		transform: translateY(200px);
	}
	100% {
		opacity: 1;
		transform: translateY(0); /* experimenting with tag animations */
	}
}

/*///////////////////////////////////////////// Keyframes for text typing */

#typing-text {
	white-space: nowrap;
	overflow: hidden;
	border-right: 3px solid;
	width: 0;
	animation: typing 1.25s steps(1) forwards, blink 0.7s step-end infinite;
}

/* Typing effect */
@keyframes typing {
	0% {
		width: 0;
	}
	8.33% { /* H */
		width: 13.33%;
	}
	16.66% { /* E */
		width: 24.5%;
	}
	24.99% { /* L */
		width: 28%;
	}
	33.32% { /* L */
		width: 32.32%
	}
	41.65% { /* O */
		width: 42.65%;
	}
	49.98% { /* <space> */
		width: 48.85%;
	}
	58.31% { /* T */
		width: 56%;
	}
	66.64% { /* H */
		width: 66.64%;
	}
	74.97% { /* E */
		width: 74.97%;
	}
	83.33% { /* R */
		width: 82.33%;
	}
	91.63% { /* E */
		width: 91.63%;
	}
	100% { /* <exclamation> */
		width: 100%;
	}
}

/* Blinking cursor */
@keyframes blink {
	50% {
		border-color: transparent;
	}
}

/*//////////////////////////////////////////////////////////////////////////////* Navbar */

.navbar {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	width: 100%;
	background-color: #1c1c1c;
	position: fixed;
	top: 0%;
	z-index: 100;
}

.navbar ul {
	list-style-type: none;
	display: flex;
}

.navbar li {
	margin-right: 40px;
}

.navbar a {
	color: #D9D9D9;
	text-decoration: none;
}

.navbar a:hover {
	color: #CDF514;
	cursor: var(--hover-cursor);
}

.nav-logo img{
    height: 30px; /* Adjust height as needed */
    width: auto;
    vertical-align: middle;
}

/*//////////////////////////////////////////////////////////////////////////////* Introduction Section */

.intro {
	text-align: left;
	margin: 100px 0;
}

.intro-container {
	position: relative;
	width: 100%;
	height: 600px;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}

.intro-left {
	width: 570px;
}

.intro-right {
	width: 570px;
}

.tags {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 80px;
}

.tag {
	opacity: 0;
	background-color: #1C1C1C;
	border-style: solid;
	border-width: 2px;
	border-color: #CDF514;
	padding: 8px;
	padding-left: 13px;
	padding-right: 13px;
	border-radius: 50px;
	transition: all 0.5s;
	animation: fade-in-bottom 1.3s var(--ease) forwards;
}

.tag:nth-child(2) {
	animation-delay: 0.15s;
}

.tag:nth-child(3) {
	animation-delay: 0.3s;
}

.tag:nth-child(4) {
	animation-delay: 0.15s;
}

.tag:nth-child(5) {
	animation-delay: 0.3s;
}

.tag:nth-child(6) {
	animation-delay: 0.45s;
}

.tag:nth-child(7) {
	animation-delay: 0.3s;
}

.tag:nth-child(8) {
	animation-delay: 0.45s;
}

.tag:nth-child(9) {
	animation-delay: 0.6s;
}

/* Hover effect */
.tag:hover {
	background-color: #CDF514;
	color: #1C1C1C;
	cursor: var(--hover-cursor);
}

.intro-img {
	position: relative;
	width: 110%;
	animation: fade-in-right 1.5s ease-out forwards;
	opacity: 0;
}

/* Pop-up modal */
.popup {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 1000; /* Ensures it appears on top */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7); /* Dark, semi-transparent background */
	justify-content: center;
	align-items: center;
}

/* Pop-up content */
.popup-content {
	background-color: #fff;
	padding: 30px;
	border-radius: 15px; /* Smooth rounded corners */
	width: 500px; /* Slightly wider pop-up */
	max-width: 90%; /* Ensures it doesn't get too wide on small screens */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
	text-align: center;
	position: relative; /* So the close button can be positioned absolutely */
	animation: slide-down 0.4s ease; /* Slide down effect */
	font-family: 'Arial', sans-serif;
}

/* Close button */
.close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px; /* TODO convert to rem */
	color: #555;
	cursor: pointer;
	transition: color 0.3s;
}

.close:hover {
	color: #000;
	cursor: var(--hover-cursor);
}

/* Pop-up text */
#popup-text {
	font-size: 18px; /* TODO convert to rem */
	color: #333;
	margin-top: 20px;
	line-height: 1.6;
}

/* Animation for pop-up */
@keyframes slide-down {
	from {
		transform: translateY(-100px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/*///////////////////////////////////////////////////////////////////////////// Skills Section */


.skills {
	background-color: #D9D9D9;
	width: 100%;
	color: black;
	padding: 200px 0;

}

.skills-container {
	position: relative;
	width: 100%;
	height: 800px;
	display: flex;
	align-items: center;
	
	justify-content: space-evenly;
}

.skills-left {
	width: 30%;
}

.skills-right {
	width: 30%;
}

.skills-main-img {
	width: 150%;
	padding-bottom: 30px;
	transform: translate(-20%, 5% );

}

.skill {
	padding: 10px;
}

.skill-box {
	position: relative;
	margin-bottom: 90px;
}

.img-box {
	position: absolute;
	right: 50px;
	height: 70px;
	padding: 0px;
	top: 0px;
}

.skill-img {
	position: absolute;
	height: 100%;
	transform: translate(-50%, 0 );
}

.bar {
	height: 14px;
	border-radius: 50px;
	position: relative;
	border-style: solid;
	border-width: 2px;
	border-color: #1C1C1C;
	padding: 2px;
}

.fill {
	background-color: #1C1C1C;
	height: 100%;
	border-radius: 50px;
}

/*///////////////////////////////////////////////////////////////////////////// Projects Section */
.carousel {
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	perspective: 1500px;
}

.carousel .card {
	position: absolute;
	width: 700px;
	height: 400px;
	transition: all 1s var(--ease);
	z-index: -1;
	opacity: 0;
	padding: 20px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: hwb(0 100% 0% / 0.533);
	border-radius: 40px;
	text-align: left;
	font-size: 1.2rem;
	color: #1C1C1C;
	overflow: hidden;
	transform: translate(0, 20%);
}

.carousel .card:nth-child(2) {
	background-image: url(../assets/img/01home/project_cards/cardImg3dProduct.png);
}

.carousel .card:nth-child(3) {
	background-image: url(../assets/img/01home/project_cards/cardImgJack.png);
}

.carousel .card:nth-child(4) {
	background-image: url(../assets/img/01home/project_cards/cardImgPoster.png);
}

.carousel .card:nth-child(5) {
	background-image: url(../assets/img/01home/project_cards/cardImgPiwi.png);
}

.carousel .card:nth-child(6) {
	background-image: url(../assets/img/01home/project_cards/cardImgCoke.png);
}

/* invisible pseudo element covering active card to prevent video PIP on hover */
.carousel .card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 700px;
	height: 400px;
}

.carousel .card video {
	position: absolute;
	opacity: 0;
	top: 0px;
	left: 0px;
	max-width: 100%;
	padding: 0;
}

.carousel .card.active {
	opacity: 1;
	z-index: 3;
	transform: translate(0, 40%) scale(125%);
	box-shadow: 0 0 20px #FFF8;
	background-image: none;
}

/* show video on active card, hide on other cards */
.carousel .card.active video {
	opacity: 1;
}

.carousel .card.previous {
	z-index: 2;
	opacity: 0.55;
	transform: scale(95%) translate(-50%, 35%) rotate3d(0, 1, 0, 20deg);
}

.carousel .card.previous:hover {
	box-shadow: 0 0 30px #CDF514;
}

.carousel .card.next {
	z-index: 2;
	opacity: 0.55;
	transform: scale(95%) translate(50%, 35%) rotate3d(0, 1, 0, -20deg);
}

.carousel .card.next:hover {
	box-shadow: 0 0 30px #CDF514;
}

.projects {
	text-align: center;
	/* margin: 50px auto; */
	height: 900px;
}

.projects h2 {
	padding-top: 80px;
}

.carousel .card .card-text {
	position: relative;
	background-color: rgba(217, 217, 217, 0.8);
	border-style: solid;
	border-width: 2px;
	border-color: #1C1C1C;
	padding: 8px;
	padding-left: 13px;
	padding-right: 13px;
	border-radius: 50px;
	z-index: 1;
}

.carousel .card .project-button {
	position: relative;
	margin-top: 275px;
	padding: 10px 20px;
	background-color: #1C1C1C;
	color: white;
	text-decoration: none;
	border: none;
	border-radius: 25px;
	font-size: 1rem;
	transition: background-color 0.3s;
	display: inline-block;
	z-index: 1;
}

.carousel .card .project-button:hover {
	background-color: #CDF514;
	color: #1C1C1C;
}

.nav-button {
	position: relative;
	line-height: 400px;
	text-align: center;
	font-size: 72pt;
	z-index: 4;
	color: #CDF514;
	transform: translateY(40%);
	pointer-events: none;
}

.carousel .nav-button-next {
	left: 32.5%;
}

.nav-button-previous {
	left: -32.5%;
}

/*///////////////////////////////////////////////////////////////////////////// showreel Section */

.showreel-section{
	position: relative;
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.showreel-container {
	width: 1000px;
	margin-bottom: 150px;
	margin-top: 150px;
}

.showreel-container video {
	width: 100%;
	border-radius: 30px;
}

/*///////////////////////////////////////////////////////////////////////////// Fun Fact Section */

.fun-fact {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 50px auto;
	padding: 20px;
	background: #D9D9D9;
	width: 100%;
	text-align: center;
	height: auto;
}

.fun-fact-container {
	position: relative;
	width: 100%;
	height: 200px;
	display: flex;
	align-items: center;
	color: #1C1C1C;
	justify-content: space-evenly;
	margin-top: 150px;
	margin-bottom: 50px;
}

.fun-fact-left {
	width: 500px;
	text-align: left;
}

.fun-fact-right {
	width: 500px;
	text-align: right;
}
.fun-fact-images {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: nowrap;
	width: 100%;
	max-width: 1200px;
	margin-bottom: 150px ;
}

.fun-fact-image {
	width: 200px;
	height: 350px;
	object-fit: cover;
	margin: 0 10px;
	border-radius: 40px;
	margin-bottom: 100px;
	box-shadow: #1C1C1C44 5px 5px 10px;
}

/*///////////////////////////////////////////////////////////////////////////// Small screen popup */

.small-screen-popup {
	display: none;
}

.info-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 100vh;
	padding: 10%;
	text-align: center;
	background: #1C1C1C;
}

@media only screen and (max-width: 1440px) {
	body {
		overflow: hidden;
	}

	.navbar {
		top: 10%;
		justify-content: center;
	}

	.nav-logo img {
		height: 50px;
	}

	.navbar nav {
		display: none;
	}

	.small-screen-popup {
		display: initial;
	}
}

/*///////////////////////////////////////////////////////////////////////////// Footer */

footer {
	background-color: #1c1c1c;
	padding: 20px;
	position: relative;
}
  
.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}
  
.left-content, .right-content {
	color: #a9a9a9;
}
  
.center-logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
  
.footer-logo {
	width: 100px;
}
  
footer a {
	color: #a9a9a9;
	text-decoration: none;
	transition: color 300ms;
}
  
footer a:hover {
	color: #fff;
}