/* =========================================
   CORE TECH SECTION 🛡️ - Premium Redesign
   ========================================= */
.core-tech-container {
    margin: 100px auto 60px;
    padding: 0 24px;
    max-width: 1400px;
}

.core-tech-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag-small {
    font-size: 11px;
    font-weight: 700;
    color: rgba(212, 244, 88, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(212, 244, 88, 0.1);
    border: 1px solid rgba(212, 244, 88, 0.2);
    border-radius: 30px;
}

.core-tech-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.core-tech-title .highlight {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Grid Layout */
.core-tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Premium Tech Card */
.tech-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.05);
}

.tech-card:hover::before {
    opacity: 1;
}

/* Animated Glow Background */
.tech-card-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tech-card:hover .tech-card-glow {
    opacity: 1;
}

/* Specific Glows with vibrant colors */
.ai-glow {
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(212, 244, 88, 0.15) 10%,
            transparent 20%,
            transparent 100%);
}

.sec-glow {
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(68, 138, 255, 0.15) 10%,
            transparent 20%,
            transparent 100%);
}

.sync-glow {
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(255, 215, 0, 0.15) 10%,
            transparent 20%,
            transparent 100%);
}

.off-glow {
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(236, 72, 153, 0.15) 10%,
            transparent 20%,
            transparent 100%);
}

.rep-glow {
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(34, 197, 94, 0.15) 10%,
            transparent 20%,
            transparent 100%);
}

/* Premium Tech Icon */
.tech-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual icon colors */
.tech-card:nth-child(1) .tech-icon {
    background: linear-gradient(135deg, rgba(212, 244, 88, 0.15) 0%, rgba(212, 244, 88, 0.05) 100%);
    border: 1px solid rgba(212, 244, 88, 0.3);
    color: #D4F458;
    box-shadow: 0 8px 32px rgba(212, 244, 88, 0.15);
}

.tech-card:nth-child(2) .tech-icon {
    background: linear-gradient(135deg, rgba(68, 138, 255, 0.15) 0%, rgba(68, 138, 255, 0.05) 100%);
    border: 1px solid rgba(68, 138, 255, 0.3);
    color: #448AFF;
    box-shadow: 0 8px 32px rgba(68, 138, 255, 0.15);
}

.tech-card:nth-child(3) .tech-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.tech-card:nth-child(4) .tech-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #EC4899;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.15);
}

.tech-card:nth-child(5) .tech-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
}

/* Hover icon animation */
.tech-card:hover .tech-icon {
    transform: scale(1.15) rotate(5deg);
}

.tech-card:nth-child(1):hover .tech-icon {
    background: linear-gradient(135deg, #D4F458 0%, #a8c947 100%);
    color: #0a0a0a;
    box-shadow: 0 15px 40px rgba(212, 244, 88, 0.4);
}

.tech-card:nth-child(2):hover .tech-icon {
    background: linear-gradient(135deg, #448AFF 0%, #2962FF 100%);
    color: #fff;
    box-shadow: 0 15px 40px rgba(68, 138, 255, 0.4);
}

.tech-card:nth-child(3):hover .tech-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0a0a0a;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.tech-card:nth-child(4):hover .tech-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: #fff;
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
}

.tech-card:nth-child(5):hover .tech-icon {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #fff;
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

/* Card Title */
.tech-card h4 {
    color: var(--text-white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

/* Card Description */
.tech-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.tech-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet - 3 columns top, 2 centered bottom */
@media (max-width: 1200px) {
    .core-tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .tech-card:nth-child(4),
    .tech-card:nth-child(5) {
        grid-column: auto;
    }
}

/* Small Tablet - 2 columns */
@media (max-width: 900px) {
    .core-tech-title {
        font-size: 32px;
    }

    .core-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tech-card {
        padding: 28px 20px;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Mobile - Horizontal List Cards */
@media (max-width: 640px) {
    .core-tech-container {
        margin: 60px 0 40px;
        padding: 0 16px;
    }

    .core-tech-header {
        margin-bottom: 40px;
    }

    .section-tag-small {
        font-size: 10px;
        padding: 6px 14px;
        letter-spacing: 2px;
    }

    .core-tech-title {
        font-size: 26px;
    }

    .core-tech-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tech-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 20px;
        border-radius: 18px;
    }

    .tech-card-glow {
        display: none;
        /* Disable heavy animation on mobile */
    }

    .tech-card:hover {
        transform: translateY(-4px) scale(1);
    }

    .tech-icon {
        margin: 0 18px 0 0;
        width: 52px;
        height: 52px;
        min-width: 52px;
        font-size: 22px;
        border-radius: 16px;
    }

    .tech-card:hover .tech-icon {
        transform: scale(1.08);
    }

    .tech-card-content {
        flex: 1;
    }

    .tech-card h4 {
        margin-bottom: 6px;
        font-size: 16px;
    }

    .tech-card p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    .core-tech-title {
        font-size: 22px;
    }

    .tech-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 20px;
        margin-right: 14px;
    }

    .tech-card h4 {
        font-size: 15px;
    }

    .tech-card p {
        font-size: 12px;
    }
}