/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    /* Colors */
    --primary-blue: #0B5ED7;
    --deep-blue: #073B7A;
    --light-blue: #EAF4FF;
    --bg-color: #F7FAFC;
    --white: #FFFFFF;
    --text-main: #172033;
    --text-muted: #667085;
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Effects */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(11, 94, 215, 0.08);
    --shadow-lg: 0 20px 40px rgba(7, 59, 122, 0.12);
    
    /* Layout */
    --container-width: 1280px;
    --section-spacing: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--bg-color);
}

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

.bg-soft-teal {
    background-color: #eff6f4;
}

.bg-primary-dark {
    background-color: #0c2b4a; /* Very dark blue */
    color: var(--white);
}

.bg-primary-dark .section-title,
.bg-primary-dark .section-desc,
.bg-primary-dark .feature-text h4,
.bg-primary-dark .feature-text p,
.bg-primary-dark .contact-title,
.bg-primary-dark .contact-detail h4,
.bg-primary-dark .contact-detail p,
.bg-primary-dark .contact-detail a,
.bg-primary-dark .contact-detail i {
    color: var(--white) !important;
}

.bg-primary-dark .feature-icon {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-highlight);
}

.bg-slate {
    background-color: #1a2226; /* Dark slate */
    color: var(--white);
}

.bg-slate .section-title,
.bg-slate .section-desc,
.bg-slate h4,
.bg-slate p,
.bg-slate .info-text h4,
.bg-slate .info-text p,
.bg-slate label {
    color: var(--white) !important;
}

/* Slanted Sections */
.slanted {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
    padding-top: calc(var(--section-spacing) + 3vw) !important;
    padding-bottom: calc(var(--section-spacing) + 3vw) !important;
}

.slanted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: skewY(-3deg);
    transform-origin: center;
}

.bg-soft-teal.slanted::before {
    background-color: #eff6f4;
}

.bg-primary-dark.slanted::before {
    background-color: #0c2b4a;
}

