@import url("https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&family=Gaegu&display=swap");

/* ================================================== */
/* ==================== GLOBAL STYLES ======================= */
/* 
Z INDEX 
-1 - Hero-Img
1 - Background
1 - Particles
2 - Container
3 - Border img
4 - Play Button

4 - Menu Overlay
5 - Loading Spinner

5 - Navbar
10 - Close Button
999 - Video Modal Overlay
1000 - Splash Screen

*/
/* ================================================== */

:root {
  --font-family: "Gabarito", sans-serif;
  --font-family-style: "Gaegu", sans-serif;
  --color-primary: #fee193;
  --color-shadow: #4c4d6c;
  --color-shadow-light: #5a5b80;
  --color-shadow-black: #2d2e41;
  --color-secondary: #b8e0d8;
  --color-secondary-light: #e9f6ef;
  --color-dark: #333;
  --color-black-high: #101415;
  --color-black: #212121;
  --color-light: #efefef;
  --color-white: #fdfeff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-light);
  color: var(--color-dark);
  overflow-x: hidden;
  width: 100vw;
}

.dark {
  background: var(--color-shadow) !important;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  color: #fff;
  font-size: clamp(1.8rem, calc(7vw + 1rem), 5rem);
  font-weight: 400;
  letter-spacing: -0.2rem;
  line-height: 1;
}

a,
p {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-size: clamp(0.9rem, calc(2vw + 1rem), 1rem);
  font-weight: 300;
  user-select: none;
}

