/* ============================================================
   ZEV PROFILE AI — Cyber Consciousness Background
   Apply to: .zev-profile-ai (Elementor Container)
   ============================================================ */

/* --- Dark Void Background + Cyber Grid --- */
.zev-profile-ai {
    position: relative;
    background-color: #010103 !important;
    background-image:
        linear-gradient(rgba(255, 0, 127, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 127, 0.015) 1px, transparent 1px) !important;
    background-size: 50px 50px !important;
    overflow: hidden !important;
    min-height: 100vh;
}

/* --- Neural Canvas (được inject bằng JS) --- */
.zev-profile-ai #zevNeuralCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* --- Đảm bảo nội dung con nằm trên canvas --- */
.zev-profile-ai > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* --- Logo badge: cyber neon pulse + hover --- */
.zev-profile-ai-icon-logo {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #010103;
    border: 1px solid rgba(255, 0, 127, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 10px rgba(255, 0, 127, 0.18),
        inset 0 0 6px rgba(255, 0, 127, 0.12);
    animation: zev-logo-glow 2.8s ease-in-out infinite;
    transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.zev-profile-ai-icon-logo::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.65);
    animation: zev-node-pulse 1.7s ease-out infinite;
}

.zev-profile-ai-icon-logo .elementor-heading-title {
    color: #ff007f;
    text-shadow:
        0 0 8px rgba(255, 0, 127, 0.75),
        0 0 16px rgba(255, 0, 127, 0.35);
    transition: color 0.45s ease, text-shadow 0.45s ease;
}

.zev-profile-ai-icon-logo:hover {
    border-color: rgba(0, 240, 255, 0.75) !important;
    box-shadow:
        0 0 22px rgba(0, 240, 255, 0.45),
        inset 0 0 10px rgba(0, 240, 255, 0.25) !important;
}

.zev-profile-ai-icon-logo:hover .elementor-heading-title {
    color: #00f0ff !important;
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(0, 240, 255, 0.45);
}

@keyframes zev-logo-glow {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 0, 127, 0.18),
            inset 0 0 6px rgba(255, 0, 127, 0.12);
    }
    50% {
        box-shadow:
            0 0 16px rgba(255, 0, 127, 0.32),
            inset 0 0 10px rgba(255, 0, 127, 0.2);
    }
}

@keyframes zev-node-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* --- Scrollbar tùy chỉnh (optional, áp toàn trang) --- */
::-webkit-scrollbar {
    *width: 5px;
}
::-webkit-scrollbar-track {
    background: #010103;
}
::-webkit-scrollbar-thumb {
    background: #101026;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff007f;
}


/* Container */
.zev-profile-rate{
    position: relative;
    overflow: visible;
}

/* Chừa khoảng cho node ping */
.zev-profile-rate .elementor-widget-container{
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Node cyber */
.zev-profile-rate .elementor-widget-container::before{
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff007f;
    box-shadow: 0 0 10px rgba(255,0,127,0.9);
    animation: zevNodePulse 1.5s infinite;
    flex-shrink: 0;
}

/* Text glow nhẹ */
.zev-profile-rate .elementor-heading-title{
    position: relative;
    color: #ff007f;
    text-shadow:
        0 0 6px rgba(255,0,127,0.7),
        0 0 12px rgba(255,0,127,0.4);
    transition: all 0.4s ease;
}

/* Hover cyber */
.zev-profile-rate:hover .elementor-heading-title{
    color: #00f0ff;
    text-shadow:
        0 0 8px rgba(0,240,255,0.9),
        0 0 18px rgba(0,240,255,0.6);
}

/* Ping animation */
@keyframes zevNodePulse{
    0%{
        transform: scale(1);
        opacity: 1;
    }

    70%{
        transform: scale(2.4);
        opacity: 0;
    }

    100%{
        transform: scale(2.8);
        opacity: 0;
    }
}

/* --- Circular portrait + 3 rotating rings --- */
.zev-profile-ai-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.zev-profile-ai-image .elementor-widget-container {
    position: relative;
    width: min(420px, 80vw);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zev-profile-ai-image img {
    width: 55% !important;
    height: 55% !important;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 127, 0.4) !important;
    box-shadow: 0 0 18px rgba(255, 0, 127, 0.25) !important;
}

/* Ring 1 (outer, clockwise) */
.zev-profile-ai-image::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 0, 127, 0.25);
    animation: zev-ring-cw 26s linear infinite;
    pointer-events: none;
}

