/* Skills Horizontal Scroll Animation - GSAP ScrollTrigger */

.skills-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(101deg, #017AAE 4.3%, #1CC1FF 91.67%);
    z-index: 100;
    /* Much higher to cover any service cards or buttons */
}

.skills-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    width: 100%;
}

/* Parallax background layer */
.skills-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    will-change: transform;
}

/* Individual skill panel */
.skill-panel {
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

/* Skill content wrapper */
.skill-content {
    width: 100%;
    max-width: 1280px;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Default to single column for better centering */
    gap: 4rem;
    align-items: center;

}


@media (max-width: 768px) {
    .skill-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}



/* Left side - Text content */
.skill-text {
    color: white;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

.skill-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2rem;
    background: white;
    color: #0387BC;
    font-weight: bold;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    margin-bottom: 1rem;
}

.skill-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.skill-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.75;
    font-family: 'Poppins', sans-serif;
}

/* Right side - Visual content */
.skill-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-visual img {
    max-width: 100%;
    height: auto;
}

/* Tech icons floating around */
.tech-icon {
    position: absolute;
    will-change: transform;
}

.tech-icon img {
    width: clamp(2.5rem, 5vw, 4.5rem);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Interaction lock overlay */
.interaction-lock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
}

.interaction-lock.active {
    pointer-events: all;
}

/* Header section styles */
.skills-header {
    text-align: center;
    padding: 2rem 1rem;
    color: white;
}

.skills-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(160px, 20vw, 194px);
    height: clamp(36px, 5vw, 44px);
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: white;
    border-radius: 50px;
    background: rgba(168, 222, 243, 0.76);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.skills-heading {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
    color: white;
    font-family: 'Poppins', sans-serif;
}

/* Tech Grid Adjustments */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    justify-items: center;
}

@media (min-width: 640px) {
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }
}

.tech-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .tech-item img {
        width: 150px;
        height: 150px;
    }
}

/* SplitText word animation */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}