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

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 2rem 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    border: 1px solid #525252;
    padding: 1.8rem;
    box-shadow: 0 0 25px rgba(34, 34, 34, 0.02);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(3px);
    border-radius: 0;
}

.github-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 320px;
    height: 100vh;
    

    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    border-right: 2px solid #4b4b4b;  
    
    box-shadow: 4px 0 30px rgba(51, 51, 51, 0.4);
    
    transition: left 0.35s ease;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    border-radius: 0;
}

.github-panel.open {
    left: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(100, 100, 100, 0.6);  
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.panel-header h3 {
    color: #DCEBFF;  
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
    padding-left: 8px;
}

.panel-header h3::before {
    content: '▶';
    color: #616161;
    font-size: 0.9rem;
    margin-right: 6px;
    opacity: 0.8;
}

.close-btn {
    background: rgba(41, 67, 143, 0.15); 
    border: 1px solid rgba(65, 100, 200, 0.3);
    color: #DCEBFF;
    font-size: 1.5rem;  
    width: 32px;
    height: 32px;
    border-radius: 8px;  
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
}

.close-btn:hover {
    background: rgba(41, 67, 143, 0.3);
    border-color: #4d7eff;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(41, 67, 143, 0.4);
}

.close-btn:active {
    transform: scale(0.95);
}
.repo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.repo-item {
    margin-bottom: 12px;
    padding: 10px 12px;
    
    background: rgba(41, 67, 143, 0.08);
    
    border: 1px solid rgba(41, 67, 143, 0.3);
    border-radius: 8px;
    
    opacity: 0;
    transform: translateX(-8px);
    animation: slideInRepo 0.3s ease forwards;
    
    cursor: pointer;
    transition: all 0.2s ease;
}

.repo-item:hover {
    background: rgba(41, 67, 143, 0.15);
    border-color: rgba(41, 67, 143, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(41, 67, 143, 0.2);
}

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

.repo-item a {
    color: #DCEBFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.repo-item .repo-desc {
    font-size: 0.8rem;
    color: #a0aec0; 
    line-height: 1.4;
}

.repo-loading, .repo-error {
    text-align: center;
    padding: 20px;
    color: #DCEBFF;
    background: rgba(41, 67, 143, 0.05);
    border: 1px dashed rgba(41, 67, 143, 0.3);
    border-radius: 8px;
}

.repo-error { 
    color: #ff7b7b;  
    border-color: rgba(255, 123, 123, 0.3);
}

.avatar-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-left: 8px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: 2px solid #4e4e4e;
    box-shadow: 0 0 15px rgb(0, 0, 0);
    margin-right: 1rem;
    object-fit: cover;          
    object-position: center top; 
}

.header {
    border-bottom: 1px dashed #4e4e4e;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.header h1 {
    color: #5e5e5e;
    font-size: 2rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.header .sub {
    color: #888;
    font-size: 0.9rem;
}

.toggle-panel-btn {
    position: relative;
    left: -280px;
    background: none;
    border: 2px solid #4e4e4e;
    color: #5c5c5c;
    width: 32px;
    height: 50px;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgb(0, 0, 0);
    border-radius: 0;
    margin-left: auto;       
    margin-right: 0;     
}

.toggle-panel-btn:hover {
    background-color: rgb(112, 112, 112);
    border-color: #747474;
    color: #686868;
}

.section {
    margin-bottom: 2rem;
    padding-left: 8px;
}

.section:hover {
    background: linear-gradient(90deg, rgba(43,155,255,0.02), transparent);
    border-left: 2px solid #464646;
}

.section h2 {
    color: #7a7a7a;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #5e5e5e;
    padding-bottom: 3px;
}

.section h2 .arrow {
    display: inline-block;
    color: #333333;
    transition: transform 0.2s;
    font-size: 1.3rem;
    border-radius: 0;
}

.section h2:hover .arrow {
    transform: translateX(6px);
}

.highlight {
    font-weight: bold;
    padding: 2px 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin: 2px 0;
    background: rgb(75, 75, 75);
    color: #363636;
    border-radius: 4px;
}

.highlight:hover {
    background: rgba(255, 184, 107, 0.3);
    box-shadow: 0 0 8px #ffb86b;
}

.highlight[data-type="keyword"] {
    background: rgba(109, 109, 109, 0.15);     
    backdrop-filter: blur(8px);               
    -webkit-backdrop-filter: blur(8px);
    
    color: rgba(220, 235, 255, 1);            
    font-weight: 500;
    font-size: 0.85rem;                       
    
    padding: 2px 8px;                          
    border-radius: 12px;                       
    
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-bottom-color: rgba(100, 100, 100, 0.5); 
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    
    line-height: 1.2;
    display: inline-block;                     
    transition: all 0.2s ease;
}

.highlight[data-type="keyword"]:hover {
    background: rgba(87, 87, 87, 0.3);       
    border-color: rgba(100, 100, 100, 0.5);
    border-bottom-color: rgba(100, 100, 100, 0.7);
    box-shadow: 0 4px 12px rgba(66, 66, 66, 0.4),
                0 0 0 1px rgba(85, 85, 85, 0.2) inset;
    transform: translateY(-1px);
}

.highlight[data-type="string"] {
    background: rgba(155, 155, 155, 0.15);     
    backdrop-filter: blur(8px);               
    -webkit-backdrop-filter: blur(8px);
    
    color: rgba(220, 235, 255, 1);            
    font-weight: 500;
    font-size: 0.85rem;                       
    
    padding: 2px 8px;                          
    border-radius: 12px;                       
    
    border: 1px solid rgba(54, 54, 54, 0.3);
    border-bottom-color: rgba(53, 53, 53, 0.5); 
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    
    line-height: 1.2;
    display: inline-block;                     
    transition: all 0.2s ease;
}
.highlight[data-type="string"]:hover {
    background: rgba(99, 99, 99, 0.3);       
    border-color: rgba(102, 102, 102, 0.5);
    border-bottom-color: rgba(102, 102, 102, 0.7);
    box-shadow: 0 4px 12px rgba(82, 82, 82, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-1px);
}

.highlight[data-type="comment"] {
    background: transparent;
    color: #888;
    font-style: italic;
    opacity: 0.8;
    font-weight: normal;
    cursor: default;
    box-shadow: none;
    border-radius: 4px;
}
.highlight[data-type="comment"]:hover {
    background: transparent;
    box-shadow: none;
    color: #aaa;
}

.funfact-link {
    color: #ffb86b;
    text-decoration: none;
    cursor: pointer;
    padding: 1px 3px;
    background: rgba(255, 184, 107, 0.1);
    border-radius: 4px;
    display: inline-block;
    margin: 5px 0;
    font-size: 1.1rem;
}

.funfact-link:hover {
    background: rgba(255, 184, 107, 0.2);
}

.note {
    color: #888;
    font-size: 0.85rem;
    border-left: 2px solid #424242;
    padding-left: 1rem;
    margin-top: 1.5rem;
    background: rgba(95, 95, 95, 0.02);
    padding: 0.8rem;
    border-radius: 0;
}

.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed #4e4e4e;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

.footer a {

    background: rgba(41, 67, 143, 0.15);
    backdrop-filter: blur(6px);              
    -webkit-backdrop-filter: blur(6px);
    
    color: #DCEBFF;
    text-decoration: none;
    

    padding: 2px 6px;                         
    margin: 0 1px;                           
    border-radius: 6px;                        
    

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.25);
    

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2),  
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    
    font-weight: 500;
    font-size: 0.75rem;                     
    display: inline-block;
    transition: all 0.15s ease;               
    
    line-height: 1.2;                           
}

.footer a:hover {
    background: rgba(41, 67, 143, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.3);
    border-bottom-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 3px 10px rgba(41, 67, 143, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transform: translateY(-1px);               
    color: #ffffff;
}
.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background-color: #5f5f5f;
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s infinite;
    border-radius: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

::selection {
    background: #ffb86b;
    color: #0a0a0a;
}
