:root {
    --primary: #A70D4D;
    --primary-dark: #760836;
    --primary-light: rgba(167, 13, 77, 0.1);
    --secondary: #fbc326;
    --secondary-dark: #d4a000;
    --text-dark: #1a1a2e;
    --text-body: #444;
    --text-muted: #777;
    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #111827;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 8px 24px rgba(167, 13, 77, 0.25);
    --section-space: 96px;
    --section-space-sm: 64px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: all 0.2s ease;
    --transition: all 0.35s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-body);
    background: var(--bg-white);
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

.btn,
button,
.read-more,
.page-numbers {
    font-family: 'Roboto', sans-serif;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    text-transform: uppercase;
    background: var(--secondary);
    color: #111;
    box-shadow: 0 6px 18px rgba(251, 195, 38, 0.22);
}

.btn:hover {
    background: var(--secondary-dark);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(251, 195, 38, 0.35);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    box-shadow: none;
}

.btn-outline:hover {
    background: #fff;
    color: var(--text-dark);
}

.top-bar {
    background: #0d1117;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    min-height: 78px;
    transition: min-height 0.25s ease, padding 0.25s ease;
}

.main-header.scrolled .header-container {
    min-height: 66px;
}

.logo img {
    width: 58px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.14));
}

.logo-text h1 {
    color: #FAC401;
    font-size: 30px;
    letter-spacing: 0;
}

.logo-text p {
    color: var(--text-muted);
}

.main-nav a {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after,
.main-nav a:after {
    height: 2px;
    border-radius: 2px;
    background: var(--secondary);
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-btn,
.close-menu {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(167, 13, 77, 0.12);
    border-radius: var(--radius-full);
    color: var(--primary);
    background: #fff;
}

.overlay.active {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(2px);
}

.hero-section {
    min-height: 760px;
    height: auto;
    isolation: isolate;
    justify-content: center;
    padding: 170px 20px 110px;
}

.hero-background {
    overflow: hidden;
    background: #160007 url('../images/hero-bg.webp') center / cover no-repeat;
    animation: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 76%);
    pointer-events: none;
    z-index: 4;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background:
        linear-gradient(115deg, rgba(11, 6, 9, 0.72) 0%, rgba(45, 0, 12, 0.42) 44%, rgba(167, 13, 77, 0.18) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0.68) 100%);
    pointer-events: none;
}

.hero-bg-slide {
    position: absolute;
    inset: -5%;
    z-index: 1;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.04);
    transition: opacity 1.4s ease;
    will-change: opacity, transform;
}

.hero-bg-slide.is-active {
    opacity: 1;
    animation: heroDepth 8s ease-out both;
}

.hero-bg-slide:nth-child(2) {
    background-position: center 52%;
}

.hero-bg-slide:nth-child(3) {
    background-position: center 46%;
}

.hero-bg-slide:nth-child(4) {
    background-position: center 50%;
}

@keyframes heroDepth {
    0% {
        transform: scale(1.04) translate3d(0, 0, 0);
    }

    100% {
        transform: scale(1.14) translate3d(-1.2%, -1%, 0);
    }
}

.overlay-home {
    z-index: 6;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.54)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.22));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 7;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 980px;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.hero-content h2 {
    margin-bottom: 8px;
}

.hero-content h2 span {
    background: linear-gradient(90deg, #fff, var(--secondary) 48%, #ffef9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 58px;
    line-height: 1.05;
}

.hero-content h3 {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 38px;
}

.hero-stat {
    min-width: 150px;
    padding: 0 28px;
    color: #fff;
    text-align: center;
}

.hero-stat + .hero-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stat strong {
    display: block;
    color: var(--secondary);
    font-family: 'Oswald', sans-serif;
    font-size: 34px;
    line-height: 1;
}

.hero-stat span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    height: 60px;
    pointer-events: none;
}

.hero-wave svg,
.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.scroll-down {
    z-index: 3;
    bottom: 26px;
}

.featured-post,
.projects-section,
.services-section,
.testimonials-section {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.featured-post {
    background: var(--bg-white);
}

.post-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 60px;
    align-items: center;
}

.post-content .subtitle,
.section-title .subtitle {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title .subtitle {
    margin-left: auto;
    margin-right: auto;
}

.section-title h2,
.post-content h2 {
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.post-content h2 {
    font-size: 38px;
    line-height: 1.16;
    margin-bottom: 18px;
}

.post-content p {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.8;
}

.post-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

.post-image:hover img {
    transform: scale(1.02);
}

.stats-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background:
        linear-gradient(90deg, rgba(10, 12, 22, 0.9) 0%, rgba(28, 0, 10, 0.68) 48%, rgba(5, 6, 10, 0.92) 100%),
        url('../images/stats-bg.jpg') center / cover no-repeat;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(251, 195, 38, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.26));
    pointer-events: none;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.stat-item {
    padding: 26px 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    backdrop-filter: none;
    transition: transform 0.3s ease;
}

.stat-item + .stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-item h3 {
    color: var(--secondary);
    font-size: 58px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.48);
}

