/* --- RESET & GLOBAL STYLES --- */
:root {
    --bg-color: #111111;
    --text-color: #FFFFFF;
    --text-muted-color: #7d7d7d;
    --accent-color: #FFC107; /* <<< THAY ĐỔI: Màu chủ đạo thành vàng */
    --font-family: 'Inter', sans-serif;
}
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* --- GLOBAL FIX FOR HORIZONTAL SCROLL --- */
html, body {
    overflow-x: hidden;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- CONTAINER --- */

/* --- HEADER --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap; /* Ngăn logo xuống dòng */
}
.logo span {
    color: var(--accent-color);
}

.center-text {
    color: var(--text-muted-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}
.main-nav a {
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* --- HERO SECTION --- */
.hero-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.hero-title {
    font-size: clamp(2.5rem, 9vw, 6rem); /* Điều chỉnh font size cho phù hợp hơn */
    font-weight: 800;
    line-height: 1.2;
    max-width: 16ch;
}

.yellow-blocks-container {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 1.2em;
    height: 0.6em;
    vertical-align: middle;
    margin: 0 0.1em;
}

.block {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.hero-content {
    display: flex;
    justify-content: flex-end;
    margin-top: 2%;
}

.text-group {
    max-width: 420px;
    text-align: right;
}

.subtitle {
    font-weight: 500;
    color: var(--text-muted-color);
    margin-bottom: 1rem;
}

.description {
    line-height: 1.6;
}

/* --- FOOTER --- */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: 30px; /* Thêm khoảng cách với nội dung trên */
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-links a {
    text-decoration: underline;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--accent-color);
}

.get-started-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--text-muted-color);
    border-radius: 50px;
    padding: 15px 30px;
    transition: all 0.3s;
}

.get-started-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.get-started-btn .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.get-started-btn:hover .arrow {
    transform: translateX(5px);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .center-text {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-section {
        text-align: center;
    }
    .hero-title {
        max-width: 100%;
    }
    .hero-content {
        justify-content: center;
        margin-top: 40px;
    }
    .text-group {
        text-align: center;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 25px;
    }
    
    .main-nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    
    .main-header {
        justify-content: space-between;
    }

    .main-footer {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 50px;
    }
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}
/* --- ADD THIS TO THE END of your style.css --- */

/* --- ABOUT SECTION (FIXED BACKGROUND) --- */
.about-section {
    position: relative;
    padding: 100px 50px;
    background-image: url('../images/team-background.jpg'); /* <<< THAY TÊN FILE ẢNH CỦA BẠN */

    /* === HIỆU ỨNG QUAN TRỌNG NHẤT === */
    background-attachment: fixed; 
    /* ================================== */
    
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-color);
    text-align: center;
}

/* Lớp phủ màu đen mờ để làm nổi bật chữ */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 17, 17, 0.7); /* Độ mờ 70% */
    z-index: 1;
}

/* Đảm bảo nội dung hiển thị trên lớp phủ */
.about-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 60px;
}

.features {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.feature-item {
    flex: 1;
    max-width: 300px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.feature-item p {
    line-height: 1.6;
    color: var(--text-muted-color);
}

/* Responsive cho About Section */
@media (max-width: 768px) {
    .about-section {
        padding: 80px 25px;
    }
    .features {
        flex-direction: column;
        align-items: center;
    }
}


/* --- ADD THIS TO THE END of your style.css --- */

/* --- SERVICES SECTION --- */
.services-section {
    background-color: var(--bg-color);
    /* Tăng từ 100px lên 140px hoặc bất kỳ số nào bạn muốn */
    padding: 140px 0; 
}

.services-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
    gap: 20px;
}

.services-header h2 {


    color: var(--accent-color);

    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 10ch;
}

.explore-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--text-muted-color);
    border-radius: 50px;
    padding: 15px 30px;
    transition: all 0.3s;
    white-space: nowrap; /* Không xuống dòng */
}

