﻿/* === ĐỊNH DẠNG CHUNG === */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #fdfcf9;
    overflow-x: hidden;
}

a, .text-link {
    color: #575454;
    text-decoration: none;
    background: transparent;
}

h1, h2, h3, .serif-font {
    font-family: 'Playfair Display', serif;
}

/* Màu chủ đạo */
:root {
    --primary-gold: #c5a059;
    --primary-red: #a80000;
    --dark-red: #800000;
    --light-cream: #faf5eb;
}

/* Tiêu đề các mục */
.section-title {
    color: #2c2c2c;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.title-underline {
    width: 70px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 12px auto;
}

/* === HIỆU ỨNG CUỘN (SCROLL REVEAL) === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* === HEADER & NAVIGATION === */
header {
    border-bottom: 2px solid #eaeaea;
}

.nav-pill-btn {
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #ccc;
    color: #555;
    transition: all 0.3s ease;
}

    .nav-pill-btn:hover, .nav-pill-btn.active {
        background-color: var(--primary-red);
        color: #fff;
        border-color: var(--primary-red);
    }

/* === HERO BANNER === */
.hero-banner {
    background: url('../img/dai-phun-nuoc-bg.webp') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.25;
    color: #a80000;
}

.glow-btn {
    background-color: var(--primary-red);
    border: none;
    transition: all 0.3s ease;
}

    .glow-btn:hover {
        background-color: var(--dark-red);
        box-shadow: 0 0 15px rgba(168, 0, 0, 0.6);
    }

