:root {
    --primary: #FF3366;      /* Sáng hồng rực rỡ */
    --secondary: #00C9FF;    /* Xanh dương tươi sáng */
    --accent: #FFD700;       /* Vàng nổi bật */
    --text-main: #2C3E50;    /* Chữ màu xanh đen đậm để dễ đọc */
    --text-dim: #546E7A;     /* Chữ màu xám xanh cho đoạn văn */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Nền kính trắng sáng trong suốt */
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 15px 35px 0 rgba(31, 38, 135, 0.15); /* Bóng đổ mềm mại */
    --bg-gradient-1: #E0EAFC;
    --bg-gradient-2: #CFDEF3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Nền gradient sáng sủa */
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animation Shapes */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.7;
    border-radius: 50%;
    animation: floatShape 15s infinite ease-in-out alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 51, 102, 0.4);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 450px;
    height: 450px;
    background: rgba(0, 201, 255, 0.4);
    bottom: -100px;
    right: -150px;
    animation-delay: -5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: rgba(255, 215, 0, 0.3);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(50px, -50px) scale(1.1) rotate(180deg); }
    100% { transform: translate(-30px, 60px) scale(0.9) rotate(360deg); }
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.glass-panel:hover::before {
    transform: scaleX(1);
}

.glass-panel:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px 0 rgba(31, 38, 135, 0.2);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 40px;
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s infinite alternate;
    background-size: 200%;
}

@keyframes gradientText {
    0% { background-position: left; }
    100% { background-position: right; }
}

.title {
    font-size: 16px;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 201, 255, 0.1);
    border-radius: 20px;
}

/* Typography & Sections */
h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    position: relative;
}

h3 i {
    color: var(--primary);
    background: rgba(255, 51, 102, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    transition: transform 0.3s ease, background 0.3s;
}

h3:hover i {
    transform: rotate(360deg) scale(1.1);
    background: var(--primary);
    color: white;
}

.section {
    margin-bottom: 25px;
}

ul {
    list-style: none;
}

ul li {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s;
}

ul li:hover {
    transform: translateX(5px);
    color: var(--text-main);
}

ul li i {
    margin-top: 4px;
    color: var(--secondary);
    width: 15px;
}

.bullet-list li::before {
    content: "➜";
    color: var(--primary);
    font-weight: bold;
    display: inline-block; 
    width: 1.2em;
    margin-left: -1.2em;
}
.bullet-list {
    padding-left: 24px;
}

/* Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.tag:hover {
    transform: translateY(-5px) scale(1.05);
}

.tag.tech {
    color: var(--secondary);
    border-color: rgba(0, 201, 255, 0.2);
}
.tag.tech:hover {
    background: var(--secondary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 201, 255, 0.3);
}

.tag.soft {
    color: var(--primary);
    border-color: rgba(255, 51, 102, 0.2);
}
.tag.soft:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-category {
    margin-bottom: 25px;
}
.skill-category h4 {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    border-left: 3px solid var(--secondary);
    padding-left: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s;
}
.timeline-item:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.2);
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-item h4 {
    color: var(--text-main);
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 700;
}

.date {
    display: inline-block;
    font-size: 13px;
    color: #fff;
    background: var(--secondary);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 201, 255, 0.3);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.ref-card h4 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 18px;
}
.ref-card p {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
}

.slide-up.visible {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bỏ delay css thuần vì sẽ dùng JS để trigger visible tuần tự cho mượt */
.delay-1, .delay-2, .delay-3, .delay-4 { animation-delay: 0s; }

/* Thêm Particle Effects (Confetti/Stars nhỏ bay lơ lửng) */
.particle {
    position: absolute;
    border-radius: 50%;
    background: white;
    opacity: 0.5;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}
