/* =====================================================
   FONT & RESET
   File CSS nằm trong thư mục CSS/, vì vậy đường dẫn ../
   sẽ quay về thư mục gốc của website.
===================================================== */
@font-face {
    font-family: "Avo";
    src:
        url("Fonts/UTM_Avo.ttf") format("truetype"),
        url("Fonts/UTM_Avo.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: auto;
}

@font-face {
    font-family: "God";
    src:
        url("Fonts/UTM_God_WordR.ttf") format("truetype"),
        url("Fonts/UTM_God_WordR.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: auto;
}

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: "Avo", sans-serif;
            background: rgb(255, 224, 122);
            color: #eee;
            line-height: 1.6;
            opacity: 0;
            transition: opacity .5s ease;
            overflow-x: hidden;
        }
        body.loaded { opacity: 1; }

        /* =====================================================
           NAVIGATION (LOGO & LIÊN HỆ)
        ===================================================== */
        nav {
            position: fixed; top: 0; width: 100%;
            background: rgba(0,0,0,.9);
            display: flex; justify-content: space-between; align-items: center;
            padding: 14px 8%; z-index: 1000;
        }
        .logo-link,
        .logo-link:link,
        .logo-link:visited,
        .logo-link:hover,
        .logo-link:active,
        .logo-link:focus {
            display: flex;
            align-items: center;
            gap: 12px;
            color: white !important;
            text-decoration: none !important;
        }
        .logo img { height: 40px; }
        .logo-text { font-family: "God"; letter-spacing: 2px; }
        
        .nav-menu { list-style: none; display: flex; gap: 28px; }
        .nav-menu a { color: white; text-decoration: none; font-size: 14px; transition: 0.3s; }
        .nav-menu a:hover { color: #b48a5a; }

        /* =====================================================
           STORY HERO (THU GỌN KHOẢNG TRỐNG)
        ===================================================== */
        .story-hero { position: relative; min-height: 80vh; overflow: hidden; }
        .story-bg{
            position: fixed;
            inset: 0;
            background-size: cover;
            background-position: center 80%;
            z-index: -1;}
        .story-content { padding: 45vh 20% 40px; }

        .story-content h1 {
            font-family: "God"; 
            font-size: 3rem; 
            margin-bottom: 20px; } 

        .project-slogan {
            font-family: "Avo";
            margin-top: -10px;
            margin-bottom: 22px;
            font-size: 1rem;
            font-weight: 650;   /* in đậm */
            font-style: italic;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #ffedd8;
            opacity: 1;
        }
       
        .story-text {
            max-width: 700px;
            background: rgba(0,0,0,.55);
            padding: 30px;
            backdrop-filter: blur(5px);
            border-left: 3px solid #b48a5a;
        }        
        .story-text p {
            line-height: 1.8;
            margin-bottom: 18px;
            text-indent: 1.6em;
        }

        .story-text p:last-child {
            margin-bottom: 0;
         }


.project-meta{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 25px 50px; /* thụt vào trong */
    font-size: 14px;
    font-style: italic;      /* in nghiêng nhẹ */
    color: rgba(255,255,255,0.75);}

.project-meta span{
    position: relative;
    padding-left: 14px;
}

.project-meta span::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #b48a5a;
    border-radius: 50%;
}

.project-meta strong{
    font-style: normal;
    letter-spacing: 0.5px;
    font-weight: normal;
    color: #b48a5a;
}
        /* =====================================================
           PROJECT SLIDER (10 HÌNH - 2 HÀNG X 5 CỘT)
        ===================================================== */
        .project-content {
            padding: 60px 5% 80px;
            background: rgba(15, 15, 15, 0.9);
            position: relative; z-index: 10;
            text-align: center;
        }

        .slider-wrapper {
            position: relative;
            max-width: 1400px;
            margin: 40px auto 0;
            display: flex;
            align-items: center;
        }

        .gallery-container {
            width: 100%;
            overflow: hidden;
            padding: 0 4px;
        }
        .gallery-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            will-change: transform;
        }

        .gallery-page {
            min-width: 100%;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 12px;
            padding: 0 6px;
        }

        .gallery-page img {
            width: 100%; aspect-ratio: 4 / 3;
            object-fit: cover; cursor: pointer;
            border-radius: 10px;
            transition: 0.3s;
        }
        .gallery-page img:hover { transform: scale(1.02); filter: brightness(1.1); }

        .nav-btn {
            background: none; border: none; color: #b48a5a;
            font-size: 50px; cursor: pointer; padding: 20px;
            transition: 0.3s; user-select: none;
        }
        .nav-btn:hover { color: white; }
        .nav-btn.disabled { opacity: 0.1; cursor: default; }

        /* =====================================================
           TRAO ĐỔI VỀ CÔNG TRÌNH (CONTACT FORM)
        ===================================================== */
        .project-contact { 
            padding: 80px 20%; 
            background: #0f0f0f; 
            text-align: center;
            position: relative; z-index: 10;
        }
        .project-contact h2 { font-family: "God"; margin-bottom: 40px; color: #b48a5a; }
        .project-contact input, .project-contact textarea {
            width: 100%; padding: 15px; margin-bottom: 15px;
            background: #1a1a1a; border: 1px solid #333; color: white; outline: none;
            font-family: "Avo";
        }
        .project-contact button {
            padding: 15px 60px; background: #b48a5a; border: none; 
            color: white; cursor: pointer; font-weight: bold;
            text-transform: uppercase; transition: 0.3s;
        }
        .project-contact button:hover { background: white; color: black; }

        /* =====================================================
           LIGHTBOX CÓ MŨI TÊN ĐIỀU HƯỚNG
        ===================================================== */
        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.98);
            display: none; z-index: 2000;
            justify-content: center; align-items: center;
        }
        .lightbox.active { display: flex; }
        
        .lightbox-content { position: relative; display: flex; align-items: center; width: 90%; height: 90%; justify-content: center; }
        .lightbox img { max-height: 90vh; max-width: 80vw; object-fit: contain; }

        .lb-arrow {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: none; border: none; color: white;
            font-size: 60px; cursor: pointer; padding: 20px;
            transition: 0.3s; opacity: 0.5; z-index: 2100;
        }
        .lb-arrow:hover { opacity: 1; color: #b48a5a; }
        .lb-prev { left: 0; }
        .lb-next { right: 0; }

        .lb-close {
            position: absolute; top: 20px; right: 30px;
            color: white; font-size: 40px; cursor: pointer; z-index: 2200;
        }

        /* =====================================================
           FOOTER (CĂN TRÁI + THÔNG TIN LIÊN HỆ)
        ===================================================== */
        footer{
    background: #0a0a0a;
    padding: 40px 8%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

/* LEFT */
.footer-left{
        display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-logo {
    font-family: "God", sans-serif;
    letter-spacing: 1px;
}

.footer-contact {
    font-family: "Avo", sans-serif;
    color: rgba(255, 210, 144, 0.85);
    text-decoration: none;
    font-size: 16px;
}
/* RIGHT – COLLAB */
.footer-collab{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
    white-space: nowrap;
    margin-bottom: 15px;
}

.footer-collab img{
    height: 22px;
    width: auto;
    opacity: 0.65;
    filter: grayscale(100%);
}

.footer-collab strong{
    font-weight: 500;
}

        .footer-logo-link,
        .footer-logo-link:link,
        .footer-logo-link:visited,
        .footer-logo-link:hover,
        .footer-logo-link:active,
        .footer-logo-link:focus {
            color: inherit !important;
            text-decoration: none !important;
        }

        /* FOOTER CONTACT */
.footer-contact{
    color: rgba(255, 210, 144, 0.85);
    text-decoration: none;
    font-size: 16px;
}

.footer-contact:hover{
    color: #b48a5a;      /* cùng tone thương hiệu */
    text-decoration: none;
}

.footer-contact:visited{
    color: rgba(255,255,255,0.85);
}

.footer-contact:active{
    color: #b48a5a;
}
    
        /* LIGHTBOX CONTENT */
.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
}

/* ẢNH KHÔNG VỠ */
#lightboxImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CAPTION */
.lb-caption {
    position: absolute;
    right: 30px;
    bottom: 120px;
    max-width: 280px;
    background: rgba(0,0,0,.55);
    padding: 16px 18px;
    border-left: 3px solid #b48a5a;
    backdrop-filter: blur(6px);
}

.lb-caption h4 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #b48a5a;
}

.lb-caption p {
    font-size: 13px;
    line-height: 1.6;
    opacity: .85;
}
/* ======================================================
   COLLABORATION LINE (DÒNG HỢP TÁC)
====================================================== */

   
.collaboration-line{
    text-decoration: none;   /* bỏ gạch chân */
    color: inherit;          /* lấy màu từ thằng cha (không bị xanh) */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

.collab-logo{
    height: 22px;
    opacity: 0.75;
    filter: grayscale(100%);
}

.collab-name{
    font-weight: 500;
}

.hero-collab{
    margin-top: -6px;
    margin-bottom: 18px;
}

.logo-stack{
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-collab{
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.55;
}


/* =====================================================
   LIÊN KẾT ĐỐI TÁC — GIỮ NGUYÊN MÀU CHỮ GỐC
   Phần này chỉ xử lý trạng thái link, không thay đổi layout.
===================================================== */
.partner-link,
.partner-link:link,
.partner-link:visited,
.partner-link:hover,
.partner-link:active,
.partner-link:focus {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration: none !important;
}

.partner-link *,
.partner-link:link *,
.partner-link:visited *,
.partner-link:hover *,
.partner-link:active *,
.partner-link:focus * {
    color: inherit !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration: none !important;
}

/* Ảnh chưa được JS nạp vẫn giữ đúng ô 4:3 của layout gốc. */
.gallery-page img:not([src]) {
    background: #1a1a1a;
}
