/*
Theme Name: KD Nguyên
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
:root {
    --accent: #6C5CE7;
    /* tím ngả xanh */
    --bg: #0f1724;
    /* nền tối */
    --surface: #0b1220;
    --muted: rgba(255, 255, 255, 0.75);
}

body,
html {
    color: black;
    text-align: justify;
}

.ss-main {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh;
    align-items: flex-start;
}

#menu-nav {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    list-style: none !important;
    margin-bottom: 0 !important;
}

#menu-nav>li {
    margin: 0 !important;
}

#menu-nav>li>a {
    padding: 10px 15px !important;
    font-size: 18px;
    font-weight: 600;
    color: black;
}

.section-title-container {
    margin: 0 !important;
}

.section-title-normal,
.section-title-normal span {
    border: none;
    text-transform: unset;
    color: black;
    font-size: 40px;
}

.fs-20 span {
    font-size: 20px !important;
}

.sub-text {
    display: flex;
    gap: 10px;
    font-size: 25px;
    color: #0781A9;
    align-items: flex-end;
    font-weight: 600;
}

.textDisplay {
    font-size: 35px !important;
    line-height: 45px;
    color: red;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.cursor {
    display: inline-block;
    width: 1ch;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

#main {
    background-color: #F0F0F6 !important;
}

.home #main {
    background-color: white !important;
}

:root {
    --profile-color: rgb(7, 129, 169);
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
}

.nav-mb {
    display: none
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 0px 1px 1px red;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 5px;
}

.profile-title {
    color: #666;
    margin: 0 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 30px;
    height: 30px;
    background: var(--profile-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    aspect-ratio: 1;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links i {
    color: white;
}

.profile-details,
.profile-skills,
.profile-languages,
.profile-extra-skills {
    border-top: 2px solid #f5f5f5;
    padding: 30px 0;
}

.profile-details h3,
.profile-languages h3,
.profile-skills h3,
.profile-extra-skills h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.detail-item {
    display: flex;
    margin-bottom: 10px;
}

.detail-item .label {
    font-weight: bold;
    width: 100px;
    color: var(--profile-color);
}

.detail-item .value.available {
    color: #28a745;
}

.detail-item .value.unavailable {
    color: #dc3545;
}

.language-item,
.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    flex-direction: column;
}

.language-name,
.skill-name {
    width: 100px;
    font-weight: bold;
}

.language-item .box-header,
.skill-item .box-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-bar {
    height: 5px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    padding: 1px;
    border: 0.15px solid var(--profile-color);
}

.progress-fill {
    height: 90%;
    background: var(--profile-color);
    transition: width 0.3s;
    border-radius: 10px;
}

.percentage {
    width: 50px;
    text-align: right;
    font-weight: bold;
}

.extra-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.extra-skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 20px;
    font-size: 14px;
}

.extra-skill-item i {
    color: var(--profile-color);
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--profile-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.cv-download-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
}

.profile-job .sub-text {
    font-size: 16px;
}

.profile-job .textDisplay {
    font-size: 20px !important;
    line-height: 30px !important;
}

.profile-job {
    margin-bottom: 20px;
}

.row-my-infor {
    padding: 0 60px !important;
    background-color: white;
}

.row-my-infor .col {
    padding-bottom: 0 !important;
}

.row .row:not(.row-collapse) {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.row-my-service>.col.large-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row-my-service .section-title {
    justify-content: center;
}

.row-my-service {
    margin-top: 30px;
}

.row-my-service .section-title span {
    font-size: 32px;
}

.section-title-container {
    max-width: 100%;
}

.row-my-service .sub-text-hd {
    max-width: 50%;
    margin: 0 auto;
}

.row-my-service .row-full-width>.col:nth-child(1),
.row-my-service .row-full-width>.col:nth-child(4) {
    padding-left: 0 !important;
}

.row-my-service .row-full-width>.col:nth-child(3),
.row-my-service .row-full-width>.col:nth-child(6) {
    padding-right: 0 !important;
}

.icon-box.featured-box {
    text-align: center;
    padding: 30px 20px;
    background: white;
}

.icon-box.featured-box .icon-box-img {
    width: 70px !important;
    margin-left: auto;
    margin-right: auto;
}

.icon-box.featured-box .icon-box-text {
    text-transform: capitalize !important;
}

.row-slider .icon-box {
    width: 100%;
    padding: 20px;
    height: 100%;
    background: white;
}

.col-left-profile>.col-inner {
    position: sticky;
    top: 0;
}


.nkd-history-timeline .timeline-item {
    display: flex;
    position: relative;

}

.nkd-history-timeline:not(:last-of-type) .timeline-item {
    border-bottom: 1px solid #f5f5f5;

}

.nkd-history-timeline .timeline-marker {
    position: relative;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.nkd-history-timeline .timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--timeline-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--timeline-color);
    position: relative;
    z-index: 2;
}

