:root {
    /* MÀU SẮC THƯƠNG HIỆU */
    --blue: #005B96;
    --orange: #FF7A00;
    --white: #ffffff;

    /* GRADIENTS */
    --grad-main: linear-gradient(135deg, #005B96 0%, #FF7A00 100%);
    --grad-hover: linear-gradient(135deg, #FF7A00 0%, #005B96 100%);
    --grad-bg: radial-gradient(circle at 0% 0%, rgba(0, 91, 150, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 122, 0, 0.08) 0%, transparent 50%);

    /* SHADOWS MÀU */
    --shadow-blue: 0 10px 30px -5px rgba(0, 91, 150, 0.25);
    --shadow-orange: 0 10px 30px -5px rgba(255, 122, 0, 0.25);
    --card-shadow: 0 5px 20px rgba(0, 91, 150, 0.05);
}

body {
    background-color: #fff !important;
    background-image: var(--grad-bg);
    /* Hiệu ứng Aurora */
    background-attachment: fixed;
    color: #333;
    font-family: 'UTM Avo', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* --- 1. HERO SECTION (AVATAR & INFO) --- */
.hero-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    /* Viền Gradient */
    padding: 5px;
    background: var(--grad-main);
    box-shadow: var(--shadow-blue);
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
    /* Avatar bay nhẹ */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    /* Chữ mạ Gradient */
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    max-width: 600px;
    line-height: 1.6;
    color: #556b7f;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.chip-item,
.info-chip {
    background: #fff;
    border: 1px solid rgba(0, 91, 150, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* SOCIAL ICONS */
.social-bar {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
    color: var(--blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 91, 150, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--grad-main);
    color: #fff;
    box-shadow: var(--shadow-orange);
    border-color: transparent;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ============================================
   HERO SECTION V2 - SPLIT LAYOUT + GLASSMORPHISM
   ============================================ */
.hero-section-v2 {
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fff5eb 25%, #e8f4fc 75%, #d4eaff 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 122, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 91, 150, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        radial-gradient(2px 2px at 60% 40%, rgba(255, 255, 255, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 80%, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* LEFT SIDE - Avatar */
.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.avatar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: ringRotate 10s linear infinite;
}

.ring-1 {
    inset: -15px;
    border-color: rgba(255, 122, 0, 0.5);
    animation-direction: normal;
}

.ring-2 {
    inset: -35px;
    border-color: rgba(255, 255, 255, 0.2);
    border-style: dashed;
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    inset: -55px;
    border-color: rgba(0, 91, 150, 0.4);
    animation-duration: 20s;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-avatar-v2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #FF7A00;
    box-shadow:
        0 0 40px rgba(255, 122, 0, 0.4),
        0 0 80px rgba(255, 122, 0, 0.2);
}

/* Floating Elements */
.float-element {
    position: absolute;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 50%;
    animation: floatBounce 3s ease-in-out infinite;
}

.float-1 {
    top: 0;
    right: 20%;
    animation-delay: 0s;
}

.float-2 {
    bottom: 10%;
    right: 10%;
    animation-delay: 0.5s;
}

.float-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

@keyframes floatBounce {

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

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

/* RIGHT SIDE - Info Card */
.hero-right {
    flex: 1.2;
    display: flex;
    justify-content: center;
}

.hero-card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 91, 150, 0.15);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 91, 150, 0.15);
    max-width: 480px;
    width: 100%;
}

.hero-greeting {
    color: #FF7A00;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-name-v2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #005B96;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0, 91, 150, 0.08) 0%, rgba(255, 122, 0, 0.08) 100%);
    border: 1px solid rgba(0, 91, 150, 0.15);
    padding: 12px 18px;
    border-radius: 12px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.hero-badge:hover {
    background: rgba(255, 122, 0, 0.2);
    border-color: rgba(255, 122, 0, 0.4);
    transform: translateX(5px);
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-social-v2 {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid rgba(0, 91, 150, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #005B96;
    box-shadow: 0 4px 15px rgba(0, 91, 150, 0.1);
}

.social-btn:hover {
    background: linear-gradient(135deg, #FF7A00 0%, #ff9933 100%);
    border-color: #FF7A00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 122, 0, 0.4);
}

.social-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 40px;
        min-height: auto;
        padding-top: 80px;
    }

    .avatar-wrapper {
        width: 200px;
        height: 200px;
    }

    .ring-1 {
        inset: -10px;
    }

    .ring-2 {
        inset: -25px;
    }

    .ring-3 {
        inset: -40px;
    }

    .float-element {
        font-size: 1.5rem;
        padding: 8px;
    }

    .hero-card-glass {
        padding: 25px;
    }

    .hero-name-v2 {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
}

/* ============================================
   ACHIEVEMENTS SECTION - GLASSMORPHISM CARDS
   ============================================ */
.ach-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ach-filter-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 91, 150, 0.15);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: 0.3s;
    font-size: 0.9rem;
}

.ach-filter-btn:hover {
    background: #e8f4fc;
    border-color: #005B96;
    color: #005B96;
}

.ach-filter-btn.active {
    background: linear-gradient(135deg, #005B96 0%, #FF7A00 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 91, 150, 0.3);
}

.ach-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ach-stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 91, 150, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ach-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #005B96;
}

.ach-stat-item.gold .ach-stat-number {
    color: #FFD700;
}

.ach-stat-item.silver .ach-stat-number {
    color: #A0A0A0;
}

.ach-stat-item.bronze .ach-stat-number {
    color: #CD7F32;
}

.ach-stat-label {
    font-size: 0.85rem;
    color: #666;
}

.ach-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ach-empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ach-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 91, 150, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 91, 150, 0.15);
}

.ach-card-gold:hover {
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
}

.ach-card-silver:hover {
    box-shadow: 0 15px 30px rgba(160, 160, 160, 0.3);
}

.ach-card-bronze:hover {
    box-shadow: 0 15px 30px rgba(205, 127, 50, 0.3);
}

.ach-card-medal {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.ach-card-content {
    flex: 1;
    min-width: 0;
}

.ach-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #005B96;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ach-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ach-card-category {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.ach-card-date {
    font-size: 0.8rem;
    color: #888;
}

.ach-card-has-image {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .ach-stats {
        gap: 10px;
    }

    .ach-stat-item {
        padding: 10px 15px;
    }

    .ach-stat-number {
        font-size: 1.5rem;
    }

    .ach-card-medal {
        font-size: 2rem;
    }
}

/* ============================================
   TIMELINE SECTION - VERTICAL CENTER LINE
   ============================================ */
.tl-empty,
.album-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.tl-empty-icon,
.album-empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.tl-vertical {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Center line */
.tl-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #005B96 0%, #FF7A00 50%, #005B96 100%);
    box-shadow: 0 0 15px rgba(0, 91, 150, 0.3);
    transform: translateX(-50%);
    border-radius: 3px;
}

.tl-v-item {
    position: relative;
    width: 50%;
    padding: 20px;
    margin-bottom: 30px;
    --accent-color: #005B96;
}

.tl-v-item.left {
    padding-right: 50px;
    text-align: right;
}

.tl-v-item.right {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

/* Clean simple dot on timeline */
.tl-v-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.tl-v-item.left .tl-v-dot {
    right: 0;
    transform: translateX(50%);
}

.tl-v-item.right .tl-v-dot {
    left: 0;
    transform: translateX(-50%);
}

/* Card content */
.tl-v-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 91, 150, 0.1);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tl-v-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 91, 150, 0.15);
}

.tl-v-year {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.tl-v-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tl-v-item.left .tl-v-header {
    flex-direction: row-reverse;
}

.tl-v-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 5px;
}

.tl-v-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 91, 150, 0.1), rgba(255, 122, 0, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tl-v-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

/* Role - LARGER TEXT */
.tl-v-role {
    font-size: 1.3rem;
    font-weight: 800;
    color: #005B96;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tl-v-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.tl-v-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .tl-vertical::before {
        left: 20px;
    }

    .tl-v-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 15px !important;
        text-align: left !important;
    }

    .tl-v-item.right {
        left: 0;
    }

    .tl-v-dot {
        left: 10px !important;
        right: auto !important;
    }

    .tl-v-item.left .tl-v-header {
        flex-direction: row;
    }

    .tl-v-role {
        font-size: 1.1rem;
    }
}

