/* Enhanced Developer Card with Hidden Dropdown - Fixed Version */

/* Modify the existing card to support overlay dropdown */
.card.special-card {
    position: relative;
    overflow: hidden; /* Keep content within card bounds */
}

/* Hidden overlay that appears on hover */
.card-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.9));
    backdrop-filter: blur(3px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 5;
    border-radius: 10px;
}

.card.special-card:hover .card-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Hide the original card content on hover */
.card.special-card:hover .card-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card.special-card .card-content {
    transition: opacity 0.3s ease;
}

/* Dropdown content styling */
.dropdown-section {
    margin-bottom: 2px;
    text-align: center;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-title {
    color: #bfb499;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-content {
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 1.3;
}

.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.role-list li {
    color: #ffffff;
    font-size: 0.75rem;
    margin-bottom: 1px;
    padding-left: 12px;
    position: relative;
}

.role-list li:before {
    content: "▶";
    color: #ddd5c1;
    font-size: 0.6rem;
    position: absolute;
    left: 0;
    top: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 6px;
}

.skill-tag {
    background: rgba(196, 185, 160, 0.3);
    color: #C4B9A0;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    text-align: center;
    border: 1px solid rgba(196, 185, 160, 0.4);
}

.skill-tag:hover {
    color: #ddd5c1;
    background: rgba(196, 185, 160, 0.1) !important;
}

.dropdown-divider {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #bcaf91, transparent);
    margin: 6px 0;
    display: block;
}

/* Add a subtle hover indicator */
.card.special-card::after {
    content: "hover for more";
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.card.special-card:not(:hover)::after {
    opacity: 1;
}

/* Ensure the card maintains its hover effects */
.card.special-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}