/* ==================================================================
   D12 DESIGN - STYLE SPEC (FULL COMPONENT DEPLOYMENT)
================================================================== */

:root {
    --primary-color: #111111;
    --accent-color: #c5a880;
    --text-color: #333333;
    --text-muted: #666666;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.65;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img { display: block; max-width: 100%; height: auto; }

/* ---------------------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-smooth);
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo span { color: var(--accent-color); font-weight: 300; }

.header-scrolled .logo { color: var(--primary-color); }

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 35px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
}

.header-scrolled .nav-menu a { color: var(--primary-color); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-color) !important; }

/* Nút kích hoạt kính lúp - Thẳng hàng và đồng bộ màu chữ */
.btn-search-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    margin-left: 35px;
    display: flex;
    align-items: center;
    padding: 5px;
    transition: var(--transition-fast);
}

.header-scrolled .btn-search-trigger { color: var(--primary-color); }
.btn-search-trigger:hover { color: var(--accent-color) !important; }

.icon-search { width: 18px; height: 18px; }

/* ---------------------------------------------------------------
   MODAL OVERLAY TÌM KIẾM TOÀN MÀN HÌNH (TẬP TRUNG)
--------------------------------------------------------------- */
/* ---------------------------------------------------------------
   MODAL OVERLAY TÌM KIẾM TOÀN MÀN HÌNH (CÓ ẢNH BÊN TRÁI)
--------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.92); /* Nền đen luxury phủ kín */
    z-index: 2000;
    display: flex;
    justify-content: center;
    padding-top: 12vh;
    
    /* Thuộc tính cốt lõi xử lý hiệu ứng chuyển động mượt mà khi tắt/mở */
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Thêm hiệu ứng trượt nhẹ từ trên xuống (TranslateY) cho phần nội dung nhập liệu */
.search-overlay-content {
    width: 90%;
    max-width: 750px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-search-close {
    position: absolute;
    top: 40px;
    right: 5%;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-search-close:hover { color: var(--white); }

.search-field-container {
    position: relative;
    margin-bottom: 40px;
}

.overlay-search-input {
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 28px;
    font-weight: 300;
    color: var(--white);
    padding: 15px 0;
    outline: none;
}

.search-underline {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.overlay-search-input:focus ~ .search-underline {
    background-color: var(--accent-color);
}

/* Cấu trúc danh sách kết quả */
.overlay-search-results {
    list-style: none;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Tùy biến thanh cuộn scrollbar cho tinh tế */
.overlay-search-results::-webkit-scrollbar {
    width: 3px;
}
.overlay-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.overlay-search-results li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Flexbox bọc liên kết kết quả: Ảnh + Chữ nằm ngang */
.overlay-res-link {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    gap: 20px; /* Khoảng cách giữa ảnh và chữ */
    transition: var(--transition-fast);
}

.overlay-res-link:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Định dạng khối ảnh bên trái */
.overlay-res-img {
    width: 80px;      /* Chiều rộng ảnh thumbnail */
    height: 55px;     /* Chiều cao ảnh thumbnail (tỉ lệ chữ nhật dẹt sang trọng) */
    overflow: hidden;
    flex-shrink: 0;   /* Chống bóp méo chiều rộng ảnh */
    background-color: #222;
}

.overlay-res-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ép ảnh đầy khung */
    transition: var(--transition-smooth);
}

.overlay-res-link:hover .overlay-res-img img {
    transform: scale(1.08); /* Phóng nhẹ ảnh bài viết khi hover dòng đó */
}

/* Định dạng khối chữ bên phải */
.overlay-res-info {
    flex-grow: 1;
}

.overlay-res-cate {
    display: block;
    font-size: 10px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    font-weight: 600;
}

.overlay-res-title {
    display: block;
    font-size: 15px;
    color: #cccccc;
    font-weight: 400;
    transition: var(--transition-fast);
}

.overlay-res-link:hover .overlay-res-title { 
    color: var(--white); 
}

.overlay-no-result {
    padding: 30px 10px;
    color: #666;
    font-size: 14px;
}

/* ---------------------------------------------------------------
   HERO BANNER
--------------------------------------------------------------- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000; /* Nền đen để lúc chuyển ảnh không bị vệt trắng */
}

.hero-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Hiệu ứng zoom nhẹ (Ken Burns) giúp slide trông nghệ thuật hơn */
    animation: luxuryZoom 20s infinite alternate ease-in-out; 
}

@keyframes luxuryZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* Các lớp hiệu ứng Transition tùy biến của Alpine cho ẢNH */
.slide-fade-enter { transition: opacity 1.2s ease-in-out; }
.slide-fade-enter-start { opacity: 0; }
.slide-fade-enter-end { opacity: 1; }
.slide-fade-leave { transition: opacity 1.2s ease-in-out; }
.slide-fade-leave-start { opacity: 1; }
.slide-fade-leave-end { opacity: 0; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.35));
    z-index: 1;
}

