* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Arial", sans-serif;
	overflow-x: hidden;
	font-size:16px;
}


button{border:0 none;}


/***************************************************/

.slideshow-container {
	position: relative;
	height: 100vh;
	overflow: hidden;
	background: #000;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.slide::before {
	content: "";
	position: absolute;
	top: -10%;
	left: -10%;
	right: -10%;
	bottom: -10%;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: slowGrow 20s ease-out infinite;
	z-index: 0;
}

.slide::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

@keyframes slowGrow {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.5);
	}
}

.slide.active {
	opacity: 1;
}

.slide:nth-child(1) {
	/*background-image: url("https://cdn.monthly.knnews.co.kr/news/photo/202502/3090_11942_2111.jpg");*/
	background:#582C83;
}

.slide:nth-child(2) {/*	background-image: url("../../test/img/bg1.jpg");*/background: #0080ff;}

.slide:nth-child(3) {
	/*background-image: url("https://img.seoul.co.kr/img/upload/2024/05/29/SSC_20240529031117_O2.png");*/
	background-image: linear-gradient(to right, #444 0%, #151515 100%);
}

.slide:nth-child(4) {
/*	background-image: url("https://thankscarbon.com/wp-content/uploads/2024/04/BA33844D-0964-4D1A-842E-88894F81E15B-56599-00000743FA89123C-2048x1539.jpg");*/
background:linear-gradient(135deg, rgb(171, 220, 255) 10%, rgb(3, 150, 255) 100%);
}

.slide:nth-child(5) {
	/*background-image: url("https://picsum.photos/1920/1080?random=5");
	background:#6A6DCD;*/
	background:linear-gradient(112.9deg, rgb(112, 255, 151) 6.2%, rgb(70, 195, 255) 99.7%);
}

/* Motion blur background elements */
.blur-element {
	position: absolute;
	border-radius: 50%;
	filter: blur(20px);
	opacity: 0.3;
	animation: float 6s ease-in-out infinite;
	z-index: 2;
}

.blur-element:nth-child(1) {
	width: 300px;
	height: 300px;
	background: rgba(255, 255, 255, 0.2);
	top: 20%;
	left: -10%;
	animation-delay: 0s;
}

.blur-element:nth-child(2) {
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.15);
	top: 60%;
	right: -5%;
	animation-delay: 2s;
}

.blur-element:nth-child(3) {
	width: 150px;
	height: 150px;
	background: rgba(255, 255, 255, 0.1);
	bottom: 20%;
	left: 20%;
	animation-delay: 4s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}
	50% {
		transform: translateY(-20px) rotate(180deg);
	}
}

/* Central content that stays fixed */
.central-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	text-align: center;
	color: white;
	transition: all 0.5s ease;
}

.portfolio-item {
	/* background: rgba(255, 255, 255, 0.1); */
	/* backdrop-filter: blur(20px); */
	/* border-radius: 20px; */
	padding: 60px 45px;
	/* border: 1px solid rgba(255, 255, 255, 0.2); */
	min-width: 320px;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.portfolio-item:hover {
	transform: scale(1);
}

/* Text animations */
.portfolio-number {
	letter-spacing: 2px;
	opacity: 0;
	margin-bottom: 20px;
	animation: slideInFromTop 0.8s ease-out 0.2s forwards;
}

.portfolio-title {
	font-size: 8vw;
	font-weight: bold;
	margin-bottom: 20px;
	/*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);*/
	opacity: 0;
	animation: bounceIn 1s ease-out 0.4s forwards;
	line-height: 1.2;
}

.portfolio-description {
	font-size: 1.13em;
	line-height: 1.6;
	opacity: 0;
	margin-bottom: 30px;
	animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.portfolio-button {
	/*display: inline-block;*/
	padding: 12px 30px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 30px;
	color: white;
	text-decoration: none;
	font-weight: 500;
	font-size: 1.7vw;
	opacity: 0;
	transform: translateY(20px);
	animation: floatIn 0.8s ease-out 0.8s forwards;
	transition: all 0.3s ease;
	display:flex;
	justify-content: space-evenly;
	align-items: center;
	max-width:360px;
	margin: 0 auto;
}

.portfolio-button:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

/* Animation keyframes */
@keyframes slideInFromTop {
	0% {
		opacity: 0;
		transform: translateY(-30px);
	}
	100% {
		opacity: 0.7;
		transform: translateY(0);
	}
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3) translateY(-50px);
	}
	50% {
		opacity: 1;
		transform: scale(1.1) translateY(0);
	}
	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 0.9;
		transform: translateY(0);
	}
}

