* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font: #5c0c0e normal Colonna MT;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #EEEEEE;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 400'%3E%3Cdefs%3E%3CradialGradient id='a' cx='396' cy='281' r='514' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23C28868'/%3E%3Cstop offset='1' stop-color='%23EEEEEE'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='400' y1='148' x2='400' y2='333'%3E%3Cstop offset='0' stop-color='%2347402A' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%2347402A' stop-opacity='0.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='800' height='400'/%3E%3Cg fill-opacity='0.24'%3E%3Ccircle fill='url(%23b)' cx='267.5' cy='61' r='300'/%3E%3Ccircle fill='url(%23b)' cx='532.5' cy='61' r='300'/%3E%3Ccircle fill='url(%23b)' cx='400' cy='30' r='300'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
    padding: 0;
    margin: 0;
}

.tech_list-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #271b00;
    line-height: 1.5;
    min-height: 100vh;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.336);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: #584e20;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: #462B22;
}

/* Search & Filters */
.search-wrapper {
    margin-bottom: 1rem;
    max-width: 350px;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(88, 78, 32, 0.3);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #a38e3a;
    box-shadow: 0 0 0 2px rgba(163, 142, 58, 0.2);
}

.level-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.level-pill {
    padding: 0.35rem 0.85rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #462B22;
}

.level-pill:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.level-pill.active {
    background: #584e20;
    color: white;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0.5rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    padding: 0.4rem 0.85rem;
    border: none;
    background: #f0f0f0;
    color: #462B22;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #584e20, #a38e3a);
    color: white;
}

.tab-btn .category-count {
    display: inline-block;
    background: rgba(88, 78, 32, 0.2);
    border-radius: 12px;
    padding: 0.1rem 0.4rem;
    font-size: 0.6rem;
    margin-left: 0.3rem;
    color: #584e20;
}

/* Main Card Container */
.tech_list-card {
    display: block;
    background: rgba(255, 255, 255, 0.336);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
}

.tech_list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: -1;
    border-radius: 12px;
}

.tech_list-details {
    padding: 20px;
}

/* Accordion Styling */
details {
    margin-bottom: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

details[open] {
    background: rgba(255, 255, 255, 0.6);
    padding-bottom: 0.75rem;
}

details summary {
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
}

details summary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tech_list-h1 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #292410;
    display: inline-block;
}

.tech_list-h2 {
    font-size: 0.95rem;
    margin: 0.75rem 0 0.5rem 0;
    padding-left: 0.75rem;
    color: #462B22;
    border-left: 2px solid #a38e3a;
}

.tech_list-h3 {
    font-size: 0.85rem;
    margin: 0.5rem 0 0.4rem 0.75rem;
    color: #584e20;
    font-weight: 600;
}

/* Skills Grid - Modern Card Layout */
.skill-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 0.5rem;
}

/* Modern Skill Card */
.card {
    background: rgba(254, 254, 250, 0.95);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 37, 1, 0.15);
    position: relative;
    cursor: pointer;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 37, 1, 0.25);
}

/* Card Header - Contains icon, name, and label */
.card .tech-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%);
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
}

.card .tech-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: rgba(254, 254, 250, 0.95);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(46, 37, 1, 0.1);
}

/* Name and Label Container */
.card .tech-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card .tech-name {
    font-size: 1rem;
    font-weight: 600;
    color: #462B22;
    margin: 0;
}

/* Level Labels - Below the name, inside the same container */
.label-advanced,
.label-comfortable,
.label-familiar,
.label-exposed,
.label-learning {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: normal;
    width: fit-content;
}

.label-advanced {
    background: linear-gradient(135deg, #584e20 0%, #a38e3a 100%);
    color: #F0E7D6;
}

.label-advanced::before {
    content: "advanced";
}

.label-comfortable {
    background: linear-gradient(135deg, #462B22 0%, #c9826b 100%);
    color: #F0E7D6;
}

.label-comfortable::before {
    content: "comfortable";
}

.label-familiar {
    background: linear-gradient(135deg, #95502E 0%, #ee9d75 100%);
    color: #462B22;
}

.label-familiar::before {
    content: "familiar";
}

.label-exposed {
    background: linear-gradient(135deg, #C28868 0%, #ffd9c3 100%);
    color: #95502E;
}

.label-exposed::before {
    content: "exposed";
}

.label-learning {
    background: linear-gradient(135deg, #41472a 0%, #a8b37c 100%);
    color: #F0E7D6;
}

.label-learning::before {
    content: "learning";
}

/* Description */
.description {
    background: rgba(254, 254, 250, 0.9);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
    border-top: 1px solid rgba(243, 244, 246, 0.8);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #462B22;
    font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media screen and (max-width: 768px) {
    .tech_list-section {
        padding: 15px 10px;
    }

    .tech_list-details {
        padding: 12px;
    }

    .skill-category {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .card .tech-icon {
        padding: 0.875rem;
    }

    .card .tech-icon img {
        width: 40px;
        height: 40px;
    }

    .card .tech-name {
        font-size: 0.9rem;
    }

    .description {
        font-size: 0.7rem;
        padding: 0.75rem;
    }

    .label-advanced,
    .label-comfortable,
    .label-familiar,
    .label-exposed,
    .label-learning {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .category-tabs {
        position: relative;
        top: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0.5rem;
    }

    .tab-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
        white-space: nowrap;
    }

    .stats-bar {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .tech_list-h1 {
        font-size: 1rem;
    }

    .tech_list-h2 {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .skill-category {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .level-pill {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Print Styles */
@media print {
    .category-tabs,
    .level-filters,
    .search-wrapper,
    .stats-bar {
        display: none;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}