/********** Template CSS **********/
:root {
    --primary: #4761FF;
    --secondary: #555555;
    --light: #F1F3FA;
    --dark: #1C2035;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* ép toàn bộ chữ navbar luôn là màu đen */
.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link:link,
.navbar .navbar-nav .nav-link:visited,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: #000 !important;
    text-shadow: none !important;
}

/* chỉ Trang chủ (active) màu đỏ */
.navbar .navbar-nav .nav-link.active {
    color: red !important;
}
/* mặc định chữ đen */
.navbar .navbar-nav .nav-link {
    color: #000 !important;
    text-shadow: none !important;
    transition: all 0.3s ease;
}

/* Trang chủ (active) màu đỏ */
.navbar .navbar-nav .nav-link.active {
    color: red !important;
}

/* hover sáng lên rõ ràng */
.navbar .navbar-nav .nav-link:hover {
    color: #ffffff !important; /* đổi sang đỏ khi hover */
    text-shadow: 0 0 10px #ff0000,
                 0 0 20px #ff0000,
                 0 0 30px #ff0000 !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Features ***/
/* .feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
} */

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}


/*** About ***/
.about {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/about.jpg) left center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    transition: none !important;
    z-index: 2;
}

/* ❌ bỏ hiệu ứng hover nổi */
.service-item:hover .service-text {
    top: 0 !important;
}

.service-item .service-text h5 {
    transition: none !important;
}

/* ❌ bỏ đổi màu khi hover */
.service-item:hover .service-text h5 {
    color: inherit !important;
}

.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: none !important;
    z-index: 1;
}

/* ❌ bỏ trượt nút xuống */
.service-item:hover .service-btn {
    bottom: 0 !important;
}


/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.project-item .project-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.project-item:hover .project-overlay {
    opacity: 1;
    padding-top: 0;
}

.project-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
    display: flex;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin-left: 15px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .project-carousel .owl-nav {
        top: -70px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .project-carousel .owl-nav .owl-prev,
    .project-carousel .owl-nav .owl-next {
        margin: 0 7px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-social {
    position: absolute;
    padding: 0;
    top: 15px;
    left: 0;
    overflow: hidden;
}

.team-item .team-social li {
    list-style-type: none;
    margin-bottom: 10px;
    margin-left: -50px;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social li {
    margin-left: 15px;
    opacity: 1;
}

.team-item .team-social li .btn {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 40px;
    transition: .5s;
}

.team-item .team-social li .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item .team-social li:nth-child(1) {
    transition-delay: .1s;
}

.team-item .team-social li:nth-child(2) {
    transition-delay: .2s;
}

.team-item .team-social li:nth-child(3) {
    transition-delay: .3s;
}

.team-item .team-social li:nth-child(4) {
    transition-delay: .4s;
}

.team-item .team-social li:nth-child(5) {
    transition-delay: .5s;
}


/*** Testimonial ***/
.testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
}

.owl-item .testimonial-item,
.testimonial-item * {
    transition: .5s;
}

.owl-item.center .testimonial-item,
.testimonial-item:hover {
    background: var(--primary);
}

.owl-item.center .testimonial-item *,
.testimonial-item:hover * {
    color: #FFFFFF !important;
}

.testimonial-item img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-left: 15px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: -70px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        margin: 0 7px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/* ** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}
/*** footer end ** */


/* ===== FOOTER CMD MEDIA ===== */
.footer {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #ccc;
    padding-top: 60px;
    padding-bottom: 30px;
    position: relative;
    font-size: 15px;
}

/* container box */
.footer .footer-box {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    padding: 40px;
    background: rgba(255,255,255,0.02);
    box-shadow: 0 0 30px rgba(255,0,0,0.05);
}

/* tiêu đề */
.footer h4, .footer h5 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

/* gạch đỏ */
.footer h4::after, .footer h5::after {
    content: "";
    width: 40px;
    height: 2px;
    background: red;
    position: absolute;
    left: 0;
    bottom: -8px;
}

/* link */
.footer .btn-link {
    color: #ccc;
    display: block;
    text-decoration: none;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer .btn-link:hover {
    color: red;
    transform: translateX(6px);
}

/* icon social */
.footer .social-btn {
    width: 42px;
    height: 42px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #fff;
    transition: 0.3s;
}

.footer .social-btn:hover {
    background: red;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 10px red, 0 0 20px red;
}

/* map */
.footer iframe {
    border-radius: 12px;
    filter: grayscale(30%);
}

/* overlay map */
.footer .map-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px;
    font-size: 13px;
    backdrop-filter: blur(5px);
}

/* logo dưới */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
}

.footer-bottom h2 {
    color: red;
    letter-spacing: 2px;
}

.footer-bottom span {
    color: #fff;
}

.footer-bottom p {
    font-size: 14px;
    color: #777;
}

.copyright {
    color: #B0B9AE;
}

.copyright {
    background: #111111;
}

.copyright a:hover {
    color: var(--primary) !important;
}
:root {
    --primary: #e60023; /* màu đỏ chủ đạo */
}

/* override các class Bootstrap đang dùng */
.bg-primary {
    background-color: #e60023 !important;
}

.text-primary {
    color: #e60023 !important;
}

.btn-primary {
    background-color: #e60023;
    border-color: #e60023;
}

.btn-primary:hover {
    background-color: #cc001f;
    border-color: #cc001f;
}

.zalo-btn:hover {
    transform: scale(1.1);
    transition: 0.3s;
}

/* Container */
.contact-float {
    position: fixed;
    right: 25px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 9999;
}

/* Item */
.float-item {
    position: relative;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon chính */
.float-item .icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: white;
    font-size: 26px;
    transition: all 0.3s ease;
}

/* Zalo màu riêng */
.float-item.zalo .icon {
    background: #0068FF;
}

/* Messenger */
.float-item.messenger .icon {
    background: #0084FF;
}

/* Icon img */
.float-item img {
    width: 28px;
}

/* Hover */
.float-item:hover .icon {
    transform: scale(1.1);
}

/* Sóng lan */
.pulse {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(0, 132, 255, 0.3);
    animation: ripple 2s infinite;
    z-index: 1;
}

.float-item.zalo .pulse {
    background: rgba(0, 104, 255, 0.3);
}

/* Delay vòng thứ 2 */
.pulse.delay {
    animation-delay: 1s;
}

/* Animation */
@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(2.5);
        opacity: 0;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes shakeSoft {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(8deg); }
    94% { transform: rotate(-8deg); }
    96% { transform: rotate(6deg); }
    98% { transform: rotate(-6deg); }
}