.hero-content {
    position: relative;
    color: var(--white);
    z-index: 2;
    max-width: 850px;
    padding: 0 24px;
    min-height: 250px; /* Giữ khung cố định tránh nhảy chiều cao khi đổi text */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Các lớp hiệu ứng Transition cho CHỮ (xuất hiện trễ hơn ảnh một chút) */
.content-fade-enter { transition: all 0.8s ease-out 0.3s; }
.content-fade-enter-start { opacity: 0; transform: translateY(15px); }

.hero-content h1 {
    font-size: 46px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2.5px;
    font-weight: 500;
    transition: var(--transition-smooth);
    margin-top: auto; /* Đẩy nút xuống dưới khối text */
    z-index: 3;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Hệ thống nút chấm tròn điều hướng */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.hero-dot.active, .hero-dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.3);
    width: 20px; /* Biến thành thanh ngang kén chọn tinh tế */
    border-radius: 4px;
}

/* Tối ưu responsive chữ trên màn hình nhỏ */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 30px; letter-spacing: 3px; }
    .hero-content p { font-size: 14px; }
    .hero-content { min-height: 300px; }
}

/* ---------------------------------------------------------------
   PORTFOLIO GRID
--------------------------------------------------------------- */
.portfolio { padding: 120px 0; background-color: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 60px; }

.section-title h2 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.section-title .line {
    width: 50px;
    height: 1.5px;
    background-color: var(--accent-color);
    margin: 18px auto 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    gap: 10px;
}

.filter-buttons button {
    background: none;
    border: none;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    color: #999999;
    transition: var(--transition-fast);
}

.filter-buttons button.active, .filter-buttons button:hover {
    color: var(--primary-color);
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 50px 30px;
}

.project-item { will-change: transform; }

.project-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #eaeaea;
}

.project-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img-wrapper img { transform: scale(1.06); }

.project-info {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-top: none;
}

.project-category {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-title {
    font-size: 19px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 14px;
    line-height: 1.4;
}

.project-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 400;
    text-align: justify;
}

/* ---------------------------------------------------------------
   PAGINATION
--------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    gap: 8px;
}

.pagination div { display: flex; align-items: center; }

.pagination a {
    color: var(--primary-color);
    text-decoration: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.pagination a:hover, .pagination a.active {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.pagination .page-arrow { font-size: 16px; background-color: var(--white); }
.pagination .page-dots { color: #999999; padding: 0 8px; font-size: 14px; }

/* ---------------------------------------------------------------
   6. CHÂN TRANG (GRID LAYOUT FOOTER SYSTEM)
--------------------------------------------------------------- */
footer {
    background-color: var(--primary-color);
    color: #999999;
    padding: 80px 0 0 0; /* Đẩy khoảng cách trên rộng rãi */
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Chia hệ thống lưới 3 cột bất đối xứng kiểu tạp chí kiến trúc */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
}

/* Cột thương hiệu */
.footer-logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}
.footer-logo span { color: var(--accent-color); font-weight: 300; }

.footer-brand-desc {
    font-size: 14.5px;
    line-height: 1.7;
    font-weight: 400;
    color: #777777;
    margin-bottom: 25px;
    max-width: 360px;
}

/* Khối biểu tượng mạng xã hội */
.footer-socials {
    display: flex;
    gap: 18px; /* Tăng khoảng cách giữa các icon cho thoáng */
    align-items: center;
}

.footer-socials a {
    color: #666666;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;  /* Tạo khung cố định */
    height: 22px; /* Tạo khung cố định */
}

/* Định kích thước đồng bộ cho tất cả các hình vẽ SVG */
.footer-socials a svg {
    width: 100%;
    height: 100%;
    display: block;
	object-fit: contain;
}

.footer-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Danh sách thông tin liên hệ */
.footer-contact-list, .footer-links-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    line-height: 1.5;
    font-weight: 300;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-list a, .footer-links-list a {
    color: #999999;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-list a:hover { color: var(--white); }

/* Danh sách liên kết nhanh */
.footer-links-list li {
    margin-bottom: 14px;
}

.footer-links-list a {
    position: relative;
    font-weight: 300;
}

.footer-links-list a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Giật nhẹ chữ sang phải khi hover */
}