/* ============================================
   ALBUMS SECTION - INSTAGRAM STORIES STYLE
   ============================================ */
.album-stories-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.album-stories {
    display: flex;
    gap: 20px;
    padding: 20px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 calc(50% - 70px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.album-stories::-webkit-scrollbar {
    display: none;
}

.album-story-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: center;
    opacity: 0.6;
    transform: scale(0.85);
}

.album-story-item:hover {
    opacity: 0.9;
}

.album-story-item.active {
    opacity: 1;
    transform: scale(1);
}

.album-story-ring {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, #005B96, #FF7A00, #005B96);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    position: relative;
}

.album-story-item.active .album-story-ring {
    width: 160px;
    height: 160px;
    box-shadow: 0 10px 40px rgba(255, 122, 0, 0.4);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.album-story-image {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.album-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-story-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.album-story-title {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #005B96;
    text-align: center;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-story-item.active .album-story-title {
    font-size: 0.95rem;
    max-width: 160px;
}

.album-story-date {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .album-stories {
        padding: 15px 20px;
        gap: 15px;
    }

    .album-story-ring {
        width: 100px;
        height: 100px;
    }

    .album-story-item.active .album-story-ring {
        width: 120px;
        height: 120px;
    }

    .album-story-title {
        font-size: 0.75rem;
        max-width: 100px;
    }
}

.pf-tabs {
    position: sticky;
    top: 15px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 8px;
    margin: 0 auto 40px;
    border-radius: 60px;
    display: inline-flex;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 95vw;
    flex-wrap: wrap;
    justify-content: center;
}

.pf-tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.4s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.pf-tab-btn:hover {
    color: var(--orange);
    background: rgba(255, 122, 0, 0.05);
}

.pf-tab-btn.active {
    background: var(--grad-main);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 91, 150, 0.3);
}

.pf-tab-content {
    display: none;
    animation: slideUp 0.5s ease;
    padding-bottom: 80px;
}

.pf-tab-content.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* --- 3. GLOBAL CARDS STYLE --- */
.pf-card,
.album-card,
.focus-panel,
.calendar-grid-panel,
.timeline-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 91, 150, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.pf-card:hover,
.album-card:hover,
.timeline-node:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
    border-color: rgba(0, 91, 150, 0.3);
}

/* Thanh màu Gradient trên đầu mỗi Card */
.pf-card::before,
.timeline-content::before,
.focus-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-main);
}

h3 {
    color: var(--blue) !important;
    font-weight: 800;
}

/* --- 4. DỰ ÁN (PROJECTS) --- */
.pf-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.pf-year-label {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 40px 0 20px 0;
    border-bottom: 2px dashed rgba(255, 122, 0, 0.3);
    padding-bottom: 10px;
}

/* Thẻ dự án chính */
.pf-card.project-style {
    background: #fff;
    border: 1px solid rgba(0, 91, 150, 0.08);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.pf-card.project-style:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 91, 150, 0.15);
    border-color: var(--orange);
}

/* Phần Icon Background */
.project-bg-icon {
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 8rem;
    opacity: 0.04;
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 0;
    color: var(--blue);
}

/* Header của thẻ */
.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Hộp chứa Icon chính */
.project-icon-box {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid rgba(0, 91, 150, 0.1);
    box-shadow: 0 8px 20px rgba(0, 91, 150, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue);
    transition: 0.3s;
    flex-shrink: 0;
}

