/* ═══════════════════════════════════════════════════════════════
   MODERN CUSTOMERS CSS - 2024 DESIGN TRENDS
   Glass Morphism, Gradients, Smooth Animations
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-light: #94a3b8;
    --text-lighter: #cbd5e1;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: #fff;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.brand-icon {
    font-size: 28px;
}

.brand-text {
    color: #fff;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin: 0 16px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-light);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - ANIMATED GRADIENT
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
    background: url('../img/products_main_banner.png') center/cover no-repeat;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 25%),
        radial-gradient(circle at center, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #3b82f6;
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #10b981;
    bottom: -200px;
    left: -200px;
    animation-delay: 5s;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: #f59e0b;
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.gradient-text {
    color: #38bdf8;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 16px;
    color: #fff;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 8px;
    text-shadow: none;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-shadow: none;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: transparent;
    border-color: #fff;
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline:active {
    transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOMER LOGOS
   ═══════════════════════════════════════════════════════════════ */
.customer-logos-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.section-eyebrow {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item {
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
    animation-delay: var(--delay);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-box {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-box:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.logo-box:active {
    transform: scale(0.95);
}

.logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   INDUSTRY FILTER
   ═══════════════════════════════════════════════════════════════ */
.industry-filter-section {
    padding: 80px 20px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    position: relative;
    padding: 16px 28px;
    border: none;
    background-size: cover;
    background-position: center;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 140px;
    box-shadow: var(--shadow-sm);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 1;
    transition: all 0.3s ease;
}

.filter-btn span {
    position: relative;
    z-index: 2;
}

.filter-btn:hover,
.filter-btn.active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    background: rgba(59, 130, 246, 0.85);
    backdrop-filter: blur(1px);
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.customer-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.customer-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.customer-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.customer-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.customer-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SUCCESS STORIES
   ═══════════════════════════════════════════════════════════════ */
.success-stories-section {
    padding: 80px 20px;
    background: #fff;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
}

.story-card:nth-child(1) {
    --delay: 0.1s;
}

.story-card:nth-child(2) {
    --delay: 0.2s;
}

.story-card:nth-child(3) {
    --delay: 0.3s;
}

.story-card:nth-child(4) {
    --delay: 0.4s;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.story-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-icon.icon-agri {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.story-icon.icon-food {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.story-icon.icon-logistics {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.story-icon.icon-construction {
    color: #f97316;
    background: rgba(249, 115, 22, 0.15);
}

.story-icon.icon-chemical {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.story-icon.icon-textile {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.15);
}

.story-card:hover .story-icon {
    transform: scale(1.15) rotate(5deg);
}

.story-icon svg {
    width: 22px;
    height: 22px;
}

.story-industry {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 51px;
}

.story-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    /* Ép phần metric và nút xuống dưới cùng */
}

.story-metrics {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.metric {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 4px;
    white-space: nowrap;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.3;
}

.btn-read-more {
    background: transparent;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.btn-read-more:hover {
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline-section {
    padding: 100px 20px;
    background: #f8fafc;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 44px;
    /* Center of marker */
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(59, 130, 246, 0.2));
    border-radius: 2px;
    z-index: 1;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Markers */
.timeline-marker {
    position: absolute;
    top: 0;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Content Box */
.timeline-content {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.timeline-step {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 30px;
}

.timeline-content h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        padding-left: 70px;
        margin-bottom: 32px;
    }

    .timeline-marker {
        left: 0;
        width: 48px;
        height: 48px;
    }

    .timeline-content {
        padding: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO TESTIMONIALS - CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.video-testimonials-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.carousel-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 0 60px;
}

.testimonials-carousel {
    position: relative;
    margin: 0;
    perspective: 1000px;
}

.testimonial-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card.active {
    display: flex;
    opacity: 1;
    gap: 32px;
}

@media (max-width: 768px) {
    .testimonial-card.active {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }

    .testimonial-video {
        flex: 0 0 200px;
        min-height: 280px;
        /* Much larger on tablet */
    }

    .play-icon {
        width: 40px;
        height: 40px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .author-avatar {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .testimonial-card.active {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .testimonial-video {
        flex: 0 0 150px;
        min-height: 220px;
        /* Larger on mobile */
    }

    .play-icon {
        width: 32px;
        height: 32px;
    }

    .rating {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .testimonial-text {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-role {
        font-size: 11px;
    }
}

.testimonial-video {
    height: 300px;
    flex: 1;
    min-height: 240px;
    /* Reduced from 300px */
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), #10b981);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.play-icon {
    width: 50px;
    /* Reduced from 60px */
    height: 50px;
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.testimonial-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rating {
    font-size: 16px;
    /* Reduced from 18px */
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 16px;
    /* Reduced from 18px */
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    gap: 12px;
    /* Reduced from 16px */
    align-items: center;
}

.author-avatar {
    width: 48px;
    /* Reduced from 56px */
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    /* Reduced from 28px */
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.author-role {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.carousel-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px;
    /* Reduced from 44px */
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

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

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

.carousel-btn:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1) !important;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════════
   SUCCESS STORIES
   ═══════════════════════════════════════════════════════════════ */
.success-stories-section {
    padding: 80px 20px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.story-card:hover {
    border-color: var(--accent);
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.story-icon {
    font-size: 28px;
}

.story-industry {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
    line-height: 1.3;
}

.story-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes metrics and button to bottom evenly */
}

.story-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.btn-read-more {
    background: transparent;
    border: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-read-more:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 48px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px var(--border);
    z-index: 10;
    /* Ensure marker is above content box */
}

/* Position marker exactly on the inner edge of the 50% width timeline item */
.timeline-item:nth-child(odd) .timeline-marker {
    right: 0;
    left: auto;
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-marker {
    left: 0;
    transform: translateX(-50%);
}

.timeline-content {
    background: #fff;
    padding: 16px 20px;
    /* Reduced padding */
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.timeline-content h3 {
    font-size: 16px;
    /* Reduced from 18px */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 13px;
    /* Reduced from 14px */
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        margin-left: 0 !important;
        text-align: left !important;
        padding-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 20px;
        right: auto;
        transform: translateX(-50%);
    }

    .timeline-content {
        padding: 12px 16px;
        /* Even smaller padding for mobile */
    }

    .timeline-content h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .timeline-content p {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════════════════════════ */
.benefits-section {
    padding: 80px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 32px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    color: var(--accent);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION - GLASS MORPHISM
   ═══════════════════════════════════════════════════════════════ */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    pointer-events: none;
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-box h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.contact-box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns uniformly */
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    /* Fixed minimum height prevents sliding/jumping */
    position: relative;
    /* Added for absolute children */
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.contact-method:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    cursor: pointer;
}

.method-icon {
    font-size: 28px;
    line-height: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Hide icon with smooth scale down */
.contact-method[aria-expanded="true"] .method-icon {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

/* Custom Icon Colors */
.color-phone {
    color: #34d399;
    /* Emerald Green */
}

.color-email {
    color: #fca5a5;
    /* Red/Pink */
}

.color-zalo {
    color: #60a5fa;
    /* Blue */
}

/* Override Bootstrap collapse for smooth absolute Zoom effect */
.contact-collapse,
.contact-collapse.collapse,
.contact-collapse.collapsing,
.contact-collapse.collapse.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    overflow: hidden;
}

.contact-method[aria-expanded="true"] .contact-collapse {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.method-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: normal;
    word-break: break-all;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--text-1);
    padding: 80px 56px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 56px;
    margin-bottom: 64px;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 18px;
}

.footer-logo::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    flex-shrink: 0;
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 26px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.footer-col-title {
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.701);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-title);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-bottom-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer responsive rules have been moved to the main RESPONSIVE section below */

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer Tablet */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .site-footer {
        padding: 60px 24px 32px;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px;
    }

    .hero-section {
        min-height: 75vh;
        padding: 100px 20px 60px;
    }

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

    .hero-subtitle {
        font-size: 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 15px;
    }

    /* Force 2 columns for stats */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .hero-cta {
        flex-direction: row;
        gap: 12px;
    }

    .hero-cta .btn {
        flex: 1;
        width: 100%;
        text-align: center;
        padding: 12px 8px;
        font-size: 13px;
    }

    /* 2 columns for stories, optimized for narrow width */
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .story-card {
        padding: 16px;
    }

    .story-header {
        margin-bottom: 12px;
    }

    .story-icon {
        font-size: 20px;
    }

    .story-industry {
        font-size: 10px;
    }

    .story-title {
        font-size: 15px;
        margin: 12px 0;
    }

    .story-excerpt {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .story-metrics {
        grid-template-columns: repeat(3, 1fr);
        /* 1 horizontal row */
        gap: 4px;
        padding: 12px 0;
        margin-bottom: 16px;
    }

    .metric {
        display: block;
        text-align: center;
    }

    .metric-value {
        display: block;
        font-size: 14px;
        margin-bottom: 4px;
    }

    .metric-label {
        display: block;
        font-size: 9px;
        line-height: 1.2;
    }

    /* 2 columns for customers info */
    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .customer-card {
        padding: 16px;
    }

    /* 2 columns for benefits info */
    .benefits-section {
        padding: 60px 15px;
        /* Reduced section padding */
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .benefit-card {
        padding: 16px 12px;
    }

    .benefit-icon {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .benefit-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .benefit-card p {
        font-size: 12px;
    }

    .contact-box {
        padding: 30px 20px;
    }

    .contact-box h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .contact-box p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    /* FAQ section optimized for tablet */
    .faq-section {
        padding: 60px 15px;
    }

    .faq-grid {
        gap: 16px;
    }

    .faq-question {
        padding: 16px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }

    .filter-buttons {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* Thêm padding 2 bên để không dính sát viền khi cuộn */
        padding-left: 4px;
        padding-right: 4px;
    }

    .filter-buttons::-webkit-scrollbar {
        height: 4px;
        display: none;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: max-content;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Footer Mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 24px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .hero-section {
        min-height: auto;
        padding: 90px 15px 40px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 1.6;
        padding: 0 10px;
        margin-bottom: 24px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .section-header p {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* Maintain 2 columns on very small mobile devices for info that fits */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .stat-item {
        padding: 8px 4px;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .stat-label {
        font-size: 8.5px;
    }

    .hero-cta {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: stretch;
    }

    .hero-cta .btn {
        flex: 1;
        padding: 8px 4px;
        font-size: 11.5px;
        line-height: 1.3;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        white-space: normal;
        text-align: center;
    }

    /* Allow benefits to stay 2 cols */
    .benefits-section {
        padding: 40px 10px;
        /* Even smaller section padding */
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .benefit-card {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .benefit-icon {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .benefit-card h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .benefit-card p {
        font-size: 11px;
        line-height: 1.4;
    }

    /* FAQ section optimized for mobile */
    .faq-section {
        padding: 40px 10px;
    }

    .faq-grid {
        gap: 12px;
    }

    .faq-question {
        padding: 12px;
    }

    .faq-question h3 {
        font-size: 14px;
    }

    .faq-toggle {
        font-size: 18px;
    }

    .faq-item.active .faq-answer {
        padding: 0 12px 12px;
    }

    .faq-answer p {
        font-size: 13px;
    }

    /* Change customers grid to 1 col for very small screens */
    .customers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .customer-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .customer-name {
        font-size: 16px;
    }

    .customer-desc {
        font-size: 13px;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-box {
        padding: 24px 12px;
    }

    .contact-box h2 {
        font-size: 20px;
    }

    .contact-box p {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .contact-methods {
        grid-template-columns: repeat(3, 1fr);
        /* 3 items in 1 row */
        gap: 8px;
        margin-bottom: 10px;
    }

    .contact-method {
        padding: 10px 4px;
        min-height: 60px;
        /* Adjusted for mobile */
        border-radius: 8px;
    }

    .method-icon {
        font-size: 20px;
    }

    .method-label {
        font-size: 9px;
        font-weight: 700;
    }

    .method-value {
        font-size: 9px;
        white-space: normal;
        word-break: break-all;
    }

    .filter-buttons {
        gap: 6px;
        padding-bottom: 8px;
        margin-bottom: 24px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Footer Small Mobile */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-col-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-link {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .footer-about {
        font-size: 12px;
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scroll animations */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}