/* Modern Skills Page Styling */
body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

body > *:not(#header):not(footer) {
    max-width: 1200px;
    width: 100%;
    /* padding: 2rem 1rem; */
    margin: 0 auto;
    box-sizing: border-box;
    /* padding-bottom: 0px; */
}

#main, .soft {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

#intro {
    text-align: center;
    font-size: 1.5rem;
    color: #667eea;
    margin: 2rem 0;
    font-weight: 600;
    padding-bottom: 0;
}

#head {
    text-align: center;
    font-size: 1.3rem;
    color: #667eea;
    margin: 1.5rem 0;
    font-weight: 600;
}

#list_div, .soft {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    width: 100%;
}

.soft {
    /* margin-top: 2rem; */
    padding-bottom: 70px;
}

#list_div > div, .soft > div {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

#list_div > div:hover, .soft > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

#list_div h3, .soft p {
    color: #667eea;
    font-size: 1.3rem;
    /* margin-bottom: 1.5rem; */
    margin: 0 0 1.5rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

#lang, #os, #skills {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: list-counter;
}

#lang li, #os li, #skills li {
    counter-increment: list-counter;
    padding: 0.75rem 1rem 0.75rem 3rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
    color: #333;
    position: relative;
    line-height: 1.6;
}

#lang li::before {
    content: counter(list-counter);
}

#os li::before, #lang li::before, #skills li::before {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

#lang li:hover, #os li:hover, #skills li:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #e8ecf1 0%, #d4e1ed 100%);
    border-left-width: 5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

#lang li:hover::before, #os li:hover::before, #skills li:hover::before {
    background: #764ba2;
    transform: translateY(-50%) scale(1.1);
}

#os li, #skills li {
    padding: 0.75rem 1rem;
    display: block;
}

#os .item-title,  #skills .item-title{
    display: block;
    font-weight: 700;
    color: #3a3a3a;
    background: linear-gradient(90deg,#eef2ff 0,#e8eaff 100%);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

#os .item-body, #skills .item-body {
    display: block;
    color: #333;
    line-height: 1.5;
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #list_div {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    #list_div > div {
        padding: 1.5rem;
    }
    
    #intro {
        font-size: 1.25rem;
    }
    
    #head, #second {
        font-size: 1.1rem;
    }

    .soft {
        padding-bottom: 90px;
    }
}

@media (prefers-color-scheme: dark) {
    #list_div > div, .soft > div {
        background: #2a2a2a;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }
    
    #list_div > div:hover {
        border-color: #667eea;
    }
    
    #list_div h3 {
        color: #8b9eff;
        border-bottom-color: #8b9eff;
    }
    
    #lang li, #os li, #skills li {
        background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
        color: #e0e0e0;
        border-left-color: #667eea;
    }
    
    #lang li::before, #os li::before, #skills li::before {
        background: #667eea;
        color: white;
    }
    
    #lang li:hover, #os li:hover, #skills li:hover {
        background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    }
    
    #lang li:hover::before, #os li:hover::before, #skills li:hover::before {
        background: #8b9eff;
    }

    #os .item-title, #skills .item-title {
        background: linear-gradient(90deg,#3a3a3a 0,#2f2f2f 100%);
        color: #667eea;
    }
    #os .item-body, #skills .item-body { color: #e0e0e0; }
    
    #head {
        color: #667eea;
    }
}