/* ============================================
   TECHNOLOGY STACK - PREMIUM REDESIGN
   World-class SaaS design inspired by Vercel, Stripe, Linear
   ============================================ */

.tech-stack-premium {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.tech-stack-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 191, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Container */
.tech-stack-premium .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.tech-stack-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00bfff;
    margin-bottom: 24px;
}

.header-badge i {
    color: #8a2be2;
    font-size: 1rem;
}

.tech-stack-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #fff;
    letter-spacing: -2px;
}

.tech-stack-title .gradient-text {
    background: linear-gradient(135deg, #8a2be2 0%, #00bfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-stack-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   PREMIUM CENTER HUB
   ============================================ */

.tech-hub-premium {
    position: relative;
    max-width: 600px;
    margin: 0 auto 80px;
    animation: fadeInScale 1s ease 0.3s backwards;
}

.hub-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    border-radius: 24px;
    animation: pulse-hub 4s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes pulse-hub {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.hub-content {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(138, 43, 226, 0.6), rgba(0, 191, 255, 0.6)) 1;
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(138, 43, 226, 0.3),
        inset 0 0 40px rgba(138, 43, 226, 0.05);
    transition: all 0.4s ease;
    animation: float-hub 6s ease-in-out infinite;
}

@keyframes float-hub {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hub-content:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(138, 43, 226, 0.5);
}

.hub-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(0, 191, 255, 0.3));
    border-radius: 20px;
    font-size: 2.5rem;
    color: #00bfff;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.4);
}

.hub-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
}

.hub-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px 0;
}

.hub-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.hub-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00bfff;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hub-badge-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 191, 255, 0.2));
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.hub-badge-bottom i {
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* ============================================
   TECHNOLOGY CATEGORIES GRID
   ============================================ */

.tech-categories-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.tech-category {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

.tech-category:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.category-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 24px;
}

/* Accent Colors */
.tech-category[data-accent="blue"] .category-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.tech-category[data-accent="purple"] .category-icon {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}

.tech-category[data-accent="cyan"] .category-icon {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
}

.tech-category[data-accent="indigo"] .category-icon {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
}

.tech-category[data-accent="orange"] .category-icon {
    color: #f97316;
    background: rgba(249, 115, 22, 0.15);
}

.tech-category[data-accent="green"] .category-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.tech-category[data-accent="pink"] .category-icon {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.15);
}

.tech-category[data-accent="violet"] .category-icon {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

/* ============================================
   TECHNOLOGY CARDS
   ============================================ */

.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tech-card-premium {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.tech-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 191, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.3);
}

.tech-card-premium:hover::before {
    opacity: 1;
}

.card-step {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 191, 255, 0.2));
    border-radius: 16px;
    font-size: 2rem;
    color: #00bfff;
    transition: all 0.3s ease;
}

.tech-card-premium:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
}

.card-title {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.card-description {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

.card-badge {
    position: relative;
    z-index: 1;
    padding: 6px 14px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00bfff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BOTTOM SUMMARY SECTION
   ============================================ */

.tech-summary-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-4px);
}

.summary-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 191, 255, 0.2));
    border-radius: 14px;
    font-size: 1.5rem;
    color: #00bfff;
    transition: all 0.3s ease;
}

.summary-item:hover .summary-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .tech-stack-premium .section-container {
        max-width: 1000px;
        padding: 0 30px;
    }

    .tech-stack-title {
        font-size: 3.5rem;
    }

    .tech-categories-premium {
        gap: 32px;
    }
}

@media (max-width: 992px) {
    .tech-stack-premium {
        padding: 80px 0 60px;
    }

    .tech-stack-header {
        margin-bottom: 60px;
    }

    .tech-stack-title {
        font-size: 3rem;
    }

    .tech-hub-premium {
        margin-bottom: 60px;
    }

    .tech-categories-premium {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .tech-stack-premium {
        padding: 60px 0 40px;
    }

    .tech-stack-premium .section-container {
        padding: 0 20px;
    }

    .tech-stack-header {
        margin-bottom: 40px;
    }

    .tech-stack-title {
        font-size: 2.5rem;
    }

    .tech-stack-subtitle {
        font-size: 1.1rem;
    }

    .hub-content {
        padding: 36px 28px;
    }

    .hub-title {
        font-size: 2rem;
    }

    .hub-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .tech-cards-grid {
        grid-template-columns: 1fr;
    }

    .tech-summary-premium {
        gap: 24px;
        padding: 32px 24px;
    }

    .summary-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .tech-stack-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .tech-stack-subtitle {
        font-size: 1rem;
    }

    .hub-content {
        padding: 28px 20px;
    }

    .hub-title {
        font-size: 1.8rem;
    }

    .hub-subtitle {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .tech-summary-premium {
        flex-direction: column;
        gap: 20px;
    }

    .summary-item {
        width: 100%;
        justify-content: center;
    }
}
