/* ============================================================
   VARIABLE & FONTS (Đồng bộ với trang chủ)
   ============================================================ */
:root {
    --bg-main: #f8fafc;        /* Nền trắng xanh cực nhẹ */
    --accent-blue: #00adef;    /* Màu xanh Brand */
    --accent-purple: #a855f7;  /* Màu tím nhấn cho chất nghệ thuật */
    --text-main: #1e293b;      /* Xanh đen đậm */
    --text-muted: #64748b;     /* Xám xanh */
    --font-heading: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 173, 239, 0.08);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- BACKGROUND BLOBS (Làm nhạt lại cho thanh thoát) --- */
.blobs {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: 0.2; animation: floatBlob 20s infinite alternate;
}
.blob-1 { width: 600px; height: 600px; background: var(--accent-blue); top: -10%; left: -10%; }
.blob-2 { width: 500px; height: 500px; background: var(--accent-purple); bottom: -10%; right: -10%; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

/* ============================================================
   HERO SECTION (Kích thước to, hiện đại)
   ============================================================ */
header {
    height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 0 20px; position: relative;
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 600; letter-spacing: 5px;
    color: var(--accent-blue); text-transform: uppercase;
    font-size: 0.9rem; margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800; line-height: 1;
    color: var(--text-main); margin-bottom: 20px;
}

h1 i {
    font-style: normal; color: var(--accent-blue);
    -webkit-text-stroke: 1.5px var(--accent-blue);
    -webkit-text-fill-color: transparent;
}

/* --- HERO IMAGES --- */
.hero-image-left, .hero-image-right {
    position: absolute; bottom: 0; object-fit: contain;
    z-index: 5; opacity: 0; transition: 1s;
}
.hero-image-left { left: 0; max-height: 85vh; animation: slideInLeft 1.5s forwards 0.5s; }
.hero-image-right { right: 0; max-height: 70vh; animation: slideInRight 1.5s forwards 0.8s; }

@keyframes slideInLeft { from { opacity: 0; transform: translateX(-100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   VIDEO GALLERY (Sáng, đổ bóng mịn)
   ============================================================ */
section { padding: 100px 0; }

.section-header {
    font-family: var(--font-heading);
    font-size: 2.5rem; font-weight: 800;
    text-align: center; color: var(--text-main);
    margin-bottom: 4rem; position: relative;
}

.section-header::after {
    content: ''; position: absolute; bottom: -15px; left: 50%;
    width: 60px; height: 5px; background: var(--accent-blue);
    border-radius: 10px; transform: translateX(-50%);
}

.video-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; padding: 0 50px;
}

.video-card {
    background: #fff; padding: 12px; border-radius: 24px;
    border: 1px solid rgba(0, 173, 239, 0.1);
    box-shadow: var(--card-shadow); transition: 0.4s;
}

.video-card:hover {
    transform: translateY(-15px); border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 173, 239, 0.15);
}

/* --- TRẠNG THÁI TRONG GRID (BÌNH THƯỜNG) --- */
.video-frame {
    width: 100%;
    aspect-ratio: 9/16; /* Ép khung luôn là 9:16 */
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    /* Bình thường dùng 'cover' để zoom cho đầy khung 9:16 */
    object-fit: cover; 
    transition: all 0.3s ease;
}

/* --- TRẠNG THÁI KHI BẤM PHÓNG TO (FULLSCREEN) --- */
/* Khi bạn bấm vào nút phóng to mà bạn đã khoanh tròn trong ảnh, 
   CSS này sẽ kích hoạt để trả lại tỷ lệ gốc */

video:fullscreen {
    object-fit: contain !important; /* Hiển thị toàn bộ nội dung gốc */
    background-color: #000; /* Thêm nền đen cho phần thừa */
}

/* Hỗ trợ cho các trình duyệt khác nhau (Safari, Chrome cũ...) */
video::-webkit-full-screen {
    object-fit: contain !important;
}
video:-webkit-full-screen {
    object-fit: contain !important;
}
video:-ms-fullscreen {
    object-fit: contain !important;
}

/* --- KHOẢNG CÁCH NÚT COLLECT --- */
/* --- KHOẢNG CÁCH NÚT COLLECT --- */
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Tăng margin-top để nút cách xa video hơn */
    margin-top: 35px; 
    padding: 0 10px;
}

.dl-btn {
    text-decoration: none;
    font-family: var(--font-heading);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.dl-btn:hover {
    border-bottom-color: var(--accent-blue);
    opacity: 0.8;
}

/* ============================================================
   TIMELINE (CHỈNH SỬA: KHÔNG CÒN BỊ ĐEN)
   ============================================================ */
.timeline-section {
    background: linear-gradient(to bottom, var(--bg-main), #ffffff); /* Chuyển từ xám sang trắng */
    padding-top: 100px;
}

.timeline {
    max-width: 900px; margin: 0 auto; position: relative;
}

.line-center {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: rgba(0, 173, 239, 0.2); /* Đường kẻ xanh nhạt tinh tế */
}

.t-entry {
    width: 50%; padding: 0 40px; margin-bottom: 60px; position: relative;
    opacity: 0; transform: translateY(30px); transition: 1s;
}

.t-entry.revealed { opacity: 1; transform: translateY(0); }

.t-year {
    font-family: var(--font-heading); font-size: 1.5rem;
    font-weight: 800; color: var(--accent-blue); display: block;
}

.t-title {
    font-family: var(--font-heading); font-size: 1.1rem;
    font-weight: 700; color: var(--text-main); margin: 10px 0;
}

.t-desc { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   FOOTER (SẠCH SẼ, HIỆN ĐẠI)
   ============================================================ */
footer {
    text-align: center; padding: 80px 20px;
    background: #ffffff; border-top: 1px solid #edf2f7;
}

footer p { color: var(--text-muted); font-size: 0.9rem; }

/* MOBILE */
@media (max-width: 768px) {
    .hero-image-left, .hero-image-right { opacity: 0.2 !important; max-width: 50%; }
    .line-center { left: 20px; }
    .t-entry { width: 100%; text-align: left !important; padding-left: 50px; }
}
/* Responsive cho nút trên Mobile */
@media (max-width: 480px) {
    .dl-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
}

/* ============================================================
   2. CHỈNH TIMELINE XEN KẼ (ALTERNATING)
   ============================================================ */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.line-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 173, 239, 0.15);
}

.t-entry {
    width: 50%;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transition: all 1s ease;
}

/* Bên trái */
.t-entry:nth-child(odd) {
    padding-right: 60px;
    text-align: right;
    left: 0;
}

/* Bên phải */
.t-entry:nth-child(even) {
    padding-left: 60px;
    text-align: left;
    left: 50%;
}

/* Vòng tròn mốc thời gian */
.t-entry::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px #fff, 0 0 0 8px rgba(0, 173, 239, 0.1);
}

.t-entry:nth-child(odd)::before {
    right: -6px; /* Canh giữa đường line */
}

.t-entry:nth-child(even)::before {
    left: -6px; /* Canh giữa đường line */
}

/* Tối ưu Mobile cho Timeline (Chuyển về 1 cột) */
@media (max-width: 768px) {
    .line-center {
        left: 20px;
    }
    .t-entry {
        width: 100% !important;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 20px !important;
        text-align: left !important;
    }
    .t-entry::before {
        left: 14px !important;
    }
}

/* ============================================================
   3. NÂNG CẤP TEXT H1 (CÁ TÍNH HƠN)
   ============================================================ */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -1.5px; /* Chữ khít lại trông cá tính hơn */
    color: var(--text-main);
    margin-bottom: 30px;
    text-transform: none; /* Giữ chữ thường/hoa xen kẽ để bớt nặng nề */
}

