@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
	--fontcolor: rgba(93, 92, 136, 1);

	/*color theme pink and blue*/
	--colorlight:rgba(112, 124, 144, 1);
	--colormid:rgba(56, 62, 72, 1);
	--colordark:rgba(28, 31, 36, 1);
	--colorcontrast:rgba(221, 149, 180, 1);
	--colorcontrasttrans:rgba(221, 149, 180, 0.5);
	--colorcontrast2:rgba(183, 161, 172, 1);
	--colorcontrastbright:rgba(255, 161, 215, 1);

  /*black and white*/
  --whitetheme: rgba(255, 255, 255, 1);
  --white50: rgba(255, 255, 255, 0.5);
  --white80: rgba(255, 255, 255, 0.8);
  --darkgray: rgba(100, 100, 100, 1);
  --lightgray: rgba(150, 150, 150, 1);
  --midgray: rgba(20, 20, 20, 0.5);
  --bklight: rgba(220, 220, 220, 0.5);

  	/*font*/
	--mainfont: "Montserrat", sans-serif;
	--titlefont: "Montserrat", sans-serif;
	--chinesefont: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;

}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
	font-family:
	"Montserrat",/* English */
	"Noto Sans",/* English */
	"Noto Sans TC",/* Traditional Chinese */
	sans-serif;
	font-family: var(--mainfont), var(--chinesefont), sans-serif;
}

/* =========================
   CUSTOM CURSOR
========================= */

*, *:before, *:after {
    cursor: none !important;
}

.cursor-main,
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;

    border-radius: 50%;
    pointer-events: none;

    transform: translate(-50%, -50%);
    z-index: 80000;

    visibility: hidden;
    opacity: 0;

    transition:
        width 0.3s cubic-bezier(0.4, 0, 1, 1),
        height 0.3s cubic-bezier(0.4, 0, 1, 1),
        opacity 0.2s ease;
}


/* =========================
   NORMAL CURSOR
========================= */

.cursor-main {
    width: 15px;
    height: 15px;

    background-color: var(--colorcontrastbright);

    opacity: 0.7;
    z-index: 90000;
}

.cursor-trail {
    width: 40px;
    height: 40px;

    background-color: var(--whitetheme);

    opacity: 0.4;
    z-index: 89999;
}


/* =========================
   FIRST APPEARANCE
========================= */

.cursor-main.is-visible {
    visibility: visible;
    opacity: 0.7;
}

.cursor-trail.is-visible {
    visibility: visible;
    opacity: 0.4;
}


/* =========================
   LINK / BUTTON HOVER
========================= */

.cursor-main.is-hovering {
    width: 40px;
    height: 40px;

    mix-blend-mode: plus-lighter;
}

.cursor-trail.is-hovering {
    width: 0;
    height: 0;
    opacity: 0;
}


/* =========================
   TEXT HOVER
========================= */

.cursor-main.is-text {
    width: 2px;
    height: 18px;
    border-radius: 2px;
}

.cursor-trail.is-text {
    width: 0;
    height: 0;
    opacity: 0;
}


/* =========================
   HIDDEN
========================= */

.cursor-main.is-hidden,
.cursor-trail.is-hidden {
    opacity: 0;
}

@keyframes breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(2.1);
    }
}

body {
  place-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: rgba(28, 31, 36, 1);
  position: relative;
}

/* Header Container */
.top-bar {
  position: absolute;
  top: 60px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none; /* Allows clicks to pass through empty space in top-bar */
}

/* Ensure buttons inside top-bar receive clicks */
.top-bar * {
  pointer-events: auto;
}


.fronttitle {
    position: fixed;
    display: flex;
    max-width: 100vw;
    justify-content: center;
    align-items: center;
    left: clamp(0px,2.5%,200px);
    top: 2.5vh;
    transform: translateX(0%);
    z-index:0;
}

.fronttitle h1{
	font-size:2em;
	color:var(--colorcontrast);
	text-decoration:none;
	line-height: 1em;
	font-family: var(--titlefont);
	font-weight: 250;
	font-style: normal;
}

.home-button, .lang-switch-container {
  display: flex;
  align-items: center;
}



/* Container dimensions are managed dynamically by Turn.js JS */
.flipbook {
  margin: auto;
}

.flipbook .hard {
  color: #fff;
  font-weight: bold;
  border: none; 
}

.flipbook .hard small {
  font-style: italic;
  font-weight: lighter;
  opacity: 0.7;
  font-size: 14px;
}

.flipbook .page {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 0px solid #141413;
  overflow: hidden;
}

/* Portfolio page images fill page seamlessly */
.flipbook .page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Floating Zoom Buttons Controls */
.zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25vw;
  z-index: 100;
}

.zoom-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(28, 31, 36, 1);
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0);

  padding: 8px 16px;
  border-radius: 0px;
  cursor: pointer;
  font-size: 13px;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
  text-decoration: none; /* Ensures link button stays clean */
}

.zoom-btn:hover {
  border: 0.5px solid var(--colorcontrast)
}

/* Lightbox Overlay */
#zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: grab;
}

#zoom-overlay:active {
  cursor: grabbing;
}

#zoom-img {
  max-width: 90%;
  max-height: 90%;
  user-select: none;
  transition: transform 0.05s ease-out;
}

@media (max-width: 767px) {
  .zoom-controls {
    display: none !important;
  }

  .fronttitle {
    left: clamp(0px,0px,200px);
    top: -0.7vh;
}

.fronttitle h1{
	font-size:2.5em;
}


.top-bar {
  top: 7vh;
  left: 10px;
  right: 20px;
}

.zoom-btn {
  font-size: 12px;
}

.zoom-btn:hover {
  background: rgba(255, 161, 215, 0.8);
}

*, *::before, *::after {
  cursor: auto !important;
}

.cursor-main,
.cursor-trail {
  display: none !important;
}

}