html {
    scroll-behavior: smooth;
}


/* Hiệu ứng slide cho menu mobile Bootstrap */

@media (max-width: 991.98px) {
    #navbarNav.collapse {
        transition: transform 0.4s cubic-bezier(.77, 0, .18, 1), opacity 0.3s;
        transform: translateX(100%);
        opacity: 0;
        display: block !important;
        background: #fff;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        padding-top: 64px;
    }
    #navbarNav.collapse.show {
        transform: translateX(0);
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    background: #f8fafc;
    color: #222;
}

h1,
h2,
h5,
.navbar-brand span {
    color: #1a365d;
}

section {
    border-radius: 12px;
    margin-bottom: 32px;
}

.navbar {
    border-bottom: 1px solid #eaeaea;
}

.btn-primary,
.btn-outline-primary {
    border-radius: 24px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: #2563eb;
    border: none;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: #fff;
}

footer {
    background: rgb(70, 159, 214) !important;
    color: #fff;
    border: none;
    box-shadow: none;
}

.footer-link {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
    font-size: 1rem;
}

.footer-link:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}

footer .fw-bold {
    letter-spacing: 1px;
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}

footer .img-fluid {
    filter: drop-shadow(0 2px 8px #0001);
}

footer .footer-apps {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

footer .footer-apps img {
    height: 54px;
    width: 140px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px 0 #0001;
    transition: box-shadow 0.25s, transform 0.25s;
    display: block;
}

footer .footer-apps img:hover {
    box-shadow: 0 8px 32px 0 #2dd4bf33;
    transform: translateY(-4px) scale(1.04);
}

@media (max-width: 991.98px) {
    footer .col-md-4,
    footer .col-md-2 {
        text-align: center !important;
        margin-bottom: 1.5rem;
    }
    footer .d-flex.flex-row.flex-md-column {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }
    footer .footer-apps {
        justify-content: center;
        gap: 12px;
    }
    footer .footer-apps img {
        height: 40px;
        width: 100px;
    }
}

.card {
    border-radius: 16px;
}

img.rounded {
    border-radius: 16px !important;
}


/* Underline animation for highlight text */

.underline-animate {
    display: inline-block;
    position: relative;
    color: #1a365d;
    font-weight: bold;
}

.underline-animate::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2dd4bf 0%, #2563eb 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 8px #2dd4bf44;
}

.underline-animate.visible::after {
    transform: scaleX(1);
}


/* Fade-in and slide-in animation */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s cubic-bezier(.77, 0, .18, 1), transform 1.1s cubic-bezier(.77, 0, .18, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.1s cubic-bezier(.77, 0, .18, 1), transform 1.1s cubic-bezier(.77, 0, .18, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: none;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.1s cubic-bezier(.77, 0, .18, 1), transform 1.1s cubic-bezier(.77, 0, .18, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: none;
}


/* Button shadow and hover */

.btn-primary,
.btn-outline-primary,
.btn-light {
    box-shadow: 0 2px 12px 0 rgba(44, 180, 180, 0.10);
    background: linear-gradient(90deg, #2563eb 0%, #2dd4bf 100%);
    border: none;
    color: black;
    transition: background 0.35s cubic-bezier(.77, 0, .18, 1), color 0.35s cubic-bezier(.77, 0, .18, 1), transform 0.25s cubic-bezier(.77, 0, .18, 1);
}

.btn-primary:active,
.btn-outline-primary:active,
.btn-light:active {
    box-shadow: 0 1px 4px 0 rgba(44, 180, 180, 0.10);
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-light:hover {
    background: linear-gradient(90deg, #2dd4bf 0%, #2563eb 100%);
    color: #fff;
    transform: scale(1.05);
    transition: background 0.35s cubic-bezier(.77, 0, .18, 1), color 0.35s cubic-bezier(.77, 0, .18, 1), transform 0.25s cubic-bezier(.77, 0, .18, 1);
}

.img-fluid:hover {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 4px 24px 0 rgba(44, 180, 180, 0.10);
    transition: box-shadow 0.45s cubic-bezier(.77, 0, .18, 1), transform 0.45s cubic-bezier(.77, 0, .18, 1);
}

.bg-primary {
    background: linear-gradient(90deg, #2dd4bf 0%, #2563eb 100%) !important;
}

section.bg-light {
    background: linear-gradient(90deg, #f8fafc 60%, #e0f7fa 100%) !important;
}

.hero-section {
    position: relative;
    min-height: 520px;
    background: none !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 48px;
    padding-bottom: 48px;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    border-radius: 0 0 0 120px;
    pointer-events: none;
    transition: opacity 0.4s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #fff 10%, #ffffff00 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 700px;
}

.hero-section h1,
.hero-section p,
.hero-section a {
    animation: fadeInUp 1s cubic-bezier(.4, 0, .2, 1);
}

.hero-section h1 {
    animation-delay: 0.1s;
}

.hero-section p {
    animation-delay: 0.3s;
}

.hero-section a {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.benefit-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px 0 rgba(44, 180, 180, 0.10);
    padding: 32px 20px;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s;
    min-height: 260px;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 12px 48px 0 rgba(44, 180, 180, 0.18);
}

.benefit-card img {
    margin-bottom: 18px;
}

.btn-primary,
.btn-outline-primary,
.btn-light {
    background: linear-gradient(90deg, #2563eb 0%, #2dd4bf 100%);
    border: none;
    box-shadow: 0 2px 12px 0 rgba(44, 180, 180, 0.10);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-light:hover {
    background: linear-gradient(270deg, #2dd4bf 0%, #2563eb 100%);
    color: #fff;
    transform: scale(1.07);
}

@media (max-width: 900px) {
    .hero-bg-img {
        border-radius: 0;
        opacity: 0.5;
    }
    .hero-section .container {
        max-width: 100vw;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 340px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .benefit-card {
        padding: 20px 10px;
        min-height: 180px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 2000;
        border-radius: 0 0 32px 32px;
        box-shadow: 0 8px 32px 0 rgba(44, 180, 180, 0.10);
        padding-top: 32px;
        padding-bottom: 32px;
        animation: slideInMenu 0.4s cubic-bezier(.4, 0, .2, 1);
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .navbar-nav {
        width: 100%;
        align-items: center !important;
    }
    .navbar-nav .nav-link {
        font-size: 1.15rem;
        padding: 18px 0;
        margin: 0;
        border-radius: 16px;
        transition: background 0.2s;
    }
    .navbar-nav .nav-link:active,
    .navbar-nav .nav-link:focus {
        background: #f0f9fa;
    }
    .btn-close {
        position: absolute;
        top: 18px;
        right: 24px;
        z-index: 2100;
        font-size: 2rem;
        opacity: 0.7;
    }
    .btn-close:focus {
        outline: none;
        box-shadow: none;
    }
    .navbar-nav .btn {
        margin-top: 24px;
        margin-bottom: 12px;
        font-size: 1.1rem;
        border-radius: 32px;
        padding: 16px 0;
    }
}

@keyframes slideInMenu {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .navbar {
        min-height: 80px;
        box-shadow: none;
        border-radius: 0;
        background: #fff !important;
        align-items: center;
    }
    .navbar-brand {
        display: flex;
        align-items: center;
        height: 80px;
        padding: 0 12px;
    }
    .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
        gap: 32px !important;
        margin-left: 32px;
        margin-right: 32px;
    }
    .navbar-nav .nav-link {
        font-size: 1.08rem;
        padding: 0 12px;
        line-height: 80px;
        color: #1a365d;
        font-weight: 600;
        letter-spacing: 1px;
        border-radius: 0;
        background: none !important;
        transition: color 0.2s;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #2dd4bf;
        background: none !important;
    }
    .navbar .btn-primary {
        margin-left: 24px;
        height: 48px;
        padding: 0 32px;
        font-size: 1.08rem;
        border-radius: 24px;
        display: flex;
        align-items: center;
        box-shadow: 0 2px 12px 0 rgba(44, 180, 180, 0.10);
    }
    .navbar-toggler {
        display: none !important;
    }
    .navbar-collapse {
        position: static !important;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        min-height: unset !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .btn-close {
        display: none !important;
    }
}


/* Card hover effect */

.p-4.bg-white.rounded-4.shadow-sm {
    transition: box-shadow 0.45s cubic-bezier(.77, 0, .18, 1), transform 0.45s cubic-bezier(.77, 0, .18, 1);
}

.p-4.bg-white.rounded-4.shadow-sm:hover {
    box-shadow: 0 16px 48px 0 rgba(44, 180, 180, 0.18);
    transform: translateY(-12px) scale(1.04);
}


/* Button effect */

.btn-success,
.btn-primary {
    transition: background 0.35s cubic-bezier(.4, 0, .2, 1), transform 0.25s cubic-bezier(.4, 0, .2, 1), box-shadow 0.25s cubic-bezier(.4, 0, .2, 1);
}

.btn-success:hover,
.btn-primary:hover {
    background: linear-gradient(90deg, #2dd4bf 0%, #2563eb 100%);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 32px 0 rgba(44, 180, 180, 0.18);
}


/* Input focus effect */

.form-control:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px #2dd4bf55;
    outline: none;
    transition: box-shadow 0.25s cubic-bezier(.4, 0, .2, 1), border-color 0.25s cubic-bezier(.4, 0, .2, 1);
}


/* Responsive Contact */

@media (max-width: 767.98px) {
    #contact .p-4 {
        padding: 1.2rem !important;
    }
    #contact h2 {
        font-size: 1.5rem !important;
    }
}

.animated-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: box-shadow 0.3s;
}

.circle-1 {
    width: 100px;
    height: 100px;
    left: -80px;
    top: 10%;
    border: 8px solid #b6e0f7;
    background: radial-gradient(circle at 60% 40%, #e0f7fa 60%, #fff0 100%);
    box-shadow: 0 0 32px 8px #b6e0f755, 0 4px 32px 0 #2dd4bf22;
    animation: circleOutlineMove 7s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.circle-2 {
    width: 44px;
    height: 44px;
    left: 40px;
    top: 78%;
    background: linear-gradient(135deg, #2dd4bf 60%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 24px 0 #2dd4bf55;
    animation: circleDotMove 4.5s cubic-bezier(.4, 0, .2, 1) infinite alternate, circlePulse 1.8s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes circleOutlineMove {
    0% {
        transform: translateY(0) scale(1);
    }
    40% {
        box-shadow: 0 0 48px 16px #b6e0f799, 0 4px 32px 0 #2dd4bf22;
    }
    50% {
        transform: translateY(24px) scale(1.12);
        box-shadow: 0 0 64px 24px #b6e0f7cc, 0 8px 48px 0 #2dd4bf33;
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes circleDotMove {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-24px) scale(1.13);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes circlePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 #2dd4bf44;
    }
    50% {
        box-shadow: 0 0 16px 8px #2dd4bf55;
    }
}

@media (max-width: 991.98px) {
    .circle-1 {
        width: 60px;
        height: 60px;
        left: -24px;
        top: 18%;
        border-width: 4px;
    }
    .circle-2 {
        width: 22px;
        height: 22px;
        left: 8px;
        top: 80%;
    }
}