@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Rajdhani:wght@400;500&display=swap');

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: url("image.png") no-repeat center center/cover fixed;
  height: 100vh;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  z-index: -1;
}

/* === PARTICLE EFFECT BACKGROUND === */
.particle {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle span {
  position: absolute;
  width: 4px; height: 4px;
  background: radial-gradient(circle, #00eaff, #ff00ff44);
  border-radius: 50%;
  opacity: 0.7;
  animation: float 10s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

/* === NAVBAR (LIQUID GLASS + REFLECTION) === */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  backdrop-filter: blur(10px);
  background: rgba(20, 10, 40, 0.45);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
  border-bottom: 1px solid rgba(0, 255, 255, 0.25);
  z-index: 1000;
  overflow: hidden;
}

/* Shimmer reflection moving light */
.navbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  width: 150px;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(0,255,255,0.3) 40%, rgba(255,0,255,0.25) 70%, transparent 100%);
  filter: blur(12px);
  animation: shimmer 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
  0% { left: -150px; opacity: 0; }
  40% { opacity: 0.7; }
  60% { opacity: 0.7; }
  100% { left: 120%; opacity: 0; }
}


.hamburger {
  width: 30px; height: 22px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger div {
  height: 4px; background: #00eaff; border-radius: 2px;
  box-shadow: 0 0 8px #00eaff;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

.title {
  text-align: right;
  position: relative;
  z-index: 10;
}

.title h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  text-shadow: 0 0 15px #00eaff, 0 0 25px #ff00ff;
}

.title p {
  font-size: 0.9rem;
  color: #bcecff;
  text-shadow: 0 0 8px #00eaff;
}

/* === SIDEBAR === */
/* Sidebar */
.sidebar {
  position: fixed;
  top: 80px;
  left: -250px;
  width: 250px;
  height: calc(100vh - 80px);
  background: rgba(15, 10, 35, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 255, 255, 0.25);
  transition: left 0.4s ease;
  z-index: 900;
}

.sidebar.active {
  left: 0;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.2rem;
}

.nav-item, .drop-btn {
  color: #bdfbff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  text-shadow: 0 0 8px #00ffff44;
  transition: all 0.3s ease;
}

.nav-item:hover, .drop-btn:hover {
  color: #fff;
  text-shadow: 0 0 12px #00eaff, 0 0 25px #ff00ff;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.drop-content {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  margin-top: 0.5rem;
  background: rgba(10, 10, 30, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.drop-content a {
  color: #a0f9ff;
  font-size: 0.95rem;
  margin: 4px 0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drop-content a:hover {
  animation: neonGlow 1s infinite alternate;
  transform: translateX(5px);
}

@keyframes neonGlow {
  0% {
    color: #00eaff;
    text-shadow: 0 0 6px #00ffffaa, 0 0 12px #ff00ff88;
  }
  50% {
    color: #ff00ff;
    text-shadow: 0 0 6px #ff00ff88, 0 0 12px #00ffffaa;
  }
  100% {
    color: #00eaff;
    text-shadow: 0 0 6px #00ffffaa, 0 0 12px #ff00ff88;
  }
}

.dropdown.active .drop-content {
  display: flex;
}

/* === MAIN CONTENT === */
.content {
  margin-top: 120px;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.intro {
  backdrop-filter: blur(8px);
  background: rgba(20, 10, 40, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  display: inline-block;
  padding: 2rem 3rem;
  animation: fadeIn 1.2s ease forwards;
}

.intro h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #b7faff;
  text-shadow: 0 0 12px #00eaff;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  color: #e5faff;
  text-shadow: 0 0 8px #00b3ff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}


#intro {
  backdrop-filter: blur(8px);
  background: rgba(20, 10, 40, 0.45);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.15), 0 0 50px rgba(255, 0, 255, 0.1);
  display: inline-block;
  padding: 2.5rem 3.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeIn 1.2s ease forwards;
}

#intro h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #b7faff;
  text-shadow: 0 0 12px #00eaff, 0 0 25px #ff00ff;
  margin-bottom: 1rem;
}

#intro p.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(0,255,255,0.8);
  animation: typing 3.5s steps(40, end), blink 0.8s step-end infinite;
  font-size: 1.1rem;
  color: #e5faff;
  text-shadow: 0 0 8px #00b3ff;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

#intro blockquote {
  margin-top: 1.2rem;
  font-style: italic;
  color: #c0eaff;
  text-shadow: 0 0 8px #00eaffaa;
  opacity: 0.85;
}

.explore-btn {
  margin-top: 2rem;
  background: linear-gradient(90deg, #00eaff, #ff00ff);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.8rem;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
  transition: all 0.3s ease;
}

.explore-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,255,0.5), 0 0 40px rgba(255,0,255,0.4);
}


/* Mặc định ẩn */
#explore-sections {
  display: none;
  opacity: 0;
}

/* Khi hiện */
#explore-sections.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 2rem;
  animation: fadeInContainer 0.8s ease forwards;
}

@keyframes fadeInContainer {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade-in tuần tự cho từng card */
.info-card {
  width: 80%;
  max-width: 800px;
  background: rgba(25, 25, 35, 0.75);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), 0 0 60px rgba(160, 100, 255, 0.08);
  border: 1px solid rgba(180, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 1.8rem;
  color: #fff;
  transition: all 0.4s ease;
  position: relative;
}

.info-card {
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left,
    rgba(0, 255, 255, 0.08),
    rgba(255, 0, 255, 0.06),
    transparent 80%);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.5s ease;
  z-index: 0;
}

