* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    color: #e0e0e0;
    background-color: #050505; 
}




.cyber-bg {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    z-index: -3;
    background-color: #050508;
   
    background-image: 
        linear-gradient(rgba(180, 130, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 130, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}


.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.6;
    animation: floatOrb 15s infinite alternate ease-in-out;
    pointer-events: none;
}


.orb-1 {
    width: 50vh; 
    height: 50vh;
    background: rgba(128, 0, 255, 0.35);
    top: -15vh; 
    left: -10vw;
}


.orb-2 {
    width: 60vh; 
    height: 60vh;
    background: rgba(180, 130, 255, 0.25);
    bottom: -15vh; 
    right: -10vw;
    animation-delay: -7s;
}


@keyframes floatOrb {
    0% { 
        transform: translate(0, 0) scale(1); 
    }
    100% { 
        transform: translate(10vw, 8vh) scale(1.2);
    }
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    background: transparent; 
    display: flex;
    justify-content: center;
    align-items: center;
}


.profile-card {
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    width: 80%;
    max-width: 1000px;
    height: 80vh;
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
    
   
    border: 2px solid rgba(180, 130, 255, 0.5); 
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8), 
        0 0 30px rgba(180, 130, 255, 0.15),
        inset 0 0 15px rgba(180, 130, 255, 0.1);
    opacity: 0;
    transform: translateY(40px);
    animation: floatUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;   
}
@keyframes floatUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-name {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 1px;
   
    background: linear-gradient(90deg, #e0c3fc, #b482ff); 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.2;
}

@keyframes textGlitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}


.profile-section h1::after, .profile-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, #b482ff, transparent);
    border-radius: 3px;
}


@keyframes avatarPulse {
    0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.05), 0 0 20px rgba(180, 130, 255, 0.1); }
    100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 40px rgba(180, 130, 255, 0.4); }
}


.profile-sidebar {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
}
.avatar-glitch-container {
    position: relative; 
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    
   
    border-radius: 50%; 
    border: 4px solid rgba(180, 130, 255, 0.9); 
    box-shadow: 0 0 20px rgba(180, 130, 255, 0.7); 
    
   
    overflow: hidden; 
    
   
    background-color: #111; 
}





.profile-avatar {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border: none; box-shadow: none;
    transition: none !important;
    will-change: opacity, transform;
}

.av-1 {
    z-index: 2;
    animation: av1Loop 6s linear infinite;
}

.av-2 {
    z-index: 1;
    animation: av2Loop 6s linear infinite;
}

@keyframes av1Loop {
    0%, 44% {
        opacity: 1;
        transform: scale(1.02);
        filter: none;
    }

   
    44.5% { opacity: 0; transform: translate(-10px, 5px) scale(1.1); filter: hue-rotate(90deg) brightness(1.4); }
    45.0% { opacity: 1; transform: translate(15px, -10px) scale(1.15); filter: saturate(3) brightness(1.6); }
    45.5% { opacity: 0; transform: translate(-5px, 15px) scale(1.1); filter: hue-rotate(180deg); }
    46.0% { opacity: 1; transform: translate(10px, -5px) scale(1.15); filter: brightness(2) saturate(0); }
    46.5% { opacity: 0; transform: translate(-15px, -10px) scale(1.1); filter: hue-rotate(270deg) brightness(1.3); }
    47.0% { opacity: 1; transform: translate(5px, 10px) scale(1.15); filter: saturate(5); }
    47.5% { opacity: 0; transform: translate(-10px, 5px) scale(1.1); filter: none; }
    48.0% { opacity: 1; transform: translate(15px, -5px) scale(1.15); filter: hue-rotate(45deg) brightness(1.5); }
    48.5% { opacity: 0; transform: translate(-5px, -15px) scale(1.1); filter: saturate(0) brightness(2); }
    49.0% { opacity: 1; transform: translate(10px, 10px) scale(1.15); filter: hue-rotate(120deg); }
    49.5% { opacity: 0; transform: scale(1.02); filter: none; }

    49.6%, 94% {
        opacity: 0;
        transform: scale(1.02);
        filter: none;
    }

   
    94.5% { opacity: 1; transform: translate(10px, -5px) scale(1.1); filter: hue-rotate(90deg) brightness(1.4); }
    95.0% { opacity: 0; transform: translate(-15px, 10px) scale(1.15); filter: saturate(3) brightness(1.6); }
    95.5% { opacity: 1; transform: translate(5px, -15px) scale(1.1); filter: hue-rotate(180deg); }
    96.0% { opacity: 0; transform: translate(-10px, 5px) scale(1.15); filter: brightness(2) saturate(0); }
    96.5% { opacity: 1; transform: translate(15px, 10px) scale(1.1); filter: hue-rotate(270deg) brightness(1.3); }
    97.0% { opacity: 0; transform: translate(-5px, -10px) scale(1.15); filter: saturate(5); }
    97.5% { opacity: 1; transform: translate(10px, -5px) scale(1.1); filter: none; }
    98.0% { opacity: 0; transform: translate(-15px, 5px) scale(1.15); filter: hue-rotate(45deg) brightness(1.5); }
    98.5% { opacity: 1; transform: translate(5px, 15px) scale(1.1); filter: saturate(0) brightness(2); }
    99.0% { opacity: 0; transform: translate(-10px, -10px) scale(1.15); filter: hue-rotate(120deg); }
    99.5%, 100% { opacity: 1; transform: scale(1.02); filter: none; }
}

