/* ============================================
   MASRIF INVESTMENT - LEADERSHIP PAGE
   Diamond Card Layout with Spotlight Interaction
   ============================================ */

/* Leadership Diamond Section */
.leadership-diamond-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, 
        rgba(15, 22, 40, 1) 0%, 
        rgba(10, 30, 25, 1) 100%);
    position: relative;
    overflow: hidden;
}

.leadership-diamond-section .content-container {
    position: relative;
}

/* Spotlight Overlay */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 998;
    pointer-events: none;
}

.spotlight-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Diamond Grid */
.diamond-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    perspective: 2000px;
    perspective-origin: center center;
}

/* Diamond Card */
.diamond-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.diamond-card:hover .diamond-shape {
    box-shadow: 
        0 8px 32px rgba(189, 168, 153, 0.15),
        0 0 40px rgba(189, 168, 153, 0.1);
}

.diamond-card:hover .diamond-shape::before {
    opacity: 1;
}

.diamond-card:hover .diamond-inner {
    transform: rotate(-45deg) scale(1.5);
}

/* Active (Spotlight) State - ZOOM FORWARD */
.diamond-card.spotlight-active {
    z-index: 999;
    transform: translateZ(100px) scale(1.15);
}

.diamond-card.spotlight-active .diamond-shape {
    box-shadow: 
        0 16px 64px rgba(189, 168, 153, 0.4),
        0 0 80px rgba(189, 168, 153, 0.3);
}

.diamond-card.spotlight-active .diamond-shape::before {
    opacity: 1;
    box-shadow: 0 0 40px rgba(189, 168, 153, 0.7) inset;
}

.diamond-card.spotlight-active .diamond-inner {
    transform: rotate(-45deg) scale(1.6);
}

/* Inactive (Faded) State */
.diamond-card.spotlight-inactive {
    opacity: 0.25;
    pointer-events: none;
    filter: blur(2px);
    transform: scale(0.95);
}

/* Diamond Shape Container */
.diamond-shape {
    width: 240px;
    height: 240px;
    position: relative;
    transform: rotate(45deg);
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 22, 40, 0.8), rgba(26, 35, 50, 0.8));
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(189, 168, 153, 0.2);
    transition: all 0.3s ease-in-out;
}

/* Gold Border Glow Effect */
.diamond-shape::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(189, 168, 153, 0.4), 
        rgba(212, 196, 184, 0.6),
        rgba(189, 168, 153, 0.4));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

/* Diamond Inner (contains rotated image) */
.diamond-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotate(-45deg) scale(1.42);
    overflow: hidden;
    transition: transform 0.4s ease-in-out;
}

.diamond-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Diamond Label (Below Diamond) */
.diamond-label {
    text-align: center;
    max-width: 280px;
}

.director-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.02em;
}

.director-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--gold-500);
    margin: 0;
    line-height: 1.4;
}

/* Director Details Panel */
.director-details-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 700px;
    width: 90%;
    background: linear-gradient(135deg, 
        rgba(15, 22, 40, 0.98), 
        rgba(26, 35, 50, 0.98));
    border: 1px solid rgba(189, 168, 153, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(189, 168, 153, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.director-details-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.close-profile {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(189, 168, 153, 0.1);
    border: 1px solid rgba(189, 168, 153, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: var(--gold-600);
}

.close-profile:hover {
    background: rgba(189, 168, 153, 0.2);
    border-color: var(--gold-600);
    transform: rotate(90deg);
}

.close-profile .material-symbols-outlined {
    font-size: 24px;
}

/* Details Content */
.details-content {
    color: var(--white);
}

.details-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(189, 168, 153, 0.2);
}

.details-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.details-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold-500);
    margin: 0;
}

.details-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.details-focus {
    margin-top: 2rem;
}

.focus-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-600);
    margin-bottom: 1rem;
}

.focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.focus-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(189, 168, 153, 0.1);
    border: 1px solid rgba(189, 168, 153, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gold-500);
    transition: all 0.2s ease-in-out;
}

.focus-tag:hover {
    background: rgba(189, 168, 153, 0.15);
    border-color: var(--gold-600);
}

/* Governance Note Section */
.governance-note-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.governance-note-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--navy-700);
}

/* Responsive Design */
@media (max-width: 968px) {
    .diamond-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .diamond-shape {
        width: 200px;
        height: 200px;
    }

    .director-details-panel {
        padding: 2rem;
        width: 95%;
    }

    .details-name {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .diamond-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .diamond-shape {
        width: 220px;
        height: 220px;
    }

    .director-details-panel {
        padding: 1.5rem;
        top: 50%;
        max-height: 85vh;
        overflow-y: auto;
    }

    .details-name {
        font-size: 1.5rem;
    }

    .details-bio {
        font-size: 0.95rem;
    }

    .focus-tags {
        gap: 0.5rem;
    }

    .focus-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .diamond-card,
    .diamond-shape,
    .director-details-panel,
    .spotlight-overlay {
        transition: none !important;
    }
}