/* Thanh thông tin đáy cùng */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: #555555;
}

/* ---------------------------------------------------------------
   CẬP NHẬT RESPONSIVE FOOTER CHO MOBILE (MỤC 7 CỦA CSS)
--------------------------------------------------------------- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Bóp từ 3 cột ngang về 1 hàng dọc trên Mobile */
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand-desc {
        margin: 0 auto 25px;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ---------------------------------------------------------------
   RESPONSIVE DESIGN & MOBILE MENU
--------------------------------------------------------------- */

/* Mặc định trên Desktop: Ẩn hoàn toàn toàn bộ khối điều hướng mobile */
.mobile-navigation-wrapper {
    display: none !important;
}

/* ---------------------------------------------------------------
   KHI VÀO MÀN HÌNH TABLET / MOBILE (MAX-WIDTH: 768px)
--------------------------------------------------------------- */

.menu-toggle { display: none; }

@media (max-width: 992px) {
    .hero-content h1 { font-size: 36px; letter-spacing: 4px; }
    .portfolio { padding: 80px 0; }
}

@media (max-width: 768px) {
    header { padding: 20px 0; background-color: var(--primary-color); }
    .header-scrolled { padding: 15px 0; background-color: var(--primary-color); }
    .logo { color: var(--white); }
    
    .nav-menu { display: none !important; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1200;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--white);
        transition: var(--transition-smooth);
    }

    .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--primary-color); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--primary-color); }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1050;
    }

    .mobile-menu-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background-color: var(--white);
        z-index: 1100;
        box-shadow: -5px 0 30px rgba(0,0,0,0.05);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        padding-top: 90px;
    }

    .mobile-menu-panel.open { right: 0; }
    .mobile-menu-body { padding: 0 24px; }

    .mobile-nav-links { display: flex; flex-direction: column; }

    .mobile-nav-links a {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 2px;
        padding: 14px 0;
        border-bottom: 1px solid #f5f5f5;
        transition: var(--transition-fast);
    }

    .mobile-nav-links a.active, .mobile-nav-links a:hover { color: var(--accent-color); padding-left: 5px; }

    .project-grid { grid-template-columns: 1fr; gap: 40px; }
    .filter-buttons { flex-wrap: wrap; gap: 5px; margin-bottom: 40px; }
    .footer-container { flex-direction: column; text-align: center; }
	
	/* Kích hoạt hiển thị wrapper trên thiết bị di động */
    .mobile-navigation-wrapper {
        display: block !important;
    }

    header { padding: 20px 0; background-color: var(--primary-color); }
    .header-scrolled { padding: 15px 0; background-color: var(--primary-color); }
    .logo { color: var(--white); }
    
    .nav-menu { display: none !important; }

    /* Nút Hamburger */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1200;
    }
}

/* ==================================================================
   ARCHITECTURE STYLE CORES (ABOUT & TEAM SECTIONS)
================================================================== */

.architecture-section {
    padding: 120px 0;
    background-color: var(--white);
    color: var(--primary-color);
}

.border-top-divider {
    border-top: 1px solid #f0f0f0;
}

.custom-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Lưới chia cột bất đối xứng 4-8 */
.architecture-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 1024px) {
    .architecture-grid {
        grid-template-columns: 4fr 8fr;
        gap: 80px;
    }
}

/* Cột trái - Tiêu đề Sticky chạy dọc màn hình */
.sticky-title {
    position: relative;
}

@media (min-width: 1024px) {
    .sticky-title {
        position: -webkit-sticky;
        position: sticky;
        top: 120px;
        align-self: start;
    }
}

.section-number {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999999;
    margin-bottom: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* CHUYỂN SANG FONT LORA - FIX LỖI CHỮ NGHIÊNG TIẾNG VIỆT */
.arch-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--primary-color);
}

/* Tối ưu riêng cho chữ uốn lượn có dấu */
.arch-title .italic-text {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    /* Thêm một chút khoảng cách tracking nhỏ để các dấu chữ nghiêng đứng thoáng hơn */
    letter-spacing: 0.2px; 
}

.team-summary {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-top: 25px;
    max-width: 300px;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* Cột phải - Nội dung text & chỉ số */
.text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #222222;
    text-align: justify;
    font-family: 'Inter', sans-serif;
}

.sub-text {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
    font-family: 'Inter', sans-serif;
}

/* Lưới hiển thị các con số thống kê */
.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid #f0f0f0;
}

