/* =========================================================
   VUDEV - TRANG CHỦ (TỐI GIẢN - ĐẲNG CẤP - HIỆN ĐẠI)
   ========================================================= */

:root {
    --bg-dark: #050505;
    --text-dark: #f5f5f5;
    --text-muted-dark: #94a3b8;

    --body-bg: var(--bg-dark);
    --text-color: var(--text-dark);
    --text-muted: var(--text-muted-dark);
}

[data-theme="light"] {
    --body-bg: #ffffff;
    --text-color: #111111;
    --text-muted: #475569;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    overflow: hidden;
    z-index: 1;
}

/* Grid Pattern Background siêu mờ */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--text-muted, #64748b) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    opacity: 0.15;
    z-index: -2;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 95%, transparent);
}

/* ================= ĐÈN RỌI THEO CHUỘT (SPOTLIGHT) ================= */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.04),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-theme="light"] .hero::after {
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 0, 0, 0.04),
            transparent 40%);
}

.hero:hover::after {
    opacity: 1;
}

/* Ánh sáng xoay (Mesh Gradient) ở vị trí trung tâm */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: conic-gradient(from 180deg at 50% 50%,
            rgba(139, 92, 246, 0.4) 0deg,
            rgba(236, 72, 153, 0.4) 120deg,
            rgba(14, 165, 233, 0.4) 240deg,
            rgba(139, 92, 246, 0.4) 360deg);
    filter: blur(80px);
    border-radius: 50%;
    animation: spinMesh 10s linear infinite;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

[data-theme="light"] .hero-glow {
    opacity: 0.6;
    /* Sáng hơn một chút trên nền trắng */
}

@keyframes spinMesh {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

/* Khối Nội Dung */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-split {
    flex-direction: row;
    text-align: left;
    gap: 40px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.hero-banner-img:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 30px 60px rgba(236, 72, 153, 0.3), 0 0 40px rgba(14, 165, 233, 0.2);
    animation-play-state: paused;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-left .hero-title {
    font-size: clamp(2rem, 4.5vw, 4.2rem) !important;
    line-height: 1.15;
    margin-bottom: 20px;
    white-space: normal !important;
}
.hero-left .hero-subtitle {
    margin-bottom: 30px;
}
.hero-left .hero-subtitle p {
    font-size: 1.05rem !important;
    line-height: 1.7;
    margin-bottom: 12px;
}

@media (max-width: 991px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }
    .hero-left {
        align-items: center;
        margin-bottom: 2rem;
    }
    .hero-left .hero-title {
        font-size: clamp(2.2rem, 7vw, 3.5rem) !important;
    }
    .hero-left .hero-subtitle p {
        font-size: 1rem !important;
    }
}

/* Tem Badge ở trên cùng */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue, #0ea5e9);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    margin-bottom: 20px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Typography Title */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: var(--text-color);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    /* Chuyển động siêu nhạy đáp ứng thao tác 3D JS */
    transition: transform 0.1s linear, text-shadow 0.1s linear;
}

/* Hiệu ứng đoạn chữ dạng Gradient phân tách */
.hero-title .text-gradient {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Phân tán ánh sáng tủa ra từ chữ (Glow) */
.hero-title .text-gradient::after {
    content: 'Website';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: blur(14px);
    opacity: 0.6;
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        filter: blur(12px);
    }

    100% {
        opacity: 0.8;
        filter: blur(20px);
    }
}

