/* ==========================================================
   CSS RESET VÀ BIẾN MÀU (CSS VARIABLES)
   ========================================================== */
:root {
    /* Bảng màu chính (Palette hiện đại) */
    --primary-color: #1a1a1a;
    /* Đen xám cho text chính */
    --accent-color: #d32f2f;
    /* Đỏ Nhật Bản tạo điểm nhấn */
    --bg-light: #f7f7f8;
    /* Xám nhạt cho nền khối */
    --text-muted: #555555;
    /* Chữ phụ */

    /* Thiết lập Font chữ (Phong cách Casey Neistat) */
    --font-main: 'Courier Prime', 'Courier New', Courier, monospace;
    --font-heading: 'Courier Prime', 'Courier New', Courier, monospace;

    /* Hiệu ứng mượt mà */
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Áp dụng hộp mô hình border-box và cuộn mượt */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--primary-color);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
    /* Tránh thanh cuộn ngang rác */
}

/* ==========================================================
   TYPOGRAPHY (CẤU TRÚC CHỮ)
   ========================================================== */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================================
   LỚP TIỆN ÍCH (UTILITIES)
   ========================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ==========================================================
   NÚT BẤM (BUTTONS)
   ========================================================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    /* Góc bo tròn mạnh */
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-dark {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-dark:hover {
    background-color: var(--accent-color);
}

/* ==========================================================
   THANH ĐIỀU HƯỚNG (NAVBAR)
   ========================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.85);
    /* Trong suốt nhẹ */
    backdrop-filter: blur(12px);
    /* Hiệu ứng kính mờ glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.navbar nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

/* Hiệu ứng gạch dưới khi trỏ chuột vào Menu */
.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.navbar nav a:hover::after {
    width: 100%;
}

/* ==========================================================
   HIỆU ỨNG CUỘN ẢNH NÊN (PARALLAX)
   ========================================================== */
.parallax-bg {
    background-attachment: fixed;
    /* Đây là dòng tạo Parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==========================================================
   HERO SECTION (ẢNH TOÀN MÀN HÌNH ĐẦU TRANG)
   ========================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
}

/* Lớp phủ đen mù để chữ dễ đọc trên nền ảnh sáng */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: #e0e0e0;
}

/* ==========================================================
   VỀ TÔI (ABOUT GRID)
   ========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Chia 2 cột bằng nhau */
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: translateY(-8px);
}

/* ==========================================================
   BỘ SƯU TẬP (GALLERY TOKYO)
   ========================================================== */
.gallery-grid {
    display: grid;
    /* CSS Grid thần thánh tự đẩy ảnh nếu màn hình nhỏ lại */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    /* Giữ tỷ lệ khung hình đứng kiểu ảnh chụp Film */
    aspect-ratio: 4/5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cắt ảnh lấp đầy mà ko bị móp */
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    /* Phơi to ảnh ra */
}

/* ==========================================================
   PARALLAX DIVIDER (Trích Dẫn)
   ========================================================== */
.parallax-divider {
    padding: 10rem 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.divider-content {
    position: relative;
    z-index: 2;
}

.divider-content h2 {
    color: #fff;
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 400;
}

/* ==========================================================
   FOOTER (CHÂN TRANG)
   ========================================================== */
footer {
    background-color: var(--primary-color);
    color: #ababab;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* ==========================================================
   ANIMATIONS KHỞI ĐẦU CHẠM MÀN HÌNH (Keyframes)
   ========================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   RESPONSIVE CHO MÀN HÌNH DI ĐỘNG (MOBILE)
   ========================================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .navbar nav ul {
        margin-top: 1rem;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        /* Thành 1 cột trên điện thoại */
        gap: 2.5rem;
        text-align: center;
    }

    .section {
        padding: 4rem 0;
    }
}