/* ================================================== */
/* ==================== BACKGROUND ======================= */
/* ================================================== */
.background_custom {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(135deg, #4c4d6c 0%, #5a5b7e 100%);
  overflow: hidden;
  user-select: none;
}

.svg_body_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.circle_lg {
  position: absolute;
  transform-origin: center;
  will-change: transform;
  transform: scale(0.6);
  user-select: none;
  pointer-events: none;
  -webkit-transform: scale(0.6);
  -moz-transform: scale(0.6);
  -ms-transform: scale(0.6);
  -o-transform: scale(0.6);
}

.circle_sm {
  position: absolute;
  transform-origin: center;
  will-change: transform;
  transform: scale(0.5);
  user-select: none;
  pointer-events: none;
}

/* Ensure SVG maintains aspect ratio */
svg {
  display: block;
}

/* ================================================== */
/* ==================== SPLASHSCREEN ======================= */
/* ================================================== */
.splash_screen {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: var(--color-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  z-index: 1000;
  color: var(--color-white);
  flex-direction: column;
}

.splash_progress_wrapper {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  z-index: 1001;  
}

.splash_progress_bar {
  width: 0%;  
  height: 100%;
  background-color: var(--color-shadow);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
}

.splash-content {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15vh;
  color: var(--color-white);
  text-transform: uppercase;
  gap: 0.4em;
  overflow: hidden;
}

.splash-content span {
  display: inline-block;
  transform: translateY(200%);
  opacity: 0;
  font-weight: bolder;
}

.splash_screen .mask-text {
  overflow: hidden;
}

.japanese-text {
  font-size: 8vh;
  color: var(--color-white);
  opacity: 0;
  letter-spacing: 2rem;
  transform: translateY(-100%);
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
}

.splash-svg {
  position: absolute;
  max-height: 20vh;
  width: 100vw;
  max-width: 100vw;
  left: 0;
  bottom: -18vh;
  z-index: 1000;
}

/* ================================================== */
/* ==================== NAVBAR ======================= */
/* ================================================== */

nav {
  position: fixed;
  width: 100vw;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  gap: 2.5rem;
  font-family: var(--font-family-style);
}

.logo {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logo a {
  position: relative;
  font-weight: 600;
  font-size: 5vh;
}

.nav-links {
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-links ul {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 2.5rem;
}

.nav-links ul li {
  list-style: none;
}

.nav-links ul li a {
  font-size: 3.5vh;
}

.menu-toggle {
  /* position: relative;
  width: 3rem;
  height: 1.5rem;
  cursor: pointer; */
  position: absolute;
  right: 2.5rem;
  width: 4rem;
  height: 1.5rem;
  cursor: pointer;
  display: none;
}

.menu-toggle p {
  position: absolute;
  transform-origin: top left;
  will-change: transform, opacity;
  font-size: 3.5vh;
}

.menu-overlay {
  position: fixed;
  width: 100vw;
  height: 100svh;
  /* background: #00f82d82; */
  background: #0f0f0f;
  /* border: 2px solid red; */
  z-index: 4;
  font-family: var(--font-family-style);
}

.menu-content {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform-origin: left bottom;
  will-change: transform, opacity;
  /* border: 2px solid violet; */
}

.menu-items {
  flex: 1;
  width: 100%;
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  height: auto;
}

.menu-footer {
  width: 100%;
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.col-lg {
  flex: 3;
}

.col-sm {
  flex: 2;
}

.menu-items .col-lg {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-preview-img {
  position: relative;
  width: 45%;
  height: 60vh;
  overflow: hidden;
  border-radius: 8px;
}

.menu-preview-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
}

.menu-items .col-sm {
  position: relative;
  top: 80px;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.menu-links,
.menu-socials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.link,
.social {
  padding-bottom: 6px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.link a,
.social a {
  display: inline-block;
  will-change: transform;
  transition: color 0.5s;
}

.link a {
  font-size: 7vh;
  letter-spacing: -0.02rem;
}

.social a {
  color: #8f8f8f;
}

.social a:hover {
  color: #fff;
}

.menu-footer .col-lg {
  display: flex;
  align-items: center;
}

.menu-footer .col-sm {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.link a::after,
.social a::after,
.menu-footer a::after {
  position: absolute;
  content: "";
  top: 102.5%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  background: #fff;
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.6, 0, 0.4, 1);
}

.link a:hover::after,
.social a:hover::after,
.menu-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.container {
  position: relative;
  width: 100vw;
  height: 100%;
  transform-origin: right top;
  will-change: transform;
  z-index: 2;
  /* background: #333; */

  /* background: yellowgreen;
  border: 2px solid yellow; */
}

.hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: blue; */
  /*  border: 2px solid blue; */
}

/* .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250svh;
  z-index: -1;
} */

.hero .box-title {
  position: relative;
  text-align: center;
  font-family: "Gaegu", sans-serif;
  color: #fff;
  height: 50%;
  user-select: none;
}

.hero .box-title .title-top {
  overflow: hidden;
}

.split-title {
  text-align: center;
  letter-spacing: 0.05rem;
  will-change: transform;
  color: var(--color-white);
  font-size: 15vh;
  letter-spacing: -0.18rem;
  font-weight: bold;
  user-select: none;
  perspective: 500px;
}

.split-title * {
  will-change: transform;
}

.hero .box-title .title-bottom {
  position: relative;
  font-size: 5vh;
  font-weight: 500;
  color: var(--color-dark);
  user-select: none;
  perspective: 500px;
  margin-top: 50px;
}

.hero .box-title .title-bottom .underline {
  content: "";
  position: absolute;
  width: 0%;
  height: 6vh;
  background: linear-gradient(
    to right,
    var(--color-white) 0%,
    transparent 100%
  );
  top: 30%;
  left: 15%;
  z-index: -1;
}

.menu-toggle p#menu-close {
  opacity: 0;
  transform: translateX(-5px) translateY(10px) rotate(5deg);
  -webkit-transform: translateX(-5px) translateY(10px) rotate(5deg);
  -moz-transform: translateX(-5px) translateY(10px) rotate(5deg);
  -ms-transform: translateX(-5px) translateY(10px) rotate(5deg);
  -o-transform: translateX(-5px) translateY(10px) rotate(5deg);
}

.link a,
.social a {
  transform: translateY(120%);
  opacity: 0.25;
}

.menu-content {
  transform: translateX(-100px) translateY(-100px) scale(1.5) rotate(-15deg);
  opacity: 0.25;
  -webkit-transform: translateX(-100px) translateY(-100px) scale(1.5)
    rotate(-15deg);
  -moz-transform: translateX(-100px) translateY(-100px) scale(1.5)
    rotate(-15deg);
  -ms-transform: translateX(-100px) translateY(-100px) scale(1.5) rotate(-15deg);
  -o-transform: translateX(-100px) translateY(-100px) scale(1.5) rotate(-15deg);
}

.menu-overlay {
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%);
}

/* ================================================== */
/* ==================== CONTENT ======================= */
/* ================================================== */
html.modal-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open nav {
  z-index: 2 !important;
}

.body-content {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
  background: var(--color-shadow);
}

.gradient-gallery {
  background: linear-gradient(
    to bottom,
    var(--color-shadow),
    var(--color-shadow-light)
  );
  padding-bottom: 150px;
  position: relative;
}

.body-content h1 {
  color: var(--color-white);
}

.box_tutor {
  margin: 50px 0;
  width: 100%;
  max-width: 1200px;
  height: max-content;
  display: flex;
  align-items: start;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  opacity: 0;
  transform: translateY(100px);
}

.box_tutor .box_img {
  flex: 3;
  min-width: 300px;
  min-height: 300px;
  max-height: 400px;
  display: flex;
  align-items: start;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  user-select: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.box_tutor .box_img:hover {
  transform: scale(1.05);
}

.box_tutor:hover .char_img {
  transform: translate(-55%, -45%) scale(0.95);
}

.box_img .img_thum {
  position: relative;
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.box_img .img_thum video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  user-select: none;
  pointer-events: none;
}

.border_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  z-index: 3;
}

.border_img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.play_btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.play_btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.play_btn::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 15px solid #333;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.char_img {
  position: absolute;
  width: 250px;
  height: 50vh;
  top: 55%;
  left: 5%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  user-select: none;
  pointer-events: none;
  transition: 0.3s;
}

.char_right {
  left: 100% !important;
}

.box_tutor .box_text {
  flex: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.box_text_left {
  text-align: right;
}

.box_text .box_title {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;
  margin-bottom: 10px;
}

.box_text_left .box_title {
  justify-content: end;
}

.box_text .box_title .title {
  font-size: clamp(20px, 2.5vw, 40px);
  font-weight: 600;
  color: var(--color-white);
  transform: translateY(100%);
  opacity: 0;
}

.box_text .box_description {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden;
  margin-bottom: 10px;
}

.box_text .box_description .description {
  font-size: clamp(14px, 1.5vw, 24px);
  color: var(--color-light);
  font-weight: 300;
  opacity: 0;
  line-height: 1.6;
  transform: translateY(100%);
}

.box_text .box_jpn {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.box_text_left .box_jpn {
  justify-content: flex-end;
}

.box_text .box_jpn .jpn {
  font-size: clamp(14px, 1.4vw, 20px);
  color: var(--color-primary);
  font-weight: 400;
  transform: translateY(100%);
  opacity: 0;
}

/* Video Modal Overlay */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.492);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-modal-container {
  position: fixed;
  top: 50vh;
  left: 50%;
  width: min(90vw, 1000px);
  max-height: 90vh;
  padding: 25px;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.video-modal-overlay.active .video-modal-container {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: calc(90vh - 50px);
  max-height: calc(min(90vw, 1000px) * 9 / 16);
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-controls {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.video-wrapper:hover .video-controls {
  opacity: 1;
  transform: translateY(0);
}

.video-controls .control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.video-controls .control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-shadow), var(--color-primary));
  width: 0%;
  transition: width 0.1s ease;
}

.volume-slider {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.video-modal-container .close-btn {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  transition: all 0.3s ease;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.video-modal-container .close-btn:hover {
  background: var(--color-primary);
}

.video-modal-container .close-btn::before {
  content: "✕";
  font-weight: bold;
}

/* Particle Animation Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* Loading Animation */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #4ecdc4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 5;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-controls .control-btn:hover .tooltip {
  opacity: 1;
}

/* ================================================== */
/* ==================== RESPONSIVE ======================= */
/* ================================================== */

/* Mobile: 600px ke bawah */
@media (max-width: 767px) {
  /* splashscreen */
  .splash-svg {
    max-height: 4.5vh;
    bottom: -4vh;
  }

  .splash-content {
    font-size: 3vh;
  }

  /* navbar */
  .nav-links {
    display: none !important;
  }

  .logo a {
    font-weight: 600;
    font-size: 3vh;
  }

  .menu-toggle p {
    font-size: 3vh;
  }

  .menu-items .col-lg {
    display: none;
  }

  .link a {
    font-size: 5.5vh;
    width: 100%;
  }

  .link a::after,
  .social a::after,
  .menu-footer a::after {
    display: none;
  }

  .social a {
    font-size: 3vh;
  }

  .hero {
    padding: 0;
  }

  .hero .box-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero .box-title h1 {
    font-size: 4vh;
    letter-spacing: 0.1rem !important;
    line-height: 1.1;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .hero .box-title span {
    font-size: 2vh;
    font-weight: 500;
    color: var(--color-dark);
  }

  .hero .box-title span::before {
    content: "";
    position: absolute;
    width: 70vw;
    height: 25px;
    top: 63%;
  }

  /* ================================================== */
  /* ==================== CONTENT MOBILE ======================= */
  /* ================================================== */
  .box_tutor {
    flex-direction: column;
    height: auto;
    margin: 30px 0;
  }

  .box_tutor .box_img {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .box_tutor .box_text {
    width: 100%;
    max-width: 100%;
    order: 2;
    text-align: center;
  }

  .box_tutor .box_text .box_title,
  .box_tutor .box_text .box_description,
  .box_tutor .box_text .box_jpn {
    justify-content: center;
  }

  .char_img {
    width: 150px;
    height: 20vh;
    top: 42%;
    left: 15%;
  }

  .char_img.char_right {
    left: 92% !important;
  }

  .char_img img {
    width: 200px;
    height: 200px;
    object-fit: contain;
  }

  .video-modal-container {
    width: 95vw;
    padding: 15px;
    max-height: 90vh;
  }

  .video-modal-container .close-btn {
    transform: translate(-50%, -20%);
  }

  .video-controls {
    padding: 8px 12px;
    gap: 10px;
  }

  .video-controls .control-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .volume-slider {
    width: 60px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  /* ================================================== */
  /* ==================== CONTENT TABLET ======================= */
  /* ================================================== */

  .char_img {
    width: 150px;
    height: 20vh;
    top: 70%;
    left: 10%;
  }

  .char_img.char_right {
    left: 95% !important;
  }

  .char_img img {
    width: 200px;
    height: 200px;
    object-fit: contain;
  }
}

/* ================================================== */
/* ==================== KEYFRAME ======================= */
/* ================================================== */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ================================================== */
/* ==================== INFINITE GALLERY ======================= */
/* ================================================== */

.gallery-section {
  min-height: 100vh;
  color: white;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}

.gallery-grid-box {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-grid-padding {
  width: 900px;
  overflow: hidden;
  height: 100%;
  border-radius: 20px;
  position: relative;
  background: var(--color-shadow-light);
  transition: 0.4s ease;
  -webkit-transition: 0.4s ease;
  -moz-transition: 0.4s ease;
  -ms-transition: 0.4s ease;
  -o-transition: 0.4s ease;
}

.gallery-grid-padding.active {
  width: 1200px;
}

/* Navigation hints */
.gallery-grid-padding .nav-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 14px;
  text-align: center;
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 20px 25px;
  font-size: 1.2rem;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}

.gallery-grid-padding .nav-hint.hidden {
  opacity: 0;
}

#gallery-grid-container {
  width: 100%;
  height: 100%;
  will-change: transform;
  transform-style: preserve-3d;
  z-index: 2;
  cursor: grab;
}

#gallery-grid-container.dragging {
  cursor: grabbing;
}

.card-gallery {
  position: absolute;
  width: 23vw;
  height: 47vh;
  background-color: #252525;
  border: 1px solid #efefef;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
  border-radius: 12px;
  cursor: pointer;
}

.card-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  filter: saturate(0.9);
}

.card-coords {
  position: absolute;
  top: 8px;
  left: 8px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 10;
  font-weight: bold;
}
/* 
.overlay-info {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000000b3;
  width: 95vw;
  height: 100vh;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.box-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff31;
  width: 400px;
  height: 35px;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 50px;
  z-index: 1;
} */

.body-content .box-info span {
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-white);
}

#gallery-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

#gallery-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#gallery-modal-content {
  position: fixed;
  top: 5vh;
  left: 50%;
  width: min(50vw, 1000px);
  max-height: 80vh;
  transform: translate(-50%, -50%) scale(0.8);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

#gallery-modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Gallery interaction states */
.gallery-section.gallery-active {
  position: relative;
  z-index: 10;
}

/* .gallery-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
  transition: .3s;
  -webkit-transition: .3s;
  -moz-transition: .3s;
  -ms-transition: .3s;
  -o-transition: .3s;
}
.gallery-section.gallery-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: -1;
  transition: .3s;
} */

.gallery-section.gallery-active .gallery-grid-box {
  pointer-events: all;
}

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

/* ================================================== */
/* ==================== Footer ======================= */
/* ================================================== */

.footer {
  color: white;
  padding: 60px 0;
  margin-top: 250px;
  position: relative;
  overflow: hidden;
  height: 10%;
  width: 100%;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-section {
  opacity: 0;
  transform: translateY(80px);
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 30px;
}

.footer-section h3 .mask-text {
  display: inline-block;
  transform: translateY(100px);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
  opacity: 0;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 20px;
}

.footer-section ul li a .link-text {
  display: inline-block;
  transform: translateY(100%);
}

.footer-section ul li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-section ul li a:hover::before {
  width: 100%;
}

.nakoclass-section {
  text-align: right;
  grid-column: 3;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.nakoclass-title {
  font-size: 2.5rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  height: 50px;
  width: 100%;
  letter-spacing: 0.3rem;
}

.nakoclass-title .mask-text {
  display: inline-block;
  transform: translateY(150px);
}

.nakoclass-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  height: 50px;
}

.nakoclass-subtitle .mask-text {
  display: inline-block;
  transform: translateY(150px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 10px 0;
}

.footer-bottom .bottom-text {
  display: inline-block;
}

.footer-bottom .heart {
  color: var(--color-primary);
  font-size: 1.2rem;
  animation: heartbeat 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nakoclass-title {
    font-size: 2rem;
  }

  .nakoclass-section {
    text-align: center;
    grid-column: 1;
  }
}

/* SECTION */
.section-title {
}

.section-title .mask-text {
  overflow: hidden;
}