h1 i {
    font-style: normal;
    color: var(--accent-blue);
    /* Hiệu ứng gạch chân mỏng dưới chữ rỗng */
    border-bottom: 4px solid rgba(0, 173, 239, 0.2);
    -webkit-text-stroke: 0; /* Bỏ text stroke nếu muốn đơn giản hơn */
    -webkit-text-fill-color: var(--accent-blue);
}

/* ===== MENU VARS (đổi màu tại đây) ===== */
:root{
  --header-height: 4.5rem;
  --brand-blue: #00adef;
  --text-dark: #1e293b;
  --text-gray: #64748b;
}

/* ===== HEADER ===== */
.main-header{
  width:100%;
  position:fixed;
  top:0;
  left:0;
  z-index:1000;
  background:transparent;
  transition:all .3s ease;
}

/* header khi scroll */
.main-header.scrolled{
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  height:4rem;
  box-shadow:0 2px 15px rgba(0,0,0,.05);
}

/* ===== NAV LAYOUT ===== */
.nav-container{
  max-width:100%;
  padding:0 3rem;
  height:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* ===== LOGO ===== */
.nav-logo{
  font-family:'Be Vietnam Pro', sans-serif;
  font-size:1.6rem;
  font-weight:800;
  color:var(--text-dark);
  text-decoration:none;
  letter-spacing:-.5px;
}
.brand-blue{ color:var(--brand-blue); }

/* ===== DESKTOP MENU ===== */
.nav-list{
  display:flex;
  column-gap:2.5rem;
  list-style:none;
}

.nav-link{
  font-family:'Inter', sans-serif;
  font-size:.9rem;
  font-weight:600;
  color:var(--text-gray);
  text-transform:uppercase;
  letter-spacing:.1em;
  text-decoration:none;
  position:relative;
  transition:.3s;
}

.nav-link:hover,
.active-link{ color:var(--brand-blue); }

.nav-link::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:0;
  width:0;
  height:2px;
  background-color:var(--brand-blue);
  transition:width .3s ease;
}
.nav-link:hover::after,
.active-link::after{ width:100%; }