.stat-num {
    display: block;
    font-size: 34px;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Lora', Georgia, serif;
}

.stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a0a0a0;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

/* Lưới hiển thị danh sách thành viên */
.team-members-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px 30px;
}

@media (min-width: 576px) {
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.member-group-card {
    cursor: pointer;
}

.member-img-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--light-bg);
    margin-bottom: 20px;
}

.member-photo-grayscale {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    will-change: filter, transform;
    transition: filter 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.member-group-card:hover .member-photo-grayscale {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.member-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    border-b: 1px solid #f5f5f5;
    gap: 15px;
}

.member-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.member-role {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999999;
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

/* Tối ưu responsive */
@media (max-width: 768px) {
    .architecture-section {
        padding: 80px 0;
    }
    .arch-title {
        font-size: 32px;
    }
    .stats-counter-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .member-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .member-role {
        text-align: left;
    }
}








/* ==========================================================
   CONTACT FORM
========================================================== */

#contact .architecture-grid{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:80px;
}

#contact .text-content form{
    width:100%;
}

#contact .form-row{
    display:flex;
    gap:24px;
    margin-bottom:24px;
}

#contact .form-group{
    flex:1;
    display:flex;
    flex-direction:column;
    margin-bottom:24px;
}

#contact .form-group label{
    font-size:13px;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#666;
    margin-bottom:10px;
}

#contact .form-group input,
#contact .form-group textarea{
    width:100%;
    padding:14px 16px;
    border:1px solid #ddd;
    background:#fff;
    font-size:15px;
    outline:none;
    transition:.25s;
}

#contact .form-group textarea{
    min-height:180px;
    resize:vertical;
}

#contact .form-group input:focus,
#contact .form-group textarea:focus{
    border-color:var(--accent-color);
}

#contact .form-group small{
    display:block;
    margin-top:10px;
    color:#888;
    font-size:13px;
}


/* ==========================================================
   BUTTON
========================================================== */

#contact .btn-submit{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 36px;

    border:none;
    background:var(--accent-color);
    color:#fff;

    font-size:14px;
    letter-spacing:2px;
    text-transform:uppercase;

    cursor:pointer;
    transition:.3s;
}

#contact .btn-submit:hover{
    opacity:.9;
    transform:translateY(-2px);
}


/* ==========================================================
   IMAGE UPLOAD
========================================================== */

#contact .upload-preview{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
    gap:18px;
    margin:15px 0 20px;
}

#contact .preview-item{
    position:relative;
    aspect-ratio:1;
    overflow:hidden;
    border:1px solid #ddd;
    background:#fafafa;
}

#contact .preview-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.3s;
}

#contact .preview-item:hover img{
    transform:scale(1.05);
}

#contact .preview-remove{
    position:absolute;
    top:8px;
    right:8px;

    width:28px;
    height:28px;

    border:none;
    border-radius:50%;

    background:rgba(0,0,0,.7);
    color:#fff;

    font-size:18px;
    line-height:28px;

    cursor:pointer;
    opacity:0;
    transition:.25s;
}

#contact .preview-item:hover .preview-remove{
    opacity:1;
}

#contact .preview-remove:hover{
    background:#d62828;
}


/* ==========================================================
   ADD IMAGE BUTTON
========================================================== */

#contact #uploadButtons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

#contact .upload-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:180px;
    height:48px;

    border:1px dashed #bbb;
    background:#fafafa;

    color:#555;
    font-size:14px;

    cursor:pointer;
    transition:.25s;
}

#contact .upload-btn:hover{
    border-color:var(--accent-color);
    color:var(--accent-color);
}

#contact .upload-btn input{
    display:none;
}


/* ==========================================================
   ALERT
========================================================== */

#contact .alert-success{
    margin-bottom:30px;
    padding:15px 20px;

    border-left:4px solid #4caf50;
    background:#eef9ef;

    color:#2b6b2f;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:991px){

    #contact .architecture-grid{
        grid-template-columns:1fr;
        gap:50px;
    }

}

@media (max-width:768px){

    #contact .form-row{
        flex-direction:column;
        gap:0;
    }

    #contact .upload-preview{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:480px){

    #contact .upload-preview{
        grid-template-columns:1fr;
    }

    #contact .btn-submit{
        width:100%;
    }

}

#contact .preview-info{
    position:absolute;
    left:0;
    right:0;
    bottom:0;

    padding:8px 10px;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.75)
    );

    color:#fff;
}

#contact .preview-name{
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

#contact .preview-size{
    margin-top:3px;
    font-size:11px;
    opacity:.85;
}