/**
 * Skill Showcase Overlay v2.1 - GLASSMORPHISM FULLSCREEN
 * Inspired by ninacreativedesigns.com
 */

/* Overlay Container - FULLSCREEN */
.skill-showcase-v2-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-showcase-v2-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop - Dark with Blur */
.skill-showcase-v2-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Container - FULLSCREEN GLASSMORPHISM */
.skill-showcase-v2-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Close Button - Top Right */
.skill-showcase-v2-close {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-showcase-v2-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skill-showcase-v2-close svg {
    width: 24px;
    height: 24px;
}

/* Content - Centered Grid */
.skill-showcase-v2-content {
    flex: 1;
    padding: 120px 80px 80px 80px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
    align-content: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Scrollbar Styling - Minimal Glass */
.skill-showcase-v2-content::-webkit-scrollbar {
    width: 10px;
}

.skill-showcase-v2-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.skill-showcase-v2-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.skill-showcase-v2-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    background-clip: padding-box;
}

/* Block Base Styles - GLASS CARDS */
.skill-block {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    color: white;
}

.skill-block:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Stagger animation */
.skill-block:nth-child(1) { animation-delay: 0.1s; }
.skill-block:nth-child(2) { animation-delay: 0.15s; }
.skill-block:nth-child(3) { animation-delay: 0.2s; }
.skill-block:nth-child(4) { animation-delay: 0.25s; }
.skill-block:nth-child(5) { animation-delay: 0.3s; }
.skill-block:nth-child(6) { animation-delay: 0.35s; }
.skill-block:nth-child(7) { animation-delay: 0.4s; }
.skill-block:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Block Sizes */
.skill-block-small {
    grid-column: span 1;
}

.skill-block-medium {
    grid-column: span 2;
}

/* Text Block */
.skill-block-text .skill-block-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.skill-block-text .skill-block-text {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Stats Block - Gradient Glass */
.skill-block-stats {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-stats-number {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-stats-label {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

/* Image Block */
.skill-block-image {
    padding: 0;
    overflow: hidden;
}

.skill-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.skill-block-image .skill-block-caption {
    padding: 20px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

/* Video Block */
.skill-block-video {
    padding: 0;
    overflow: hidden;
}

.skill-block-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.skill-block-video .skill-block-caption {
    padding: 20px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .skill-showcase-v2-content {
        padding: 100px 60px 60px 60px;
        gap: 24px;
    }
    
    .skill-block-medium {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .skill-showcase-v2-close {
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .skill-showcase-v2-content {
        padding: 80px 20px 40px 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-block-small,
    .skill-block-medium {
        grid-column: span 1;
    }
    
    .skill-block {
        padding: 24px;
    }
    
    .skill-block-text .skill-block-title {
        font-size: 24px;
    }
    
    .skill-stats-number {
        font-size: 48px;
    }
}

/* Dark Mode - Enhanced Glass */
@media (prefers-color-scheme: dark) {
    .skill-showcase-v2-backdrop {
        background: rgba(0, 0, 0, 0.85);
    }
    
    .skill-showcase-v2-container {
        background: rgba(20, 20, 30, 0.4);
    }
    
    .skill-block {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .skill-block:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
}