/* Phụ đề */
.hero-subtitle {
    font-size: clamp(0.88rem, 1.6vw, 1.08rem);
    /* Đã giảm ~20% kích thước chữ */
    color: var(--text-muted, #94a3b8);
    line-height: 1.6;
    margin-bottom: 24px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    font-weight: 400;
}

.hero-subtitle p {
    margin: 4px 0;
    transition: all 0.3s ease;
    cursor: default;
}

/* Nổi bật đoạn văn đang trỏ chuột, đẩy nhẹ lên trước */
.hero-subtitle p:hover {
    color: var(--text-color);
    transform: translateX(6px) scale(1.02);
    text-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

/* Nhóm hành động (Chứa cả 2 nút) */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
}

/* Khối Nút Bấm Xịn (Primary CTA) */
.hero-cta-wrapper {
    position: relative;
    display: inline-block;
    padding: 2px;
    border-radius: 100px;
    background: linear-gradient(90deg, #0ea5e9, #a855f7, #ec4899, #0ea5e9);
    background-size: 300% 100%;
    animation: shimmerBorder 4s linear infinite, fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.4), 0 0 0 4px rgba(168, 85, 247, 0.1);
}

@keyframes shimmerBorder {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 300% 0;
    }
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 42px;
    font-size: 1.15rem;
    font-weight: 600;
    background: var(--body-bg, #050505);
    color: var(--text-color, #f5f5f5);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Ánh kim lướt chéo khi đổi màu */
.hero-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.hero-cta:hover::after {
    left: 200%;
}

.hero-cta:hover {
    background: linear-gradient(90deg, #0ea5e9, #a855f7, #ec4899);
    color: #ffffff !important;
}

.hero-cta .arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.hero-cta:hover .arrow {
    transform: translateX(6px);
    color: #ffffff;
}

/* Nút Phụ (Secondary Button) */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--text-muted);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
}

.hero-btn-secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    /* Tối ưu cho dark mode */
    transform: translateY(-2px);
}

[data-theme="light"] .hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    /* Tối ưu cho light mode */
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hiệu Ứng Bắn Hạt (Particle Fly) gắn với Javascript */
.btn-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleFly 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* (Đã Xóa Content Section Placeholder) */

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 85px 20px 30px;
        justify-content: flex-start;
    }

    .hero-badge {
        margin-bottom: 12px;
        font-size: 0.8rem;
        padding: 4px 14px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        white-space: nowrap;
        margin-bottom: 12px;
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 10px;
    }

    .hero-cta-wrapper {
        width: 100%;
        display: block;
    }

    .hero-cta {
        padding: 14px 34px;
        font-size: 1.05rem;
        width: 100%;
        justify-content: center;
    }

    .hero-btn-secondary {
        padding: 14px 34px;
        font-size: 1.05rem;
        width: 100%;
        justify-content: center;
    }

    .hero-glow {
        width: 350px;
        height: 350px;
        filter: blur(70px);
    }

    /* Ecosystem Mobile Adjustments */
    .eco-heading {
        font-size: 2.2rem;
    }

    .eco-desc {
        margin-bottom: 50px;
        font-size: 1rem;
        padding: 0 10px;
    }

    .orbit-map {
        width: 320px;
        height: 320px;
    }

    .orbit-center {
        width: 80px;
        height: 80px;
        font-size: 1.1rem;
    }

    .orbit-unrotate {
        top: -16px;
        left: calc(50% - 16px);
        width: 32px;
        height: 32px;
    }

    .orbit-icon {
        padding: 6px;
    }

    .eco-ripples .ripple {
        animation-name: rippleWaveMobile;
    }
}

@keyframes rippleWaveMobile {
    0% {
        width: 80px;
        height: 80px;
        opacity: 1;
        border-color: rgba(168, 85, 247, 0.8);
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
        border-color: rgba(14, 165, 233, 0);
    }
}

/* ================= HỆ SINH THÁI CÔNG NGHỆ ================= */
.ecosystem-section {
    padding: 40px 20px 20px 20px;
    /* Thu hẹp padding top/bottom */
    position: relative;
    overflow: hidden;
    background: transparent;
}

.eco-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.eco-header {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .ecosystem-section {
        padding-top: 40px;
        /* Giảm mạnh khoảng trắng thừa phí trên đt */
    }

    .eco-header {
        margin-bottom: 30px;
    }
}

.eco-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -1px;
    animation: fadeUp 1s ease forwards;
}

.eco-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
    /* Đã cắt bớt 50px khoảng cách tới khung lưới */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* TECH SWARM PHYSICS CONTAINER */
.tech-swarm-container {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1280px;
    height: 550px;
    margin: 0 auto;
    background-color: rgba(15, 23, 42, 0.4);
    background-image:
        radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.15), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.1), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.4);
    touch-action: none;
}

/* Light Mode cho lưới điện tử */
[data-theme="light"] .tech-swarm-container {
    background-color: rgba(255, 255, 255, 0.5);
    background-image:
        radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.08), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08), transparent 60%),
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.02), 0 20px 40px rgba(0, 0, 0, 0.05);
}

.tech-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin-top: -70px;
    margin-left: -70px;
    background: var(--body-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.5), inset 0 0 20px rgba(236, 72, 153, 0.2);
    /* Effect */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: default;
}

.tech-center:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6), inset 0 0 30px rgba(236, 72, 153, 0.4);
    border-color: rgba(236, 72, 153, 0.5);
}

[data-theme="light"] .tech-center {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tech-center:hover {
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.25), inset 0 0 30px rgba(236, 72, 153, 0.2);
}

.tech-node {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    will-change: transform;
    z-index: 5;
    cursor: pointer;
}

.tech-icon {
    width: 100%;
    height: 100%;
    /* Dùng trick CSS nền ám màu nhẹ nhàng theo 5% màu thương hiệu */
    background: color-mix(in srgb, var(--node-color, #ffffff) 5%, #ffffff 95%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Bóng đổ sáng theo màu thương hiệu ngay từ lúc bình thường */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 18px var(--node-color, rgba(0, 0, 0, 0.05)), 0 0 0 2px var(--node-color, rgba(255, 255, 255, 0.05));
    padding: 12px;
    /* Hiệu ứng xoay nẩy (Bouncy Rotate) mượt mà nguyên chất */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.4s ease;
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Bức ảnh hiện nguyên hình 100% màu rực rỡ, không xỉn xám nữa */
    filter: brightness(1) opacity(0.9);
    transition: filter 0.4s ease, opacity 0.4s ease;
}

/* Hover effects */
.tech-node:hover,
.tech-node.mobile-active {
    z-index: 200;
    /* Nhô lên tránh bị cụt Tooltip */
}

.tech-node:hover .tech-icon,
.tech-node.mobile-active .tech-icon {
    /* Vừa phình to vừa xoay 1 vòng ngoạn mục */
    transform: scale(1.4) rotate(360deg);
    /* Bơm lại xung lực màu sắc của riêng brand đó gắt hơn */
    box-shadow: 0 8px 30px var(--node-color, rgba(168, 85, 247, 0.9)), 0 0 0 4px var(--node-color, rgba(168, 85, 247, 0.5));
    background: #ffffff;
}

.tech-node:hover .tech-icon img,
.tech-node.mobile-active .tech-icon img {
    /* Độ nét 100% cực kỳ sắc sảo */
    filter: brightness(1.05) opacity(1);
}

.tech-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--node-color, rgba(0, 0, 0, 0.4));
    border: 1px solid var(--node-color, rgba(255, 255, 255, 0.1));
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--node-color, #1e293b) transparent transparent transparent;
}

