/* global.css */

/* Apply box-sizing globally */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Reset & Base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  
/* Add your background image */
  background-image: url('background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* keeps it locked in place */
}

/* Layout Containers */
.container {
  max-width: 1170px;
  margin: auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-wrapper {
  position: relative;
  min-height: calc(100vh - 160px); /* subtract header + footer */
  padding-top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.page-wrapper img {
  width: auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Logo or Video Showcase Layout */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px; /* space under header */
  margin-bottom: 20px;
}

/* Header & Footer Layout */
header, .footer {
  position: fixed;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
}

header {
  top: 0;
  left: 0;
  right: 0;
  height:60px;
  padding: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer {
  bottom: 0;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 1; /* perfect for 2048x508 images */
  overflow: hidden;
}

/* Each slide overlaps in the same space */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 3s ease;
  z-index: 1;
}

/* Visible slide */
.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.tagline {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #003f8a;
  text-shadow: 0 0 10px rgba(0,0,0,0.55);
  letter-spacing: 1px;
  cursor: pointer;

  position: relative;
  display: block;
  margin: 10px auto 0;

  opacity: 1;
  transition: opacity 3.5s ease;
}

@keyframes goldPulse {
  0% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.0);
  }
  50% {
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.0);
  }
}

.tagline {
  animation: goldPulse 6s ease-in-out infinite;
}

/* English version visible by default */
.tagline .en {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Vietnamese version hidden by default */
.tagline .vi {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* On hover: swap them */
.tagline:hover .en {
  opacity: 0;
}

.tagline:hover .vi {
  opacity: 1;
}

/* Mobile scaling */
@media (max-width: 600px) {
  .tagline {
    font-size: 2rem;
  }
}

/* Typography */
h1, h2, h3 {
  font-weight: bold;
  color: #061324;
  margin-top: 0;
}

p {
  margin-bottom: 1em;
}

a {
  color: #e8491d;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* Utility Classes */
.center {
  text-align: center;
}

.hidden {
  display: none;
}

.shadow {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Footer Buffer */
.footer-buffer {
  height: 60px;
}

@media (max-width: 600px) {
  .tagline .vi {
    display: none; /* hide Vietnamese line on mobile */
  }

  .tagline:active .vi,
  .tagline:focus .vi {
    display: block; /* show Vietnamese when tapped */
    opacity: 1;
  }

  .tagline:active .en,
  .tagline:focus .en {
    opacity: 0; /* hide English when tapped */
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;            /* thickness */
}

::-webkit-scrollbar-track {
  background: #70c7f3; /* soft mythic blue */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #003f8a;       /* thumb color (deep mythic blue) */
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.4); /* subtle ring */
}

::-webkit-scrollbar-thumb:hover {
  background: #005fcc;       /* brighter blue on hover */
}