.pf-card.project-style:hover .project-icon-box {
    background: var(--grad-main);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.project-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--blue);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.status-badge {
    margin-top: 5px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-badge.done {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-badge.doing {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.pf-card.project-style p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-progress-mini {
    height: 8px;
    width: 100%;
    background: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.project-progress-mini::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background: var(--grad-main);
    border-radius: 10px;
    animation: slideProgress 1.5s ease-out;
}

@keyframes slideProgress {
    from {
        width: 0;
    }

    to {
        width: 60%;
    }
}

/* --- 5. THÀNH TÍCH (ACHIEVEMENTS) --- */
.ach-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ach-filter-btn {
    padding: 8px 22px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    color: #666;
}

.ach-filter-btn:hover {
    color: var(--orange);
}

.ach-filter-btn.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 10px rgba(0, 91, 150, 0.3);
}

/* --- 6. TIMELINE (ZICZAC) --- */
.timeline-container {
    position: relative;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--grad-main);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-node {
    position: relative;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-node.left {
    left: 0;
    text-align: right;
}

.timeline-node.right {
    left: 50%;
}

.timeline-node::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    right: -15px;
    background: #fff;
    border: 5px solid var(--orange);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-node.right::after {
    left: -15px;
}

.timeline-node:hover::after {
    background: var(--blue);
    border-color: var(--blue);
    transform: scale(1.2);
    transition: 0.3s;
}

.timeline-content {
    padding: 25px;
    text-align: left;
}

.tl-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    background: var(--grad-main);
    display: inline-block;
    margin-bottom: 10px;
}

.tl-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 50%;
    padding: 2px;
    background: #fff;
    float: right;
    margin-left: 10px;
}

/* --- 7. LỊCH (CALENDAR) --- */
.month-selector {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    justify-content: center;
}

.month-btn {
    white-space: nowrap;
    padding: 8px 18px;
    border: 1px solid #eee;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.month-btn.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 30px;
}

.focus-panel {
    padding: 25px;
    height: fit-content;
}

.calendar-grid-panel {
    padding: 25px;
}

.focus-item {
    padding: 12px;
    border-bottom: 1px dashed #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Nút Submit */
.btn-submit {
    background: var(--grad-main);
    border: none;
    box-shadow: var(--shadow-blue);
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --- 8. ALBUM --- */
.album-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.album-card {
    cursor: pointer;
}

.album-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.album-info {
    padding: 15px;
}

.album-title {
    font-weight: 700;
    color: var(--blue);
    font-size: 1.1rem;
}

/* Timeline Album Year */
.album-timeline-year {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    position: relative;
    margin: 40px 0 10px 0;
    line-height: 1;
}

.album-timeline-year::before {
    content: attr(data-year);
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--blue);
    font-weight: 800;
    opacity: 1;
}

.album-cover-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.album-location-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- 9. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .pf-tabs {
        width: 95%;
        top: 0;
        border-radius: 0 0 20px 20px;
        padding: 10px 5px;
        gap: 5px;
    }

    .pf-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .month-selector {
        justify-content: flex-start;
    }

    .timeline-container::after {
        left: 20px;
        margin-left: 0;
    }

    .timeline-node {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-node::after {
        left: 9px !important;
        right: auto;
    }

    .tl-logo {
        float: none;
        display: block;
        margin-bottom: 10px;
        margin-left: 0;
    }

    .story-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .story-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 10. MODALS & UTILS --- */
.btn-goto-app {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    z-index: 200;
    border: 1px solid #eee;
}

.qr-modal-overlay,
.lightbox-overlay,
.appt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.appt-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.appt-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
}

/* Lightbox & Story Modal Fixes */
.lightbox-story-container {
    background: white;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    border-radius: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.story-header {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.story-title {
    font-size: 1.8rem;
    color: var(--blue);
    margin: 0 0 10px 0;
}

.story-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.story-intro {
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.story-gallery {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 1024px) {
    .story-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.story-img-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.story-img-item:hover {
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.story-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zoomed State */
.story-img-item.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    border-radius: 0;
    padding: 20px;
    box-sizing: border-box;
    transform: none !important;
}

.story-img-item.zoomed img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

/* Lightbox Overlay Z-Index Fix */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000 !important;
    /* Higher than Story Modal */
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    display: flex;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 20px;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 50%;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

/* Scroll Top Button */
#btn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-orange);
    font-size: 1.5rem;
    transition: 0.3s;
    z-index: 99;
}

#btn-scroll-top:hover {
    transform: translateY(-5px) rotate(360deg);
}

/* Form Inputs */
input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    margin-bottom: 10px;
    transition: 0.3s;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* --- GUESTBOOK STYLING --- */
#tab-guestbook .pf-card {
    padding: 40px !important;
    border-top: 5px solid var(--orange);
    background: #fff;
}

#guest-name,
#guest-msg {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
}

#guest-name:focus,
#guest-msg:focus {
    background-color: #fff;
    border-color: var(--blue);
    box-shadow: 0 5px 15px rgba(0, 91, 150, 0.1);
}

#btn-send-msg {
    margin-top: 25px;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background: linear-gradient(90deg, #005B96 0%, #FF7A00 100%) !important;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    text-shadow: none !important;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 91, 150, 0.4);
    transition: all 0.3s ease;
}

#btn-send-msg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(255, 122, 0, 0.5);
    background: linear-gradient(90deg, #FF7A00 0%, #005B96 100%) !important;
}

#btn-send-msg:active {
    transform: scale(0.98);
}

#message-wall {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

#message-wall>div {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    border-left: 4px solid var(--blue);
}

#message-wall>div div:first-child {
    font-size: 1rem;
    color: var(--blue);
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#message-wall>div div:first-child::before {
    content: '💬';
    font-size: 1.2rem;
}

#message-wall>div div:last-child {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    font-style: italic;
}

/* --- BUTTON DOWNLOAD IMG --- */
.btn-download-img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    font-size: 1.2rem;
    padding: 0;
}

.story-img-item:hover .btn-download-img {
    opacity: 0.7;
    transform: translateY(0);
}