.bg-slate.slanted::before {
    background-color: #1a2226;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

/* --- Top Contact Bar --- */
.top-contact-bar {
    position: absolute;
    top: 25px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
    transition: var(--transition);
}

.header.scrolled .top-contact-bar {
    top: 20px;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.top-contact-item:hover {
    color: var(--primary-blue);
}

.header.scrolled .top-contact-item {
    color: var(--text-main);
}

.top-contact-item i {
    font-size: 1.2rem;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .top-contact-item i {
    color: var(--deep-blue);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.header.scrolled .lang-switch {
    /* No border needed anymore */
}

.lang-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0.5;
    transition: var(--transition);
    text-transform: uppercase;
}

.header.scrolled .lang-text {
    color: var(--text-main);
}

.lang-text.active, .lang-text:hover {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 3rem; /* Đảm bảo cụm ngôn ngữ luôn cách xa menu một khoảng */
}

.center-logo-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.img-logo {
    height: 64px;
    width: auto;
    display: block;
    transition: var(--transition);
}

/* Áp dụng lại filter trắng và bóng đổ vì đã có logo tách nền trong suốt chuẩn */
.transparent-header:not(.scrolled) .img-logo {
    filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.mobile-logo {
    display: none !important;
}

.nav {
    width: 100%;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.logo-item {
    margin: 0 1rem 0 0;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.nav-dot {
    color: #e63946;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 0.8;
}

.header.scrolled .nav-link {
    color: var(--text-main);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header.scrolled .hamburger {
    color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.fullscreen-hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 59, 122, 0.9) 0%, rgba(11, 94, 215, 0.65) 50%, rgba(11, 94, 215, 0.1) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-subtitle span {
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    color: var(--white);
}

.hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 3.1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -1px;
}

.text-highlight {
    color: #48cfad;
    display: inline-block;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 700px;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-scale {
    transform: scale(1.1);
    animation: scaleDown 10s ease-out forwards;
}

.delay-1 {
    transition-delay: 0.3s;
}

.delay-2 {
    transition-delay: 0.6s;
}

@keyframes scaleDown {
    to {
        transform: scale(1);
    }
}

/* ==========================================================================
   TRUST / INTRO SECTION
   ========================================================================== */
.intro-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.intro-text {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.intro-image {
    flex: 1;
}

.rounded-image {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   ABOUT US / SERVICES SECTION
   ========================================================================== */
.about-company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding-bottom: 20px;
    padding-left: 20px;
}

.about-image-bg {
    position: absolute;
    top: -20px;
    left: 0;
    width: 70%;
    height: 90%;
    background-color: #1b263b; /* Dark navy/gray shape */
    border-radius: 12px;
    z-index: 1;
}

.about-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    /* Diagonal cut at bottom right */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    box-shadow: var(--shadow-lg);
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--deep-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.about-subtitle span {
    color: var(--primary-blue);
    font-weight: 900;
    font-style: italic;
    font-size: 1.1rem;
}

.about-title {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.about-desc {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    gap: 12px;
    transition: var(--transition);
}

.service-item:hover {
    background-color: var(--light-blue);
}

.service-item:nth-child(even) {
    border-right: none;
}

.service-item:nth-last-child(1),
.service-item:nth-last-child(2) {
    border-bottom: none;
}

.service-num {
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
    margin-top: 2px;
}

.service-text {
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 600;
    line-height: 1.4;
}

.about-actions {
    text-align: center;
}

.btn-dark {
    background-color: #2b3954;
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-readmore {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
}

/* ==========================================================================
   PROCESS SECTION (TIMELINE)
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    padding-top: 2rem;
}

.timeline-line {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-blue);
    z-index: 1;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-blue);
    border: 4px solid var(--white);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    position: relative;
    box-shadow: 0 0 0 4px var(--light-blue);
}

.timeline-number {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.view-all:hover {
    gap: 1rem;
}

.projects-wrapper {
    position: relative;
}

.projects-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.2); /* Mờ mờ */
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 10px;
}
.projects-nav-btn:hover {
    color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}
.proj-prev {
    left: -40px;
}
.proj-next {
    right: -40px;
}

.projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1.5rem 0.5rem;
    margin: -1.5rem -0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.projects-grid::-webkit-scrollbar {
    height: 8px;
}

.projects-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.project-card {
    cursor: pointer;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 1.34rem);
    scroll-snap-align: start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-tags {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 0;
    z-index: 2;
}

.tag {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.tag-status {
    background-color: #d81b38; /* Red for status */
}

.tag-type {
    background-color: #2b3940; /* Dark for type */
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

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

.project-meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
.why-us-container {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.why-us-content {
    flex: 1;
}

.why-us-image {
    flex: 1;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   PARTNERS SECTION
   ========================================================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 3rem;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #A0ABBB;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.partner-logo:hover {
    color: var(--primary-blue);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--deep-blue);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.info-text p {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
    margin: 0;
}

.contact-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-title {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-title.center {
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.form-note {
    font-size: 0.85rem;
    color: #888;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.form-checkbox input {
    margin-top: 4px;
}

.form-checkbox a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.btn-submit {
    margin-top: 1rem;
    align-self: flex-start;
}

.contact-map-wrapper {
    display: flex;
    flex-direction: column;
}

.map-container {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--white);
    color: var(--text-main);
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-box {
    background-color: #F6F7F9;
    padding: 60px 80px;
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0% 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 4rem;
}

.col-about {
    padding-right: 2rem;
}

.footer-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.footer-heading-wrap {
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.dotted-line {
    width: 80px;
    border-bottom: 2px dotted #999;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    color: #888;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-main);
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: #666;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #55acee;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a.social-tiktok { background-color: #69C9D0; } /* lighter tiktok color */
.footer-social a.social-youtube { background-color: #ff0000; }
.footer-social a:hover { opacity: 0.8; transform: translateY(-3px); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 10px;
    font-size: 0.875rem;
    color: #888;
}

/* ==========================================================================
   PUBLISHED PROJECTS
   ========================================================================== */
.published-projects {
    padding: 100px 0;
}

.published-projects.slanted::before {
    background-color: #f4efe6;
}

.published-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: center;
}

.published-images {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    align-items: flex-start;
}

.published-images .img-large, .published-images .img-small {
    flex: 1;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.published-images .img-small {
    margin-top: 60px; /* offset downwards */
    background: var(--white);
}

.published-images img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.published-content {
    padding-left: 2rem;
}

.published-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.published-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.published-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ==========================================================================
   FLOATING GALLERY (SCATTERED IMAGES)
   ========================================================================== */
.floating-gallery {
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--white);
    position: relative;
}

.gallery-container {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-center {
    text-align: center;
    max-width: 650px;
    z-index: 10;
    position: relative;
    padding: 2.5rem;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
    font-family: 'Manrope', sans-serif;
}

.gallery-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gallery-img {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    /* Custom reveal for absolute-positioned images: opacity only, no translateY */
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(0.92);
}
.gallery-img.is-visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Positions - Scattered */
.gallery-img.img-1 {
    top: 50px;
    left: 20px;
    width: 260px;
    height: 200px;
}

.gallery-img.img-2 {
    bottom: 50px;
    left: 5%;
    width: 240px;
    height: 280px;
}

.gallery-img.img-3 {
    top: 30px;
    right: 5%;
    width: 300px;
    height: 220px;
}

.gallery-img.img-4 {
    bottom: 40px;
    right: 3%;
    width: 260px;
    height: 190px;
}

.gallery-img.img-5 {
    bottom: 150px;
    right: 25%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
}

.gallery-img.img-6 {
    top: -20px;
    left: 30%;
    width: 200px;
    height: 140px;
}

.gallery-img.img-7 {
    bottom: -30px;
    left: 35%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
}

.gallery-img.img-8 {
    top: -50px;
    right: 30%;
    width: 220px;
    height: 160px;
}

.mt-4 { margin-top: 2.5rem; }
/* ==========================================================================
   RESPONSIVE (1280px, 768px, 375px)
   ========================================================================== */
@media (max-width: 1280px) {
    .container {
        max-width: 100%;
    }
    
    .hero-title { font-size: 3rem; }
    
    .intro-container, .why-us-container {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-desc {
        font-size: 1.125rem;
    }
    
    .intro-container, .why-us-container {
        flex-direction: column;
    }
    
    .about-company-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 3rem;
    }
    
    .timeline-line {
        display: none;
    }

    .project-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .published-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .published-images {
        flex-direction: column;
    }
    
    .published-images .img-small {
        margin-top: 1rem;
        height: 300px;
    }
    
    .published-content {
        padding-left: 0;
    }
    
    .floating-gallery {
        padding: 60px 0;
    }
    
    .gallery-container {
        min-height: auto;
        flex-direction: column;
        gap: 2rem;
    }
    
    .gallery-center {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .gallery-img {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 250px !important;
        border-radius: 8px !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .top-contact-bar {
        display: none;
    }
    
    .center-logo-layout {
        justify-content: space-between;
    }
    
    .desktop-logo {
        display: none;
    }
    
    .mobile-logo {
        display: flex !important;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        padding: 40px 24px;
        transition: var(--transition);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
        color: var(--text-main) !important;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .project-card {
        flex: 0 0 calc(85% - 1rem); /* Show 1 full card and peek at the next one on mobile */
    }
    
    .about-services-list {
        grid-template-columns: 1fr;
    }
    
    .service-item, .service-item:nth-child(even) {
        border-right: none;
    }
    
    .service-item:nth-last-child(2) {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .timeline-item {
        display: flex;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }
    
    .timeline-dot {
        margin: 0;
    }
    
    .projects .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid-main,
    .contact-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
        margin-top: 2rem;
    }
    
    .footer-box {
        padding: 40px 24px;
        clip-path: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .col-about {
        padding-right: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    }
}

/* ==========================================================================
   SCROLL REVEAL (JANAS-Style: Scale + Fade)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.97);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.30s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* Directional Reveals */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.97);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px) scale(0.97);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.reveal-left.delay-1, .reveal-right.delay-1 { transition-delay: 0.15s; }
.reveal-left.delay-2, .reveal-right.delay-2 { transition-delay: 0.30s; }
.reveal-left.delay-3, .reveal-right.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   UNDERLINE HOVER (JANAS-Style: animated underline from left)
   ========================================================================== */
.link-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover::after {
    width: 100%;
}

/* Apply to nav links */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #48cfad;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   PARALLAX HERO BG
   ========================================================================== */
.hero-bg-img {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ==========================================================================
   MEDICAL EQUIPMENT SECTION
   ========================================================================== */
.medical-equipment {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.med-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}
.med-slide.active {
    opacity: 1;
}

.med-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 8s ease-out;
}
.med-slide.active .med-slide-bg {
    transform: scale(1);
}

.med-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 15, 35, 0.88) 0%,
        rgba(5, 15, 35, 0.65) 50%,
        rgba(5, 15, 35, 0.2) 100%
    );
}

.med-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10% 0 8%;
    max-width: 680px;
    color: white;
}

.med-slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #48cfad;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s 0.3s ease, transform 0.7s 0.3s ease;
}
.med-slide.active .med-slide-tag {
    opacity: 1;
    transform: translateY(0);
}

.med-slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #48cfad; /* Màu xanh nổi bật */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s 0.45s ease, transform 0.8s 0.45s ease;
}
.med-slide.active .med-slide-title {
    opacity: 1;
    transform: translateY(0);
}

.med-slide-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s 0.6s ease, transform 0.8s 0.6s ease;
}
.med-slide.active .med-slide-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Slide navigation dots */
.med-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Faint Navigation Arrows */
.med-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3); /* Mờ mờ (faint) */
    font-size: 3.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 10px;
}
.med-nav-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}
.med-prev {
    left: 2%;
}
.med-next {
    right: 2%;
}

.med-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    padding: 0;
}
.med-dot.active {
    background: #48cfad;
    width: 28px;
    border-radius: 4px;
}

/* Slide progress bar */
.med-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #48cfad;
    width: 0%;
    transition: width 5s linear;
    z-index: 10;
}

/* Height */
.medical-equipment {
    height: 100vh;
    min-height: 600px;
}