.nkd-history-timeline .timeline-line {
    width: 2px;
    height: 60px;
    background: #e1e1e1;
    margin-top: 10px;
    display: none;
    /* Hide line for single item */
}

.nkd-history-timeline .timeline-content {
    flex: 1;
    background: #fff;
    padding: 37px;
    position: relative;
    display: flex;
}


.nkd-history-timeline .timeline-header {
    margin-bottom: 15px;
    max-width: 40%;
    width: 100%;
}

.nkd-history-timeline .timeline-position {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.nkd-history-timeline .timeline-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.nkd-history-timeline .timeline-status {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.nkd-history-timeline .timeline-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.nkd-history-timeline .timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--timeline-color);
    margin: 0 0 15px 0;
}

.nkd-history-timeline .timeline-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Horizontal Timeline Style */
.nkd-history-timeline.horizontal .timeline-container {
    display: flex;
    overflow-x: auto;
    padding: 40px 0;
}

.nkd-history-timeline.horizontal .timeline-item {
    flex-direction: column;
    min-width: 300px;
    margin-right: 30px;
    margin-bottom: 0;
}

.nkd-history-timeline.horizontal .timeline-marker {
    margin-right: 0;
    margin-bottom: 20px;
    flex-direction: row;
    justify-content: center;
}

.nkd-history-timeline.horizontal .timeline-line {
    width: 60px;
    height: 2px;
    margin-top: 0;
    margin-left: 10px;
    display: none;
    /* Hide line for single item */
}

.nkd-history-timeline.horizontal .timeline-content::before {
    left: 20px;
    top: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    border-top: none;
}

.row-portfolio .nav>li>a {
    padding: 10px 20px;
}

.row-portfolio .nav>li.active>a {
    color: var(--profile-color)
}

/* Copyright Styles */
.nkd-copyright {
    font-size: 16px;
    color: black;
    font-weight: 400;
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 0;
    background: white;
}

.footer .nkd-copyright {
    color: #999;
}

.footer-dark .nkd-copyright {
    color: #ccc;
}

/* Copyright variations */
.copyright-center {
    text-align: center;
}

.copyright-left {
    text-align: left;
}

.copyright-right {
    text-align: right;
}

.copyright-small {
    font-size: 12px;
}

.copyright-large {
    font-size: 16px;
}

/* ===== SIDEBAR ELEMENT ===== */
.nkd-sidebar-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
}

/* Card style (default) */
.nkd-sidebar-item.style-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nkd-sidebar-item.style-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Simple style */
.nkd-sidebar-item.style-simple {
    background: transparent;
    padding: 15px 0;
}

.sidebar-image {
    width: 50px !important;
    height: 50px !important;
}


