﻿body {
    box-sizing: border-box;
    background-image: linear-gradient(30deg, rgba(255, 8, 68, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 8, 68, 0.05) 87.5%, rgba(255, 8, 68, 0.05)), linear-gradient(150deg, rgba(255, 8, 68, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 8, 68, 0.05) 87.5%, rgba(255, 8, 68, 0.05)), linear-gradient(30deg, rgba(255, 8, 68, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 8, 68, 0.05) 87.5%, rgba(255, 8, 68, 0.05)), linear-gradient(150deg, rgba(255, 8, 68, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 8, 68, 0.05) 87.5%, rgba(255, 8, 68, 0.05)), linear-gradient(60deg, rgba(0, 245, 255, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(0, 245, 255, 0.03) 75%, rgba(0, 245, 255, 0.03)), linear-gradient(60deg, rgba(0, 245, 255, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(0, 245, 255, 0.03) 75%, rgba(0, 245, 255, 0.03)) !important;
}

* {
    font-family: 'Lexend', sans-serif;
}

.gradient-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

    .card-3d:hover {
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.25);
    }

.image-hover {
    position: relative;
    overflow: hidden;
}

    .image-hover img {
        transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
    }

    .image-hover:hover img {
        transform: scale(1.15) rotate(3deg);
    }

    .image-hover::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,107,107,0.4), rgba(255,230,109,0.4));
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }

    .image-hover:hover::before {
        opacity: 1;
    }

.badge-pulse {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .popup-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 1100px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    background: white;
    border-radius: 24px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

    .popup-content.active {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }

.floating-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

    .shimmer::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shimmer 3s infinite;
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

    .scroll-reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    border-radius: 10px;
}

.news-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

    .news-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
    }

.banner-slide {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

    .banner-slide.active {
        opacity: 1;
        transform: translateX(0);
    }

    .banner-slide:not(.active) {
        opacity: 0;
        position: absolute;
        transform: translateX(100%);
    }

.popup-slide-img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-thumbnail {
    transition: all 0.3s ease;
    position: relative;
}

    .popup-thumbnail::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,107,107,0.3), rgba(255,230,109,0.3));
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 1rem;
    }

    .popup-thumbnail:hover::after {
        opacity: 1;
    }

#popup-main-image:hover .popup-slide-img {
    transform: scale(1.05);
}

.fullscreen-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fullscreen-viewer.active {
        opacity: 1;
        pointer-events: auto;
    }

    .fullscreen-viewer img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        animation: zoomIn 0.3s ease-out;
    }

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.banner {
    background: url(../../../Images/banner-m2.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-img .relative {
    border-radius: 50%;
}

@media (max-width: 640px) {

    .banner-img .relative {
        border-radius: 0% !important;
    }
    .banner-img {
        padding-left:1rem !important;
    }

    .object-cover {
        object-fit: contain !important;
    }
}

.banner-img {
    padding-left: 2rem;
    text-align: center;
}

.btn-dot {
    margin-left: 390px;
    bottom: 1rem;
}

.policy {
    background: url(../../../Images/nen-m2-vechungtoi.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
@view-transition {
    navigation: auto;
}
.consult-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.consult-content {
    width: 420px;
    max-width: 90%;
    margin: 6% auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: slideUp 0.3s ease;
    color: #000;
}

/* header */
.consult-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    text-align: center;
}

    .consult-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.close-btn-pp {
    cursor: pointer;
    font-size: 22px;
    color: #888;
}

    .close-btn-pp:hover {
        color: #000;
    }

.consult-sub {
    font-size: 13px;
    color: #777;
    margin: 10px 0 20px;
}

/* input group */
.form-group {
    position: relative;
    margin-bottom: 14px;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px 12px 10px 36px;
        border-radius: 10px;
        border: 1px solid #ddd;
        font-size: 14px;
        transition: 0.2s;
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
            outline: none;
        }

/* icon */
.icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
}

.form-group.textarea .icon {
    top: 14px;
    transform: none;
}

/* button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background:#f1b345;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0,123,255,0.3);
    }

/* animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Icon animations on hover */

.fab-button:hover svg {
    animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.fab-button:hover .fab-tooltip {
    opacity: 1;
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.85);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

@media (max-width: 768px) {
    .floating-buttons {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }

    .fab-button {
        width: 48px;
        height: 48px;
    }

    .fab-tooltip {
        display: none;
    }
}

.text-menu {
    font-size: larger;
}

@view-transition {
    navigation: auto;
}

.fab-pulse {
    animation: slideInRightRotate 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, gradientShift 3s ease infinite, floatBounce 3s ease-in-out infinite, fabPulse 2s ease-in-out infinite;
    animation-delay: 0.1s, 0.6s, 1.1s, 0.6s;
}
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-6px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-6px) rotate(-5deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(8deg);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.1);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-3px) rotate(-5deg);
    }

    50% {
        transform: translateX(3px) rotate(5deg);
    }

    75% {
        transform: translateX(-3px) rotate(-5deg);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }
}

.fab-pulse {
    animation: slideInRightRotate 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, gradientShift 3s ease infinite, floatBounce 3s ease-in-out infinite, fabPulse 2s ease-in-out infinite;
    animation-delay: 0.1s, 0.6s, 1.1s, 0.6s;
}

@keyframes fabPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100px) rotate(180deg);
    animation: slideInRightRotate 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: visible;
}

    .fab-button::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: inherit;
        opacity: 0;
        animation: rippleEffect 2s ease-out infinite;
    }

    .fab-button:hover {
        transform: translateY(-8px) scale(1.15) rotate(360deg);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    }

    .fab-button:active {
        transform: translateY(-2px) scale(1.05) rotate(360deg);
    }

@keyframes slideInRightRotate {
    0% {
        opacity: 0;
        transform: translateX(100px) rotate(180deg) scale(0);
    }

    60% {
        transform: translateX(-10px) rotate(-10deg) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

@keyframes rippleEffect {
    0% {
        opacity: 0.6;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}


.fab-button:nth-child(1) {
    animation-delay: 0.1s;
}

    .fab-button:nth-child(1)::before {
        animation-delay: 0.6s;
    }

.fab-button:nth-child(2) {
    animation-delay: 0.2s;
}

    .fab-button:nth-child(2)::before {
        animation-delay: 0.7s;
    }

.fab-button:nth-child(3) {
    animation-delay: 0.3s;
}

    .fab-button:nth-child(3)::before {
        animation-delay: 0.8s;
    }

.fab-button:nth-child(4) {
    animation-delay: 0.4s;
}

    .fab-button:nth-child(4)::before {
        animation-delay: 0.9s;
    }

.fab-button:nth-child(5) {
    animation-delay: 0.5s;
}

    .fab-button:nth-child(5)::before {
        animation-delay: 1s;
    }

.fab-scroll-top {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
    background-size: 200% 200%;
    animation: slideInRightRotate 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, gradientShift 3s ease infinite, floatBounce 3s ease-in-out infinite;
    animation-delay: 0.1s, 0.6s, 1.1s;
}