@keyframes floatIn {
	0% {
		opacity: 0;
		transform: translateY(20px) scale(0.9);
	}
	50% {
		opacity: 1;
		transform: translateY(-5px) scale(1.05);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Animation states for transitions */
.text-exit {
	animation: fadeOutDown 0.4s ease-in forwards;
}

.text-enter {
	animation-delay: 0.4s;
}

@keyframes fadeOutDown {
	0% {
		opacity: 1;
		transform: translateY(0);
	}
	100% {
		opacity: 0;
		transform: translateY(30px);
	}
}

/* Navigation dots */
.nav-dots {
	position: fixed;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	margin: 15px 0;
	cursor: pointer;
	transition: all 0.3s ease;
	display:block;
}

/*.dot.active {
	background: white;
	transform: scale(1.5);
}*/

.dot.active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.3); /* ?  ? */
  border: 1px solid rgba(255, 255, 255, 0.2); /* ?  */
}

/* Scroll indicator */
.scroll-indicator {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	opacity: 0.7;
	font-size: 14px;
	z-index: 20;
	animation: pulse 2s infinite;
}


@keyframes pulse {
	0%,
	100% {
		opacity: 0.7;
	}
	50% {
		opacity: 0.3;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.portfolio-item {
		min-width: 300px;
		padding: 40px 30px;
	}

	.portfolio-title {
		font-size:51px;
	}

	.nav-dots {
		right: 20px;
	}

	.portfolio-button {font-size:16px}
}



/*****/
.autoplay-controls {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 100;
	display: flex;
	gap: 10px;
}

.autoplay-controls button {
	padding: 8px 14px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

.autoplay-controls button:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

/****/
  .portfolio-number,
  .portfolio-title,
  .portfolio-description,
  .portfolio-button {
    visibility: hidden;
  }


/*//////////////////////////////////////*/

#arrowAnim {
  width: 10px; /*     */
  height: .125vh; /*     */
  display: flex;
  justify-content: center;
  align-items: center;
}

#arrowAnim .arrow {
  width: 0.75vw;  /*    */
  height: 0.75vw; /*    */
  border: 0.225vw solid;  /*    */
  border-color: #e3e3e4 transparent transparent #fff;
  transform: rotate(135deg);
}

#arrowAnim .arrowSliding {
  position: absolute;
  -webkit-animation: slide 4s linear infinite; 
  animation: slide 4s linear infinite;
}

#arrowAnim .delay1 {
  -webkit-animation-delay: 1s; 
  animation-delay: 1s;
}
#arrowAnim .delay2 {
  -webkit-animation-delay: 2s; 
  animation-delay: 2s;
}
#arrowAnim .delay3 {
  -webkit-animation-delay: 3s; 
  animation-delay: 3s;
}

@-webkit-keyframes slide {
  0% { opacity:0; transform: translateX(-1vw); }
  20% { opacity:1; transform: translateX(-1vw); }  
  80% { opacity:1; transform: translateX(1vw); }  
  100% { opacity:0; transform: translateX(1vw); }
}

@keyframes slide {
  0% { opacity:0; transform: translateX(-1vw); }
  20% { opacity:1; transform: translateX(-1vw); }  
  80% { opacity:1; transform: translateX(1vw); }  
  100% { opacity:0; transform: translateX(1vw); }
}