/* Ring 2 (middle, counter-clockwise) */
.zev-profile-ai-image::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    border: 1px dotted rgba(0, 240, 255, 0.35);
    animation: zev-ring-ccw 18s linear infinite;
    pointer-events: none;
}

/* Pink pulsing node near the portrait */
.zev-profile-ai-image .elementor-widget-container::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 20%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff007f;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.7);
    animation: zev-pink-node 1.8s ease-out infinite;
    pointer-events: none;
}

/* Ring 3 (inner, fast clockwise) */
.zev-profile-ai-image .elementor-widget-container::before {
    content: "";
    position: absolute;
    inset: 54px;
    border-radius: 50%;
    border: 2px dashed rgba(188, 19, 254, 0.35);
    animation: zev-ring-cw 9s linear infinite;
    pointer-events: none;
}

@keyframes zev-ring-cw {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes zev-ring-ccw {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes zev-pink-node {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* --- Name hover glitch shadow --- */
.zev-profile-ai-name .elementor-heading-title {
    transition: text-shadow 0.35s ease;
}

.zev-profile-ai-name:hover .elementor-heading-title {
    text-shadow: 2px -2px 0 #00f0ff, -2px 2px 0 #ff007f;
}

/* --- Gradient neon text for architect title --- */
.zev-profile-ai-architect .elementor-heading-title {
    background-image: linear-gradient(90deg, #ff007f, #bc13fe, #00f0ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 700;
}

/* =========================================================
   HIỆU ỨNG HOVER CHO TIMELINE KINH NGHIỆM (.experience-card)
   Tương tự bản Tailwind/Alpine gốc (group + group-hover)
   ========================================================= */

/* Cần thiết để các phần tử con bên trong dùng transition mượt */
.experience-card {
    align-items: flex-start;
}

.experience-card-year {
    position: relative;
    padding-left: 0;
    overflow: visible;
}

.experience-card-dot {
    display: flex !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    gap: 8px !important;
    transition: all 0.4s ease !important;
    position: relative !important;
}

.experience-card-dot::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    background: transparent !important;
    border: 1.5px solid #ff007f !important;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.85);
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.experience-card-dot .elementor-widget-container {
    display: flex;
    align-items: center;
}

.experience-card-dot .elementor-heading-title,
.experience-card-dot p.elementor-heading-title {
    display: block;
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 1. Chấm/nhãn năm tháng: sáng viền hồng neon + phình to khi hover cả card */
.experience-card:hover .experience-card-dot::before {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.95);
}

.experience-card:hover .experience-card-dot .elementor-heading-title,
.experience-card:hover .experience-card-dot p.elementor-heading-title {
    text-shadow:
        0 0 6px rgba(255, 0, 127, 0.7),
        0 0 12px rgba(255, 0, 127, 0.35);
}

/* 2. Tiêu đề vai trò (h4) bên trong card: trắng -> cyan neon khi hover cả card */
.experience-card > .e-con-full.e-flex.e-con.e-child:nth-child(2) h4.elementor-heading-title {
    transition: color 0.3s ease;
}

.experience-card:hover > .e-con-full.e-flex.e-con.e-child:nth-child(2) h4.elementor-heading-title {
    color: #00f0ff; /* neon-cyan */
}

/* 3. (Bonus) Toàn bộ khối nội dung nhô lên nhẹ + phát sáng viền cyan
      giống hiệu ứng .glass-cyber-panel:hover trong bản gốc            */
.experience-card > .e-con-full.e-flex.e-con.e-child:nth-child(2) {
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 0, 127, 0.08);
    border-radius: 20px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-card:hover > .e-con-full.e-flex.e-con.e-child:nth-child(2) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
}

.experience-card:hover .experience-card-year::before {
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.55);
    transform: translateY(-50%) scale(1.08);
}

/* =========================================================
   HIỆU ỨNG HOVER CHO INTEREST CARD
   Border cyan + radius + shadow nhẹ + nhô lên một chút
   ========================================================= */

.interest-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 0, 127, 0.08);
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(25px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.interest-card:hover {
    border-radius: 24px;
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.08);
}