.tech-node:hover .tech-tooltip,
.tech-node.mobile-active .tech-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Mobile */
@media (max-width: 768px) {
    .tech-swarm-container {
        height: 350px;
        /* Thu hẹp diện tích dư thừa mảng đen */
        border-radius: 20px;
    }

    .tech-center {
        width: 70px;
        /* Nh? l?i d? Icon ch?y v�ng tr�n nhi?u d?t di?n hon */
        height: 70px;
        margin-top: -35px;
        margin-left: -35px;
        font-size: 0.95rem;
    }

    .tech-node {
        width: 35px;
        /* Icon Physics nh? l?i d�ng k? */
        height: 35px;
    }

    .tech-icon {
        padding: 5px;
    }
}
/* ================= 12 FACTORS SECTION ================= */
.factors-section {
    padding: 0px 20px 40px 20px;
    /* Thụt trần đáy xa ra để tool-tip không chọc vào thẻ kế tiếp */
    background: transparent;
    position: relative;
    z-index: 5;
    /* Xóa overflow: hidden để chữ không bị chặt mất khi nằm ở rìa */
}

.factors-container {
    max-width: 1280px;
    margin: 0 auto;
}

.factors-header {
    text-align: center;
    margin-bottom: 20px;
    /* Dãn cách xa Lõi bên dưới ra thêm */
}

.factors-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-blue, #0ea5e9);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    margin-bottom: 16px;
    /* Dãn cách xa H2 bên dưới ra thêm */
}

.factors-heading {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    /* Chữ nhỏ lại 1 xíu */
    margin-bottom: 0px;
    color: var(--text-color);
    letter-spacing: -0.5px;
    /* Dãn khoảng cách giữa các chữ ra 1 xíu */
    line-height: 1.3;
}

/* VUDEV WEBSITE - Dải lụa phát sáng */
.factors-header .text-gradient {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Bọc Layout Orbit Tròn */
.factors-circle-wrapper {
    width: 100%;
    max-width: 680px;
    /* Thu hẹp khung tổng để giảm triệt để khoảng trống */
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    position: relative;
}

/* Lõi Trung Tâm VUDEV WEBSITE (Khung Tròn Gọn Nhỏ) */
.factors-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Đã bỏ góc xoay chéo 45deg */
    width: 110px;
    height: 110px;
    /* Khung tròn nhỏ gọn lại */
    /* Đã xoá bỏ background và border (xóa khung trong) */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.5s ease;
}

.factors-orb:hover {
    transform: translate(-50%, -50%) scale(1.08);
    /* Chỉ phóng to Scale, không rotate */
}

/* Hiệu ứng chớp sáng lõi mỗi khi kim đồng hồ xoay (Orb Flash) */
@keyframes orbGlowPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
    }

    30% {
        transform: translate(-50%, -50%) scale(1.15);
        filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.9));
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
    }
}

.factors-orb.orb-flash {
    animation: orbGlowPulse 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Vòng sáng quét Radar bao quanh lõi (Chính là KHUNG TRÒN duy nhất để lại) */
.factors-orb .orb-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Khít với chiều rộng 110px của cha */
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    /* Bù nền tối cho chữ dễ đọc trên tia Laser */
    backdrop-filter: blur(8px);
    border: 1px dashed rgba(14, 165, 233, 0.5);
    border-top: 2px solid rgba(236, 72, 153, 0.9);
    border-bottom: 2px solid rgba(168, 85, 247, 0.9);
    animation: radarSpin 5s linear infinite;
    pointer-events: none;
    z-index: -1;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2), inset 0 0 15px rgba(236, 72, 153, 0.2);
}

@keyframes radarSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

[data-theme="light"] .factors-orb .orb-ring {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    border-top: 2px solid rgba(236, 72, 153, 0.7);
    border-bottom: 2px solid rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.1), inset 0 0 15px rgba(236, 72, 153, 0.1);
}

.orb-content {
    /* Căn giữa bình thường, bỏ rotate(-45deg) do lõi đã đứng thẳng */
    display: flex;
    align-items: center;
    justify-content: center;
}

.factors-orb .text-gradient {
    font-size: 1.1rem;
    /* Giảm nhẹ để vừa vặn vòng tròn nhỏ 110px */
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #0ea5e9, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: pulseOrbText 3s ease-in-out infinite alternate;
}

@keyframes pulseOrbText {
    0% {
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.6));
        transform: scale(1.05);
    }
}

/* Các Card nhỏ gọn hình tròn xoay quanh */
.factor-card {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Tối ưu cho dark mode */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: default;
}

