/* =========================
   Base / Global
========================= */
:root {
  --primary-color: #191919;
  --secondary-color: #6c757d;
  --bg-light: #f5efed;
  --bg-dark: #000000;
  --box-shadow-hover: inset #8a7373 2px 2px 4px, inset #4d4d4d -2px -2px 4px;
}

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

body {
  font-family: 'inter', 'helvetica neue', sans-serif;
  font-weight: 400;
  background-color: var(--bg-light);
  color: #3e4e50;
}

strong {
  font-weight: bold;
}

/* =========================
   Header / Navigation
========================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--bg-light);
  backdrop-filter: blur(5px);
}

nav {
  max-width: 1460px;
  width: 100%;
  margin: 0 auto;
  padding: 23px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
}

.icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo a {
  font-size: 1.5rem;
  text-decoration: none;
  color: #3e4e50;
  font-weight: 400;
}
.logo a:hover {
  color: #e4959e;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-left: auto;
  position: static;
  transform: none;
  padding-right: 20px;
}

.nav-menu li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: #3e4e50;
  letter-spacing: 1px;
  transition: font-size 0.3s ease, color 0.3s ease;
}
.nav-menu li a:hover,
.nav-menu li a.active {
  color: #e4959e;
}

/* Language dropdown */
.language-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.globe-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  stroke: #3e4e50;
  transition: stroke 0.3s ease;
}
.globe-icon:hover {
  stroke: #e4959e;
}

.language-options {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: var(--bg-light);
  border: 1px solid var(--secondary-color);
  padding: 8px 12px;
  white-space: nowrap;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.lang-option {
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s ease;
}
.lang-option.active {
  color: #e4959e;
  font-weight: bold;
}
.lang-option:hover {
  color: #e4959e;
}
.lang-option.disabled {
  color: #bbb;
  cursor: default;
}
.language-dropdown.active .language-options {
  display: flex;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: #3e4e50;
  margin: 3px 0;
  transition: all 0.3s;
}

/* =========================
   Hero Section (#home)
========================= */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-light);
  padding: 2rem;
  text-align: center;
}

.text-container {
  max-width: 500px;
  margin: 0 auto;
}

#home .content h1 {
  font-size: 4.5rem;
  font-weight: 300;
  color: #3e4e50;
  line-height: 1.3;
}

#subtitle {
  opacity: 0;
  font-size: 1.3rem;
  transition: opacity 1s ease-out, transform 1s ease-out;
  max-width: 500px;
  margin: 0 auto;
}
#subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated entrance */
.slide-text span {
  display: inline-block;
  transform: translateY(-100%);
  opacity: 0;
  animation: slideDown 0.8s ease-out forwards;
}
.slide-text span:nth-child(1) {
  animation-delay: 0.2s;
}
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1.5s ease-in forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll down */
.scrolldown-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}
.scrolldown {
  width: 40px;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 1s;
  transition: transform 0.3s ease;
}
.scrolldown-container:hover .scrolldown {
  transform: translateY(0) scale(1.1);
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(320deg);
  transition: transform 0.3s ease, filter 0.3s ease;
}
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   Case Study Cards (Index + VR)
========================= */
.section-wrap {
  margin-top: 20px;
  padding: 70px 0; 
  background-color: var(--bg-light);
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2rem;
}

.left-text {
  flex: 0.9;
  padding-right: 20px;
}
.left-text h2 {
  font-size: 1.8rem;
  font-weight: 520;
  margin-bottom: 5px;
  color: #3e4e50;
}
.left-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #3e4e50;
}


.right-image {
  flex: 2.5;
}
.right-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.right-image a img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.right-image a:hover img {
  transform: scale(1.01);
  cursor: pointer;
}

/* scroll reveal */
.hidden-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: transform 0.7s ease, opacity 0.7s ease;
}
.hidden-up {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.7s ease, opacity 0.7s ease;
}
.hidden-left.show {
  opacity: 1;
  transform: translateX(0);
}
.hidden-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Footer
========================= */
.footer {
  background-color: var(--bg-light);
  color: #3e4e50;
  text-align: center;
  padding: 20px;
}
.footer a {
  color: #3e4e50;
  text-decoration: none;
  font-weight: 400;
}
.footer a:hover {
  text-decoration: underline;
  color: #e4959e;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--bg-light);
    text-align: center;
    padding: 10px 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    margin: 15px 0;
  }
  .hamburger {
    display: flex !important;
  }
  .icons {
    display: flex;
    align-items: center;
    position: absolute;
    top: 23px;
    right: 2rem;
  }
  .language-dropdown {
    display: flex;
    align-items: center;
    margin-right: 1rem;
  }
  #home .content h1 {
    font-size: 2.8rem;
  }
  #subtitle {
    font-size: 1.3rem;
  }
  .section-content {
    flex-direction: column;
    text-align: center;
  }
  .left-text {
    padding-right: 0;
  }
}
@media (max-width: 480px) {
  #home .content h1 {
    font-size: 2.3rem;
  }
  #subtitle {
    font-size: 1.1rem;
  }
  .left-text h2 {
    font-size: 2rem;
  }
}



/* =========================
   VR Page Intro Title
========================= */

.text-container {
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: left;
  padding: 0 0.6rem;
}

.immersive-title {
  font-size: 3rem;
  font-weight: 300;
  color: #3e4e50;
  margin-bottom: 20px;
}

.immersive-intro {
  font-size: 1.2rem;
  color: #3e4e50;
  line-height: 1.6;
}

/* =========================
   Responsive Video in VRCase Sections
========================= */

.right-video {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.right-video:hover {
  transform: scale(1.01);
  cursor: pointer;
}
