/*  Page Styles */
body.skills-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 
                Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #103812;
    color: #e5dfc7;
    min-height: 100vh;
    overflow-x: hidden;
}

.skills-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.max-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    padding-bottom: 120px; 
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.skills-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    padding: 0 15px;
}

.skills-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    color: #e5dfc7;
}

.title-underline {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(150px, 50vw);
    height: 3px;
    background: linear-gradient(to right, #dce7eb, #e0ebf1);
    border-radius: 3px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.filter-btn {
    position: relative;
    overflow: hidden;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 2px solid #dce7eb;
    background: transparent;
    color: #e5dfc7;
    cursor: pointer;
    transition: all 0.5s ease;
    font-size: clamp(0.875rem, 2vw, 1rem);
    min-width: 80px;
    text-align: center;
}

.filter-btn.active {
    color: #103812;
}

.btn-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #dce7eb;
    z-index: 0;
    transition: transform 0.5s ease;
}

.filter-btn.active .btn-bg {
    transform: translate(-50%, -50%) scale(1);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Skills Category */
.skills-category {
    background: linear-gradient(to bottom right, #06310b, #103812);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.category-title {
    color: #dce7eb;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 20px;
    font-weight: 400;
    position: relative;
    padding-bottom: 8px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #e0ebf1;
}

/* Skills List */
.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .skills-list {
        grid-template-columns: 1fr;
    }
}

.skill-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    color: #e5dfc7;
    transition: all 0.3s ease;
}

.skill-name {
    color: #e5dfc7;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Back Home Button  */
.back-home-btn {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1100;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    pointer-events: none;
}

.home-link {
    padding: 12px 24px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 2px solid #6f8890;
    color: #e5dfc7;
    background: transparent;
    pointer-events: auto;
}

.home-link:hover {
    background: #6f8890;
    color: #0a350d;
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 255, 153, 0.3), 0 10px 10px -5px rgba(0, 255, 153, 0.1);
}

.home-link i {
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .max-width-container {
        padding: 30px 15px;
        padding-bottom: 100px;
    }
    
    .filter-buttons {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .skills-grid {
        gap: 20px;
    }
    
    .skills-category {
        padding: 16px;
    }

    .back-home-btn {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .skills-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .title-underline {
        bottom: -15px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        min-width: 70px;
    }
    
    .home-link {
        padding: 10px 20px;
    }
}