/* Đảm bảo nội dung nằm trên lớp phản chiếu */
.info-card * {
  position: relative;
  z-index: 1;
}

/* Hover giữ blur + glow nhẹ */
.info-card:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

.info-card.left { align-self: flex-start; }
.info-card.right { align-self: flex-end; }

.info-card.visible {
  animation: fadeUpCard 0.8s ease forwards;
}

@keyframes fadeUpCard {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover glow */
.info-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 0 28px rgba(90, 255, 255, 0.25),
              0 0 60px rgba(160, 100, 255, 0.15);
  border-color: rgba(180, 255, 255, 0.4);
}

.origin-body {
  background: radial-gradient(circle at top, rgba(0,255,255,0.1), rgba(0,0,0,0.95)),
              url('assets/bg_neon_blur.png') center/cover fixed;
  color: #e0e0ff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.origin-container {
  max-width: 850px;
  margin: 6rem auto;
  padding: 2rem 3rem;
  background: rgba(15,15,35,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(0,255,255,0.2);
  animation: float-up 0.6s ease-out;
}

.origin-container h1 {
  text-align: center;
  color: #8afcff;
  font-size: 2.4rem;
  text-shadow: 0 0 12px #00ffee;
}

.origin-section {
  margin-top: 3rem;
  line-height: 1.8;
}

.origin-section h2 {
  color: #ffc8ff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px #ff66ff;
}

.origin-section p {
  color: #d8d8ff;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

.back-btn {
  display: inline-block;
  margin-top: 3rem;
  color: #8afcff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.back-btn:hover {
  text-shadow: 0 0 12px #00ffff;
}

.mascot-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1;
}
.mascot {
  width: 200px;
  filter: drop-shadow(0 0 20px #00ffee);
}
.glow { animation: glowPulse 3s infinite ease-in-out; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%,100% { filter: drop-shadow(0 0 10px #00ffee); }
  50% { filter: drop-shadow(0 0 25px #ffb3ff); }
}
@keyframes float-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* === GALLERY SECTION === */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.8rem;  
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
  z-index: 10;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(0,255,255,0.5), 0 0 25px rgba(255,0,255,0.1);
  background: rgba(20, 10, 40, 0.45);
  backdrop-filter: blur(8px);
}

.gallery-card img {
  width: 100%;
  height: auto; /* giữ tỉ lệ gốc */
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Neon blinking effect cho subtitle khi hover */
.gallery-subtitle {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #00eaff;
  text-shadow: 0 0 6px #00ffffaa, 0 0 12px #ff00ff88;
  background: rgba(0, 0, 0, 0.55);
  transition: bottom 0.3s ease, background 0.3s ease;
  line-height: 1.2rem;
}

/* Khi hover, bật animation neon blink */
.gallery-card:hover .gallery-subtitle {
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  animation: neonBlink 3s infinite alternate;
}

@keyframes neonBlink {
  0% {
    color: #00eaff;
    text-shadow: 0 0 8px #00ffff, 0 0 20px #00ffffaa, 0 0 25px #ff00ff44;
  }
  50% {
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff, 0 0 20px #ff00ffaa, 0 0 25px #00ffff44;
  }
  100% {
    color: #00eaff;
    text-shadow: 0 0 8px #00ffff, 0 0 20px #00ffffaa, 0 0 25px #ff00ff44;
  }
}


/* Optional glow effect for cards on hover */
.gallery-card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.9), 0 0 35px rgba(255,0,255,0.25);
  transform: scale(1.03);
}


/* Footer style */
#explore-sections footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 70px; /* chừa chỗ cho footer cố định */
}

footer {
  position: fixed;
  bottom: 15px;
  left: 25px;
  z-index: 5;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: #d4faff;
  background: rgba(15, 15, 25, 0.55);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(180, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0,255,255,0.12), 0 0 50px rgba(255,0,255,0.1);
  text-shadow: 0 0 6px #00eaff, 0 0 12px #ff00ff;
  opacity: 0.9;
  transition: all 0.3s ease;
}

footer:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0,255,255,0.3), 0 0 60px rgba(255,0,255,0.25);
  opacity: 1;
}

footer span {
  color: #8dfcff;
  font-weight: 500;
}


/* Quote fade + slide */
.fade-slide {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 1s forwards;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
    text-shadow: 0 0 4px #00eaff55;
  }
  50% {
    text-shadow: 0 0 12px #00eaffaa, 0 0 18px #ff00ff88;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 6px #00eaff77, 0 0 12px #ff00ff55;
  }
}


/* Typewriter effect */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(0,255,255,0.8);
  animation: blink-caret 0.8s step-end infinite;
  font-size: 1.1rem;
  color: #e5faff;
  text-shadow: 0 0 8px #00b3ff;
}

@keyframes blink-caret {
  50% { border-color: transparent; }
}

/* Fade + neon glow for navbar */
.navbar-quote, .intro-quote {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 1s forwards;
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(10px); text-shadow: 0 0 4px #00eaff55; }
  50% { text-shadow: 0 0 12px #00eaffaa, 0 0 18px #ff00ff88; }
  100% { opacity: 1; transform: translateY(0); text-shadow: 0 0 6px #00eaff77, 0 0 12px #ff00ff55; }
}