[data-theme="light"] .factor-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.factor-card:hover {
    transform: translate(-50%, -50%) scale(1.18);
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
    z-index: 25;
}

[data-theme="light"] .factor-card:hover {
    background: #ffffff;
}

/* Trạng thái được Đồng hồ/Lõi ngắm trúng (Sync Active) */
.factor-card.active {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5), inset 0 0 15px rgba(14, 165, 233, 0.2);
    z-index: 15;
}

[data-theme="light"] .factor-card.active {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.25);
}

.factor-num {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-color), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.3;
    transition: all 0.3s ease;
}

/* Sync kích hoạt ánh sáng Number & Title từ trạng thái Hover hoặc Active */
.factor-card:hover .factor-num,
.factor-card.active .factor-num {
    opacity: 1;
    background: linear-gradient(135deg, #0ea5e9, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: scale(1.05);
}

.factor-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
    transition: color 0.3s ease;
}

.factor-card:hover .factor-title,
.factor-card.active .factor-title {
    color: #0ea5e9;
}

/* Tooltip hiển thị mô tả khi hover */
.factor-tooltip {
    position: absolute;
    width: 220px;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 30;
    pointer-events: none;
    top: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

[data-theme="light"] .factor-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border-color: rgba(14, 165, 233, 0.5);
}

.factor-card:hover .factor-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Kim đồng hồ năng lượng (Clock Hand) */
#clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 3px;
    width: 45%;
    /* Bám sát viền vòng tròn mới nở ra */
    /* Gradient tạo hiệu ứng tia Laser phát ra từ lõi đâm về phía vệ tinh */
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.8) 60%, rgba(236, 72, 153, 1) 100%);
    transform-origin: left center;
    transform: translateY(-50%) rotate(-90deg);
    /* Mặc định 12h */
    z-index: 2;
    /* Dưới thẻ Card và Orb */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6), 0 0 10px rgba(14, 165, 233, 0.6);
    pointer-events: none;
    border-radius: 10px;
}

/* Tụ quang (Tia Laser chói loè ở đầu mũi kim đồng hồ) */
#clock-hand::after {
    content: '';
    position: absolute;
    right: -2px;
    /* Dịch mũi tiêm quá đà một tí */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(236, 72, 153, 0.9), 0 0 30px 10px rgba(168, 85, 247, 0.7);
    z-index: 5;
    transition: box-shadow 0.3s ease;
}

/* Hiệu ứng chớp sáng dồn dập khi kim đổi góc */
#clock-hand.pulse-beam {
    animation: pulseBeam 0.8s ease-out;
}

#clock-hand.pulse-beam::after {
    box-shadow: 0 0 30px 10px rgba(255, 255, 255, 1), 0 0 50px 20px rgba(14, 165, 233, 0.8);
}

@keyframes pulseBeam {
    0% {
        filter: brightness(1);
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    }

    30% {
        filter: brightness(2);
        box-shadow: 0 0 50px rgba(236, 72, 153, 1), 0 0 40px rgba(14, 165, 233, 1);
    }

    100% {
        filter: brightness(1);
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    }
}

/* ================= 1. DỰ ÁN TIÊU BIỂU (MAC OS PORTFOLIO) ================= */
.portfolio-section {
    padding: 20px 20px 20px;
    margin-top: 0px;
    position: relative;
    z-index: 5;
    background: transparent;
}

.portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* 2 cột */

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    /* Thu gọn padding để thẻ nhỏ lại */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    height: 100%;
}

.portfolio-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(14, 165, 233, 0.05);
}

/* KHUNG ẢNH TRÊN CÙNG */
.portfolio-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    perspective: 1200px;
    /* Tạo không gian 3D cho ảnh lún */
}

/* MAC OS WINDOW MOCKUP */
.mac-window {
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
    transform-origin: center center;
    position: relative;
}

