.avatar-wrapper {
    position: relative;
    width: 220px; 
    height: 220px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.data-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--main-color), transparent 90%);
    transition: 0.5s ease;
}

.ring-outer { 
    width: 130%; 
    height: 130%; 
    border-top: 2px solid var(--main-color);
    animation: rotate 10s linear infinite;
}

.ring-inner { 
    width: 115%; 
    height: 115%; 
    border-bottom: 2px solid var(--main-color);
    border-left: 2px solid var(--main-color);
    animation: rotate-rev 7s linear infinite;
    opacity: 0.4;
}

.avatar-main {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    position: relative;
    overflow: hidden;
    z-index: 5;
    background: #000;
    box-shadow: 0 0 30px var(--dim-color);
    transform: translateZ(50px);
}

.avatar-main img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

.avatar-main::after {
    content: ""; 
    position: absolute; 
    top: -100%; 
    left: 0;
    width: 100%; 
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--main-color), transparent);
    opacity: 0.4;
    animation: scan 3s linear infinite;
}

@keyframes rotate { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

@keyframes rotate-rev { 
    from { transform: rotate(360deg); } 
    to { transform: rotate(0deg); } 
}

@keyframes scan { 
    0% { top: -100%; } 
    100% { top: 200%; } 
}

.avatar-wrapper:hover .ring-outer { 
    width: 140%; 
    filter: drop-shadow(0 0 15px var(--main-color)); 
}

.avatar-wrapper:hover .avatar-main { 
    transform: translateZ(80px) scale(1.05); 
}

.visualizer-container {
    display: flex; 
    align-items: flex-end; 
    gap: 2px; 
    height: 20px; 
    margin-top: 10px; 
    opacity: 0.4;
}

.bar { 
    width: 3px; 
    background: var(--main-color); 
    animation: bounce 1s ease-in-out infinite; 
}

@keyframes bounce { 
    0%, 100% { height: 5px; } 
    50% { height: 20px; } 
}

.btn-unified {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    cursor: pointer;
}

.btn-unified:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 20px var(--main-color);
}

.terminal-box { 
    border: 1px solid var(--main-color); 
}

#terminal-out { 
    scrollbar-width: thin; 
    scrollbar-color: var(--main-color) transparent;
    scroll-behavior: smooth; 
}

@keyframes matrix-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); filter: hue-rotate(90deg); }
    40% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, 5px); }
    80% { transform: translate(5px, -5px); }
    100% { transform: translate(0); }
}

.matrix-glitch-animation {
    animation: matrix-glitch 0.4s cubic-bezier(.25,.46,.45,.94) both;
}

input { 
    color: var(--main-color); 
    caret-color: var(--main-color); 
}

input::placeholder { 
    color: var(--main-color); 
    opacity: 0.5; 
}

.typing-cursor::after { 
    content: "_"; 
    animation: blink 1s infinite; 
}

@keyframes blink { 
    50% { opacity: 0; } 
}

.project-node {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--main-color);
    background: rgba(0, 10, 10, 0.9);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-node:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 30px var(--main-color);
    transform: translateY(-5px);
}

.tech-pill {
    font-size: 8px;
    padding: 2px 8px;
    border: 1px solid var(--dim-color);
    background: rgba(0, 255, 255, 0.05);
    color: var(--main-color);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

#title-underline, #it-underline {
    height: 2px;
    width: 96px; 
    transition: opacity 1s ease-in-out;
    opacity: 0; 
}

iframe { 
    filter: contrast(110%) brightness(90%); 
    opacity: 0.9; 
    transition: 0.5s; 
}

iframe:hover { 
    opacity: 1; 
}

#terminal-out * {
    white-space: pre !important;
}

#terminal-out {
    font-family: 'Courier New', Courier, monospace !important;
    white-space: pre !important; 
    direction: ltr !important;   
    text-align: left !important; 
    line-height: 1.2 !important; 
    unicode-bidi: isolate;    
}