/**
 * css các box 
 * */

/* ==================================================
   HOME UI DESIGN SYSTEM
   Reusable Modern Section Styles
================================================== */


/* ==================================================
   STYLE 1 — Soft Blob UI
================================================== */

.home-style-1 {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, white, color-mix(in srgb, var(--primary-color), white 97%));
    border: 1px solid color-mix(in srgb, var(--primary-color), white 90%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .045);
    overflow: hidden;
    isolation: isolate;
}

.home-style-1::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color), transparent 88%), transparent 70%);
}

.home-style-1::after {
    content: "";
    position: absolute;
    left: -35px;
    bottom: -35px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color), transparent 94%);
}


/* ==================================================
   STYLE 2 — Dot Pattern + Glow
================================================== */

.home-style-2 {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, white, color-mix(in srgb, var(--primary-color), white 98%));
    border: 1px solid color-mix(in srgb, var(--primary-color), white 91%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .04);
    overflow: hidden;
    isolation: isolate;
}

.home-style-2::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 170px;
    height: 170px;
    border-radius: 24px;
    background-image:
        radial-gradient(color-mix(in srgb, var(--primary-color), transparent 86%) 1.3px, transparent 1.3px);
    background-size: 14px 14px;
    transform: rotate(8deg);
}

.home-style-2::after {
    content: "";
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--fs-color-secondary), transparent 90%), transparent 70%);
}


/* ==================================================
   STYLE 3 — Diamond Shape
================================================== */

.home-style-3 {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--fs-color-secondary), white 98%), color-mix(in srgb, var(--fs-color-secondary), white 94%));
    border: 1px solid color-mix(in srgb, var(--fs-color-secondary), white 85%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .045);
    overflow: hidden;
    isolation: isolate;
}

.home-style-3::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    transform: rotate(45deg);
    border-radius: 24px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--fs-color-secondary), transparent 86%),
            color-mix(in srgb, var(--fs-color-secondary), transparent 95%));
}

.home-style-3::after {
    content: "";
    position: absolute;
    left: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fs-color-secondary), transparent 92%);
}


/* ==================================================
   STYLE 4 — Modern Grid UI
================================================== */

.home-style-4 {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, white, color-mix(in srgb, var(--primary-color), white 97%));
    border: 1px solid color-mix(in srgb, var(--primary-color), white 90%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .045);
    overflow: hidden;
    isolation: isolate;
}

.home-style-4::before {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 180px;
    height: 180px;
    background-image:
        linear-gradient(color-mix(in srgb, var(--primary-color), transparent 92%) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--primary-color), transparent 92%) 1px, transparent 1px);
    background-size: 14px 14px;
    transform: rotate(12deg);
}

.home-style-4::after {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color), transparent 90%),
            transparent);
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}


/* ==================================================
   STYLE 5 — Glass Morphism Light
================================================== */

.home-style-5 {
    position: relative;
    padding: 32px;
    border-radius: 28px;
    background: color-mix(in srgb, white, transparent 28%);
    backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, white, transparent 45%);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .05),
        inset 0 1px 0 rgba(255, 255, 255, .7);
    overflow: hidden;
    isolation: isolate;
}

.home-style-5::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color), transparent 90%);
    filter: blur(8px);
}

.home-style-5::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fs-color-secondary), transparent 92%);
    filter: blur(12px);
}


/* ==================================================
   STYLE 6 — Wave Organic Shape
================================================== */

.home-style-6 {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, white, color-mix(in srgb, var(--primary-color), white 97%));
    border: 1px solid color-mix(in srgb, var(--primary-color), white 90%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .045);
    overflow: hidden;
    isolation: isolate;
}

.home-style-6::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -20px;
    width: 170px;
    height: 90px;
    background: color-mix(in srgb, var(--primary-color), transparent 90%);
    border-radius: 60% 40% 70% 30% / 45% 55% 45% 55%;
    transform: rotate(-12deg);
}

.home-style-6::after {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color), transparent 92%), transparent 70%);
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width:768px) {

    .home-style-1,
    .home-style-2,
    .home-style-3,
    .home-style-4,
    .home-style-5,
    .home-style-6 {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .home-style-1::before,
    .home-style-2::before,
    .home-style-3::before,
    .home-style-4::before,
    .home-style-5::before,
    .home-style-6::before {
        width: 110px;
        height: 110px;
    }

    .home-style-1::after,
    .home-style-2::after,
    .home-style-3::after,
    .home-style-4::after,
    .home-style-5::after,
    .home-style-6::after {
        width: 90px;
        height: 90px;
    }
}