/* Floating style */
.nkd-sidebar-item.style-floating {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nkd-sidebar-item.style-floating:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.nkd-sidebar-item.style-floating .sidebar-link a {
    color: white;
    border-color: white;
}

.nkd-sidebar-item.style-floating .sidebar-link a:hover {
    background: white;
    color: #667eea;
}

/* Sidebar Image */
.sidebar-image {
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.sidebar-image img {
    object-fit: cover;
    transition: all 0.3s ease;
}

.sidebar-image:hover img {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Tooltip Styles */
.sidebar-image[data-tooltip] {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F0F0F6;
    border-radius: 50%;
}

.sidebar-image[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 1000;
    padding: 10px 12px;
    background: #333;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-image[data-tooltip]:after {
    content: '';
    position: absolute;
    z-index: 1000;
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Tooltip Positions */
/* Top */
.sidebar-image[data-tooltip-position="top"]:before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
}

.sidebar-image[data-tooltip-position="top"]:after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

/* Bottom */
.sidebar-image[data-tooltip-position="bottom"]:before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
}

.sidebar-image[data-tooltip-position="bottom"]:after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
}

/* Left */
.sidebar-image[data-tooltip-position="left"]:before {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
}

.sidebar-image[data-tooltip-position="left"]:after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 2px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #333;
}

/* Right */
.sidebar-image[data-tooltip-position="right"]:before {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
}

.sidebar-image[data-tooltip-position="right"]:after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 2px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #333;
}

/* Show tooltip on hover */
.sidebar-image[data-tooltip]:hover:before,
.sidebar-image[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
}

.sidebar-link {
    margin-left: auto;
}

.sidebar-link a {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-link a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

/* Dark theme support */
.dark-theme .nkd-sidebar-item {
    background: #2a2a2a;
    color: #e0e0e0;
}

.dark-theme .nkd-sidebar-item.style-card {
    border-color: #404040;
}

.dark-theme .nkd-sidebar-item.style-simple {
    background: transparent;
}

.dark-theme .nkd-sidebar-item.style-simple:hover {
    background: rgba(139, 157, 195, 0.1);
}

.dark-theme .sidebar-image img {
    border-color: #404040;
}

.dark-theme .sidebar-image:hover img {
    border-color: #8b9dc3;
}

.dark-theme .sidebar-image[data-tooltip]:before {
    background: #555;
}

.dark-theme .sidebar-image[data-tooltip-position="top"]:after {
    border-top-color: #555;
}

.dark-theme .sidebar-image[data-tooltip-position="bottom"]:after {
    border-bottom-color: #555;
}

.dark-theme .sidebar-image[data-tooltip-position="left"]:after {
    border-left-color: #555;
}

.dark-theme .sidebar-image[data-tooltip-position="right"]:after {
    border-right-color: #555;
}

.dark-theme .sidebar-link a {
    color: #8b9dc3;
    border-color: #8b9dc3;
}

.dark-theme .sidebar-link a:hover {
    background: #8b9dc3;
    color: #2a2a2a;
}



/* ===== END SIDEBAR ELEMENT ===== */
.right-elementor-handle .col-inner {
    background-color: white;
    padding: 20px;
    position: sticky;
    top: 0;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

/* Dark theme back to top */
.dark-theme #back-to-top {
    background: linear-gradient(135deg, #8b9dc3 0%, #667eea 100%);
    box-shadow: 0 4px 15px rgba(139, 157, 195, 0.3);
}

.dark-theme #back-to-top:hover {
    box-shadow: 0 6px 20px rgba(139, 157, 195, 0.4);
}

/* Pulse animation cho back to top khi first appear */
#back-to-top.show {
    animation: pulseOnce 0.6s ease-out;
}

@keyframes pulseOnce {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.1);
    }

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

/* Hamburger lines */
.hamburger {
    width: 22px;
    height: 16px;
    position: relative
}

.hamburger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #3ddc97);
    border-radius: 2px;
    transition: all .35s cubic-bezier(.2, .9, .2, 1)
}

.hamburger span:nth-child(1) {
    top: 0
}

.hamburger span:nth-child(2) {
    top: 7px
}

.hamburger span:nth-child(3) {
    bottom: 0
}

.nav-overlay {
    display: none;
}