.wave-divider {
    height: 40px;
    margin-top: -1px;
    background: var(--bg-light);
}

.projects-section,
.testimonials-section {
    background: var(--bg-light);
}

.carousel-container {
    padding: 0 54px;
}

.carousel-track {
    align-items: stretch;
}

.carousel-slide {
    flex: 0 0 calc(100% / var(--project-slides-visible, 3));
    min-width: calc(100% / var(--project-slides-visible, 3));
    height: auto;
    padding: 0 16px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    box-sizing: border-box;
}

.carousel-slide:hover {
    transform: none;
    box-shadow: none;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.project-image {
    height: 270px;
    overflow: hidden;
    background: #eceff3;
}

.project-image img,
.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.thongtinduan {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 22px 24px 24px;
    border-top: 3px solid var(--primary);
}

.title-project {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.title-project a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-dark);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.title-project a:hover {
    color: var(--primary);
}

.date-project {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.more-project {
    margin-top: auto;
}

.more-project button {
    min-height: 38px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.more-project button:hover {
    background: var(--primary-dark);
}

.carousel-button {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow-sm);
}

.carousel-button:disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.services-tabs {
    width: fit-content;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 42px;
    padding: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.tab-btn {
    min-height: 44px;
    padding: 10px 26px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.service-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.18) 62%, transparent);
}

.service-item:hover .service-overlay {
    background: linear-gradient(to top, rgba(167, 13, 77, 0.88), rgba(167, 13, 77, 0.28) 62%, transparent);
}

.service-overlay h3 {
    font-size: 22px;
}

.service-overlay p {
    font-size: 13px;
    opacity: 0.9;
}

.trust-section {
    padding: var(--section-space) 0;
    background:
        linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.trust-card {
    padding: 26px 22px;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 13, 77, 0.18);
    box-shadow: var(--shadow-md);
}

.trust-card i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    box-shadow: var(--shadow-primary);
}

.trust-card h3 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: 21px;
    line-height: 1.25;
}

.trust-card p {
    margin: 0;
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
}

.process-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: var(--radius-md);
    background: #111827;
    box-shadow: var(--shadow-md);
}

.process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 18px 22px;
    color: #fff;
}