.btn-download-img:hover {
    background: #FF7A00 !important;
    border-color: #FF7A00 !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* =========================================
   PHẦN BỔ SUNG: ULTRA GRADIENT & INTERACTIVE
   (Dán đoạn này xuống cuối cùng file CSS/Style)
   ========================================= */

:root {
    /* Nâng cấp bảng màu lên Ultra Gradient */
    --grad-main: linear-gradient(135deg, #005B96 0%, #0088CC 50%, #FF7A00 100%);
    --grad-hover: linear-gradient(135deg, #FF7A00 0%, #FF9944 50%, #005B96 100%);
    --neon-glow: 0 0 15px rgba(0, 91, 150, 0.6), 0 0 30px rgba(255, 122, 0, 0.4);
}

/* --- 1. NHÓM VISUAL: NỀN & NOISE --- */
body {
    /* Nền tĩnh nhẹ nhàng thay vì động */
    background: #f8fafc;
    background-image: radial-gradient(circle at 20% 20%, rgba(0, 91, 150, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 122, 0, 0.03) 0%, transparent 50%);
    cursor: auto;
    /* Bật lại cursor bình thường */
}

/* Tắt lớp noise để load nhanh hơn */
body::before {
    display: none;
}

/* Giữ keyframes nhưng không dùng */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

/* Thanh cuộn Gradient */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
    background: var(--grad-main);
    border-radius: 10px;
    border: 3px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--grad-hover);
}

/* Bôi đen văn bản ra màu cam/trắng */
::selection {
    background: var(--orange);
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* --- 2. NHÓM INTERACTIVE: THẺ & NÚT --- */

/* Hiệu ứng 3D Tilt & Viền Gradient cho các thẻ Card */
.pf-card,
.album-card,
.timeline-content {
    /* Tạo viền gradient bằng box-shadow */
    box-shadow: 0 5px 20px rgba(0, 91, 150, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.pf-card:hover,
.album-card:hover,
.timeline-content:hover {
    transform: translateY(-10px) scale(1.01);
    /* Nổi lên 3D */
    box-shadow: 0 15px 35px rgba(0, 91, 150, 0.2), 0 0 0 2px var(--orange);
    /* Viền sáng màu cam */
    z-index: 10;
}

/* Avatar: Thêm hiệu ứng sóng (Ripple) */
.hero-avatar {
    animation: float 6s ease-in-out infinite, pulse-avatar 3s infinite;
}

@keyframes pulse-avatar {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 91, 150, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 91, 150, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 91, 150, 0);
    }
}

/* Social Icons: Neon Glow khi hover */
.social-icon:hover {
    box-shadow: var(--neon-glow) !important;
    transform: translateY(-5px) scale(1.1);
}

/* Menu: Glassmorphism Lvl 2 (Kính mờ xịn hơn) */
.pf-tabs {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- 3. NHÓM LAYOUT & CHI TIẾT --- */

/* Timeline: Đường kẻ Gradient */
.timeline-container::after {
    background: var(--grad-main) !important;
}

.timeline-node:hover::after {
    box-shadow: 0 0 15px var(--blue);
    transform: scale(1.4);
}

/* Progress Bar: Hiệu ứng sọc kẹo (Candy Stripe) */
.project-progress-mini::after {
    background: repeating-linear-gradient(45deg, #005B96, #005B96 10px, #0088CC 10px, #0088CC 20px) !important;
    background-size: 200% 100%;
    animation: slideProgress 1.5s ease-out, candyStripe 2s linear infinite;
}

@keyframes candyStripe {
    to {
        background-position: 50px 0;
    }
}

/* Input: Hiệu ứng Focus bay lên */
input:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 10px 20px -5px rgba(255, 122, 0, 0.2);
    transform: translateY(-2px);
}

/* Guestbook: Chat Bubble Style */
#message-wall>div {
    background: linear-gradient(135deg, #fff 0%, #f4f8ff 100%);
    border-left: 5px solid var(--blue);
}

/* --- 4. NHÓM WOW FACTORS (Yêu cầu HTML bổ sung bên dưới) --- */

/* Con trỏ chuột (Custom Cursor) */
#custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

/* Trạng thái hover của trỏ chuột */
.hovered-cursor {
    transform: translate(-50%, -50%) scale(2.5) !important;
    background: rgba(255, 122, 0, 0.1);
    border-color: transparent !important;
}

/* Màn hình chờ (Preloader) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeOutLoad 0.5s ease 2.2s forwards;
}

.loader-text {
    font-size: 2rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.loader-bar {
    width: 150px;
    height: 3px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--grad-main);
    animation: fillLoad 2s ease-in-out forwards;
}

@keyframes fillLoad {
    to {
        width: 100%;
    }
}

@keyframes fadeOutLoad {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Thanh tiến độ đọc (Scroll Progress) */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--grad-main);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--orange);
}

/* Mobile tắt Custom Cursor */
@media (max-width: 768px) {

    #custom-cursor,
    #cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* =========================================
       GÓI A: FAB MENU & DARK MODE & TOAST
       ========================================= */

/* --- 1. FAB MENU (Nút nổi góc phải) --- */
.fab-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--grad-main);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-main-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.fab-items {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s;
}

.fab-wrapper.active .fab-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-wrapper.active .fab-main-btn {
    transform: rotate(45deg);
    background: #ff4757;
}

