body {
margin: 0 auto;
background: #EEEEEE;
font-family: 'degular-text', sans-serif;
}

body {
	cursor: url('images/cursur-r2.svg') 16 16, auto;
}

a {
	cursor: url('images/cursur-w.svg') 16 16, pointer;
  }

.playground-link:hover {
	cursor: url('images/cursor-play2-2.svg') 16 16, auto;
  }
  

html, body {
margin: 0;
overflow: hidden;
}

::selection {
	background-color: #cfcfcf; 
	color: #242424;
}

.container {
width: 100%;
height: 86vh;
display: grid;
place-items: start start;
padding-top: 100px;
padding-left: 100px;
padding-right: 100px;
position: relative;
z-index: 2;
}

.overlay-text {
color: #CFCFCF;
z-index: 2;
max-width: 400px;
}

h1 {
font-size: 26px;
font-weight: 300;
}

h2 {
font-size: 30px;
font-weight: 300;
margin-bottom: -10px;
}


.intro {
font-size: 16px;
font-weight: 100;
line-height: 1.5;
max-width: 350px;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  z-index: -1;
  pointer-events: none;
  background-color: #1e1e1e;
  inset: -1px;
}


footer {
width: 100%;
position: fixed;
bottom: 3%;
left: 0;
display: flex;
justify-content: space-between;
align-items: flex-end;
padding: 0 50px;
font-size: 15px;
color: #CFCFCF;
z-index: 5;
box-sizing: border-box;
}

footer p {
  margin: 0;
  color: black;
  }

.nav-top-right {
position: absolute;
top: 29%;
right: 10%;
z-index: 2;
display: flex;
flex-direction: column;
gap: 18px;
align-items: flex-end;
}

.nav-top-right a {
text-decoration: none;
color: #cfcfcf;
font-weight: 400;
font-size: 16px;
text-transform: uppercase;
}

.social-links {
display: flex;
gap: 30px;
z-index: 2;
}

.links {
color: #CFCFCF;
text-decoration: none;
}


.edu-block {
position: absolute;
top: 68%;
left: 65%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: row;
gap: 60px;
color: #CFCFCF;
font-size: 16px;
font-weight: 100;
line-height: 1.6;
z-index: 2;
max-width: 900px;
}

.edu-item1 {
min-width: 200px;
}

.edu-item2 {
flex-shrink: 0;
min-width: 320px;
max-width: 400px;
white-space: normal;
word-break: break-word;
}

.year {
font-weight: 300;
margin-bottom: 5px;
font-size: 15px;
font-family: 'degular-mono';
}

.edu {
font-size: 15px;
font-weight: 100;
}

#stop-btn {
position: absolute; 
top: 30px; 
right: 30px; 
z-index: 3;
font-family: 'degular-mono';
}

.project-image {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 3;
pointer-events: none;
transform: translateY(100%);
transition: transform 0.2s ease-out;
}


.project-image img {
	width: 80%;
	height: 80%;
	object-fit: contain;
	align-items: center;
	/* background-color: #242424; */
	pointer-events: auto;
	margin: 0 auto;
	transform: translate(15%, 12%);
  }


.project-text {
position: absolute;
top: 50%;
left: 42%;
transform: translate(-50%, -50%);
/* text-align: center; */
color: #ffffff;
opacity: 0;
transition: opacity 0.5s ease;
z-index: 4;
max-width: 80%;
font-family: 'degular', sans-serif;
line-height: 1.45;
}

.overview {
font-size: 13px;
max-width: 40%;
margin-top: 80px;
}

.overview-2 {
font-size: 13px;
max-width: 40%;
margin-top: 80px;
}

.project-image.show-text .project-text {
opacity: 1;
}

.project-text.right-aligned {
left: auto;
right: 43%;
transform: translate(50%, -50%);
text-align: right;
color: #242424;
}

.project-text.graphic {
top: 72%;
left: 5%;
transform: translate(50%, -50%);
text-align: left;
color: #242424;
}

.project-image.fourth,
.project-image.fifth,
.project-image.sixth {
top: 0;
left: 0;
transform: translateY(-100%); 
transition: transform 0.3s ease-out;
}


.overview-3 {
font-size: 13px;
max-width: 40%;
margin-left: auto; 
}

.overview-4 {
font-size: 13px;
/* max-width: 50%; */
}

.more {
margin-top: 20px;
font-size: 13px;
max-width: 40%;
font-weight: 500;
margin-left: auto; 
color: #30B566;
}

footer.flash a{
color: #ffffff;
transition: background-color 0.3s ease, color 0.3s ease;
}

/* .pro-logo {
left: 70%;
scale: 20%;
} */


.scroll-indicator {
position: absolute;
top: 10%;
right: 15%;
color: #CFCFCF;
font-family: 'degular-mono', sans-serif;
font-size: 16px;
display: flex;
flex-direction: column;
align-items: center;
animation: bounce 1.5s infinite;
z-index: 3;
pointer-events: none;
text-transform: uppercase;
}

@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(6px);
}
}

.scroll-left {
top: auto;
bottom: 15%;
left: -40%;
animation: bounce-left 1.5s infinite;
}

@keyframes bounce-left {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-6px);
}
}




.bg-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(20, 20, 20, 0.65);
backdrop-filter: grayscale(100%) brightness(0.6);
z-index: 2;
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease;
}

.bg-overlay.show {
opacity: 1;
pointer-events: auto;
}




/* 添加到你的 style.css */

/* 頁面載入動畫 */
body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 頁面切換時的淡出效果 */
body.page-exit {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

/* 載入指示器 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #CFCFCF;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    font-family: 'degular-mono', sans-serif;
    font-size: 16px;
    color: #242424;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


/* coming soon */
.project-image.coming-soon a {
  cursor: url('images/cursor-play2-2.svg') 16 16, pointer;
}

.project-image.coming-soon img:hover {
  /* opacity: 0.6; */
  filter: grayscale(80%);
}

.project-image.coming-soon .coming-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'degular-mono', sans-serif;
  font-size: 20px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 14px;
  /* border-radius: 6px; */
  opacity: 0;
  /* transition: opacity 0.3s ease; */
  pointer-events: none;
}

.project-image.coming-soon:hover .coming-text {
  opacity: 1;
}


.scroll-text {
  color: #EC3A3A;
}

a:hover {
  color: #EC3A3A;
}

/* 預設隱藏 */
.device-modal {
  display: none;
}

/* 小於等於 1024px 的螢幕（含平板 + 手機）顯示 */
@media (max-width: 1024px) {
  .device-modal {
    display: flex;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.65); /* 透黑底 */
    z-index: 10000;
  }

  .device-modal__panel {
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 12px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  }

  .device-modal__panel p {
    margin: 0;
    color: #242424;
    font-family: 'degular-mono', sans-serif;
    line-height: 1.6;
  }
}


