.tech-stack-modern {
    margin-top: 48px;
}

.tech-category-modern {
    margin-bottom: 64px;
}

.tech-category-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.tech-category-modern h3 i {
    font-size: 1.8rem;
}

/* REDESIGNED TECH GRID - More Professional */
.tech-grid-redesigned {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .tech-grid-redesigned {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .tech-grid-redesigned {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-card-redesigned {
    background: var(--card-bg);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-card-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.tech-card-redesigned:hover::before {
    transform: scaleX(1);
}

.tech-card-redesigned:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.25);
}

.tech-icon-redesigned {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: inline-block;
    transition: all 0.35s ease;
}

.tech-card-redesigned:hover .tech-icon-redesigned {
    transform: scale(1.15) rotate(5deg);
}

.tech-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.tech-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* Icon Colors */
.color-react {
    color: #61DAFB;
}

.color-vue {
    color: #42b883;
}

.color-angular {
    color: #DD0031;
}

.color-node {
    color: #339933;
}

.color-python {
    color: #3776AB;
}

.color-flutter {
    color: #02569B;
}

.color-aws {
    color: #FF9900;
}

.color-docker {
    color: #2496ED;
}

.color-mongodb {
    color: #47A248;
}

.color-postgres {
    color: #336791;
}

.color-firebase {
    color: #FFA000;
}

.color-tailwind {
    color: #06B6D4;
}

.color-bootstrap {
    color: #7952B3;
}

.color-html {
    color: #E34F26;
}

.color-css {
    color: #1572B6;
}

.color-sass {
    color: #CC6699;
}

.color-ts {
    color: #3178C6;
}

.color-js {
    color: #F7DF1E;
}

.color-php {
    color: #777BB4;
}

.color-laravel {
    color: #FF2D20;
}

.color-java {
    color: #007396;
}

.color-ruby {
    color: #CC342D;
}

.color-swift {
    color: #FA7343;
}

.color-kotlin {
    color: #7F52FF;
}

.color-google {
    color: #4285F4;
}

.color-microsoft {
    color: #0078D4;
}

.color-github {
    color: #181717;
}

.color-gitlab {
    color: #FC6D26;
}

.color-vercel {
    color: #000000;
}

.color-digitalocean {
    color: #0080FF;
}

.color-redis {
    color: #DC382D;
}

.color-mysql {
    color: #00758F;
}

.color-graphql {
    color: #E535AB;
}

/* Dark Mode */
body.dark-mode .tech-card-redesigned {
    border-color: #374151;
    background: #1f2937;
}

body.dark-mode .tech-card-redesigned:hover {
    border-color: #818cf8;
    box-shadow: 0 20px 40px -10px rgba(129, 140, 248, 0.3);
}

/* Category Headers with Gradient */
.tech-category-header {
    position: relative;
    padding-left: 24px;
}

.tech-category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* Expertise Badges - Updated */
.expertise-badge-new {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
    border: 2px solid var(--primary);
    border-radius: 24px;
    font-size: 0.95rem;
    margin: 6px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.expertise-badge-new:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.expertise-badge-new i {
    margin-right: 6px;
    font-size: 0.9rem;
}

body.dark-mode .expertise-badge-new {
    border-color: #818cf8;
    color: #a5b4fc;
}

body.dark-mode .expertise-badge-new:hover {
    background: #818cf8;
    color: #1e293b;
}

/* Section Container */
.tech-stack-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 0;
    border-radius: 24px;
    margin-top: 48px;
}

body.dark-mode .tech-stack-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}