.fab-btn-child {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.fab-btn-child:hover {
    transform: translateX(-5px);
    background: var(--blue);
    color: #fff;
}

/* --- 2. DARK MODE STYLES --- */
body.dark-mode {
    background: #121212 !important;
    color: #eee;
}

/* Ghi đè biến màu khi ở chế độ tối */
body.dark-mode {
    --blue: #4da6ff;
    --orange: #ff9f43;
    --white: #1e1e1e;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .pf-card,
body.dark-mode .album-card,
body.dark-mode .timeline-content,
body.dark-mode .focus-panel,
body.dark-mode .calendar-grid-panel,
body.dark-mode .appt-modal,
body.dark-mode .qr-card,
body.dark-mode .pf-tabs {
    background: #1e1e1e !important;
    border-color: #333;
    color: #eee;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .story-title,
body.dark-mode .project-header h3 {
    color: #fff !important;
}

body.dark-mode .pf-tab-btn {
    color: #aaa;
}

body.dark-mode .month-btn {
    background: #2c2c2c;
    color: #ccc;
    border-color: #444;
}

body.dark-mode input,
body.dark-mode textarea {
    background: #2c2c2c;
    border-color: #444;
    color: #fff;
}

body.dark-mode .chip-item {
    background: #2c2c2c;
    border-color: #444;
}

body.dark-mode .social-icon {
    background: #2c2c2c;
    color: #fff;
    border-color: #444;
}

body.dark-mode #message-wall>div {
    background: #2c2c2c;
    color: #ddd;
}

body.dark-mode .story-header {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .story-intro {
    color: #bbb;
}

/* Giữ màu gradient chữ đẹp trong Darkmode */
body.dark-mode .hero-title,
body.dark-mode .pf-year-label {
    background: linear-gradient(135deg, #4da6ff 0%, #ff9f43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 3. TOAST NOTIFICATION (Thông báo đẹp) --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    min-width: 250px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--grad-main);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.5s ease, fadeOut 0.5s ease 2.5s forwards;
    font-weight: 600;
    font-size: 0.9rem;
}

.toast-msg.success {
    border-color: #2e7d32;
    color: #2e7d32;
}

.toast-msg.info {
    border-color: var(--blue);
    color: var(--blue);
}

body.dark-mode .toast-msg {
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* =========================================
   GÓI B: SEARCH, FILTER & SKELETON
   (Dán vào cuối file portfolio.css)
   ========================================= */

/* 1. Thanh công cụ (Toolbar) */
.project-toolbar-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Ô tìm kiếm */
.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 30px;
    border: 1px solid #ddd;
    transition: 0.3s;
    margin-bottom: 0;
    /* Ghi đè style input cũ */
}

.search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

/* Nút lọc (Filter Pills) */
.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid transparent;
    background: #fff;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-pill:hover {
    transform: translateY(-2px);
    color: var(--blue);
}

.filter-pill.active {
    background: var(--grad-main);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

/* 2. Skeleton Loading (Hiệu ứng khung xương) */
.skeleton-card {
    height: 250px;
    border: none !important;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Dark Mode Support cho Gói B */
body.dark-mode .project-toolbar-wrapper {
    background: rgba(30, 30, 30, 0.5);
    border-color: #444;
}

body.dark-mode .search-box input {
    background: #2c2c2c;
    border-color: #444;
    color: #fff;
}

body.dark-mode .filter-pill {
    background: #2c2c2c;
    color: #ccc;
}

body.dark-mode .filter-pill.active {
    background: var(--grad-main);
    color: #fff;
}

body.dark-mode .skeleton-card {
    background: #333;
}

body.dark-mode .skeleton-card::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* =========================================
   GÓI D: CONFETTI & FUN INTERACTIONS
   (Dán vào cuối file portfolio.css)
   ========================================= */

/* 1. Canvas Pháo Giấy */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Để click xuyên qua được */
    z-index: 99999;
    /* Nổi lên trên cùng */
}

/* 2. Nút Thả Tim (Rung rinh) */
#btn-global-like {
    background: #fff;
    border: 2px solid #ff4757;
    color: #ff4757;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#btn-global-like:hover {
    background: #ff4757;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

#btn-global-like:active {
    transform: scale(0.95);
}

/* Hiệu ứng rung (Heartbeat) */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

#btn-global-like:hover {
    animation: heartbeat 1.5s infinite;
}

/* Darkmode cho nút tim */
body.dark-mode #btn-global-like {
    background: transparent;
}

body.dark-mode #btn-global-like:hover {
    background: #ff4757;
}

/* =========================================
   ĐỢT 1: STATUS, FOOTER & CREDIT
   (Dán vào cuối file portfolio.css)
   ========================================= */

/* SỬA LẠI STATUS PILL CHO CĂN GIỮA & ĐẸP HƠN */
.status-pill {
    margin: 15px auto 25px auto;
    /* Căn giữa tuyệt đối */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 91, 150, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    width: fit-content;
    /* Chỉ rộng bằng nội dung */
    max-width: 90%;
}

.status-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--blue);
}

/* Chấm trạng thái (giữ nguyên hoặc cập nhật lại cho chắc) */
.status-dot-dynamic {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ccc;
    transition: 0.3s;
}

.status-pill.online .status-dot-dynamic {
    background: #00e676;
    box-shadow: 0 0 10px #00e676;
    animation: pulseGreen 2s infinite;
}

.status-pill.offline .status-dot-dynamic {
    background: #ff4757;
    box-shadow: none;
    animation: none;
}

/* Chấm trạng thái động */
.status-dot-dynamic {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    /* Mặc định */
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.status-pill.online .status-dot-dynamic {
    background: #2ed573;
    box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.3);
    animation: pulseGreen 2s infinite;
}

.status-pill.offline .status-dot-dynamic {
    background: #ff4757;
}

/* 2. Smart Email (Footer) */
.smart-email {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.3s;
}

.smart-email h3 {
    margin: 0;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    transition: 0.3s;
}

.copy-hint {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--blue);
    opacity: 0;
    transition: 0.3s;
    white-space: nowrap;
    margin-top: 5px;
    font-weight: bold;
}

.smart-email:hover h3 {
    transform: scale(1.05);
}

.smart-email:hover .copy-hint {
    opacity: 1;
    margin-top: 0;
}

/* 3. System Info Row (Server + Visitor) */
.system-info-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #777;
    flex-wrap: wrap;
}

