/* ===== Skills Carousel ===== */
.skills-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.skills-carousel {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-carousel-track {
    position: relative;
    width: 100%;
    min-height: 350px;
}

.skills-carousel-card {
    width: 260px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skills-carousel-card.center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 10;
    filter: blur(0);
}

.skills-carousel-card.left {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% - 140px), -50%) scale(0.85);
    opacity: 0.7;
    visibility: visible;
    filter: blur(1px);
    z-index: 5;
}

.skills-carousel-card.right {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + 140px), -50%) scale(0.85);
    opacity: 0.7;
    visibility: visible;
    filter: blur(1px);
    z-index: 5;
}

.skills-carousel-card.hidden {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== Arrows ===== */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2) 0%, rgba(135, 206, 235, 0.1) 100%);
    border: 1px solid rgba(135, 206, 235, 0.3);
    color: #87CEEB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
}

.carousel-arrow.visible {
    opacity: 1;
    visibility: visible;
    animation: arrowAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes arrowAppear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.3) 0%, rgba(135, 206, 235, 0.2) 100%);
    border-color: rgba(135, 206, 235, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
    color: white;
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

/* ===== Card enhancements ===== */
.skills-carousel-card .group {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skills-carousel-card .group:hover {
    transform: scale(1.05);
}

/* ===== Hero Banner Animation ===== */
.hero-banner-content {
    opacity: 0;
    animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-banner-content span {
    animation-delay: 0.2s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner-content h1 {
    animation-delay: 0.4s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner-content p {
    animation-delay: 0.6s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner-content .flex {
    animation-delay: 0.8s;
    opacity: 0;
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== Premium Abstract Background – Grid + Glow ===== */
.grid-bg {
    position: relative;
    overflow: hidden;
}

.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(135, 206, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(135, 206, 235, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(135, 206, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(135, 206, 235, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.grid-bg .container,
.grid-bg .relative.z-10 {
    position: relative;
    z-index: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .skills-carousel-container {
        padding: 0 20px;
    }

    .skills-carousel-card {
        width: 220px;
    }

    .skills-carousel-card.left {
        transform: translate(calc(-50% - 120px), -50%) scale(0.85);
    }

    .skills-carousel-card.right {
        transform: translate(calc(-50% + 120px), -50%) scale(0.85);
    }
}

@media (max-width: 640px) {
    .skills-carousel-card {
        width: 180px;
    }

    .skills-carousel-card.left {
        transform: translate(calc(-50% - 100px), -50%) scale(0.85);
    }

    .skills-carousel-card.right {
        transform: translate(calc(-50% + 100px), -50%) scale(0.85);
    }
}