.portfolio-card:hover .mac-window {
    /* Hiệu ứng Parallax ảo ảnh */
    transform: rotateX(2deg) rotateY(4deg) scale(1.02);
    box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.mac-header {
    height: 36px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.mac-circles {
    display: flex;
    gap: 8px;
}

.mac-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-circle.close {
    background: #ff5f56;
    border: 1px solid #e0443e;
}

.mac-circle.min {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.mac-circle.max {
    background: #27c93f;
    border: 1px solid #1aab29;
}

.mac-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mac-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.mac-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-card:hover .mac-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

/* NỘI DUNG BÊN DƯỚI */
.portfolio-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    text-align: center;
    align-items: center;
    flex-grow: 1;
    /* Để nút đẩy xuống */
}

.tech-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-php {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.tag-db {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.tag-ui {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.portfolio-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Bắt buộc cho Fallback */
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* NÚT TỪ TÍNH CTA (MAGNETIC GLOW BUTTON) */
.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 12px 12px 30px;
    /* Thụt trái text, thụt phải để ôm cục Icon */
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 100px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    width: fit-content;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-icon-circle {
    width: 45px;
    height: 45px;
    background: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

.portfolio-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
    transform: translateY(-5px);
}

.portfolio-btn:hover .btn-icon-circle {
    background: #ec4899;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.8);
    transform: rotate(45deg) scale(1.1);
    /* Mũi tên bay xéo lên */
}

/* CHỦ ĐỀ ÁNH SÁNG (LIGHT THEME) */
[data-theme="light"] .portfolio-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mac-window {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mac-header {
    background: #f1f5f9;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mac-title {
    color: #64748b;
}

[data-theme="light"] .portfolio-content h3 {
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .portfolio-btn {
    background: #fff;
    color: #0f172a;
    border-color: rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .portfolio-btn:hover {
    background: rgba(14, 165, 233, 0.05);
}

/* ================= 2. BẢNG GIÁ & DỊCH VỤ ================= */
.pricing-section {
    padding: 40px 20px 20px;
    position: relative;
}

.pricing-container {
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pricing-desc-header {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: -10px auto 20px;
    line-height: 1.5;
    max-width: 800px;
    padding: 0 20px;
}

.tab-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.tab-btn.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.5);
    color: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.price-card.popular {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(14, 165, 233, 0.1);
    transform: none;
    z-index: 2;
    margin: 0;
}

.price-card.popular:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(14, 165, 233, 0.2);
}

.price-card.premium {
    border-color: rgba(168, 85, 247, 0.3);
}

.price-card.premium:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(168, 85, 247, 0.2);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: #fff;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    white-space: nowrap;
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 20px;
    min-height: 40px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.currency {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.8;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-features li::before {
    content: "✓";
    color: #0ea5e9;
    font-weight: 900;
}

.price-card.premium .plan-features li::before {
    color: #a855f7;
}

.plan-features del {
    opacity: 0.5;
    text-decoration: line-through;
}

.plan-features del::before {
    content: "✕" !important;
    color: #ef4444 !important;
}

.plan-features del::before {
    content: "✕" !important;
    color: #ef4444 !important;
}

.btn-glow-border,
.btn-glow-fill {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-glow-border {
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.05);
}

.btn-glow-border:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    color: var(--text-color);
}

.btn-glow-fill {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
}

.btn-glow-fill:hover {
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

.style-premium {
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.05)
}

/* ================= 3. ĐỒNG BỘ ÁNH SÁNG (LIGHT THEME OVERRIDES) ================= */
[data-theme="light"] .price-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .price-card.popular {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1), inset 0 0 15px rgba(14, 165, 233, 0.05);
}

[data-theme="light"] .price-card.premium {
    border-color: rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .plan-features li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .tab-btn {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

[data-theme="light"] .tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .tab-btn.active {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-color: rgba(14, 165, 233, 0.4);
}

[data-theme="light"] .btn-glow-border:hover {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

[data-theme="light"] .style-premium:hover {
    background: #a855f7;
    color: #fff;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.style-premium:hover {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    color: #fff;
}

/* ================= 3. LỘ TRÌNH KIẾN TẠO (HANGING GLASS BOARDS) ================= */
.workflow-section {
    padding: 50px 20px 40px;
    position: relative;
    background: transparent;
    overflow: hidden;
}

/* Nền Lưới (Grid Matrix Background) */
.workflow-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translate(-50%, -50%);
    background-image:
        radial-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

[data-theme="light"] .workflow-section::before {
    background-image:
        radial-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

.workflow-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

/* Sợi dây Laser Vắt ngang (Sci-Fi Wire) */
.sci-fi-wire {
    position: absolute;
    top: 60px;
    /* Vị trí cáp treo ngang */
    left: 2%;
    right: 2%;
    height: 3px;
    background: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
    z-index: 0;
    border-radius: 5px;
}

[data-theme="light"] .sci-fi-wire {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

/* Tia chớp chạy dọc Laser ngang */
.sci-fi-wire::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    height: 5px;
    width: 15vw;
    background: linear-gradient(90deg, transparent, #ec4899, #ec4899, transparent);
    animation: wireTravel 3s infinite linear;
    border-radius: 10px;
    box-shadow: 0 0 20px #ec4899;
}

@keyframes wireTravel {
    0% {
        left: -15vw;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Lưới Bố Cục Thẻ Treo */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    /* Bóp giãn cách để nhét 5 thẻ trên 1 hàng Desktop */
    padding-top: 50px;
    /* Xuống dưới cáp */
    position: relative;
    z-index: 1;
}

/* KHỐI MÓC TREO BAO BỌC CHÍNH */
.hanging-board-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Tâm xoay đặt tại Cuống Xích (Ngay vị trí Cáp ngang) */
    transform-origin: top center;
    transition: all 0.5s ease;
    will-change: transform;
}

/* Các móc treo tự đong đưa lệch pha nhau chút ngay khi vừa load */
.hanging-board-wrapper {
    animation: idle-swing 4s infinite ease-in-out alternate;
}

.hanging-board-wrapper:nth-child(2) {
    animation-delay: -1s;
}

.hanging-board-wrapper:nth-child(3) {
    animation-delay: -2s;
}

.hanging-board-wrapper:nth-child(4) {
    animation-delay: -3s;
}

@keyframes idle-swing {
    0% {
        transform: rotate(1.5deg);
    }

    100% {
        transform: rotate(-1.5deg);
    }
}

/* Dây Xích Cột Thẻ (Top Cable) */
.hook-chain {
    width: 3px;
    height: 40px;
    /* Thả xuống từ tia laser ngang */
    background: linear-gradient(180deg, rgba(14, 165, 233, 1), rgba(168, 85, 247, 0.5));
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Ngàm Kẹp Của Bảng Kính (Metallic Clip) */
.hook-clip {
    width: 32px;
    height: 14px;
    background: linear-gradient(135deg, #1e293b, #0f172a, #334155, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #cbd5e1;
    /* Cạnh nhôm vót sáng */
    border-bottom: 2px solid #000;
    /* Cạnh dưới đổ bóng */
    border-radius: 4px;
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.8), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Bảng Kính (Hanging Glass Board) */
.hanging-board {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    /* Vuông như tờ giấy */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid #0ea5e9;
    /* Nẹp trên cùng phát sáng */
    padding: 30px 20px 25px;
    /* Ép Padding nhỏ lại để Text không bị lỗi Kẹp Giữa khi chạy 5 cột */
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 20px 40px -20px rgba(14, 165, 233, 0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Phủ kín Wrapper */
    min-height: 400px;
    /* Box giấy dài */
    transition: all 0.4s ease;
}

/* ÁNH SÁNG SPOTLIGHT RỌI THEO CHUỘT (PREMIUM EFFECT) */
.hanging-board::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    border-radius: inherit;
    z-index: 0;
    /* Cho phép rọi lên nền nhưng dưới chữ */
    pointer-events: none;
}

.hanging-board-wrapper:hover .hanging-board::after {
    opacity: 1;
}

[data-theme="light"] .hanging-board {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: #0ea5e9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hanging-board::after {
    background: radial-gradient(600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
            rgba(14, 165, 233, 0.08),
            transparent 40%);
}

[data-theme="light"] .hook-chain {
    background: linear-gradient(180deg, #0ea5e9, rgba(0, 0, 0, 0.2));
}

[data-theme="light"] .hook-clip {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0, #cbd5e1);
    border-top-color: #fff;
}

/* Parallax 3D Sẽ Xử Lý Bằng Javascript, nên Hủy Chế Độ Gió Giật Khi Hover để Tránh Tranh Chấp */
.hanging-board-wrapper:hover {
    animation: none;
    /* Trả lại quyền điểu khiển 3D cho JS */
    z-index: 10;
    /* Nâng cao lên tránh bị che khuất khi góc nghiêng quá lớn */
}

/* Đổi Top Borderành dốc màu Gradient Cuộn khi Hover Nhằm Tăng Độ Cao Cấp */
.hanging-board-wrapper:hover .hanging-board {
    border-top-color: #a855f7;
    /* Chuyển thành màu Tím Đỏ Neon Solid để sửa lỗi CSS lint border-top-image */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 20px 50px -20px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .hanging-board-wrapper:hover .hanging-board {
    background: #fff;
    border-color: rgba(236, 72, 153, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hanging-board-wrapper:hover .hook-clip {
    border-color: #ec4899;
    box-shadow: 0 5px 20px #ec4899;
}

.hanging-board-wrapper:hover .hook-chain {
    background: linear-gradient(180deg, #ec4899, rgba(236, 72, 153, 0.5));
    box-shadow: 0 0 15px #ec4899;
}

/* Watermark Number Dành Riêng Cho Bảng Kính */
.step-phantom-num {
    position: absolute;
    bottom: -15px;
    /* Để sát đáy giấy */
    right: 5px;
    font-size: 7.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

[data-theme="light"] .step-phantom-num {
    color: rgba(0, 0, 0, 0.03);
}

.hanging-board-wrapper:hover .step-phantom-num {
    color: rgba(236, 72, 153, 0.04);
    transform: scale(1.1) translateY(-10px);
}

[data-theme="light"] .hanging-board-wrapper:hover .step-phantom-num {
    color: rgba(236, 72, 153, 0.06);
}

/* Chi Tiết Nội Dung Bảng Kiếng */
.workflow-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    position: relative;
}

/* Đổ màu riêng */
.hanging-board-wrapper:nth-child(2) .workflow-icon {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

.hanging-board-wrapper:nth-child(3) .workflow-icon {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.hanging-board-wrapper:nth-child(4) .workflow-icon {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
}

.hanging-board-wrapper:nth-child(5) .workflow-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.hanging-board-wrapper:nth-child(6) .workflow-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Bước Số 5 Màu Vàng Cam Amber */

.hanging-board-wrapper:hover .workflow-icon {
    background: #ec4899;
    color: #fff;
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4);
    border-color: #fce7f3;
    transform: rotate(15deg) scale(1.2);
}

.hanging-board h3 {
    font-size: 1.15rem;
    /* Thu nhỏ cỡ chữ Tiêu đề (từ 1.3 -> 1.15) để Fit 5 cột */
    color: var(--text-color);
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
    font-weight: 800;
}

.hanging-board p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    /* Thu nhỏ cỡ chữ Mô tả đôi chút để cân bằng Layout */
    z-index: 2;
    position: relative;
    flex-grow: 1;
}

/* Hệ Thống Responsive */
@media (max-width: 1100px) {

    /* Màn Tablet lỡ cỡ: Chia 2 Hàng */
    .sci-fi-wire {
        display: none;
    }

    /* Khó để 1 dây ngang dùng chung 2 hàng, nên bỏ Cáp Laser và thả lửng trực tiếp hoặc giữ cáp dọc */
    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        padding-top: 0;
    }

    /* Giữ nguyên cái Móc Lửng */
}

@media (max-width: 650px) {

    /* Màn Điện thoại: Dọc 1 Hàng */
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hanging-board {
        min-height: auto;
        padding: 30px 25px;
    }
}

/* Responsive Cho Các Section Mới */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .price-card.popular {
        transform: scale(1);
        margin: 0;
        margin-top: 20px;
    }

    .price-card.popular:hover {
        transform: translateY(-10px);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .portfolio-card {
        flex-direction: column;
        padding: 20px;
    }

    .portfolio-image-wrapper {
        width: 100%;
        margin-bottom: 30px;
        perspective: none;
    }

    .portfolio-overlay {
        background: linear-gradient(180deg, transparent 0%, #060b19 100%);
        opacity: 0.8;
    }

    .portfolio-content {
        width: 100%;
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .portfolio-content h3 {
        font-size: 1.6rem;
    }

    .portfolio-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .tech-tags {
        justify-content: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        margin-top: 50px; /* Giảm mạnh margin-top trên mobile để khoảng trống vừa đủ cho 1 tooltip */
        padding-top: 20px;
    }

    .pricing-section,
    .workflow-section {
        padding-top: 40px;
    }
}

/* Responsive Constraints gốc */
@media (max-width: 900px) {
    .portfolio-section {
        margin-top: 60px; /* Giảm margin hiển thị tốt hơn trên tablet */
    }
    
    .factors-circle-wrapper {
        width: 100%;
        max-width: 600px;
    }

    .factor-card {
        width: 110px;
        height: 110px;
    }

    .factor-title {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {

    /* Phương pháp thu nhỏ tự nhiên (Tỷ lệ %), KHÔNG dùng Scale DOM gây lỗi Offset trên iOS/Safari */
    .factors-circle-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 330px !important;
        /* Mức chật nhỏ, để dư không gian trái phải dồi dào trên đt */
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
        position: relative;
        margin-bottom: 30px !important;
    }

    /* Thu nhỏ Lõi VUDEV Center */
    .factors-orb {
        width: 80px !important;
        height: 80px !important;
    }

    .factors-orb .text-gradient {
        font-size: 0.8rem !important;
        /* Chữ nhỏ lại */
    }

    /* Bóp nhỏ 12 thẻ Factors để lọt thỏm vào quỹ đạo tròn bị nhỏ đi */
    .factor-card {
        width: 76px !important;
        height: 76px !important;
        padding: 5px !important;
        flex-direction: column !important;
        /* Ép chắc chắn chữ dọc */
        gap: 0 !important;
        text-align: center !important;
        position: absolute !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 50% !important;
    }

    .factor-card:hover,
    .factor-card.active {
        transform: translate(-50%, -50%) scale(1.1) !important;
    }

    .factor-num {
        font-size: 1rem !important;
        margin-bottom: 0px !important;
    }

    .factor-title {
        font-size: 0.5rem !important;
        /* Cực nhỏ */
        line-height: 1.1 !important;
    }

    /* Tooltip Mobile (Canh giữa mặc định cho các thẻ trên đỉnh và dưới đáy) */
    .factor-tooltip {
        position: absolute !important;
        top: 110% !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
        /* Lệnh cực kỳ quan trọng để canh giữa */
        width: 130px !important;
        /* Khung chữ gọn lại */
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        /* Chữ nhỏ lại để thẻ ngắn gọn hơn */
        line-height: 1.3 !important;
        z-index: 50 !important;
        opacity: 0;
        visibility: hidden;
    }

    /* Các thẻ ở sát mép bên Trái (8, 9, 10, 11) -> Bẻ khung chữ chạy vào bên trong để không rớt lề màn hình */
    #factor-card-8 .factor-tooltip,
    #factor-card-9 .factor-tooltip,
    #factor-card-10 .factor-tooltip,
    #factor-card-11 .factor-tooltip {
        left: 0 !important;
        transform: translateY(10px) !important;
    }

    #factor-card-8:hover .factor-tooltip,
    #factor-card-8.active .factor-tooltip,
    #factor-card-9:hover .factor-tooltip,
    #factor-card-9.active .factor-tooltip,
    #factor-card-10:hover .factor-tooltip,
    #factor-card-10.active .factor-tooltip,
    #factor-card-11:hover .factor-tooltip,
    #factor-card-11.active .factor-tooltip {
        transform: translateY(0) !important;
    }

    /* Các thẻ ở sát mép bên Phải (2, 3, 4, 5) -> Bẻ khung chữ chạy vào bên Trái để không rớt lề màn hình */
    #factor-card-2 .factor-tooltip,
    #factor-card-3 .factor-tooltip,
    #factor-card-4 .factor-tooltip,
    #factor-card-5 .factor-tooltip {
        left: auto !important;
        right: 0 !important;
        transform: translateY(10px) !important;
    }

    #factor-card-2:hover .factor-tooltip,
    #factor-card-2.active .factor-tooltip,
    #factor-card-3:hover .factor-tooltip,
    #factor-card-3.active .factor-tooltip,
    #factor-card-4:hover .factor-tooltip,
    #factor-card-4.active .factor-tooltip,
    #factor-card-5:hover .factor-tooltip,
    #factor-card-5.active .factor-tooltip {
        transform: translateY(0) !important;
    }

    .factor-card:hover .factor-tooltip,
    .factor-card.active .factor-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        /* Tooltip mặc định mọc lên giữa thì phải đẩy lên theo chiều Y, giữ nguyên X */
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Kim đồng hồ vẫn quét */
    #clock-hand {
        display: block !important;
    }
}

@media (max-width: 480px) {

    /* Hạ cấp cho iP SE, đt màn cực nhỏ `< 375px` */
    .factors-circle-wrapper {
        max-width: 320px !important;
    }

    .factor-card {
        width: 66px !important;
        height: 66px !important;
    }

    .factors-orb {
        width: 70px !important;
        height: 70px !important;
    }

    .factors-orb .text-gradient {
        font-size: 0.7rem !important;
    }

    .factor-title {
        font-size: 0.45rem !important;
    }

    .factor-num {
        font-size: 0.85rem !important;
    }
}

/* ================= HERO SECTION RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem) !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px !important;
        padding-bottom: 30px !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important; /* Fixed smaller size for very small phones */
        letter-spacing: -0.02em;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
    }
}/* Unification padding to align body content EXACTLY with Premium Header & Footer */
.factors-container,
.portfolio-container,
.eco-container,
.tech-swarm-container,
.pricing-container,
.workflow-container,
.blog-container,
.article-content {
    max-width: 1328px !important;
    width: 100% !important;
    padding-left: 64px !important;
    padding-right: 64px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Remove horizontal padding from section wrappers to avoid double padding */
.factors-section,
.portfolio-section,
.eco-section,
.pricing-section,
.workflow-section,
.blog-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 860px) {
    .factors-container,
    .portfolio-container,
    .eco-container,
    .tech-swarm-container,
    .pricing-container,
    .workflow-container,
    .blog-container,
    .article-content {
        padding-left: 36px !important;
        padding-right: 36px !important;
    }
}

@media (max-width: 480px) {
    .factors-container,
    .portfolio-container,
    .eco-container,
    .tech-swarm-container,
    .pricing-container,
    .workflow-container,
    .blog-container,
    .article-content {
        padding-left: 26px !important;
        padding-right: 26px !important;
    }
}

@media (max-width: 650px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    .website-types-grid {
        grid-template-columns: 1fr !important;
    }
}

.website-types-section {
    padding: 0px 0 10px;
    margin-top: 40px;
    position: relative;
    background: transparent;
}

.website-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* Base Card Premium */
.website-type-card {
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .website-type-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 15px 40px rgba(0, 0, 0, 0.05);
}

/* Hover Effects Premium */
.website-type-card:hover {
    transform: translateY(-10px) scale(1.01);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(168, 85, 247, 0.15), 0 0 0 1px rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .website-type-card:hover {
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.4);
}

/* Ánh sáng quét ngang thẻ */
.website-type-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    z-index: 2;
    pointer-events: none;
}
.website-type-card:hover::after {
    left: 200%;
}

.wt-content {
    display: flex;
    flex-direction: column;
    padding: 32px;
    height: 100%;
    position: relative;
    z-index: 3;
}

/* Browser Mockup Container */
.wt-image-wrapper {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f172a;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

[data-theme="light"] .wt-image-wrapper {
    background: #f8fafc;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: rgba(0,0,0,0.05);
}

.website-type-card:hover .wt-image-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .website-type-card:hover .wt-image-wrapper {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.wt-browser {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wt-browser-header {
    height: 32px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
[data-theme="light"] .wt-browser-header {
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.wt-dots {
    display: flex;
    gap: 6px;
    position: absolute;
}
.wt-dot { width: 10px; height: 10px; border-radius: 50%; }
.wt-dot.red { background: #ff5f56; }
.wt-dot.yellow { background: #ffbd2e; }
.wt-dot.green { background: #27c93f; }

.wt-browser-url {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    opacity: 0.7;
}

.wt-browser-body {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.wt-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.website-type-card:hover .wt-img-overlay {
    opacity: 1;
}

[data-theme="light"] .wt-img-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
}

.wt-browser-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.website-type-card:hover .wt-browser-body img {
    transform: scale(1.05) translateY(2%);
}

.wt-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Nội dung Text Premium */
.wt-text-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wt-header {
    margin-bottom: 16px;
}

.wt-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #0ea5e9; /* Điểm nhấn màu */
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.website-type-card:hover .wt-subtitle {
    color: #a855f7;
}

.wt-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.website-type-card:hover .wt-title {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wt-desc {
    flex: 1;
}
.wt-desc p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 991px) {
    .website-types-grid { gap: 24px; }
    .wt-content { padding: 24px; }
    .wt-browser-body { height: 200px; }
    .wt-title { font-size: 1.5rem; }
}
@media (max-width: 768px) {
    .website-types-grid { grid-template-columns: 1fr; }
}