.explore-all-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.explore-all-btn .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.explore-all-btn:hover .arrow {
    transform: rotate(-45deg);
}

.services-grid {
    display: grid;
    /* Hiển thị 4 cột trên màn hình lớn */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 180px; /* Chiều cao cố định cho ảnh */
    object-fit: cover; /* Đảm bảo ảnh lấp đầy mà không bị méo */
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted-color);
    line-height: 1.6;
    flex-grow: 1; /* Đẩy link xuống dưới cùng */
    margin-bottom: 20px;
}

.explore-link {
    font-weight: 500;
    text-decoration: underline;
    color: var(--text-color);
    transition: color 0.3s;
}

.explore-link:hover {
    color: var(--accent-color);
}

/* Responsive cho Services Section */
@media (max-width: 1200px) {
    /* Hiển thị 2 cột trên tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 0;
    }
    .services-container {
        padding: 0 25px;
    }
    /* Hiển thị 1 cột trên mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-header {
        justify-content: flex-start; /* Căn lề trái */
    }
    .services-header h2 {
        max-width: 100%; /* Cho phép tiêu đề chiếm toàn bộ chiều rộng */
    }
}

/* --- ADD THIS TO THE END of your style.css --- */

/* --- PORTFOLIO CAROUSEL SECTION --- */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.portfolio-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.portfolio-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 12ch;
}

/* === CAROUSEL STYLES === */
.carousel-wrapper {
    overflow: hidden; /* Che đi những project nằm ngoài màn hình */
    padding: 15px 0;
    position: relative;
}

.carousel-track {
    display: flex;
    /* (Card width + gap) * total cards */
    width: calc( (25vw + 30px) * 8 ); /* Chiều rộng tổng cộng cho 8 card */
    margin-bottom: 30px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}



.track-left {
    animation-name: scroll-left;
    animation-duration: 40s; /* Điều chỉnh tốc độ tại đây */
}

.track-right {
    animation-name: scroll-right;
    animation-duration: 45s; /* Tốc độ khác để tạo sự ngẫu nhiên */
}

.project-card {
    width: 25vw; /* Hiển thị khoảng 4 card trên màn hình lớn */
    flex-shrink: 0;
    margin-right: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.03); /* Phóng to nhẹ khi hover */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.project-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-color);
}

.card-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
}
.card-info p {
    color: #ccc;
}


/* === ANIMATION KEYFRAMES === */
@keyframes scroll-left {
    from { transform: translateX(0); }
    /* Dịch chuyển 50% vì ta đã nhân đôi số lượng card */
    to { transform: translateX(-50%); } 
}

@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}


/* Responsive cho Portfolio Section */
@media (max-width: 992px) {
    .project-card {
        width: 35vw; /* Hiển thị khoảng 3 card */
    }
     .carousel-track {
        width: calc( (35vw + 30px) * 8 );
    }
}


@media (max-width: 768px) {
    .portfolio-container {
        padding: 0 25px;
    }
    .portfolio-header h2 {
        max-width: 100%;
    }
    .project-card {
        width: 60vw; /* Hiển thị 1.5 card */
    }
     .carousel-track {
        width: calc( (60vw + 30px) * 8 );
    }
}


/* --- ADD THIS TO THE END of your style.css --- */

/* --- EXPERTISE SECTION --- */
.expertise-section {
    background-color: var(--bg-color);
    padding: 120px 0;
    overflow-x: hidden; /* Ngăn thanh cuộn ngang do animation */
}

.expertise-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    gap: 60px;
}

.expertise-left {
    flex-basis: 30%;
}

.subheading {
    font-weight: 500;
    color: var(--text-muted-color);
    margin-bottom: 20px;
}

.large-number {
    font-size: clamp(8rem, 20vw, 12rem);
    font-weight: 800;
    color: #222; /* Màu xám tối, gần như chìm vào nền */
    line-height: 1;
}