.float-item .icon {
    animation: shakeSoft 3s infinite;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 KEY */
    transform: translate(-50%, -50%);
}

.about-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.about-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.about-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.about-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.content-box {
    max-width: 600px;
    margin-right: 80px;
    color: white;
}
/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: #0d6efd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Item */
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

/* Left */
.timeline-item.left {
    left: 0;
}

/* Right */
.timeline-item.right {
    left: 50%;
}

/* Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background: #fff;
    border: 3px solid #0d6efd;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

/* Content */
.timeline-item .content {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 0;
    }
}

.news-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.5s;
}

/* Overlay gradient xịn */
.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* Content */
.news-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: #fff;
    z-index: 2;

    opacity: 0;
    transform: translateY(30px);
    transition: 0.4s;
}

/* Hover effect */
.news-card:hover img {
    transform: scale(1.1);
}

.news-card:hover .news-content {
    opacity: 1;
    transform: translateY(0);
}

/* Tag */
.news-content .tag {
    display: inline-block;
    background: #0d6efd;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Link */
.news-content a {
    color: #fff;
    font-weight: bold;
}


/* BOX */
.stat-box {
    padding: 30px;
    transition: 0.3s;
}

/* NUMBER */
.stat-box h2 {
    font-size: 40px;
    font-weight: bold;
}

/* TEXT */
.stat-box p {
    opacity: 0.8;
}

/* HOVER */
.stat-box:hover {
    transform: translateY(-10px);
}

/* GLOW */
.stat-box:hover h2 {
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}
/* Stats nhỏ + màu đỏ */
/* .stats-section {
    background: #e60023;
    color: #fff;
    padding: 25px 0;
    border-radius: 12px;
} */

.stat-box {
    padding: 10px;
}

.stat-box h2 {
    font-size: 26px;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 13px;
    opacity: 0.9;
}

/* Stats gradient đỏ + chữ rõ */
/* .stats-section {
    background: linear-gradient(135deg, #e60023, #ff4d6d);
    color: #fff;
    padding: 25px 0;
    border-radius: 12px;
} */

.stat-box {
    padding: 10px;
}

/* Số */
.stat-box h2 {
    font-size: 26px;
    margin-bottom: 5px;
    color: #fff; /* fix bị chìm */
}

/* Text */
.stat-box p {
    font-size: 13px;
    color: rgba(255,255,255,0.9); /* sáng hơn */
}


.stats-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px 20px;
    border-radius: 12px;

    background: linear-gradient(135deg, #e60023, #ff4d6d);
    color: #fff;
}

/* box */
.stat-box {
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

/* số */
.stat-box h2 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #fff;
}

/* text */
.stat-box p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* hover */
.stat-box:hover {
    transform: translateY(-5px);
}

.news-content h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-content p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.news-content a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.news-content a:hover {
    color: #ffccd5;
}

.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* overlay luôn có (để chữ đọc được) */
.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

/* content luôn hiển thị */
.news-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;

    opacity: 0.7;            /* 👈 mờ sẵn */
    transform: translateY(10px); /* 👈 hơi trôi xuống */
    transition: 0.4s;
}

/* hover: rõ + nổi lên */
.news-card:hover .news-content {
    opacity: 1;
    transform: translateY(0);
}

/* zoom nhẹ ảnh */
.news-card:hover img {
    transform: scale(1.05);
}

.news-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 9/16;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👈 giữ đẹp, không méo */
}