.mobile-data {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nkd-history-timeline .timeline-marker {
        margin-right: 20px;
    }

    .row-my-service {
        margin: 0;
    }

    .nkd-history-timeline .timeline-position {
        font-size: 18px;
    }

    .nkd-history-timeline.horizontal .timeline-item {
        min-width: 250px;
    }

    .nkd-history-timeline .timeline-meta {
        flex-direction: column;
        gap: 8px;
    }

    .nkd-sidebar-item {
        padding: 15px;
        gap: 12px;
    }

    .nkd-sidebar-item.style-simple {
        padding: 12px 0;
    }

    .sidebar-image img {
        width: 40px !important;
        height: 40px !important;
    }

    .sidebar-link a {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Mobile tooltip adjustments */
    .sidebar-image[data-tooltip]:before {
        font-size: 12px;
        padding: 8px 10px;
        max-width: 200px;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .col-logo>.col-inner>.img {
        margin: 0 auto;
    }

    #menu-nav {
        justify-content: center;
    }

    #menu-nav>li>a {
        padding: 10px 5px !important;
        font-size: 14px;
    }

    .ss-main {
        height: auto !important;
    }

    .ss-main .gap-element {
        display: none !important;
    }

    .ss-main .section-title-normal span {
        text-align: center;
        font-size: 15px !important;
        margin: 0 auto;
    }

    .ss-main .tt-stack .section-title-normal span {
        font-size: 25px !important;
    }

    .sub-text {
        font-size: 15px;
    }

    .textDisplay {
        font-size: 30px !important;
        line-height: 32px;
    }

    .list-jobs-container {
        margin-bottom: 10px;
    }

    .row-item-revert {
        flex-direction: column-reverse;
    }

    .col-img-rv .img {
        width: 50% !important;
        margin: 0 auto !important;
    }

    .ss-container_ct {
        padding: 0 !important;
    }

    .ss-container_ct .col-left-profile {
        padding: 0 !important;
    }

    .profile-job .sub-text {
        justify-content: center;
    }

    .col-center__ct,
    .right-elementor-handle {
        display: none !important;
    }

    /* Hamburger */
    .nav-mb {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 31;
    }
    .nav-mb.show{
        display: block;
    }
    .menu-btn {
        margin: 0 !important;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
        border: 1px solid rgba(40, 40, 40, 0.04);
        cursor: pointer;
        position: relative;
        z-index: 40;
        transition: transform .25s ease;
        padding: unset !important;
        justify-content: center;
    }

    .menu-btn:active {
        transform: scale(.98)
    }

    /* Overlay navigation (full-screen mobile) */
    .nav-overlay,
    .mobile-data {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: linear-gradient(180deg, rgba(8, 10, 20, 0.75), rgba(2, 6, 23, 0.9));
        backdrop-filter: blur(8px) saturate(120%);
        transform: translateY(100%);
        transition: transform .6s cubic-bezier(.2, .9, .2, 1);
        z-index: 30;
        pointer-events: none;
        opacity: 0;
    }

    .mobile-data {
        z-index: 32;
        background: white;
    }

    .action-btn {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 33;
    }

    .inner-data {
        overflow: auto;
        padding: 70px 0 !important;
    }

    .inner-data .row-my-infor {
        flex-direction: column-reverse;
        padding: 0 20px !important;
    }

    .inner-data .row-my-infor .col-img .img {
        width: 60% !important;
        margin: 0 auto;
    }

    .inner-data .row-my-infor .col-img {
        margin-bottom: 20px;
    }

    .inner-data .row-my-infor .textDisplay {
        font-size: 25px !important;
        line-height: 35px;
    }

    .inner-data .row-my-infor .section-title-normal,
    .inner-data .row-my-infor .section-title-normal span {
        justify-content: center;
        font-size: 20px;
    }

    .nav-overlay.open {
        transform: translateY(0%);
        opacity: 1;
        pointer-events: auto
    }

    .inner-data .row-my-service .row-full-width>.col {
        padding: 10px !important
    }

    .inner-data .row-my-service .row-full-width:not(.row-history-column)>.col .col-inner {
        border: 1px solid #f5f5f5;
        border-radius: 5px;
    }

    .inner-data .row-my-service .row-full-width>.col .col-inner .icon-box.featured-box {
        border-radius: 5px;
    }

    .inner-data .sub-text {
        justify-content: center;
    }

    .inner-data .row-my-service .sub-text-hd {
        max-width: 90%;
    }

    .mobile-data.open {
        transform: translateY(0%);
        opacity: 1;
        pointer-events: auto
    }

    /* Decorative gradient arc */
    .nav-arc {
        position: absolute;
        right: -120px;
        top: -120px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: conic-gradient(from 200deg at 50% 50%, rgba(108, 92, 231, 0.22), rgba(61, 220, 151, 0.12), rgba(108, 92, 231, 0.18));
        filter: blur(28px);
        opacity: 0.9;
        transform: scale(.95)
    }

    /* Nav list */
    nav.menu {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center
    }

    nav.menu a {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 14px 22px;
        border-radius: 12px;
        min-width: 220px;
        justify-content: center;
        text-decoration: none;
        color: white;
        font-weight: 600;
        font-size: 18px;
        letter-spacing: .2px;
        transform: translateY(16px);
        opacity: 0;
        transition: all .45s cubic-bezier(.2, .9, .2, 1);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
        justify-content: flex-start;
        border: 1px solid rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(6px);
    }

    /* staggered animation when open */
    .nav-overlay.open nav.menu a {
        transform: translateY(0);
        opacity: 1
    }

    .nav-overlay.open nav.menu a:nth-child(1) {
        transition-delay: .08s
    }

    .nav-overlay.open nav.menu a:nth-child(2) {
        transition-delay: .14s
    }

    .nav-overlay.open nav.menu a:nth-child(3) {
        transition-delay: .20s
    }

    .nav-overlay.open nav.menu a:nth-child(4) {
        transition-delay: .26s
    }

    .nav-overlay.open nav.menu a:nth-child(5) {
        transition-delay: .32s
    }

    .nav-overlay .menu img {
        filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(38deg) brightness(101%) contrast(101%);
    }

    nav.menu a .icon {
        width: 20px;
        height: 20px;
        display: inline-grid;
        place-items: center;
        opacity: .95
    }

    nav.menu a:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 10px 30px rgba(12, 18, 30, 0.6)
    }

    /* Small footer in overlay */
    .overlay-footer {
        position: absolute;
        bottom: 28px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6)
    }

    .nkd-history-timeline .timeline-content {
        padding: 15px;
        flex-direction: column;
        border: 1px solid #d9d7d782;
        border-radius: 4px;
    }

    .nkd-history-timeline .timeline-header {
        max-width: 100%;
        margin-bottom: 0;
    }

    .nkd-history-timeline {
        margin-bottom: 20px;
    }

    .nkd-history-timeline .timeline-status {
        width: fit-content;
    }

    .nkd-history-timeline .timeline-item {
        border: unset !important;
        padding-left: 20px;
        position: relative;
    }

    .nkd-history-timeline .timeline-item::before {
        content: "";
        width: 15px;
        height: 15px;
        position: absolute;
        left: -1px;
        top: 50%;
        transform: translateX(-50%);
        background-color: red;
        border-radius: 50%;
    }
    .inner-data .row-history-column >.col >.col-inner {
        border-left: 2px solid red;
    }
    .inner-data .nkd-gallery-container {
        margin: 0 !important;
    }
    .inner-data .gallery-grid.columns-3 {
        grid-template-columns: repeat(1, 1fr) !important;  
        padding: 0 15px;
    }
    .home .nav-mb {
        display: none;
    }

}

@media (max-width: 480px) {
    .nkd-history-timeline .timeline-marker {
        margin-right: 15px;
    }



    .nkd-history-timeline .timeline-position {
        font-size: 16px;
    }

    .nkd-history-timeline .timeline-title {
        font-size: 16px;
    }

    .nkd-sidebar-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .sidebar-link {
        margin-left: 0;
    }

    /* Adjust tooltip position for mobile */
    .sidebar-image[data-tooltip-position="left"]:before,
    .sidebar-image[data-tooltip-position="right"]:before {
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin: 8px 0 0 0;
    }

    .sidebar-image[data-tooltip-position="left"]:after,
    .sidebar-image[data-tooltip-position="right"]:after {
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin: 2px 0 0 0;
        border: none;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #333;
    }

    .dark-theme .sidebar-image[data-tooltip-position="left"]:after,
    .dark-theme .sidebar-image[data-tooltip-position="right"]:after {
        border-bottom-color: #555;
    }
}