.expertise-right {
    flex-basis: 70%;
}

.expertise-right h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 60px;
    max-width: 20ch;
}

.expertise-right h2 span {
    color: #4a4a4a; /* Màu chữ xám mờ như trong ảnh */
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.expertise-item:first-child {
    border-top: 1px solid #333;
}

.item-number {
    font-weight: 700;
    color: var(--text-muted-color);
}

.item-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.item-content p {
    color: var(--text-muted-color);
    line-height: 1.6;
    max-width: 60ch;
}

/* --- SCROLL ANIMATION STYLES --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive cho Expertise Section */
@media (max-width: 992px) {
    .expertise-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .expertise-section {
        padding: 80px 0;
    }
    .expertise-container {
        padding: 0 25px;
    }
    .expertise-left {
        display: none; /* Ẩn cột trái trên mobile để tiết kiệm không gian */
    }
    .expertise-right {
        flex-basis: 100%;
    }
}
/* Thay đổi màu cho tiêu đề lớn của section Expertise và Portfolio */
.expertise-right h2,
.portfolio-header h2 {
    color: var(--accent-color); /* Sử dụng màu vàng chủ đạo */
}

/* --- VISION SECTION --- */
.vision-section {
    position: relative;
    background-color: var(--bg-color); /* Sửa thành màu nền chung */
    padding: 250px 0;
    /* ... các dòng khác ... */
}

/* Decorative dot grid */
.vision-section::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 200px;
    background-image: radial-gradient(#2a2a3a 1px, transparent 1px);
    background-size: 15px 15px;
    z-index: 1;
}

/* Decorative circles */
.vision-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 193, 7, 0.2); /* Sửa thành viền vàng mờ */
    border-radius: 50%;
    z-index: 1;
}

.vision-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.vision-content h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    display: block;
}

.highlight-text {
    display: inline-block;
    /* Bỏ background-color và thay bằng background với linear-gradient */
    background: linear-gradient(to right, rgba(255, 193, 7, 0), rgba(255, 193, 7, 1));
    color: white; 
    font-weight: 700;
    padding: 0 15px;
}

.vision-circle-link {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.vision-circle-link:hover {
    transform: translateX(-50%) scale(1.1);
}

.vision-circle-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.vision-circle-link svg {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    stroke: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.vision-circle-link:hover svg {
    opacity: 1;
    transform: scale(1);
}

.vision-gallery-left, .vision-gallery-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
}
.vision-gallery-left { left: 0; }
.vision-gallery-right { right: 0; }

.vision-image-wrapper {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.vision-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vision-gallery-left .img-1 { top: 15%; left: 15%; width: 200px; height: 130px; }
.vision-gallery-left .img-2 { top: 45%; left: 25%; width: 180px; height: 180px; }
.vision-gallery-left .img-3 { bottom: 10%; left: 10%; width: 220px; height: 150px; }
.vision-gallery-right .img-4 { top: 50%; right: 10%; transform: translateY(-50%); width: 450px; height: 350px; }

.tinted-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    mix-blend-mode: multiply;
}

/* Responsive cho Vision Section */
@media (max-width: 992px) {
    .vision-gallery-left, .vision-gallery-right {
       display: none;
    }
    .vision-section {
        padding: 100px 0;
    }
    .vision-content {
        padding: 0 25px;
    }
     .vision-circle-link {
        display: none;
    }
}

/* --- ADD THIS TO THE END of your style.css --- */

/* --- MARQUEE SECTION --- */
.marquee-section {
    padding: 100px 0; /* Thêm 100px padding trên và dưới */
    overflow: hidden;
}

.marquee-track {
    padding: 20px 0;
    display: flex;
}

.track-dark .marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 60s linear infinite; /* Chạy xuôi */
}

.track-yellow .marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll-reverse 60s linear infinite; /* Chạy ngược */
}
.marquee-content span {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 20px;
    text-transform: uppercase; /* Viết hoa toàn bộ */
}

