/* ===================================================================
   Eqra Tech — Executive Leadership & Team Showcase
   Dedicated, Ultra-Premium Corporate Presentation
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    /* Color Palette - Executive Midnight Slate & Tech Luminous */
    --bg-main: #060b13;
    --bg-darker: #03060a;
    --bg-card: rgba(13, 23, 42, 0.72);
    --bg-card-hover: rgba(20, 35, 64, 0.9);
    
    --primary: #38bdf8;          /* Bright Cyan */
    --primary-glow: rgba(56, 189, 248, 0.4);
    --secondary: #10b981;        /* Emerald */
    --secondary-glow: rgba(16, 185, 129, 0.35);
    --gold: #f59e0b;             /* Executive Gold */
    --gold-glow: rgba(245, 158, 11, 0.5);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(56, 189, 248, 0.25);
    --border-leader: rgba(245, 158, 11, 0.4);

    --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
    --card-shadow-hover: 0 25px 50px -12px rgba(56, 189, 248, 0.25);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-darker: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-light: rgba(2, 132, 199, 0.3);
    --border-leader: rgba(217, 119, 6, 0.5);
    --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 25px 50px -12px rgba(2, 132, 199, 0.2);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Canvas & Ambient Glow */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow-1 {
    position: fixed;
    top: -120px;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -120px;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

/* ===================================================================
   Header Brand Bar
   =================================================================== */
.showcase-header {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(6, 11, 19, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
}

[data-theme="light"] .showcase-header {
    background: rgba(248, 250, 252, 0.85);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.35));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--text-main);
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===================================================================
   Main Content & Section Header
   =================================================================== */
.main-content {
    flex: 1;
    padding: 3rem 0 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.showcase-title-area {
    margin-bottom: 3.2rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.main-subheading {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===================================================================
   5 Person Cards Showcase Row
   =================================================================== */
.team-showcase-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
    align-items: stretch;
}

.person-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2.2rem 1.4rem 1.8rem 1.4rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.person-card:hover {
    border-color: var(--border-light);
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    background: var(--bg-card-hover);
}

.person-card:hover::before {
    opacity: 1;
}

/* Leader / CEO Card */
.person-card.leader-card {
    border-color: var(--border-leader);
    background: linear-gradient(180deg, rgba(22, 33, 56, 0.85) 0%, rgba(13, 23, 42, 0.75) 100%);
}

.person-card.leader-card::before {
    opacity: 1;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981);
}

.person-card.leader-card:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 25px 50px -10px rgba(245, 158, 11, 0.3);
}

/* Avatar Wrap */
.person-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.4rem auto;
}

.avatar-ring-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(56, 189, 248, 0.45);
    animation: rotateBorder 20s linear infinite;
}

.leader-card .avatar-ring-pulse {
    border-color: rgba(245, 158, 11, 0.6);
}

.avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: #0f1c30;
    transition: var(--transition);
}

.person-card:hover .avatar-photo {
    transform: scale(1.06);
}

.avatar-icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, #0d1b2e 100%);
    border: 3px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.person-card:hover .avatar-icon-placeholder {
    transform: scale(1.06);
    color: #ffffff;
    border-color: var(--primary);
}

.crown-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a0d00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.6);
    z-index: 2;
}

/* Info Elements */
.person-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.person-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.person-role {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Outfit', 'Cairo', sans-serif;
    margin-bottom: 1.1rem;
    line-height: 1.4;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-card .person-role {
    color: #fbbf24;
}

.person-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

/* Social & Direct Contact Action Circles */
.person-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.social-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-circle-btn:hover {
    transform: translateY(-4px);
}

.social-circle-btn.wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.45);
}

.social-circle-btn.phone:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.45);
}

.social-circle-btn.mail:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.45);
}

.social-circle-btn.li:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(10, 102, 194, 0.45);
}

/* ===================================================================
   Minimal Executive Footer
   =================================================================== */
.minimal-footer {
    padding: 1.4rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-darker);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-links-inline a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links-inline a:hover {
    color: var(--primary);
}

/* ===================================================================
   Responsive Breakpoints
   =================================================================== */
@media (max-width: 1400px) {
    .team-showcase-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .team-showcase-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-heading {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .team-showcase-row {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