.process-step + .process-step {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.process-step span {
    color: var(--secondary);
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.process-step strong {
    font-size: 15px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.testimonials-section {
    position: relative;
}

.slide {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.content-comment {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
}

.avt-cmt img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
}

.name-cmt h4 {
    color: var(--text-dark);
    font-size: 16px;
}

.name-cmt span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.cta-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 72px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.72)),
        url('../images/foot-hero-bg.webp') center / cover no-repeat;
    overflow: hidden;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 48%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.cta-logo img {
    width: 86px;
}

.cta-logo-text {
    text-align: left;
}

.cta-logo-text h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.cta-logo-text p {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-content h3 {
    max-width: 860px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 34px;
    line-height: 1.3;
}

.cta-content .btn {
    min-width: 152px;
    padding: 15px 38px;
    font-size: 15px;
}

.main-footer {
    background: #111;
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 22px;
}

.footer-col h3 {
    color: #fff;
}

.footer-col h3::after {
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.62);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    color: var(--secondary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-links a::before {
    content: none;
    display: none;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.main-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
}

.main-footer .social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.48);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.blog-container,
.article-container {
    align-items: flex-start;
}

.blog-post {
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    overflow: hidden;
}

.post-image img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.post-title {
    line-height: 1.35;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover,
.read-more {
    color: var(--primary);
}

.sidebar-widget {
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    border-bottom-color: var(--primary);
}

.article-title {
    color: var(--text-dark);
    font-size: 38px;
    line-height: 1.18;
}

.article-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.article-content {
    color: #343a40;
    font-size: 17px;
    line-height: 1.85;
}

.article-image img,
.article-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.tag {
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
}

.related-post {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.related-post:hover {
    box-shadow: var(--shadow-md);
}

.will-reveal {
    --reveal-distance: 34px;
    opacity: 0;
    transform: translate3d(0, var(--reveal-distance), 0);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
    transition-delay: calc(var(--reveal-order, 0) * 52ms);
    will-change: opacity, transform;
}

.will-reveal.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.featured-post .post-image.will-reveal,
.carousel-slide.will-reveal:nth-child(even),
.service-item.will-reveal:nth-child(even),
.trust-card.will-reveal:nth-child(even) {
    transform: translate3d(0, 26px, 0) scale(0.985);
}

.featured-post .post-image.will-reveal.revealed,
.carousel-slide.will-reveal.revealed,
.service-item.will-reveal.revealed,
.trust-card.will-reveal.revealed {
    transform: translate3d(0, 0, 0) scale(1);
}

.section-title.will-reveal,
.services-tabs.will-reveal {
    --reveal-distance: 22px;
}

.process-step.will-reveal {
    --reveal-distance: 18px;
}

.stats-section.will-reveal {
    --reveal-distance: 20px;
}

.carousel-slide.will-reveal.revealed:hover,
.project-card.will-reveal.revealed:hover {
    transform: translateY(-6px);
}

.service-item.will-reveal.revealed:hover {
    transform: translateY(-8px) scale(1);
}

.trust-card.will-reveal.revealed:hover {
    transform: translateY(-5px) scale(1);
}

.slide.will-reveal.revealed:hover {
    transform: translateY(-4px);
}

.blog-post.will-reveal.revealed:hover {
    transform: translateY(-6px);
}

.hero-content > * {
    animation: heroContentIn 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.08s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.16s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.22s;
}

.hero-content > *:nth-child(5) {
    animation-delay: 0.3s;
}

.hero-content > *:nth-child(6) {
    animation-delay: 0.38s;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.stats-grid .stat-item:nth-child(2),
.services-grid .service-item:nth-child(2) {
    transition-delay: 0.08s;
}

.stats-grid .stat-item:nth-child(3),
.services-grid .service-item:nth-child(3) {
    transition-delay: 0.16s;
}

.stats-grid .stat-item:nth-child(4),
.services-grid .service-item:nth-child(4) {
    transition-delay: 0.24s;
}

@media (max-width: 1100px) {
    .hero-content h1 {
        font-size: 52px;
    }

    .hero-content h2 span {
        font-size: 46px;
    }

    .post-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 992px) {
    html,
    body {
        overflow-x: hidden;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1002;
        width: min(360px, 86vw);
        height: 100dvh;
        padding: 84px 26px 26px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        clip-path: inset(0 0 0 100%);
        transition: clip-path 0.3s ease, opacity 0.2s ease, visibility 0.3s ease;
        will-change: clip-path, opacity;
    }

    .main-nav.active {
        right: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        clip-path: inset(0);
    }

    .main-nav ul {
        position: static;
        width: 100%;
        gap: 12px;
    }

    .main-nav a {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
    }

    .close-menu {
        position: absolute;
        top: 22px;
        right: 22px;
        z-index: 1003;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border-top: 0;
        padding: 4px 0 8px 16px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .stat-item,
    .stat-item + .stat-item {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-md);
        background: rgba(12, 14, 24, 0.28);
        backdrop-filter: blur(4px);
    }

    .blog-main,
    .blog-sidebar {
        width: 100%;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carousel-container {
        padding: 0 44px;
    }

    .carousel-slide {
        padding: 0 12px;
    }

    .project-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 680px;
        padding: 130px 18px 96px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content h2 span {
        font-size: 34px;
    }

    .hero-content h3 {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-stats {
        gap: 14px;
    }

    .hero-stat {
        min-width: 0;
        flex: 1 1 100px;
        padding: 0 12px;
    }

    .hero-stat + .hero-stat {
        border-left: 0;
    }

    .featured-post,
    .projects-section,
    .services-section,
    .trust-section,
    .testimonials-section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .services-tabs {
        width: 100%;
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .tab-btn {
        width: 100%;
    }

    .article-title {
        font-size: 30px;
    }

    .carousel-container {
        padding: 0 34px;
    }

    .carousel-slide {
        padding: 0 10px;
    }

    .project-image {
        height: 230px;
    }

    .thongtinduan {
        padding: 18px 18px 20px;
    }

    .title-project {
        font-size: 17px;
    }

    .process-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-step:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .process-step:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

    .header-container {
        min-height: 70px;
    }

    .logo-text h1 {
        font-size: 24px;
    }

    .logo-text p:last-child {
        display: none;
    }

    .hero-section {
        min-height: 640px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content h2 span {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 11px;
        letter-spacing: 0.4px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        padding: 58px 0;
        background-position: center;
    }

    .stat-item h3 {
        font-size: 50px;
    }

    .trust-grid,
    .process-strip {
        grid-template-columns: 1fr;
    }

    .process-step + .process-step,
    .process-step:nth-child(3),
    .process-step:nth-child(4) {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .post-content h2 {
        font-size: 28px;
    }

    .carousel-container {
        padding: 0 8px;
        overflow: hidden;
    }

    .carousel-slide {
        padding: 0 8px;
    }

    .project-image {
        height: 220px;
    }

    .carousel-button {
        top: 42%;
    }

    .carousel-button.prev {
        left: 0;
    }

    .carousel-button.next {
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .will-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0ms !important;
    }
}
