/* ==========================================================================
   HỆ THỐNG CSS TOÀN DIỆN - PHONG CÁCH TỐI GIẢN LAC FILM (2026)
   ========================================================================== */

/* --- 1. THIẾT LẬP NỀN TẢNG (RESET & FONTS) --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Khung bọc nội dung chính của toàn bộ các trang con */
main {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
    min-height: calc(100vh - 200px);
}

/* --- 2. HEADER & THANH ĐIỀU HƯỚNG CHÍNH --- */
header {
    width: 100%;
    text-align: center;
    padding: 30px 20px 10px 20px;
}

/* Khối Menu 5 mục như trong ảnh mẫu */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.main-nav a {
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    color: #1a1a1a;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover, 
.main-nav a.active {
    color: #777;
}

/* ==========================================================================
   FIX TRIỆT ĐỂ LỖI TRÀN VIỀN VÀ CĂN GIỮA DÀNH RIÊNG CHO TRANG CHỦ
   ========================================================================== */

/* Ép khung bao bọc trang chủ luôn chiếm 100% không gian và căn giữa tuyệt đối */
.lac-home-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* Loại bỏ khoảng trống thừa nếu thẻ main bọc ngoài có padding */
    margin: 0 auto !important; 
    padding: 0 !important;
}

/* Đảm bảo khối chữ căn giữa chuẩn trục, bóp bề ngang đúng tỷ lệ ảnh mẫu */
.lac-hero-section {
    width: 100% !important;
    max-width: 850px !important;
    text-align: center !important;
    margin: 40px auto 60px auto !important; /* Đẩy khoảng cách trên dưới cân đối */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.lac-intro-text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* SỬA LỖI DẢI ẢNH: Ép dải 6 ảnh phá vỡ bo góc/padding của thẻ <main> bọc ngoài */
.lac-image-strip {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* Chia chuẩn 6 cột nằm ngang */
    gap: 0px !important; /* Triệt tiêu hoàn toàn vạch trắng giữa các ảnh */
    width: 100vw !important; /* Ép độ rộng bằng bằng đúng 100% chiều rộng màn hình */
    
    /* Thuật toán dịch tâm nâng cao: Đẩy dải ảnh tràn qua khỏi khung giới hạn của <main> */
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    
    margin-top: auto !important; /* Luôn bám chặt vào đáy màn hình sát trên footer */
    padding: 0 !important;
}

.lac-strip-item {
    width: 100% !important;
    aspect-ratio: 16/10 !important; /* Tỉ lệ khung hình dẹt mượt mà điện ảnh */
    overflow: hidden !important;
}

.lac-strip-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Giữ ảnh không bị bóp méo hình */
    display: block !important;
}

/* Khử hoàn toàn khoảng trống thừa nhỏ xíu dưới đáy ảnh do trình duyệt tự sinh */
.lac-image-strip, .lac-strip-item, .lac-strip-item img {
    vertical-align: bottom;
}

/* --- 4. GIAO DIỆN DANH MỤC VIDEO (WEDDING FILMS) --- */
.portfolio-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Lưới 3 cột chuẩn ảnh mẫu Portfolio */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 24px;
    width: 100%;
    padding-bottom: 60px;
}

.video-card {
    width: 100%;
    cursor: pointer;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    overflow: hidden;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Biểu tượng Play tam giác tinh tế ở chính giữa khi hover chuột */
.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 45px; height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
}

.play-overlay svg {
    width: 16px; height: 16px;
    margin-left: 2px;
}

/* Hover hiệu ứng Card */
.video-card:hover .thumbnail-wrapper img {
    opacity: 0.85;
    transform: scale(1.02);
}

.video-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Tiêu đề chữ viết hoa, nhỏ, căn giữa dưới mỗi video */
.video-title {
    font-size: 0.8rem;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 14px;
    line-height: 1.4;
}

/* --- 5. GIAO DIỆN TRANG LIÊN HỆ (CONTACT US) --- */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 60px;
}

.contact-intro {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
}

.contact-info-details {
    font-size: 0.85rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* Form thiết kế viền mỏng mảnh đơn giản */
.contact-form {
    width: 100%;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.form-group label span {
    color: #c0392b;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #000;
}

.form-sub-label {
    font-size: 0.65rem;
    color: #777;
    margin-top: 4px;
}

/* Nút Submit vuông vắn, xám nhạt như mẫu */
.btn-submit {
    background: #eeeeee;
    color: #000000;
    border: none;
    padding: 12px 30px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #e0e0e0;
}

/* --- 6. POPUP XEM VIDEO (LIGHTBOX IFRAME YOUTUBE) --- */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.98); /* Nền trắng tối giản cực sang */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9999;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 1150px;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.close-btn {
    position: absolute;
    top: -35px; right: 0;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   CẤU HÌNH KHỐI GIỚI THIỆU FILMMAKER - TONE NÂU TỐI SANG TRỌNG
   ========================================================================== */

.intro-filmmaker-container {
    background-color: #1a1512; /* Màu nền nâu tối, sâu mượt chuẩn cinematic */
    padding: 60px 20px;        /* Tạo khoảng trống trên dưới thông thoáng */
    text-align: center;        /* Căn giữa toàn bộ nội dung con bên trong */
    width: 100%;
    max-width: 800px;          /* Giới hạn bề ngang để dòng chữ không bị quá dài */
    margin: 40px auto;         /* Căn giữa toàn bộ khối này so với trang web */
    border-radius: 4px;        /* Bo góc cực nhẹ tạo độ tinh tế */
}

/* Chữ "Filmmaker" màu vàng nâu, to, nghệ thuật */
.filmmaker-heading {
    font-family: 'Playfair Display', serif; /* Font chữ có chân nghệ thuật */
    font-size: 3.2rem;          /* Kích thước chữ to tạo điểm nhấn mạnh */
    color: #c49a6c;             /* Màu vàng nâu (Gold/Bronze) sang trọng */
    font-weight: 400;
    letter-spacing: 2px;        /* Giãn cách chữ nhẹ nhàng */
    text-transform: uppercase;  /* Viết hoa thanh lịch */
    margin-bottom: 20px;        /* Khoảng cách với đoạn văn bên dưới */
}

/* Nội dung văn bản bên dưới chữ trắng */
.filmmaker-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;             /* Ép chữ màu trắng tinh khiết nổi bật trên nền tối */
    font-weight: 300;           /* Nét chữ thanh mảnh tối giản */
    line-height: 1.8;           /* Khoảng cách giữa các dòng thoáng, dễ đọc */
    max-width: 600px;           /* Khung chữ gọn gàng */
    margin: 0 auto;             /* Căn giữa đoạn văn */
}

/* Hỗ trợ hiển thị đẹp trên điện thoại di động */
@media (max-width: 768px) {
    .filmmaker-heading {
        font-size: 2.4rem;      /* Tự động thu nhỏ chữ tiêu đề trên mobile */
    }
    .filmmaker-desc {
        font-size: 0.9rem;
    }
}
