/* ========== GLOBAL STYLES ========== */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #e8491d;
    color: #fff;
    z-index: 1000;
}

/* ========== HEADER ========== */
header {
    background: #35424a;
    color: #ffffff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #e8491d 3px solid;
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
}

header li {
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: #e8491d;
    font-weight: bold;
}

header a:hover {
    color: #cccccc;
    font-weight: bold;
}

/* ========== SHOWCASE SECTION ========== */
#showcase {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(53,66,74,0.85), rgba(232,73,29,0.75)), url('../images/showcase.jpg') no-repeat center center/cover;
    text-align: left;
    color: #fff;
    padding: 120px 0;
}

#showcase h1 {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1.2;
}

#showcase p {
    font-size: 20px;
    margin-bottom: 24px;
}

.hero-cta .btn {
    margin-right: 12px;
}
.btn-primary {
    background: #e8491d;
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.hero-trust {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
    opacity: 0.9;
}
.hero-trust li::before {
    content: '✓';
    margin-right: 6px;
    color: #8be28b;
}

/* ========== NEWSLETTER SECTION ========== */
#newsletter {
    padding: 15px;
    color: #ffffff;
    background: #35424a;
}

#newsletter form {
    display: flex;
    justify-content: center;
    align-items: center;
}

#newsletter input[type="email"] {
    padding: 10px;
    height: 25px;
    width: 300px;
    border: none;
    margin-right: 10px;
}

/* ========== BOXES SECTION ========== */
/* ========== BOXES SECTION ========== */
.full-width-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

#features {
    margin-top: 0;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%; /* Đảm bảo chiếm full width */
}

.box-container {
    display: flex;
    justify-content: space-between;
    width: 100%; /* Chiếm toàn bộ chiều rộng */
    flex-wrap: wrap;
}

.box {
    position: relative;
    z-index: 1;
    width: calc(33.333% - 20px); /* 3 cột với khoảng cách */
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .box {
        width: calc(50% - 20px); /* 2 cột trên tablet */
    }
}

@media (max-width: 768px) {
    .box {
        width: 100%; /* 1 cột trên mobile */
        margin-bottom: 20px;
    }
    
    .full-width-container {
        padding: 40px 0;
    }
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.section-intro {
    text-align: center;
    margin-bottom: 30px;
}
.section-intro h2 {
    font-size: 32px;
    margin-bottom: 8px;
}
.section-intro p {
    color: #555;
}

/* Animated Background Elements */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.container-shape {
    position: absolute;
    background-color: rgba(52, 152, 219, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 3px;
    animation: float 15s infinite linear;
}

/* Animation for floating containers */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Individual container shapes */
.container-shape:nth-child(1) {
    width: 120px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.container-shape:nth-child(2) {
    width: 150px;
    height: 100px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.container-shape:nth-child(3) {
    width: 100px;
    height: 120px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.container-shape:nth-child(4) {
    width: 80px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
}

.container-shape:nth-child(5) {
    width: 200px;
    height: 90px;
    top: 20%;
    left: 40%;
    animation-delay: 8s;
}

/* ========== DEMO SECTION ========== */
#demo {
    padding: 60px 0;
    text-align: center;
    background: #f8f9fa;
}

#demo h2 {
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #2c3e50;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    background: #e8491d;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.btn:hover {
    background: #333;
}

/* ========== FOOTER ========== */
footer {
    padding: 20px;
    margin-top: 20px;
    color: #ffffff;
    background-color: #35424a;
    text-align: center;
}

/* ========== RESPONSIVE STYLES ========== */
@media(max-width: 768px) {
    header #branding,
    header nav,
    header nav li {
        float: none;
        text-align: center;
        width: 100%;
    }

    #features .box {
        width: 100%;
    }

    #showcase h1 {
        font-size: 40px;
    }

    #newsletter form {
        flex-direction: column;
    }

    #newsletter input[type="email"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .video-container {
        margin: 20px 0;
    }
    
    #demo h2 {
        font-size: 1.8em;
    }

    .box {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .box:last-child {
        margin-bottom: 0;
    }
}

/* ========== HOW IT WORKS ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.step {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8491d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: bold;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.testimonial {
    background: #fff;
    padding: 24px;
    border-left: 4px solid #e8491d;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

/* ========== CTA ========== */
#cta {
    background: linear-gradient(135deg, #35424a, #1f2933);
    color: #fff;
    padding: 60px 0;
}
.cta-container {
    text-align: center;
}
.cta-actions .btn {
    margin: 0 8px;
}

@media(max-width: 992px) {
    .steps { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}