/* ===== MOBILE: ẨN MENU MẶC ĐỊNH, CHỈ HIỆN HAMBURGER ===== */
@media screen and (max-width: 767px){
  .nav-container{ padding:0 1.5rem; }

  /* menu trượt từ trên xuống */
  .nav-menu{
    position:fixed;
    top:-110%;               /* ẩn khi chưa bấm */
    left:0;
    width:100%;
    background:#fff;         /* hoặc rgb(244,241,241) nếu bạn thích */
    padding:4rem 0;
    text-align:center;
    transition:.4s;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
  }

  .nav-list{
    flex-direction:column;
    row-gap:2rem;
  }

  .nav-toggle{
    display:block;
    font-size:1.5rem;
    color:var(--text-dark);
    cursor:pointer;
  }

  .nav-close{
    position:absolute;
    top:1rem;
    right:1.5rem;
    font-size:2rem;
    cursor:pointer;
  }

  /* class show-menu sẽ kéo menu xuống */
  .show-menu{ top:0 !important; }
}

/* ===== DESKTOP: GIỮ MENU NGANG, ẨN HAMBURGER ===== */
@media screen and (min-width: 768px){
  .nav-toggle,
  .nav-close{ display:none; }

  /* đảm bảo menu nằm bình thường trên desktop */
  .nav-menu{
    position:static;
    top:auto;
    left:auto;
    width:auto;
    padding:0;
    background:transparent;
    box-shadow:none;
  }
}

/* =========================
   DESKTOP: kéo logo trái, menu phải
   ========================= */
@media (min-width: 768px){
  /* cho thanh nav full width, không bị co giữa */
  .main-header .nav-container{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: clamp(20px, 4vw, 70px) !important;
    padding-right: clamp(20px, 4vw, 70px) !important;
    justify-content: space-between !important;
  }

  /* ép logo bám trái, menu bám phải */
  .main-header .nav-logo{
    margin-right: auto !important;
  }
  .main-header .nav-menu{
    margin-left: auto !important;
  }

  /* tránh list bị thụt vào */
  .main-header .nav-list{
    padding-left: 0 !important;
  }
}