.feature-card {
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.3s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.form-control, .form-select, .form-floating label {
    font-size: 14px;
}

.form-floating {
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}
.form-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
@media (max-width: 992px) {
    .form-wrapper iframe {
        height: 800px; /* co gọn trên mobile */
    }
}

iframe {
    transition: 0.3s;
}

iframe:hover {
    transform: scale(1.03);
}

.topbar-gradient {
    background: linear-gradient(270deg, #ff0000, #ff4d4d, #cc0000, #ff1a1a);
    background-size: 600% 600%;
    animation: gradientMove 8s ease infinite;
}

/* Hiệu ứng chuyển động */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
-------------------

.topbar-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(270deg, #ff0000, #ff4d4d, #cc0000, #ff1a1a);
    background-size: 600% 600%;
    animation: gradientMove 8s ease infinite;
}

/* ánh sáng lướt */
.topbar-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 150%; }
}

.topbar-gradient img {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
    transition: 0.3s;
}

.topbar-gradient img:hover {
    transform: scale(1.05);
}

.topbar-gradient {
    border-bottom: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5);
}

.topbar-gradient {
    position: relative;
    z-index: 999;
}

.topbar-gradient {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.topbar-gradient {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar-gradient.scrolled {
    background: linear-gradient(
        135deg,
        rgba(255, 0, 0, 0.6),
        rgba(255, 50, 50, 0.4)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.topbar-gradient {
    position: relative;
    top: 0;
    z-index: 99999 !important;
}
/* tránh các section đè lên */
section,
.container,
.row {
    position: relative;
    z-index: 1;
}

/* trạng thái bình thường */
.navbar-glass {
    background: #ffffff;
    transition: all 0.4s ease;
}

/* khi scroll */
.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.6); /* trắng trong suốt */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.navbar-glass {
    background: transparent; /* bắt buộc phải trong suốt */
    transition: all 0.4s ease;
}

/* khi scroll */
.navbar-glass.scrolled {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.4),
        rgba(255,255,255,0.2)
    );
    backdrop-filter: blur(14px);
}
.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
}

.navbar-glass .nav-link {
    font-weight: 600;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff1a1a;
    }
    50% {
        text-shadow: 0 0 15px #ff0000, 0 0 25px #ff0000;
    }
}


.navbar-glass.scrolled .nav-link {
    color: #fff !important; /* đổi sang trắng */
    text-shadow: 
             0 0 5px #ff4d4d,
              0 0 10px #ff1a1a,
               0 0 20px rgba(255,0,0,0.8),
               0 0 30px rgba(255,0,0,0.6);
}

.btn-sm-square {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: 0.3s;
}

.btn-sm-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#header-carousel .carousel-item img {
    transition: transform 12s ease;
}

#header-carousel .carousel-item.active img {
    transform: scale(1.1);
}

.text-gradient-neon {
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #dddddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 8px rgba(255,255,255,0.9),
        0 0 16px rgba(255,255,255,0.6),
        0 0 30px rgba(255,255,255,0.3);
}

.btn-glow {
    background: linear-gradient(45deg, #ff2d2d, #b30000);
    color: #fff;
    border: none;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(255,0,0,0.6);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 0 25px rgba(255,0,0,0.9),
        0 0 50px rgba(255,50,50,0.7);
}

/* FEATURE */
.feature-card{
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    border-radius:16px;
    transition:0.3s;
}
.feature-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.3);
}

/* TEXT NEON */
.text-gradient-neon{
    background: none(45deg,#00f2ff,#007bff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.feature-card,
.service-item,
.team-item,
.testimonial-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.feature-card:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 57, 57, 0.3);
}

------------------------
.dark-section {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    border-radius: 20px;
    padding: 40px 20px;
    color: #fff;
}
-----------------------
/* Typography */
.container p {
    font-size: 17px;
    line-height: 1.9;
    color: #2b2b2b;
}

/* Lead đoạn mở đầu */
.lead {
    font-size: 20px;
    font-weight: 500;
    color: #111;
}

/* Ảnh đẹp hơn */
img {
    transition: 0.4s ease;
}

img:hover {
    transform: scale(1.03);
}

/* Quote hiện đại */
.quote-box {
    font-size: 20px;
    font-style: italic;
    padding: 20px 25px;
    border-left: 4px solid #0d6efd;
    background: #f8f9fa;
    border-radius: 10px;
    color: #444;
}

/* Title spacing */
h1, h4 {
    line-height: 1.4;
}

/* fix ảnh luôn giữa */
.article-content img {
    display: block;
    margin: 25px auto;
    max-width: 100%;
    border-radius: 12px;
}

/* chữ đọc như báo */
.article-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #2b2b2b;
}

/* đoạn mở đầu */
.article-content .lead {
    font-size: 20px;
    font-weight: 500;
}

/* quote xịn */
.quote-box {
    font-size: 20px;
    font-style: italic;
    padding: 20px;
    border-left: 4px solid #0d6efd;
    background: #f8f9fa;
    border-radius: 10px;
}

/* video bo góc */
.ratio iframe {
    border-radius: 12px;
}

video {
    object-fit: cover;
}

html {
    scroll-behavior: smooth;
}