:root {
  --primary: #c92a2a; /* Màu đỏ trầm hơn để nổi trên nền trắng */
  --accent: #f8f9fa; /* Màu nền phụ (xám rất nhạt) */
  --bg-body: #ffffff; /* Nền trắng tinh */
  --card-bg: #ffffff; /* Nền thẻ trắng */
  --text-heading: #111; /* Màu tiêu đề đen */
  --text-body: #444; /* Màu chữ nội dung xám đen */
  --font-main: "Segoe UI", sans-serif;
  --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.08); /* Đổ bóng nhẹ */
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: 0.3s;
  color: inherit;
}
ul {
  list-style: none;
}

/* --- HEADER & LOGO --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95); /* Kính mờ màu trắng */
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Viền mờ */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading); /* Chữ logo màu đen */
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.nav-menu a {
  margin-left: 30px;
  font-size: 0.95rem;
  color: var(--text-heading); /* Menu màu đen */
  font-weight: 600;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

/* --- HERO SECTION (Banner chính) --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* Ảnh nền vẫn tối để chữ trắng nổi bật */
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2)),
    url("https://picsum.photos/1920/1080?random=music_stage");
  background-size: cover;
  background-position: center;
  padding: 0 10%;
  color: #fff; /* Chữ trên banner giữ màu trắng */
}

.hero-content {
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: #ff6b6b; /* Đỏ sáng trên nền tối */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f1f1f1;
  font-weight: 500;
}

.btn {
  padding: 12px 35px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(201, 42, 42, 0.4);
}
.btn:hover {
  transform: translateY(-3px);
  background: #a61e1e;
}

/* --- CHUNG CHO CÁC SECTION --- */
section {
  padding: 80px 10%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-heading);
  margin-bottom: 10px;
  font-weight: 700;
}
.section-header .divider {
  height: 4px;
  width: 60px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* --- INTRO SECTION --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.intro-img img {
  width: 100%;
  border-radius: 20px;
  /* Đổ bóng dạng khối màu xám nhạt */
  box-shadow: 20px 20px 0px var(--accent);
}

/* --- FEATURES/ACTIVITIES (Nền xám nhạt) --- */
#activities {
  background-color: var(--accent); /* Nền xám nhạt */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  transition: 0.3s;
  border: 1px solid #eee; /* Viền mờ thay vì border tối */
  box-shadow: var(--shadow-card);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: inline-block;
  background: #fff5f5; /* Nền đỏ rất nhạt sau icon */
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
}

.feature-card h3 {
  color: var(--text-heading);
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 700;
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Item đầu tiên to hơn */
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 50px 20px;
  background: #212529; /* Giữ footer tối màu cho chuyên nghiệp */
  color: #ccc;
  font-size: 0.95rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item {
    height: 300px;
  } /* Chiều cao cố định cho ảnh mobile */
  .nav-menu {
    display: none;
  }
}
/* Hiệu ứng kính mờ cho Header giống Azure */
header {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(209, 213, 219, 0.3);
}

/* Hiệu ứng hiện dần khi cuộn (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Card theo phong cách Azure (Viền mỏng, bóng đổ sâu) */
.feature-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease !important;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* Hiệu ứng Gradient cho Hero giống Azure */
.hero-content h1 span {
  background: linear-gradient(90deg, #c92a2a, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Style cho nút chuyển đổi */
.mode-toggle {
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.2rem;
    margin-left: 15px;
}

.mode-toggle:hover {
    transform: scale(1.1);
    background: #e9ecef;
}

/* --- ĐỊNH NGHĨA BLACK MODE --- */
body.dark-mode {
    --bg-body: #0a0a0a;      /* Nền đen sâu */
    --card-bg: #161616;     /* Nền card xám cực tối */
    --accent: #1f1f1f;      /* Màu nền phụ cho section */
    --text-heading: #ffffff; /* Chữ tiêu đề trắng */
    --text-body: #b0b0b0;    /* Chữ nội dung xám nhạt */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tùy chỉnh thêm cho Dark Mode */
body.dark-mode header {
    background: rgba(10, 10, 10, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .feature-card {
    border: 1px solid #222;
}

body.dark-mode .nav-menu a {
    color: #fff;
}

/* Hiệu ứng chuyển màu mượt mà cho toàn bộ trang */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}
.logo-img {
    height: 60px;          /* Tăng kích thước một chút cho rõ viền */
    width: 60px;           /* Bắt buộc Width = Height để tạo hình tròn */
    border-radius: 50%;    /* Biến khung thành hình tròn */
    object-fit: cover;     /* Giúp ảnh không bị méo khi ép về hình vuông */
    border: 2px solid var(--primary); /* Viền màu đỏ trầm theo theme */
    padding: 3px;          /* Tạo khoảng trắng nhỏ giữa ảnh và viền (tùy chọn) */
    background-color: #fff; /* Đảm bảo nền trắng nếu logo có phần trong suốt */
    transition: transform 0.3s ease; /* Hiệu ứng mượt mà */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ cho chuyên nghiệp */
}

/* Hiệu ứng khi di chuột vào logo (giống Azure) */
.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #ff6b6b; /* Đổi màu viền sáng hơn khi hover */
}
/* Overlay che toàn màn hình */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none; /* Mặc định ẩn */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Hộp thoại chính */
.popup-box {
    background: var(--card-bg);
    color: var(--text-body);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: popupFadeIn 0.5s ease;
}

.popup-header h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.drive-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #28a745; /* Màu xanh Drive */
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.popup-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 15px;
}

.popup-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}

@keyframes popupFadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}