/* =========================
   TECH-STACK.CSS – INVERTED COLOURS
   Green background, purple cards, left-aligned header
   Desktop: 3 columns, Tablet: 2 columns, Mobile: 1 column
========================= */

.tech-stack {
    width: 100%;
    padding: 80px 0;
    background: #0a1f1a;          /* green background (inverted) */
}

.tech-stack .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    box-sizing: border-box;
}

/* ----- SECTION HEADER – forced left alignment ----- */
.tech-stack .section-header {
    text-align: left !important;
    margin-bottom: 60px;
}

.tech-stack .section-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start !important;
}

.tech-stack .section-tag hr {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #c084fc, #4ade80); /* inverted gradient */
    border: none;
    margin: 0;
}

.tech-stack .section-tag h5 {
    color: #c084fc;               /* purple tag (inverted) */
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.tech-stack .section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #e2d6f0;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    text-align: left !important;
}

/* ----- TECH GRID – desktop: 3 columns ----- */
.tech-stack .tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* Cards become purple‑tinted, purple border */
.tech-stack .tech-category {
    background: rgba(30, 16, 41, 0.5);   /* purple‑tinted */
    backdrop-filter: blur(2px);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 28px) clamp(16px, 4vw, 24px);
    transition: all 0.3s ease;
    border: 1px solid rgba(192, 132, 252, 0.3); /* purple border */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tech-stack .tech-category:hover {
    transform: translateY(-8px);
    border-color: #c084fc;                     /* purple hover border */
    background: rgba(30, 16, 41, 0.7);
    box-shadow: 0 16px 30px rgba(192, 132, 252, 0.15); /* purple glow */
}

/* Icons – changed to purple */
.tech-stack .tech-category h3 i {
    color: #c084fc;                            /* purple icons */
    font-size: 1.6rem;
}

.tech-stack .tech-category h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #e2d6f0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-stack .tech-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-stack .tech-category li {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    color: #d1e0d6;
    padding: 8px 0;
    border-bottom: 1px solid rgba(192, 132, 252, 0.3); /* purple border */
    position: relative;
    padding-left: 20px;
}

/* Bullets – changed to purple */
.tech-stack .tech-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #c084fc;                            /* purple bullets */
}

.tech-stack .tech-category li:last-child {
    border-bottom: none;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet & small desktop (≤ 1024px): force exactly 2 columns */
@media (max-width: 1024px) {
    .tech-stack {
        padding: 60px 0;
    }
    .tech-stack .section-header {
        margin-bottom: 40px;
    }
    .tech-stack .tech-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
}

/* Mobile (≤ 600px): single column */
@media (max-width: 600px) {
    .tech-stack .tech-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* Small phones (≤ 480px): tighten padding */
@media (max-width: 480px) {
    .tech-stack .container {
        padding: 0 20px;
    }
    .tech-stack .tech-category {
        padding: 20px 16px;
    }
    .tech-stack .tech-category h3 {
        gap: 8px;
        margin-bottom: 14px;
    }
    .tech-stack .tech-category li {
        padding: 6px 0 6px 18px;
        font-size: 0.85rem;
    }
    .tech-stack .tech-category h3 i {
        font-size: 1.3rem;
    }
}

/* Very narrow (≤ 360px) */
@media (max-width: 360px) {
    .tech-stack .tech-category {
        padding: 16px 12px;
    }
    .tech-stack .tech-category h3 {
        font-size: 1.2rem;
    }
    .tech-stack .tech-category li {
        font-size: 0.75rem;
        padding: 4px 0 4px 16px;
    }
    .tech-stack .tech-category h3 i {
        font-size: 1.1rem;
    }
}