.sys-item {
    background: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-dot {
    width: 8px;
    height: 8px;
    background: #2ed573;
    border-radius: 50%;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 5px #2ed573;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* 4. Google AI Credit (Dòng chữ đặc biệt) */
.ai-credit {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
    letter-spacing: 0.5px;
}

.ai-highlight {
    background: linear-gradient(90deg, #4285F4, #9B72CB, #EA4335, #FBBC05);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-style: normal;
}

/* Dark Mode Support */
body.dark-mode .status-pill {
    background: #2c2c2c;
    border-color: #444;
    color: #ddd;
}

body.dark-mode footer {
    background: #1a1a1a !important;
    border-top-color: #333;
}

body.dark-mode .sys-item {
    background: #2c2c2c;
    border-color: #444;
    color: #aaa;
}

/* =========================================
   ĐỢT 2: CONTEXT MENU & TIMELINE PRO
   (Dán vào cuối file portfolio.css)
   ========================================= */

/* 1. Custom Context Menu */
.ctx-menu {
    position: fixed;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInMenu 0.2s ease;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ctx-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctx-item:hover {
    background: var(--grad-main);
    color: #fff;
}

.ctx-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* Dark Mode Context Menu */
body.dark-mode .ctx-menu {
    background: #2c2c2c;
    border-color: #444;
}

body.dark-mode .ctx-item {
    color: #ddd;
}

body.dark-mode .ctx-divider {
    background: #444;
}

/* 2. Timeline Pro Update (Ghi đè style cũ để đẹp hơn) */
.timeline-container {
    padding: 40px 0;
}

.timeline-container::after {
    width: 6px;
    background: #eee;
    /* Nền xám nhạt */
    background: linear-gradient(to bottom, transparent, var(--blue), var(--orange), transparent);
    border-radius: 10px;
}

.timeline-node::after {
    width: 18px;
    height: 18px;
    top: 25px;
    background: #fff;
    border: 4px solid var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.2);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-node:hover::after {
    transform: scale(1.5);
    background: var(--orange);
    border-color: #fff;
    box-shadow: 0 0 20px var(--orange);
}

/* 3. Smooth Scroll (Toàn trang) */
html {
    scroll-behavior: smooth;
}

/* 4. Sticky Header Enhancement */
.pf-tabs.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    /* Thu gọn lại khi cuộn */
    border-radius: 30px;
}

body.dark-mode .pf-tabs.scrolled {
    background: rgba(30, 30, 30, 0.95) !important;
}

/* =========================================
   ĐỢT 3: GLITCH EFFECT & FORM VALIDATION
   (Dán vào cuối file portfolio.css)
   ========================================= */

/* 1. Glitch Effect (Hiệu ứng nhiễu sóng) */
.glitch-text {
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    position: relative;
    letter-spacing: 5px;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* Cùng màu nền */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(40px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(50px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 40px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 50px, 0);
    }
}

/* Darkmode Glitch */
body.dark-mode .glitch-text {
    color: #fff;
}

body.dark-mode .glitch-text::before,
body.dark-mode .glitch-text::after {
    background: #121212;
}

/* 2. Form Validation (Rung lắc khi lỗi) */
.input-error {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2) !important;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* 3. Hero Name Editable Hint */
#pf-name {
    cursor: text;
    border-bottom: 2px dashed transparent;
    transition: 0.3s;
}

#pf-name:hover {
    border-bottom-color: var(--orange);
}

#pf-name:focus {
    outline: none;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 5px;
}

/* =========================================
   MOBILE RESPONSIVE (Dán cuối cùng)
   ========================================= */

@media (max-width: 768px) {

    /* --- 1. TỐI ƯU LAYOUT CHUNG --- */
    body {
        cursor: auto !important;
        /* Trả lại con trỏ mặc định */
        font-size: 15px;
        /* Giảm cỡ chữ chút cho gọn */
    }

    .hero-section {
        padding: 4rem 1rem 2rem 1rem;
        min-height: auto;
    }

    /* Ẩn các tính năng chỉ dành cho PC */
    #custom-cursor,
    #cursor-dot {
        display: none !important;
    }

    /* Tắt trỏ chuột ảo */
    .ctx-menu {
        display: none !important;
    }

    /* Tắt menu chuột phải custom */

    /* --- 2. HERO SECTION --- */
    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Huy hiệu trường & Trạng thái */
    .uni-badge-wrapper {
        flex-direction: row;
        padding: 6px 15px;
        width: auto;
        max-width: 90%;
    }

    .uni-text {
        font-size: 0.9rem;
    }

    /* --- 3. MENU TABS (QUAN TRỌNG: CHUYỂN THÀNH THANH TRƯỢT NGANG) --- */
    .pf-tabs {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0 0 15px 15px;
        justify-content: flex-start;
        /* Căn trái để trượt */
        overflow-x: auto;
        /* Cho phép trượt ngang */
        padding: 10px 15px;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-bottom: 1px solid #eee;
        /* Ẩn thanh cuộn xấu xí */
        -ms-overflow-style: none;
        scrollbar-width: none;
        white-space: nowrap;
        /* Không xuống dòng */
    }

    .pf-tabs::-webkit-scrollbar {
        display: none;
    }

    .pf-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        background: #f5f5f5;
        margin-right: 5px;
        /* Tách các nút ra */
        flex-shrink: 0;
        /* Không bị co lại */
    }

    .pf-tab-btn.active {
        background: var(--grad-main);
    }

    /* --- 4. PROJECT TOOLBAR (SEARCH & FILTER) --- */
    .project-toolbar-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        position: sticky;
        top: 60px;
        z-index: 90;
        /* Dính dưới menu */
        background: rgba(255, 255, 255, 0.95);
    }

    .filter-group {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .filter-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* --- 5. TECH STACK & STATS --- */
    .tech-grid {
        justify-content: space-around;
        gap: 10px;
    }

    .tech-item {
        width: 28%;
        padding: 10px;
    }

    /* 3 cột trên mobile */
    .tech-item img {
        width: 30px;
        height: 30px;
    }

    .tech-item span {
        font-size: 0.7rem;
    }

    .coding-stats {
        gap: 15px;
    }

    .stat-box {
        width: 45%;
        margin-bottom: 10px;
    }

    /* 2 cột */

    /* --- 6. TIMELINE & CARD --- */
    .timeline-container::after {
        left: 20px;
    }

    .timeline-node {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
        text-align: left !important;
    }

    .timeline-node::after {
        left: 11px !important;
        right: auto;
    }

    .timeline-node.left,
    .timeline-node.right {
        left: 0;
    }

    .tl-logo {
        float: right;
        width: 40px;
        height: 40px;
    }

    /* Tắt hiệu ứng nghiêng 3D trên mobile (đỡ lag) */
    .pf-card:hover,
    .album-card:hover {
        transform: none !important;
    }

    /* --- 7. LIGHTBOX PRO --- */
    .lightbox-content img {
        max-width: 95%;
        max-height: 60vh;
    }

    .lightbox-nav {
        padding: 15px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.3);
    }

    .lightbox-toolbar {
        width: 90%;
        justify-content: space-around;
        opacity: 1;
        transform: translateY(0);
        /* Hiện luôn không cần hover */
        background: rgba(0, 0, 0, 0.8);
    }

    .lightbox-toolbar button {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    /* --- 8. FAB MENU (NÚT TRÒN GÓC PHẢI) --- */
    .fab-wrapper {
        bottom: 20px;
        right: 20px;
        /* Sát góc hơn */
    }

    .fab-main-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .fab-btn-child {
        width: 40px;
        height: 40px;
    }

    /* --- 9. TOAST NOTIFICATION --- */
    #toast-container {
        top: auto;
        bottom: 90px;
        right: 20px;
        left: 20px;
        /* Hiện bên dưới */
    }

    .toast-msg {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    /* --- 10. CALENDAR & MODAL --- */
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .month-selector {
        justify-content: flex-start;
    }

    .appt-modal {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* --- 11. FOOTER & SYSTEM INFO --- */
    .system-info-row {
        flex-direction: column;
        gap: 10px;
    }

    .smart-email h3 {
        font-size: 1.2rem;
        word-break: break-all;
    }
}

/* Fix lỗi hover dính trên màn hình cảm ứng */
@media (hover: none) {

    .pf-card:hover,
    .social-icon:hover,
    .btn-submit:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }

    /* Luôn hiện nút download ảnh trong Album */
    .btn-download-img {
        opacity: 1;
        bottom: 5px;
        right: 5px;
        background: var(--orange);
    }

    .album-cover-wrapper::after {
        display: none;
    }

    /* Tắt overlay xem ngay */
}