/* Tùy chỉnh màu sắc cho từng dòng */
.track-dark {
    background-color: #1a1a1a;
    color: var(--text-color);
}

.track-yellow {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Animation cho chữ chạy */
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Dừng ở 50% vì ta đã nhân đôi nội dung */
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 1rem;
        margin: 0 15px;
    }
}
@keyframes marquee-scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* --- ADD THIS TO THE END of your style.css --- */

/* --- BLOG SECTION --- */
.blog-section {
    padding: 120px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* Decorative circles in the background */
.blog-section::before, .blog-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 193, 7, 0.1); /* Faint yellow border */
    z-index: 1;
}
.blog-section::before {
    width: 400px;
    height: 400px;
    top: 50%;
    left: -200px;
    transform: translateY(-50%);
}
.blog-section::after {
    width: 500px;
    height: 500px;
    bottom: -250px;
    right: -250px;
}

.blog-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.blog-main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: left;
}

.blog-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted-color);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card-title {
    margin-bottom: 20px;
}

.card-title a {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--accent-color);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.3s;
}

.read-more-btn:hover {
    filter: brightness(1.15);
}

/* Responsive for Blog Section */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }
    .blog-container {
        padding: 0 25px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SỬA LẠI PHẦN NÀY TRONG BLOG SECTION --- */

.blog-subtitle {
    display: flex; /* Bật chế độ flexbox */
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều ngang */
    gap: 15px; /* Khoảng cách giữa các phần tử */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Tạo 2 dải gradient bằng pseudo-elements */
.blog-subtitle::before,
.blog-subtitle::after {
    content: '';
    height: 2px;
    width: 60px;
    display: block;
}

/* Dải bên trái: gradient từ vàng sang trong suốt */
.blog-subtitle::before {
    background: linear-gradient(to left, var(--accent-color), transparent);
}

/* Dải bên phải: gradient từ vàng sang trong suốt */
.blog-subtitle::after {
    background: linear-gradient(to right, var(--accent-color), transparent);
}
/* --- ADD THIS TO THE END of your style.css --- */

/* --- FOOTER SECTION --- */
.site-footer {
    background-color: var(--bg-color);
    color: var(--text-muted-color);
    padding: 80px 0 30px;
    border-top: 1px solid #2a2a2a;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Cột đầu tiên rộng hơn */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.office-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.office-info li {
    display: flex;
    align-items: flex-start; /* Căn lề trên nếu địa chỉ dài */
    gap: 15px; /* Khoảng cách giữa icon và chữ */
    margin-bottom: 15px;
}

.office-info i {
    color: var(--accent-color); /* Icon màu vàng */
    margin-top: 5px; /* Căn icon với dòng đầu tiên của text */
    flex-shrink: 0;
}

.office-info a, .office-info span {
    color: var(--text-muted-color);
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 15px;
}

.footer-col a {
    color: var(--text-muted-color);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* --- CSS MỚI CHO LOGO VÀ MÔ TẢ Ở FOOTER --- */
.footer-logo img {
    max-width: 180px; /* Chiều rộng tối đa cho logo ở footer */
    height: auto;
    margin-bottom: 20px;
}

.footer-description {
    line-height: 1.7;
    font-size: 0.9rem;
    max-width: 35ch; /* Giới hạn độ dài dòng cho dễ đọc */
}

/* Căn giữa logo và chữ trên điện thoại */
@media (max-width: 768px) {
    .footer-logo {
        display: flex;
        justify-content: center;
    }
}
.privacy-text a {
    text-decoration: underline;
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    z-index: 1000;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive for Footer */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top, .footer-description {
        /* 1. Thiết lập một lưới có 2 cột */
        grid-template-columns: repeat(2, 1fr);
        text-align: left; /* Căn lề trái cho các cột con mặc định */
    }

    /* 2. Bắt cột đầu tiên (chứa Logo) và cột cuối (Office) */
    .footer-top .footer-col:first-child,
    .footer-col.office-info {
        /* 3. Bắt 2 cột này phải chiếm trọn 2 cột của lưới (trải dài từ đường 1 đến 3) */
        grid-column: 1 / 3;
        text-align: center; /* Riêng 2 cột này thì căn giữa */
    }

    /* Các code cũ khác không thay đổi */
    .footer-col a:hover {
        padding-left: 0;
    }
}
/* --- Sửa lại toàn bộ block này --- */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        text-align: left !; /* Đặt căn trái làm mặc định cho tất cả */
    }

    /* Bắt cột đầu (Logo) và cột cuối (Office) */
    .footer-top .footer-col:first-child,
    .footer-col.office-info {
        grid-column: 1 / 3; /* Vẫn giữ bố cục chiếm trọn 2 cột */
        /* XÓA BỎ: text-align: center; */
    }
    
    /* Đảm bảo logo cũng căn trái */
    .footer-logo {
        display: flex;
        justify-content: flex-start; /* Sửa từ center thành flex-start */
    }

    .footer-col a:hover {
        padding-left: 0;
    }
}
/* --- ADD THIS TO THE END of your style.css --- */

/* --- NEW ABOUT SECTION --- */
.about-section-new {
    background-color: var(--bg-color);
    padding: 120px 0;
}

.about-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-collage {
    flex-basis: 50%;
    position: relative;
}

.about-image-collage .main-image {
    width: 100%;
    border-radius: 12px;
}

.about-image-collage .sub-image {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 50%;
    border-radius: 12px;
    border: 5px solid var(--bg-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-text-content {
    flex-basis: 50%;
}

.about-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-subtitle::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-description {
    color: var(--text-muted-color);
    line-height: 1.7;
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-text p {
    color: var(--text-muted-color);
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    .about-image-collage {
        width: 100%;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .about-image-collage .sub-image {
        width: 60%;
        left: -20px;
        bottom: -30px;
    }
}

.sticky-header {
    /* Các thuộc tính để ghim và ẩn/hiện */
    position: fixed;
    top: -100px;
    z-index: 1000;
    transition: top 0.4s ease-in-out;

    /* --- THAY ĐỔI VỊ TRÍ --- */
    right: 30px; /* Cách lề phải 30px */
    left: auto; /* Bỏ vị trí bên trái */
    transform: none; /* Bỏ căn giữa */
    /* ---------------------- */

    /* Các thuộc tính tạo kiểu "lơ lửng" */
    width: auto;
    padding: 10px 15px;
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* --- POPUP HEADER CSS (PHIÊN BẢN CŨ) --- */
/* --- THAY THẾ CSS CŨ BẰNG 2 BLOCK NÀY --- */

/* --- FINAL POPUP HEADER CSS (Corrected to shrink-fit) --- */

/* 1. Header Wrapper: Chỉ dùng để định vị, không có style nhìn thấy */
.sticky-header {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: top 0.4s ease-in-out;
    width: auto; /* Quan trọng: cho phép co giãn */
}

/* 2. Class 'visible' để hiện menu */
.sticky-header.visible {
    top: 20px;
}

/* 3. Thẻ Nav: Chịu trách nhiệm toàn bộ phần nhìn thấy */
.sticky-header .main-nav {
    display: inline-block; /* Quan trọng nhất: Giúp nav co lại vừa với nội dung */
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 4. Căn chỉnh bên trong thẻ ul */
.sticky-header .main-nav ul {
    display: flex;
    padding: 10px 20px;
    margin: 0;
}

/* 5. Ẩn trên mobile */
@media (max-width: 768px) {
    .sticky-header {
        display: none;
    }
}/* --- FINAL POPUP HEADER CSS (Corrected to shrink-fit) --- */

/* === FINAL POPUP MENU CSS (Cleaned Up) === */

.sticky-nav {
    /* Định vị & Ẩn/Hiện */
    position: fixed;
    z-index: 1000;
    top: -100px; /* Ẩn ở trên */
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.4s ease-in-out;

    /* Ngoại hình */
    background-color: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.sticky-nav.visible {
    top: 20px; /* Hiện ra */
}

/* Căn chỉnh nội dung bên trong */
/* Sửa lại block này */
.sticky-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    gap: 30px; /* <<< THÊM DÒNG NÀY ĐỂ TẠO KHOẢNG CÁCH */
}.sticky-nav a {
    /* Các thuộc tính link cơ bản */
    color: var(--text-color); /* Màu chữ trắng mặc định */
    text-decoration: none;

    /* Hiệu ứng chuyển màu mượt mà */
    transition: color 0.3s ease;
}

.sticky-nav a:hover {
    color: var(--accent-color); /* Đổi sang màu vàng khi di chuột qua */
}

/* Ẩn trên điện thoại */
@media (max-width: 768px) {
    .sticky-nav {
        display: none;
    }
}/* --- Đặt màu vàng cho mục "Trang chủ" ở cả 2 menu --- */

/* Chọn link đầu tiên trong menu chính */
.main-header .main-nav ul li:first-child a,

/* Chọn link đầu tiên trong menu nổi */
.sticky-nav ul li:first-child a {
    color: var(--accent-color);
}
/* --- VIDEO BACKGROUND CHO HERO SECTION --- */

/* Lớp bọc mới, full màn hình */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex; /* Dùng để căn giữa container bên trong */
    justify-content: center;
    align-items: center;
}

/* Container cũ, bây giờ nằm bên trong */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Cho phép co giãn theo chiều cao của wrapper */
    position: relative;
    z-index: 3; /* Nằm trên video và lớp phủ */
}

/* Video và lớp phủ bây giờ sẽ tràn viền theo hero-wrapper */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Các phần tử còn lại không cần thay đổi */
.hero-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header,
.hero-content-wrapper,
.main-footer {
    position: relative;
    z-index: 3;
}

.hero-content-wrapper {
    width: 100%;
    margin-top: 40px;
}

.logo img {
    height: 70px; /* Thay đổi số 40px này để logo to nhỏ tùy ý */
    width: auto; /* Tự động điều chỉnh chiều rộng */
    display: block; /* Sửa lỗi có khoảng trống thừa bên dưới ảnh */
}
/* --- ADD THIS TO THE END of your style.css --- */

/* --- MOBILE NAVIGATION MENU --- */
.mobile-nav {
    position: fixed; /* Ghim cố định trên màn hình */
    top: 0;
    right: -100%; /* Ẩn menu ở bên phải */
    width: 80%;
    max-width: 300px; /* Chiều rộng tối đa */
    height: 100%;
    background-color: #1a1a1a;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 2000; /* Luôn nằm trên cùng */
    transition: right 0.4s ease-in-out; /* Hiệu ứng trượt */
    padding: 60px 20px 20px;
}

/* Class 'active' sẽ được JS thêm vào để hiện menu */
.mobile-nav.active {
    right: 0; /* Di chuyển menu vào trong màn hình */
}

.mobile-nav .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-nav ul li a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}


/* Thu nhỏ logo trên màn hình điện thoại */
@media (max-width: 768px) {
    .logo img {
        height: 35px; /* Chiều cao mới cho logo trên mobile */
    }
}
/* --- ADD THIS TO THE END of your style.css --- */

/* --- LANGUAGE SWITCHER --- */
.language-switcher {
    position: fixed;
    right: 30px;
    /* Vị trí = vị trí của nút back-to-top (30px) + chiều cao nút (50px) + khoảng cách (15px) */
    bottom: 95px; 
    z-index: 1000;
    display: flex;
    flex-direction: column; /* Xếp các nút theo chiều dọc */
    gap: 10px; /* Khoảng cách giữa 2 nút */
}

.lang-btn {
    width: 50px;
    height: 50px;
    background-color: #333;
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Style cho nút ngôn ngữ đang được chọn */
.lang-btn.active-lang {
    background-color: var(--accent-color);
    color: var(--bg-color);
    cursor: default; /* Con trỏ mặc định vì đã ở trang đó rồi */
}
/* --- PARTNERS SECTION (FINAL REDESIGN & FIX) --- */
/* --- PARTNERS SECTION (SCROLLING REDESIGN) --- */
.partners-section {
    padding: 120px 0;
    background-color: var(--bg-color);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    text-align: center;
}

.partners-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.partners-subtitle::before,
.partners-subtitle::after {
    content: '';
    height: 2px;
    width: 60px;
    display: block;
}

.partners-subtitle::before {
    background: linear-gradient(to left, var(--accent-color), transparent);
}

.partners-subtitle::after {
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.partners-main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 60px;
}

/* --- PHẦN THIẾT KẾ MỚI CHO DẢI LOGO CUỘN --- */
.logo-scroller {
    max-width: 100%;
    overflow: hidden;
    /* Hiệu ứng mờ dần ở 2 bên cạnh */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-scroller__track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll 30s linear infinite;
}

/* --- XÓA BLOCK CODE NÀY ĐI --- */
/*
.logo-scroller__track:hover {
    animation-play-state: paused; 
}
*/

.logo-scroller__track img {
    height: 40px; /* KÍCH THƯỚC CHIỀU CAO CỤ THỂ */
    width: auto;  /* Chiều rộng tự động để không méo */
    
    /* Hiệu ứng mặc định là đen trắng */
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.logo-scroller__track img:hover {
    /* Trả lại màu gốc khi hover */
    filter: grayscale(0);
    opacity: 1;
}

/* Định nghĩa animation cuộn */
@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 30px)); /* Dịch chuyển 50% độ dài và trừ đi nửa khoảng cách */
    }
}

/* --- ADD THIS TO THE END of your style.css --- */

/* --- CONTACT SECTION --- */
.contact-section {
    position: relative;
    padding: 120px 0;
    color: var(--text-color);
    overflow: hidden; /* Đảm bảo không có scrollbar ngang */
    background-image: url('../images/contact-bg.jpg'); /* Đổi đường dẫn ảnh nếu cần */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Hiệu ứng Parallax */
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Lớp phủ đen trong suốt */
    z-index: 1;
}

.contact-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    gap: 60px;
    align-items: flex-start; /* Căn trên cùng */
}

.contact-info {
    flex: 1;
    padding-right: 30px; /* Khoảng cách với form */
}

.contact-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted-color);
    margin-bottom: 40px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-muted-color);
}

.info-list li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px; /* Đảm bảo icon thẳng hàng */
    text-align: center;
}

.info-list li a {
    color: var(--text-muted-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-list li a:hover {
    color: var(--accent-color);
}

.social-links-contact {
    display: flex;
    gap: 20px;
}

.social-links-contact a {
    color: var(--text-muted-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--accent-color);
}

.contact-form-wrapper {
    flex: 1;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted-color);
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.2);
}

.contact-form textarea {
    resize: vertical; /* Cho phép thay đổi kích thước chiều dọc */
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.submit-btn:hover {
    background-color: #e0a800; /* Màu vàng đậm hơn khi hover */
    transform: translateY(-3px);
}

.submit-btn .arrow {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Sửa lại block này */
@media (max-width: 992px) {
    .contact-content-wrapper {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }
    .contact-info {
        padding-right: 0;
        text-align: center;
    }
    .social-links-contact {
        justify-content: center;
    }
    .info-list li {
        justify-content: center;
    }

    /* --- THÊM VÀO ĐÂY --- */
    .contact-form-wrapper {
        width: 100%; /* Dàn form ra toàn bộ chiều rộng */
    }
    /* -------------------- */
}