@keyframes av2Loop {
    0%, 44%      { opacity: 0; }
    44.1%, 99.4% { opacity: 1; }
    99.5%, 100%  { opacity: 0; }
}

.profile-tagline {
    display: block;
    min-height: 2em;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.basic-info {
    text-align: left;
    width: 100%;
    font-size: 14px;
    color: #bbb;
}

.basic-info p {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.basic-info strong {
    color: #fff;
}


.profile-main-content {
    padding: 50px;
    overflow-y: auto;
    scroll-behavior: smooth;
    will-change: scroll-position, transform;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h1, .profile-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}


.profile-section h1::after, .profile-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, #b482ff, transparent);
    border-radius: 3px;
}


.khu-vuc-button {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-pro {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #a0a0a0 !important;
    font-weight: 600;
    font-size: 15px;
   
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 0 rgba(var(--color), 0);
   
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-pro i {
    font-size: 22px;
    margin-right: 15px;
    color: rgba(var(--color), 0.7);
    transition: 0.3s;
}


.btn-fb  { --color: 24, 119, 242; }  
.btn-ig  { --color: 225, 48, 108; }  
.btn-sc  { --color: 255, 85, 0; }    
.btn-lq  { --color: 255, 180, 0; }   
.btn-tft { --color: 160, 50, 255; }  
.btn-cs2 { --color: 255, 50, 0; }    


.btn-pro:hover {
    color: #fff !important;
    transform: translateX(8px);
    background: rgba(var(--color), 0.1);
    border-color: rgba(var(--color), 0.5);
   
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 
                0 0 15px rgba(var(--color), 0.3),
                inset 0 0 10px rgba(var(--color), 0.1);
}

.btn-pro:hover i {
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(var(--color), 0.8);
}


.profile-main-content::-webkit-scrollbar {
    width: 6px;
}

.profile-main-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.profile-main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.profile-main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 210, 255, 0.5);
}

.snowflakes {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.snowflake {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5em; 
    font-family: Arial, sans-serif;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    position: absolute;
    top: -10vh;
   
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 6s, 3s; 
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}


@keyframes snowflakes-fall {
    0% { top: -10vh; }
    100% { top: 100vh; }
}


@keyframes snowflakes-shake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}


.snowflake:nth-of-type(odd) {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.5);
    animation-duration: 8s, 4s;
}