/* === HỒ SƠ NĂNG LỰC === */
/* === ĐIỀU CHỈNH HỒ SƠ NHÂN SỰ TRÊN MOBILE === */
@media (max-width: 768px) {
    /* 1. Giải phóng chiều cao, cho phép tràn nội dung để slider hoạt động */
    .team-artistic-wrapper {
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 30px !important;
    }

        /* 2. ẨN TRIỆT ĐỂ lớp mờ và vùng chứa nút Xem Thêm trên Mobile */
        .team-artistic-wrapper .team-gradient-overlay,
        .team-artistic-wrapper .team-action-zone,
        .team-action-zone,
        .btn-artistic-toggle {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
        }

    /* 3. Cấu hình Slider chạy mượt mà */
    .team-hybrid-container {
        overflow: hidden !important; /* Chỉ ẩn phần tràn theo chiều ngang của slider */
        padding-top: 10px;
        width: 100%;
    }

    .team-hybrid-track {
        display: flex !important;
        flex-wrap: nowrap !important; /* Ép các thẻ nhân viên nằm trên một hàng ngang */
        gap: 10px;
        transition: transform 0.4s ease-in-out;
        will-change: transform;
    }

    .team-slide-item {
        flex: 0 0 calc(50% - 5px) !important; /* Hiện đúng 2 người trên màn hình mobile */
        width: calc(50% - 5px) !important;
    }
}
/* TỐI ƯU THẺ NHÂN SỰ TRÊN MOBILE */
@media (max-width: 768px) {
    .profile-circle {
        width: 100%;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
    }

    .profile-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .modern-profile-card .profile-nameplate {
        padding: 12px 8px;
        text-align: center;
    }

        .modern-profile-card .profile-nameplate .name {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .modern-profile-card .profile-nameplate .role {
            font-size: 0.8rem;
            margin-bottom: 0;
            line-height: 1.4;
        }

    .team-artistic-wrapper {
        max-height: none !important;
        overflow: hidden !important;
        padding-bottom: 20px;
    }

        .team-artistic-wrapper .team-gradient-overlay,
        .team-artistic-wrapper .team-action-zone {
            display: none !important;
        }
}

/* TỐI ƯU THẺ NHÂN SỰ TRÊN MOBILE (CHUẨN HIỆU ỨNG POP-OUT 3D) */
@media (max-width: 768px) {
    .modern-profile-card .profile-circle {
        overflow: visible !important;
        aspect-ratio: auto !important;
        display: flex;
        align-items: stretch;
        height: 10rem;
        position: relative;
    }

    .modern-profile-card .profile-img {
        width: auto !important;
        max-width: 100%;
        top: -6rem;
        height: 17rem !important;
        object-fit: contain;
        object-position: bottom center;
        position: relative;
        z-index: 2;
    }

    .modern-profile-card .profile-nameplate {
        padding: 15px 8px 12px 8px;
        text-align: center;
        position: relative;
        z-index: 5;
    }

        .modern-profile-card .profile-nameplate .name {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .modern-profile-card .profile-nameplate .role {
            font-size: 0.78rem;
            margin-bottom: 0;
            line-height: 1.4;
        }
    #teamSliderTrack {
        display: flex;
        transition: transform 0.4s ease;
        flex-wrap: nowrap; /* Giữ dạng slide ngang */
    }
}

/* Chế độ xem mở rộng (Grid) */
.team-artistic-wrapper.expanded .mobile-slider-controls {
    display: none !important;
}

.team-artistic-wrapper.expanded .team-slide-item {
    margin-bottom: 25px;
}

.team-artistic-wrapper.expanded .mobile-slider-controls {
    display: none !important;
}

.team-artistic-wrapper {
    position: relative;
    max-height: 20rem;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

    .team-artistic-wrapper .team-gradient-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 9rem;
        background: linear-gradient(to bottom, rgb(252 252 252 / 24%) 0%, rgba(252, 252, 252, 0.95) 60%, #ffffff 100%);
        pointer-events: none;
        z-index: 5;
        transition: opacity 0.4s ease;
    }

    .team-artistic-wrapper .team-action-zone {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: 100%;
        text-align: center;
    }

.btn-artistic-toggle {
    background: #ffffff;
    color: #222222;
    border: 1px solid #e5e5e5;
    padding: 11px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-artistic-toggle:hover {
        background: #a91111;
        color: #ffffff;
        border-color: #8b0000;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .btn-artistic-toggle .arrow-icon {
        display: inline-block;
        margin-left: 8px;
        transition: transform 0.4s ease;
    }

.team-artistic-wrapper.expanded {
    max-height: 2000px;
}

    .team-artistic-wrapper.expanded .team-gradient-overlay {
        opacity: 0;
    }

    .team-artistic-wrapper.expanded .team-action-zone {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 30px;
    }

    .team-artistic-wrapper.expanded .arrow-icon {
        transform: rotate(180deg);
    }

/* TIÊU ĐỀ NGOẶC VUÔNG (BRACKET TITLE) */
.bracket-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 30px 40px;
    text-align: left;
}

    .bracket-title-wrapper::before,
    .bracket-title-wrapper::after {
        content: '';
        position: absolute;
        width: 35px;
        height: 100%;
        border: 3px solid #8b0000;
        border-radius: 12px;
    }

    .bracket-title-wrapper::before {
        top: 0;
        left: 0;
        border-right: none;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .bracket-title-wrapper::after {
        top: 0;
        right: 0;
        border-left: none;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .bracket-title-wrapper .sub-title {
        font-size: 1.2rem;
        color: #8b0000;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .bracket-title-wrapper .main-title {
        font-size: 2.5rem;
        font-weight: 800;
        color: #222;
        line-height: 1.3;
        margin: 10px 0;
    }

    .bracket-title-wrapper .company-name {
        font-size: 1.1rem;
        color: #666;
        margin: 0;
        letter-spacing: 1px;
    }

/* CẤU TRÚC THẺ HÌNH TRÒN CẮT ĐÁY */
.modern-profile-card {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin-top: 60px;
    padding-bottom: 25px;
}

.profile-circle {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.2);
}

.boss-card .profile-circle {
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.profile-img {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 280px;
    object-fit: contain;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
}

.modern-profile-card:hover .profile-img {
    transform: translateX(-50%) scale(1.08);
}

/* BẢNG TÊN NỔI (FLOATING NAMEPLATE) */
.profile-nameplate {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    background: white;
    color: #8b0000;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #8b0000;
    z-index: 3;
    transition: all 0.3s ease;
}

.boss-card .profile-nameplate {
    background: linear-gradient(135deg, #440000 0%, #1a0000 100%);
    border-left: 4px solid #d4af37;
}

.modern-profile-card:hover .profile-nameplate {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
}

.profile-nameplate .name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.profile-nameplate .role {
    font-size: 0.85rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
}

.boss-card .profile-nameplate .name {
    color: #f1cc49;
}

/* NÚT XEM THÊM TONE ĐỎ */
.btn-red-loadmore {
    background: #8b0000 !important;
    color: white !important;
    border: none !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.25);
    transition: all 0.3s ease;
}

    .btn-red-loadmore:hover {
        background: #a80000 !important;
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(139, 0, 0, 0.35);
    }

/* ẨN/HIỆN MƯỢT MÀ BẰNG JS */
.hidden-staff {
    display: none !important;
}

.fade-in-staff {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .bracket-title-wrapper {
        padding: 20px 25px;
    }

        .bracket-title-wrapper .main-title {
            font-size: 1.8rem;
        }

    .profile-circle {
        width: 190px;
        height: 190px;
    }

    .profile-nameplate {
        width: 105%;
        padding: 12px 15px;
    }

        .profile-nameplate .name {
            font-size: 1rem;
        }

        .profile-nameplate .role {
            font-size: 0.75rem;
        }
}

/* GIAO DIỆN MÁY TÍNH (HIỆN LƯỚI 25 NGƯỜI NHỎ) */
@media (min-width: 769px) {
    .team-hybrid-container {
        overflow: visible !important;
    }

    .team-hybrid-track {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        transform: none !important;
    }

    .team-slide-item {
        margin-top: -6rem;
        width: calc(16% - 10px);
        margin-bottom: -20px;
    }

    .hover-pop-card {
        transform: scale(0.65);
        transform-origin: center bottom;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

        .hover-pop-card:hover {
            transform: scale(0.8);
            z-index: 999;
        }

    #mobileControls {
        display: none !important;
    }
}

/* GIAO DIỆN ĐIỆN THOẠI (CHẠY SLIDER 2 NGƯỜI) */
@media (max-width: 768px) {
    .team-hybrid-container {
        overflow: hidden;
        padding-top: 10px;
    }

    .team-hybrid-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        transition: transform 0.5s ease-in-out;
    }

    .team-slide-item {
        flex: 0 0 calc(50% - 5px);
        width: calc(50% - 5px);
    }

    .hover-pop-card {
        transform: scale(1);
        filter: none;
        margin-top: 30px;
    }

    .profile-circle {
        width: 150px;
        height: 150px;
    }

    .profile-img {
        height: 190px;
    }

    .profile-nameplate {
        width: 100%;
        padding: 10px 5px;
    }

        .profile-nameplate .name {
            font-size: 0.85rem;
        }

        .profile-nameplate .role {
            font-size: 0.65rem;
        }

    #mobileControls {
        display: flex !important;
    }

    .btn-slider-nav {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #8b0000;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .btn-slider-nav:disabled {
            background: #ccc;
        }
}

/* === VÌ SAO NÊN ĐẦU TƯ === */
.product-item.d-none-init {
    display: none !important;
}

.product-hidden, .portfolio-hidden {
    display: none;
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    will-change: transform, opacity;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.pre-render-active {
    display: block !important;
}

.show-smooth-active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* HIỆU ỨNG NÚT CTA ĐÃ ĐƯỢC TỐI ƯU & GỘP LẠI */
.btn-shake-cta {
    background-color: #8b0000 !important;
    border-color: #8b0000 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 45px;
    font-size: 1rem;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.25);
    transition: all 0.3s ease;
    animation: ctaShake 2.5s infinite ease-in-out;
    transform-origin: center;
}

    .btn-shake-cta:hover {
        background-color: #a00000 !important;
        color: white !important;
        box-shadow: 0 6px 20px rgba(139, 0, 0, 0.45);
        transform: scale(1.05) !important;
        animation-play-state: paused;
    }

@keyframes ctaShake {
    0%, 100% {
        transform: scale(1) translateY(0);
    }

    10% {
        transform: scale(1.04) translateY(-4px);
    }

    14% {
        transform: scale(1.04) rotate(-3deg) translateY(-4px);
    }

    18% {
        transform: scale(1.04) rotate(3deg) translateY(-4px);
    }

    22% {
        transform: scale(1.04) rotate(0deg) translateY(-4px);
    }

    28% {
        transform: scale(1) translateY(0);
    }
}

@keyframes dutDutLienTuc {
    0%, 100%, 30% {
        transform: translate(0, 0) rotate(0deg);
    }

    35% {
        transform: translate(-3px, 2px) rotate(-2deg);
    }

    40% {
        transform: translate(3px, -1px) rotate(2deg);
    }

    45% {
        transform: translate(-3px, -2px) rotate(-1deg);
    }

    50% {
        transform: translate(2px, 2px) rotate(2deg);
    }

    55% {
        transform: translate(-1px, -1px) rotate(-2deg);
    }

    60% {
        transform: translate(3px, 1px) rotate(1deg);
    }

    65% {
        transform: translate(-2px, 2px) rotate(-1deg);
    }

    70% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* NỀN VÀ KHỐI LUXURY */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
    opacity: 0.15;
    pointer-events: none;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 1.1923rem + 2.2436vw, 2.875rem);
    color: #000000;
    margin-bottom: 30px;
    position: relative;
}

    .section-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        background: #b8860b;
        margin: 20px auto;
    }

.luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.luxury-card {
    position: relative;
    background: white;
    padding: 30px 22px;
    border-radius: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 1;
}

.card-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(184, 134, 11, 0.2);
    transition: 0.5s;
    pointer-events: none;
}

.icon-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfaf5;
    border-radius: 50%;
    transition: 0.5s;
}

    .icon-box img {
        width: 50px;
        height: 50px;
        transition: 0.5s;
    }

.luxury-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0a192f;
}

.luxury-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify;
}

.luxury-card:hover {
    transform: translateY(-15px);
    background: #a80000;
}

    .luxury-card:hover h3 {
        color: #f3e2b3;
    }

    .luxury-card:hover p {
        color: #d1d1d1;
    }

    .luxury-card:hover .card-border {
        border-color: #b8860b;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        opacity: 1;
    }

    .luxury-card:hover .icon-box {
        background: #b8860b;
        transform: rotateY(360deg);
    }

        .luxury-card:hover .icon-box img {
            filter: brightness(0) invert(1);
        }

/* === SỰ KHÁC BIỆT (CNCSTONE) === */
.diff-icon-box {
    width: 60px;
    height: 60px;
    border: 1px dashed var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

    .diff-icon-box i {
        font-size: 1.5rem;
        color: var(--primary-gold);
    }

.diff-item:hover .diff-icon-box {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

    .diff-item:hover .diff-icon-box i {
        color: #fff;
    }

/* === BỘ SƯU TẬP SẢN PHẨM === */
.scroll-gallery {
    height: 750px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #ffffff;
}

    .scroll-gallery::-webkit-scrollbar {
        width: 6px;
    }

    .scroll-gallery::-webkit-scrollbar-thumb {
        background: #b8860b;
        border-radius: 10px;
    }

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

    .product-card:hover {
        border-color: #8b0000;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateY(-5px);
    }

/* GỘP CÁC LỚP SẢN PHẨM BỊ LẶP & GHI ĐÈ */
.img-wrapper {
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
}

.phone-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #8b0000;
    color: #fff;
    font-weight: bold;
    padding: 5px 0;
    font-size: 0.9rem;
}

.product-info {
    padding: 10px 5px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-btn {
    width: 100%;
    display: inline-block;
    border: 1px solid #8b0000;
    color: #8b0000;
    padding: 4px 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}

    .contact-btn:hover {
        background-color: #8b0000;
        color: #fff;
    }

@media (max-width: 576px) {
    .phone-badge {
        font-size: 0.7rem;
    }
}

/* === DỰ ÁN TIÊU BIỂU === */
.portfolio-item-wrapper.portfolio-hidden.pre-render-pf {
    display: block !important;
}

.portfolio-item-wrapper.portfolio-hidden.show-smooth-pf {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.btn-shake-portfolio {
    background-color: #800000 !important;
    border-color: #800000 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 13px 40px;
    font-size: 1rem;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.25);
    transition: all 0.2s ease;
    animation: portfolioDutDut 1.6s infinite ease-in-out;
    transform-origin: center;
}

    .btn-shake-portfolio:hover {
        background-color: #990000 !important;
        box-shadow: 0 6px 20px rgba(128, 0, 0, 0.45);
        transform: scale(1.05) !important;
        animation-play-state: paused;
    }

@keyframes portfolioDutDut {
    0%, 100%, 25% {
        transform: translate(0, 0) rotate(0deg);
    }

    30% {
        transform: translate(-3px, 2px) rotate(-2deg);
    }

    35% {
        transform: translate(3px, -1px) rotate(2deg);
    }

    40% {
        transform: translate(-3px, -2px) rotate(-1deg);
    }

    45% {
        transform: translate(2px, 2px) rotate(2deg);
    }

    50% {
        transform: translate(-1px, -1px) rotate(-2deg);
    }

    55% {
        transform: translate(3px, 1px) rotate(1deg);
    }

    60% {
        transform: translate(-2px, 2px) rotate(-1deg);
    }

    65% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.portfolio-section {
    background-color: #ffffff;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(225, 247, 236, 0.7);
    border-radius: 20px;
    padding: 24px 20px 20px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

    .portfolio-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 35px rgba(12, 86, 55, 0.12);
    }

.glass-card-sec4 {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.portfolio-badge-logo {
    position: absolute;
    text-align: center;
    top: 12px;
    left: 15px;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

    .portfolio-badge-logo img {
        width: 80%;
        height: 80%;
        margin: 10% auto;
    }

.portfolio-meta-header {
    padding-left: 52px;
    margin-bottom: 16px;
    min-height: 50px;
}

    .portfolio-meta-header h4 {
        color: #800000;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 6px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.portfolio-desc {
    color: #555555;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

    .portfolio-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.06);
}

.corner-ribbon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #800000;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 1;
    opacity: 0.85;
}

.btn-viewmore {
    background: transparent;
    border: none;
    color: #0c5637;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.2s, transform 0.2s;
}

    .btn-viewmore .arrow {
        display: inline-block;
        transition: transform 0.2s;
    }

    .btn-viewmore:hover {
        color: #00cc66;
    }

        .btn-viewmore:hover .arrow {
            transform: translateY(3px);
        }

/* === FOOTER & LIÊN HỆ === */
.footer-ribbon {
    height: 12px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-gold) 50%, var(--primary-red) 100%);
}

.contact-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -60px;
    z-index: 2;
    position: relative;
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-col:hover .contact-icon {
    transform: scale(1.15);
}

.bg-zalo {
    background-color: #0068ff;
}

.bg-tiktok {
    background-color: #010101;
}

/* === NÚT LÊN ĐẦU TRANG & LIÊN HỆ GẤP === */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    #backToTop.show {
        opacity: 1;
        visibility: visible;
    }

    #backToTop:hover {
        background-color: var(--dark-red);
        transform: translateY(-5px);
    }

.sticky-contacts {
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .sticky-btn:hover {
        transform: scale(1.1);
        color: white;
    }
