/* Tech Stack Logo Animations */
.language-pill {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.language-pill::before,
.language-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(255,255,255,0.15) 0%, 
        rgba(255,255,255,0) 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.language-pill::after {
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    transform: translateX(-100%) rotate(25deg);
}

.language-pill:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 15px 30px -8px rgba(0,0,0,0.3),
        0 0 20px rgba(45, 198, 83, 0.3),
        0 0 0 1px rgba(255,255,255,0.1) inset;
}

.language-pill:hover::before {
    opacity: 1;
    transform: scale(1.2) rotate(-5deg);
}

.language-pill:hover::after {
    opacity: 1;
    transform: translateX(100%) rotate(25deg);
    transition: transform 0.8s ease;
}

.language-pill .tech-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    filter: drop-shadow(0 0 0 rgba(45, 198, 83, 0));
}

.language-pill:hover .tech-icon {
    transform: scale(1.2) rotate(12deg);
    filter: drop-shadow(0 0 8px rgba(45, 198, 83, 0.5));
}

.language-pill span {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.language-pill:hover span {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(45, 198, 83, 0.5);
    letter-spacing: 0.5px;
}

/* Custom animation for different tech stacks */
.language-pill:nth-child(1):hover .tech-icon {
    animation: bounceRotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.language-pill:nth-child(2):hover .tech-icon {
    animation: spinPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.language-pill:nth-child(3):hover .tech-icon {
    animation: heartbeat 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.language-pill:nth-child(4):hover .tech-icon {
    animation: wobble 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.language-pill:nth-child(5):hover .tech-icon {
    animation: jelly 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.language-pill:nth-child(6):hover .tech-icon {
    animation: flip 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceRotate {
    0%, 100% { transform: scale(1.2) rotate(0deg); }
    50% { transform: scale(1.4) rotate(180deg); }
}

@keyframes spinPulse {
    0% { transform: scale(1.2) rotate(0deg); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.2) rotate(360deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

@keyframes wobble {
    0%, 100% { transform: scale(1.2) rotate(0deg); }
    25% { transform: scale(1.3) rotate(-15deg); }
    75% { transform: scale(1.3) rotate(15deg); }
}

@keyframes jelly {
    0%, 100% { transform: scale(1.2) skewX(0deg); }
    25% { transform: scale(1.3) skewX(15deg); }
    75% { transform: scale(1.3) skewX(-15deg); }
}

@keyframes flip {
    0% { transform: scale(1.2) perspective(400px) rotateY(0); }
    100% { transform: scale(1.2) perspective(400px) rotateY(360deg); }
}

/* Individual tech stack animations */
.language-pill:nth-child(1) {
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.1s;
}

.language-pill:nth-child(2) {
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.3s;
}

.language-pill:nth-child(3) {
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.language-pill:nth-child(4) {
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.7s;
}

.language-pill:nth-child(5) {
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 0.9s;
}

.language-pill:nth-child(6) {
    animation: floatUp 3s ease-in-out infinite;
    animation-delay: 1.1s;
}

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

/* Glow effects for each tech stack */
.language-pill:nth-child(1) { /* HTML */
    box-shadow: 0 0 20px rgba(229, 77, 38, 0.1);
}

.language-pill:nth-child(2) { /* React */
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.1);
}

.language-pill:nth-child(3) { /* Laravel */
    box-shadow: 0 0 20px rgba(255, 45, 32, 0.1);
}

.language-pill:nth-child(4) { /* CodeIgniter */
    box-shadow: 0 0 20px rgba(239, 131, 84, 0.1);
}

.language-pill:nth-child(5) { /* NodeJS */
    box-shadow: 0 0 20px rgba(104, 160, 99, 0.1);
}

.language-pill:nth-child(6) { /* NextJS */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Shine effect on hover */
.language-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.language-pill:hover::after {
    left: 100%;
}

/* Container animation */
.language-logos-container {
    position: relative;
    z-index: 1;
}

.language-logos-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(45, 198, 83, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.language-logos-container:hover::before {
    opacity: 1;
}
