/* =================================
   TECH STACK MARQUEE STYLES
   ================================= */
.tech-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.tech-marquee:hover {
    animation-play-state: paused;
}

.tech-marquee-group {
    display: flex;
    gap: 2rem;
    padding-right: 2rem; /* Gap between groups */
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(0, 102, 255, 0.2);
}

.tech-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Specific Icon Colors on Hover */
.tech-item:hover .fa-laravel { color: #FF2D20; }
.tech-item:hover .fa-wordpress { color: #21759B; }
.tech-item:hover .fa-react { color: #61DAFB; }
.tech-item:hover .fa-css3-alt { color: #38B2AC; } /* Tailwind colorish */
.tech-item:hover .fa-database { color: #00758F; }
.tech-item:hover .fa-js { color: #F7DF1E; }
.tech-item:hover .fa-git-alt { color: #F05032; }
.tech-item:hover .fa-github { color: #ffffff; } /* GitHub White */
.tech-item:hover .fa-php { color: #777BB4; }
.tech-item:hover .fa-python { color: #3776AB; }

.tech-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.tech-level {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    /* Base Glassy */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

/* --- EXPERT (Naranja) --- */
.tech-item:hover .tech-level.expert {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
    color: #F59E0B;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.tech-level.expert:hover {
    background: #F59E0B !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

/* --- ADVANCED (Verde) --- */
.tech-item:hover .tech-level.advanced {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10B981;
    color: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.tech-level.advanced:hover {
    background: #10B981 !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* --- INTERMEDIATE (Azul) --- */
.tech-item:hover .tech-level.intermediate {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
    color: #3B82F6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.tech-level.intermediate:hover {
    background: #3B82F6 !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* --- BASIC (Cyan) --- */
.tech-item:hover .tech-level.basic {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.tech-level.basic:hover {
    background: #06b6d4 !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Responsive Adjustments for Marquee */
@media (max-width: 767px) {
    .tech-marquee-wrapper {
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .tech-item {
        width: 140px;
        padding: 1rem;
    }
    
    .tech-icon { font-size: 2.5rem; }
}