/* Fix căn giữa Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-pill,
.uni-badge-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    /* Đảm bảo kích thước vừa khít nội dung */
    width: fit-content;
    max-width: 90%;
}

/* Tách khoảng cách cho đẹp */
.uni-badge-wrapper {
    margin-bottom: 15px;
}

.status-pill {
    margin-bottom: 25px;
    margin-top: 0;
}

/* =========================================
   GÓI NÂNG CẤP: LIVING COLORS & MAGIC EFFECTS
   (Dán vào dòng cuối cùng của portfolio.css)
   ========================================= */

/* 1. NỀN AURORA MESH (Hiệu ứng màu trôi lơ lửng như cực quang) */
body {
    /* Ghi đè background cũ */
    background-color: #fff;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 91, 150, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 122, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 255, 200, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(150, 50, 255, 0.1) 0px, transparent 50%);
    background-size: 150% 150%;
    /* Phóng to để di chuyển */
    animation: auroraMove 15s ease-in-out infinite alternate;
}

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

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

    50% {
        background-position: 100% 100%;
    }

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

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

/* 2. HIỆU ỨNG "GLOWING BORDER" CHO CARD (Viền sáng chạy) */
/* Áp dụng cho tất cả các thẻ Card */
.pf-card,
.album-card,
.timeline-content,
.tech-stack-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Để cắt phần viền thừa */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* Viền mờ mặc định */
}

/* Khi hover vào thì hiện viền màu chạy */
.pf-card:hover::before,
.album-card:hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            var(--blue),
            var(--orange));
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
    /* Nằm dưới cùng */
}

/* Lớp nền trắng đè lên để tạo cảm giác chỉ có viền sáng */
.pf-card:after,
.album-card:after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Cách lề 2px để lộ viền */
    background: #fff;
    border-radius: 18px;
    z-index: -1;
}

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

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

/* 3. HIỆU ỨNG CHỮ RGB SHIFT (Tách màu khi hover vào tên) */
.hero-title:hover {
    animation: glitchText 0.4s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--blue);
}

@keyframes glitchText {
    0% {
        text-shadow: 0 0 0 transparent;
    }

    20% {
        text-shadow: -2px 0 #ff00c1, 2px 0 #00fff9;
    }

    40% {
        text-shadow: -2px -2px #ff00c1, 2px 2px #00fff9;
    }

    60% {
        text-shadow: 2px 2px #ff00c1, -2px -2px #00fff9;
    }

    80% {
        text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
    }

    100% {
        text-shadow: 0 0 0 transparent;
    }
}

/* 4. HIỆU ỨNG NÚT BẤM "JELLY" (Núng nính) */
.btn-submit:hover,
.fab-main-btn:hover,
.ach-filter-btn:hover {
    animation: jelly 0.5s;
}

@keyframes jelly {

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

    25% {
        transform: scale(0.9, 1.1);
    }

    50% {
        transform: scale(1.1, 0.9);
    }

    75% {
        transform: scale(0.95, 1.05);
    }
}

/* Dark Mode Fix cho nền Aurora */
body.dark-mode {
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 91, 150, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 122, 0, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 0, 0, 0) 0px, transparent 50%);
}

body.dark-mode .pf-card:after,
body.dark-mode .album-card:after {
    background: #1e1e1e;
    /* Đè nền tối lên */
}

/* =========================================
   FIX GIAO DIỆN: THANH TAB ĐẸP HƠN
   (Dán đè vào cuối file portfolio.css)
   ========================================= */

