/* Tech Stack Section Styles - Enhanced Blue & Pink Animated Background */
.tech-stack-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        #dbeafe 0%,     /* Light blue */
        #bfdbfe 20%,    /* Slightly deeper blue */
        #fce7f3 40%,    /* Light pink */
        #f3e8ff 60%,    /* Light purple */
        #dbeafe 80%,    /* Back to light blue */
        #fce7f3 100%);  /* End with pink */
    background-size: 400% 400%;
    animation: gradientShift 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.tech-stack-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(219, 39, 119, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(219, 39, 119, 0.06) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 20px 20px, 20px 20px;
    animation: gridMove 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.tech-stack-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(219, 39, 119, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    animation: floatingCircles 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes floatingCircles {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: scale(1.1) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: scale(0.9) rotate(240deg);
        opacity: 0.9;
    }
}

.tech-stack-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.tech-stack-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.tech-stack-subtitle {
    display: none; /* Hide subtitle to match design */
}

.tech-stack-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.tech-filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tech-filter-btn:hover,
.tech-filter-btn.active {
    background: rgba(59, 130, 246, 0.95);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.tech-filter-btn span {
    position: relative;
    z-index: 1;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.tech-category {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.02) 0%, 
        rgba(219, 39, 119, 0.01) 50%, 
        rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.tech-category:hover::before {
    opacity: 1;
}

.category-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0;
}

.category-icon {
    display: none; /* Hide emoji icons to match design */
}

.category-description {
    display: none; /* Hide descriptions to match design */
}

.category-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 0.25rem;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Special layout for databases section with more items */
.tech-category[data-category="databases"] .tech-items {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tech-category[data-category="languages"] .tech-items,
.tech-category[data-category="languages2"] .tech-items {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-item:hover {
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.05);
}

.tech-icon {
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
}

/* Specific icon colors to match the design */
.devicon-react-original { color: #61DAFB; }
.devicon-angular-plain { color: #DD0031; }
.devicon-svelte-plain { color: #FF3E00; }
.devicon-nodejs-plain { color: #339933; }
.devicon-express-original { color: #000000; }
.devicon-php-plain { color: #777BB4; }
.devicon-postgresql-plain { color: #336791; }
.devicon-mongodb-plain { color: #47A248; }
.devicon-mysql-plain { color: #4479A1; }
.devicon-firebase-plain { color: #FFCA28; }
.devicon-sqlite-plain { color: #003B57; }
.devicon-redis-plain { color: #DC382D; }
.devicon-supabase-plain { color: #3ECF8E; }
.devicon-couchdb-plain { color: #E42528; }
.devicon-javascript-plain { color: #F7DF1E; }
.devicon-typescript-plain { color: #3178C6; }
.devicon-python-plain { color: #3776AB; }
.devicon-laravel-plain { color: #FF2D20; }
.devicon-cplusplus-plain { color: #00599C; }
.devicon-rust-plain { color: #000000; }
.devicon-go-plain { color: #00ADD8; }
.devicon-java-plain { color: #ED8B00; }
.devicon-flask-original { color: #000000; }
.devicon-sqlite-plain { color: #003B57; }
.devicon-redis-plain { color: #DC382D; }
.devicon-java-plain { color: #ED8B00; }
.devicon-docker-plain { color: #2496ED; }
.devicon-github-original { color: #181717; }
.devicon-gitlab-plain { color: #FC6D26; }
.devicon-bitbucket-original { color: #0052CC; }
.devicon-nginx-original { color: #009639; }
.devicon-seneca-plain { color: #7C3AED; }
.devicon-firebase-plain { color: #FFCA28; }
.devicon-flutter-plain { color: #02569B; }
.devicon-kotlin-plain { color: #7F52FF; }
.devicon-opencv-plain { color: #5C3EE8; }
.devicon-pytorch-original { color: #EE4C2C; }
.devicon-keras-plain { color: #D00000; }
.devicon-onnx-plain { color: #005CED; }
.devicon-jupyter-plain { color: #F37626; }

.tech-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tech-level {
    display: none; /* Hide skill levels to match design */
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-stack-section {
        padding: 60px 0;
    }
    
    .tech-stack-title {
        font-size: 2.5rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-item {
        padding: 0.75rem;
    }
    
    .tech-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-filters {
        gap: 0.25rem;
        margin: 0 1rem 30px 1rem;
    }
    
    .tech-filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .tech-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
}

/* Animation for filter transitions */
.tech-category {
    transition: all 0.4s ease;
}

.tech-category.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.tech-category.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