.snowflake:nth-of-type(0) { left: 1%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(1) { left: 5%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(2) { left: 10%; animation-delay: 4s, 0.5s; }
.snowflake:nth-of-type(3) { left: 15%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(4) { left: 20%; animation-delay: 5s, 2s; }
.snowflake:nth-of-type(5) { left: 25%; animation-delay: 0.5s, 3s; }
.snowflake:nth-of-type(6) { left: 30%; animation-delay: 3s, 2s; }
.snowflake:nth-of-type(7) { left: 35%; animation-delay: 1.5s, 1s; }
.snowflake:nth-of-type(8) { left: 40%; animation-delay: 4.5s, 0s; }
.snowflake:nth-of-type(9) { left: 45%; animation-delay: 2.5s, 1.5s; }
.snowflake:nth-of-type(10) { left: 50%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(11) { left: 55%; animation-delay: 3.5s, 1s; }
.snowflake:nth-of-type(12) { left: 60%; animation-delay: 1s, 0.5s; }
.snowflake:nth-of-type(13) { left: 65%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(14) { left: 70%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(15) { left: 75%; animation-delay: 0.5s, 3s; }
.snowflake:nth-of-type(16) { left: 80%; animation-delay: 3s, 2s; }
.snowflake:nth-of-type(17) { left: 85%; animation-delay: 1.5s, 1s; }
.snowflake:nth-of-type(18) { left: 90%; animation-delay: 5s, 0s; }
.snowflake:nth-of-type(19) { left: 95%; animation-delay: 2.5s, 1.5s; }
.snowflake:nth-of-type(20) { left: 98%; animation-delay: 0.2s, 0.8s; }
.snowflake:nth-of-type(21) { left: 3%;  animation-delay: 2s,   1s;   }
.snowflake:nth-of-type(22) { left: 8%;  animation-delay: 5s,   2.5s; }
.snowflake:nth-of-type(23) { left: 13%; animation-delay: 1s,   0.5s; }
.snowflake:nth-of-type(24) { left: 18%; animation-delay: 3.5s, 1.5s; }
.snowflake:nth-of-type(25) { left: 23%; animation-delay: 0.8s, 2s;   }
.snowflake:nth-of-type(26) { left: 28%; animation-delay: 4.2s, 0.3s; }
.snowflake:nth-of-type(27) { left: 33%; animation-delay: 2.2s, 3s;   }
.snowflake:nth-of-type(28) { left: 38%; animation-delay: 1.8s, 1s;   }
.snowflake:nth-of-type(29) { left: 43%; animation-delay: 4.8s, 2s;   }
.snowflake:nth-of-type(30) { left: 48%; animation-delay: 0.3s, 0.7s; }
.snowflake:nth-of-type(31) { left: 53%; animation-delay: 3.2s, 1.8s; }
.snowflake:nth-of-type(32) { left: 58%; animation-delay: 1.2s, 2.5s; }
.snowflake:nth-of-type(33) { left: 63%; animation-delay: 5.5s, 0.5s; }
.snowflake:nth-of-type(34) { left: 72%; animation-delay: 2.8s, 1.2s; }
.snowflake:nth-of-type(35) { left: 88%; animation-delay: 4s,   2.8s; }


.typing-container {
    display: inline-block;
    margin-bottom: 30px;
}

.profile-tagline {
    margin-bottom: 0 !important;
    color: #e0c3fc;
    overflow: hidden; 
    border-right: 2px solid #b482ff;
    white-space: nowrap; 
    letter-spacing: 1px;
    font-weight: 500;
   
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #b482ff; }
}


.contact-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(180, 130, 255, 0.05);
    border: 1px solid rgba(180, 130, 255, 0.15);
    border-radius: 12px;
    color: #ccc;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.contact-item i {
    color: #b482ff;
    font-size: 20px;
    margin-right: 15px;
    transition: 0.3s;
}


.contact-item:hover {
    transform: translateX(10px);
    background: rgba(180, 130, 255, 0.15);
    border-color: rgba(180, 130, 255, 0.6);
    color: #fff;
    box-shadow: 0 5px 15px rgba(180, 130, 255, 0.2);
}

.contact-item:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(180, 130, 255, 0.8);
}

.terminal-box {
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(180, 130, 255, 0.3);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(180, 130, 255, 0.2);
}


.dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title { margin-left: auto; margin-right: auto; color: #a0a0a0; font-size: 13px; letter-spacing: 1px;}
.terminal-body { padding: 15px; color: #e0e0e0; line-height: 1.8;}
.prompt { color: #b482ff; font-weight: bold; margin-right: 8px; text-shadow: 0 0 5px rgba(180, 130, 255, 0.5);}
.output { color: #888; margin-bottom: 8px; margin-left: 15px; font-style: italic;}


.blink { 
    display: inline-block; width: 8px; height: 15px; 
    background: #b482ff; 
    animation: blink-caret 0.75s infinite step-end; 
    vertical-align: middle;
}



@media screen and (max-width: 850px) {
    
   
    .profile-card {
        width: 92%;
        height: 85vh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

   
    .profile-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(180, 130, 255, 0.2);
        padding: 30px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

   
    .profile-avatar {
        width: 110px;
        height: 110px;
    }

   
    .profile-name {
        font-size: 22px;
    }

   
    .basic-info {
        text-align: center;
    }
    
    .basic-info p {
        border-bottom: none;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

   
    .profile-main-content {
        padding: 25px 20px;
        overflow-y: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .profile-main-content::-webkit-scrollbar {
    display: none;
    }

    .profile-section {
        margin-bottom: 30px;
    }

   
    .terminal-box {
        font-size: 12px;
        overflow-x: auto;
    }

   
    .btn-pro {
        font-size: 14px;
        padding: 12px 15px;
    }
}


@media screen and (max-width: 400px) {
    .profile-card {
        height: 90vh;
    }
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    .btn-pro {
        font-size: 13px;
    }
        .profile-sidebar {
        padding: 20px 15px !important;
    }

    .avatar-glitch-container {
        width: 100px !important;
        height: 100px !important;
    }
}

.mini-terminal {
    margin-top: 16px;
    width: 100%;
    background: rgba(10,10,15,0.85);
    border: 1px solid rgba(180,130,255,0.3);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 10px;
    box-shadow: 0 0 15px rgba(180,130,255,0.15);
}

.mini-term-header {
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(180,130,255,0.2);
}

.mini-term-title {
    margin: auto;
    color: #888;
    font-size: 10px;
    letter-spacing: 1px;
}

.mini-term-body {
    padding: 6px 10px;
    line-height: 1.6;
    min-height: 130px;
    color: #ccc;
    text-align: left;
}

.t-comment  { color: #555; }
.t-keyword  { color: #b482ff; }
.t-include  { color: #e06c75; }
.t-string   { color: #98c379; }
.t-func     { color: #61afef; }
.t-output   { color: #b482ff; font-weight: bold; }
.t-cursor   { 
    display: inline-block; width: 6px; height: 11px;
    background: #b482ff; vertical-align: middle;
    animation: blink-caret 0.75s step-end infinite;
}

@media screen and (max-width: 850px) {
    .profile-sidebar {
        padding: 20px 15px !important;
    }

    .avatar-glitch-container {
        width: 100px !important;
        height: 100px !important;
    }
}