/* 1. Làm đẹp khung chứa (Container) */
.pf-tabs {
    background: rgba(255, 255, 255, 0.5) !important;
    /* Trong suốt hơn */
    backdrop-filter: blur(20px) !important;
    /* Hiệu ứng kính mờ mạnh */
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Viền trắng mờ */
    box-shadow: 0 15px 35px rgba(0, 91, 150, 0.08);
    /* Bóng đổ mịn */
    padding: 6px;
    /* Khoảng cách lề nhỏ gọn */
    border-radius: 100px;
    /* Bo tròn hình viên thuốc */
    gap: 5px;
    /* Khoảng cách giữa các nút */
}

/* 2. Nút bình thường (Chưa bấm) */
.pf-tab-btn {
    border-radius: 50px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.pf-tab-btn:hover {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.8);
}

/* 3. Nút Đang chọn (Active) - SỬA MÀU CHO SANG */
.pf-tab-btn.active {
    /* Dùng Gradient Xanh - Xanh nhạt để màu trong trẻo hơn */
    background: linear-gradient(90deg, #005B96 0%, #48dbfb 100%) !important;
    color: #fff !important;

    /* Bóng đổ phát sáng màu xanh */
    box-shadow: 0 5px 15px rgba(0, 91, 150, 0.4);

    /* Hiệu ứng nổi lên nhẹ */
    transform: translateY(-1px);
}

/* Dark Mode (Nếu dùng) */
body.dark-mode .pf-tabs {
    background: rgba(30, 30, 30, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pf-tab-btn.active {
    background: linear-gradient(90deg, #005B96 0%, #00a8ff 100%) !important;
    color: #fff !important;
}

/* =========================================
   MOBILE APP INTERFACE (Giao diện kiểu App)
   ========================================= */

/* Chỉ áp dụng cho màn hình nhỏ (Điện thoại) */
@media (max-width: 768px) {

    /* 1. TẮT GIAO DIỆN CŨ */
    .pf-tabs {
        display: none !important;
    }

    /* Ẩn thanh tab cũ */
    #custom-cursor,
    #cursor-dot {
        display: none !important;
    }

    /* Tắt trỏ chuột */
    .project-bg-icon {
        display: none !important;
    }

    /* Tắt hình nền mờ gây rối */

    /* 2. CẤU TRÚC BODY KIỂU APP */
    body {
        padding-bottom: 80px !important;
        /* Chừa chỗ cho menu dưới */
        background: #f8f9fa !important;
        /* Nền xám nhạt sạch sẽ */
        cursor: default !important;
    }

    /* 3. THANH ĐIỀU HƯỚNG DƯỚI ĐÁY (BOTTOM NAV) */
    .mobile-bottom-nav {
        display: flex !important;
        /* Hiện lên */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        z-index: 9999;
        justify-content: space-around;
        padding: 10px 5px 25px 5px;
        /* Padding dưới to hơn cho iPhone đời mới */
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        color: #999;
        transition: 0.3s;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        /* Bỏ màu highlight khi bấm */
    }

    .nav-icon {
        font-size: 1.4rem;
        margin-bottom: 2px;
        transition: 0.3s;
    }

    .nav-label {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    /* Hiệu ứng khi chọn tab */
    .nav-item.active {
        color: var(--blue);
    }

    .nav-item.active .nav-icon {
        transform: translateY(-5px);
        text-shadow: 0 5px 15px rgba(0, 91, 150, 0.4);
    }

    /* 4. HERO SECTION (TỐI GIẢN) */
    .hero-section {
        padding: 3rem 1rem 1rem 1rem !important;
        background: #fff;
        margin-bottom: 15px;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .uni-badge-wrapper {
        padding: 5px 12px;
        margin: 10px auto;
    }

    .uni-text {
        font-size: 0.8rem;
        text-align: center;
    }

    .uni-icon {
        display: none;
    }

    /* Ẩn icon trường cho gọn */
    .status-pill {
        margin: 10px auto !important;
        padding: 5px 15px;
        font-size: 0.8rem;
    }

    .social-bar {
        gap: 15px;
        margin-top: 10px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    /* 5. CÁC THẺ CARD (DỰ ÁN, THÀNH TÍCH...) */
    .pf-card,
    .album-card,
    .research-card {
        margin-bottom: 15px;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
        border: none !important;
    }

    .pf-year-grid,
    .album-shelf {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Dự án */
    .project-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .project-header h3 {
        font-size: 1.1rem;
    }

    .project-toolbar-wrapper {
        top: 0;
        padding: 10px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        margin: -20px -20px 20px -20px;
        /* Kéo tràn viền */
        width: calc(100% + 40px);
    }

    .search-box input {
        font-size: 16px;
        /* Fix lỗi zoom input trên iOS */
    }

    /* 6. TIMELINE (CĂN TRÁI) */
    .timeline-container {
        padding: 10px 0;
    }

    .timeline-container::after {
        left: 20px;
    }

    .timeline-node {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: left !important;
    }

    .timeline-node::after {
        left: 11px !important;
        right: auto;
    }

    .tl-logo {
        float: none;
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    /* 7. NÚT FAB & TOAST */
    .fab-wrapper {
        bottom: 90px;
        right: 15px;
    }

    /* Đẩy lên trên thanh menu */
    .fab-main-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .toast-msg {
        width: 90%;
        left: 5%;
        bottom: 100px;
        top: auto;
    }

    /* 8. TECH STACK */
    .tech-grid {
        gap: 10px;
    }

    .tech-item {
        width: 45%;
        padding: 10px;
        flex-direction: row;
        justify-content: flex-start;
    }

    /* 9. DARK MODE MOBILE */
    body.dark-mode .mobile-bottom-nav {
        background: rgba(30, 30, 30, 0.95);
        border-top-color: #333;
    }

    body.dark-mode .hero-section {
        background: #1e1e1e;
    }
}

/* Mặc định ẩn menu app trên PC */
.mobile-bottom-nav {
    display: none;
}