/* ============================================
   Role Switcher Section
   ============================================ */

.role-switcher-section {
    padding: 80px 0 40px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.role-switcher-heading {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
    font-family: "Syne", sans-serif;
    line-height: 1;
}

.role-switcher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .role-switcher-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .role-switcher-section {
        padding: 60px 0 30px;
    }
}

/* ============================================
   Role Card
   ============================================ */

.role-card {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: #f8f8f8;
    border: 2px solid transparent;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(8, 8, 8, 0.12);
}

.role-card--active {
    border-color: #FFB646;
    background: #fff;
    box-shadow: 0 12px 40px rgba(255, 182, 70, 0.15);
}

.role-card--active:hover {
    box-shadow: 0 20px 60px rgba(255, 182, 70, 0.25);
}

.role-card__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 182, 70, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.role-card--active .role-card__glow {
    opacity: 1;
}

.role-card__inner {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.role-card__illustration {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #fff8ee, #fff);
    box-shadow: 0 8px 32px rgba(255, 182, 70, 0.1);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.role-card:hover .role-card__illustration {
    transform: scale(1.05);
}

.role-card--active .role-card__illustration {
    box-shadow: 0 8px 32px rgba(255, 182, 70, 0.25);
}

.role-card__illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.role-card__pulse {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
}

.role-card--active .role-card__pulse {
    background: #4CAF50;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
    }
}

.role-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.role-card__title {
    font-size: 22px;
    color: #080808;
    margin: 0;
    transition: color 0.3s ease;
}

.role-card--active .role-card__title {
    color: #080808;
}

.role-card__desc {
    font-size: 14px;
    color: rgba(8, 8, 8, 0.5);
    margin: 0;
    line-height: 1.5;
    max-width: 260px;
}

.role-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Syne", sans-serif;
    transition: all 0.3s ease;
}

.role-card__badge--active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.role-card__badge--locked {
    background: rgba(8, 8, 8, 0.06);
    color: rgba(8, 8, 8, 0.4);
}

/* Card floating animation */
.role-card--active .role-card__illustration {
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) scale(1.05); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* ============================================
   DevOps Locked Overlay
   ============================================ */

.devops-locked-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.devops-locked-overlay--visible {
    display: flex;
    opacity: 1;
}

.devops-locked-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.devops-locked-overlay__content {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border: 1px solid rgba(255, 182, 70, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    animation: overlaySlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

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

.devops-locked-overlay__icon {
    margin-bottom: 24px;
    animation: lockShake 0.6s ease-in-out 0.3s;
}

@keyframes lockShake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-4deg); }
    80% { transform: rotate(4deg); }
}

.devops-locked-overlay__title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.devops-locked-overlay__text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 12px;
}

.devops-locked-overlay__subtext {
    font-size: 18px;
    color: #FFB646;
    font-weight: 600;
    font-family: "Syne", sans-serif;
    font-style: italic;
    margin-bottom: 32px;
}

.devops-locked-overlay__btn {
    padding: 14px 32px;
    background: #FFB646;
    color: #080808;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: "Syne", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.devops-locked-overlay__btn:hover {
    background: #ffc76e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 182, 70, 0.3);
}

/* ============================================
   Service card filtering transitions
   ============================================ */

[data-role-item] {
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.5s ease;
}

[data-role-item].role-hidden {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none;
}
