/* ═══════════════════════════════════════════════════════
   Capital Continental Holding Group - Sections CSS
   تنسيقات جميع أقسام الموقع - نسخة نظيفة
   ═══════════════════════════════════════════════════════ */

:root {
    --space-dark: #020010;
    --space-deep: #0a0520;
    --star-gold: #f0d060;
    --sun-core: #ff8c00;
    --sun-glow: #ff5500;
    --earth-blue: #1a8ccc;
    --aurora-green: #00ff88;
    --aurora-cyan: #00ddff;
    --glass-bg: rgba(10, 5, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Cairo', sans-serif;
    --transition-cosmic: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-star: 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}


/* ═══════════════════════════════════════════════════════
   HQ ORB - دائرة مقراتنا
   ═══════════════════════════════════════════════════════ */

.hq-orb-wrap {
    position: relative;
    margin-bottom: 50px;
}

.hq-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 1rem;
    color: #1a0800;
    background: radial-gradient(circle at 40% 35%, #ffe8a0 0%, var(--star-gold) 25%, var(--sun-core) 50%, #cc5500 75%, #6b2000 100%);
    box-shadow: 0 0 40px rgba(255, 140, 0, 0.5), 0 0 80px rgba(255, 85, 0, 0.3), inset 0 -8px 20px rgba(0, 0, 0, 0.4);
    animation: sunPulse 3s ease-in-out infinite;
    transition: all var(--transition-cosmic);
    font-family: var(--font-main);
}

@keyframes sunPulse {
    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 140, 0, 0.5), 0 0 80px rgba(255, 85, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 140, 0, 0.7), 0 0 120px rgba(255, 85, 0, 0.5);
    }
}

.hq-orb:hover {
    transform: scale(1.15);
}

.hq-orb::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 200, 100, 0.3);
    animation: sunOrbitSpin 8s linear infinite;
}

@keyframes sunOrbitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hq-branches-drop {
    display: none;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 25px;
    max-width: 1000px;
}

.hq-branches-drop.open {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hq-branch-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 18px 22px;
    min-width: 180px;
    transition: all var(--transition-cosmic);
}

.hq-branch-item:hover {
    border-color: rgba(240, 208, 96, 0.4);
    transform: translateY(-5px);
}

.hq-branch-country {
    color: var(--star-gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.hq-branch-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════
   Service Modal
   ═══════════════════════════════════════════════════════ */

.service-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal-overlay.open {
    display: flex;
}

.service-modal {
    background: linear-gradient(135deg, #12122a, #0a0520);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 24px;
    padding: 40px 35px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    direction: rtl;
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.service-modal-close:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #ff8888;
    transform: rotate(90deg);
}

.service-modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(240, 208, 96, 0.15);
}

.service-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: radial-gradient(circle, rgba(240, 208, 96, 0.3), rgba(200, 120, 40, 0.1));
    border: 2px solid rgba(240, 208, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #f0d060;
}

.service-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(180deg, #fff, #f0d060, #c89630);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-modal-body {
    line-height: 2.2;
    color: rgba(200, 210, 240, 0.85);
    text-align: justify;
}


/* ═══════════════════════════════════════════════════════
   Stat Boxes
   ═══════════════════════════════════════════════════════ */

.stat-boxes-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-bottom: 50px;
    max-width: 1300px;
    width: 100%;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 12px;
    text-align: center;
    transition: all var(--transition-star);
    cursor: pointer;
}

.stat-box:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: rgba(240, 208, 96, 0.4);
}

.stat-box-value {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--star-gold), var(--sun-core));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-box-label {
    color: rgba(200, 210, 240, 0.7);
    font-size: 0.8rem;
}


/* ═══════════════════════════════════════════════════════
   CTA Boxes
   ═══════════════════════════════════════════════════════ */

.cta-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 900px;
    width: 100%;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 20px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    transition: all var(--transition-cosmic);
}

.cta-box:hover {
    transform: translateY(-6px);
}

.cta-box-1 {
    background: linear-gradient(135deg, #1a3a5c, #0a1a2c);
}

.cta-box-2 {
    background: linear-gradient(135deg, #3a1a0a, #1a0a02);
}

.cta-box-3 {
    background: linear-gradient(135deg, #1a2a1a, #0a150a);
}


/* ═══════════════════════════════════════════════════════
   About Section
   ═══════════════════════════════════════════════════════ */

.about-desc {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: justify;
    color: rgba(200, 210, 240, 0.7);
    line-height: 2.1;
    padding: 30px 35px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.about-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.about-media-big {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 20px;
}

.about-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    z-index: 5;
}

.about-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-subtitle {
    text-align: center;
    color: var(--aurora-cyan);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 30px 0;
}


/* ═══════════════════════════════════════════════════════
   Feature Boxes
   ═══════════════════════════════════════════════════════ */

.feature-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.feature-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition-star);
    cursor: pointer;
}

.feature-box:hover {
    transform: translateY(-15px) scale(1.04);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--star-gold);
    margin-bottom: 15px;
}

.feature-box h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-box p {
    color: rgba(200, 210, 240, 0.6);
    font-size: 0.85rem;
    line-height: 1.8;
}


/* ═══════════════════════════════════════════════════════
   Flip Cards - الخدمات
   ═══════════════════════════════════════════════════════ */

.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.flip-card {
    perspective: 2000px;
    height: 360px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 35px;
    overflow-y: auto;
}

.svc-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 18px;
    background: radial-gradient(circle, rgba(240, 208, 96, 0.15), rgba(200, 120, 40, 0.08));
    border: 2px solid rgba(240, 208, 96, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-logo i {
    font-size: 2.2rem;
    color: var(--star-gold);
}

.svc-logo img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.flip-card-front h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.flip-card-front p {
    color: rgba(200, 210, 240, 0.6);
    font-size: 0.82rem;
}

.learn-more-btn {
    background: none;
    border: 1px solid rgba(240, 208, 96, 0.3);
    color: var(--star-gold);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 15px;
}

.flip-back-header h3 {
    color: var(--star-gold);
}

.flip-back-body {
    color: rgba(200, 210, 240, 0.7);
    line-height: 2;
}

.flip-close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}


/* ═══════════════════════════════════════════════════════
   Branches
   ═══════════════════════════════════════════════════════ */

.branch-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.branch-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 28px 18px;
    text-align: center;
    transition: all var(--transition-star);
}

.branch-box:hover {
    transform: translateY(-12px) scale(1.04);
}

.branch-flag-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid rgba(240, 208, 96, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 208, 96, 0.05);
}

.branch-flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-flag-circle i {
    font-size: 1.8rem;
    color: #f0d060;
}

.branch-country {
    color: #fff;
    font-weight: 700;
    margin: 6px 0;
}

.branch-cities {
    color: rgba(200, 210, 240, 0.6);
    font-size: 0.82rem;
}

.status-active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--aurora-green);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
}


/* ═══════════════════════════════════════════════════════
   Companies
   ═══════════════════════════════════════════════════════ */

.company-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.company-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 28px 18px;
    text-align: center;
    transition: all var(--transition-star);
    cursor: pointer;
}

.company-card:hover {
    transform: translateY(-10px) scale(1.03);
}

.company-logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: radial-gradient(circle, rgba(240, 208, 96, 0.2), rgba(200, 120, 40, 0.1));
    border: 3px solid rgba(240, 208, 96, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.company-logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-logo-circle i {
    font-size: 2rem;
    color: #f0d060;
}

.company-name {
    color: var(--star-gold);
    font-size: 0.92rem;
    font-weight: 700;
}

.company-sector {
    color: rgba(200, 210, 240, 0.5);
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.company-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f0d060, transparent);
    margin: 10px auto;
}

.company-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.company-cities {
    color: rgba(200, 210, 240, 0.5);
    font-size: 0.75rem;
}

.company-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(240, 208, 96, 0.1);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 20px;
    color: #f0d060;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 12px;
    font-family: var(--font-main);
}


/* Company Modal */

.company-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.company-modal-overlay.open {
    display: flex;
}

.company-modal {
    background: linear-gradient(135deg, #12122a, #0a0520);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    direction: rtl;
}

.company-modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.cm-header {
    text-align: center;
    margin-bottom: 25px;
}

.cm-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid rgba(240, 208, 96, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.cm-header h2 {
    color: #f0d060;
    font-size: 1.4rem;
}

.cm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.cm-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 15px;
}

.cm-info-item i {
    color: #f0d060;
}

.cm-info-item strong {
    color: #e0ddf0;
}

.cm-tag {
    background: rgba(0, 221, 255, 0.08);
    border: 1px solid rgba(0, 221, 255, 0.2);
    color: #00ddff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}


/* ═══════════════════════════════════════════════════════
   Projects
   ═══════════════════════════════════════════════════════ */

.sphere-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 35px;
}

.sphere {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.82rem;
    transition: all var(--transition-star);
    font-family: var(--font-main);
}

.sphere:hover,
.sphere.active {
    transform: translateY(-10px) scale(1.1);
}

.sphere-gold {
    background: radial-gradient(circle at 40% 35%, #ffe8a0, var(--star-gold), #cc8800);
    color: #2a1800;
}

.sphere-green {
    background: radial-gradient(circle at 40% 35%, #b8ffe0, var(--aurora-green), #008844);
    color: #002211;
}

.sphere-blue {
    background: radial-gradient(circle at 40% 35%, #b8e0ff, var(--earth-blue), #004488);
    color: #001122;
}

.sphere-red {
    background: radial-gradient(circle at 40% 35%, #ffc8c0, #ee4444, #881111);
    color: #220000;
}

.sphere-brown {
    background: radial-gradient(circle at 40% 35%, #e8d0b0, #996633, #553311);
    color: #110800;
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    overflow: hidden;
    transition: all var(--transition-star);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(240, 208, 96, 0.3);
}

.project-card.hidden-by-filter {
    display: none;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.status-available {
    background: rgba(0, 255, 136, 0.2);
    color: var(--aurora-green);
}

.status-dev {
    background: rgba(26, 140, 204, 0.2);
    color: #88ccff;
}

.status-operating {
    background: rgba(255, 80, 80, 0.2);
    color: #ff9999;
}

.status-acq {
    background: rgba(180, 120, 60, 0.2);
    color: #ddb888;
}

.project-body {
    padding: 20px;
}

.project-body h4 {
    color: #fff;
    margin-bottom: 10px;
}

.project-body p {
    color: rgba(200, 210, 240, 0.6);
    font-size: 0.82rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--glass-border);
}

.project-cat-tag {
    color: var(--star-gold);
    font-weight: 700;
    font-size: 0.78rem;
}


/* Project Modal */

.project-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal-overlay.open {
    display: flex;
}

.project-modal {
    background: linear-gradient(135deg, #12122a, #0a0520);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 24px;
    padding: 35px 30px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    direction: rtl;
}

.project-modal-close {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.pm-header {
    text-align: center;
    margin-bottom: 22px;
}

.pm-header h2 {
    color: #f0d060;
    font-size: 1.5rem;
}

.pm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.pm-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 15px;
}

.pm-info-item i {
    color: #f0d060;
}

.pm-info-item strong {
    color: #e0ddf0;
}

.pm-desc {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 16px 18px;
}

.pm-desc p {
    color: rgba(200, 210, 240, 0.8);
    line-height: 1.9;
}

.pm-tag {
    background: rgba(0, 221, 255, 0.08);
    border: 1px solid rgba(0, 221, 255, 0.2);
    color: #00ddff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
}


/* ═══════════════════════════════════════════════════════
   Complaints
   ═══════════════════════════════════════════════════════ */

.complaint-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffb0a0, #ee3333, #991111);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 35px rgba(255, 50, 50, 0.4);
    animation: complaintPulse 2.5s ease-in-out infinite;
    font-family: var(--font-main);
}

@keyframes complaintPulse {
    0%,
    100% {
        box-shadow: 0 0 35px rgba(255, 50, 50, 0.4);
    }
    50% {
        box-shadow: 0 0 55px rgba(255, 50, 50, 0.6);
    }
}


/* ═══════════════════════════════════════════════════════
   Contact Section - ctSec
   ═══════════════════════════════════════════════════════ */

.ctSec {
    padding: 90px 6vw 80px;
    background: rgba(10, 5, 30, 0.5);
}

.ctTitle {
    text-align: center;
    margin-bottom: 50px;
}

.ctTitle h2 {
    font-size: 2.2rem;
    font-weight: 900;
}

.secLine {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #f0d060, #c89630);
    margin: 14px auto 0;
}

.ctG {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ctInfo {
    background: rgba(18, 18, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px 25px;
}

.ctInfoH {
    color: #f0d060;
    font-size: 1.2rem;
    font-weight: 800;
}

.ctInfoItem {
    display: flex;
    gap: 14px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
}

.ctInfoItem:hover {
    background: rgba(240, 208, 96, 0.05);
}

.ctInfoIcon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(240, 208, 96, 0.1);
    color: #f0d060;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ctInfoVal {
    color: #e0ddf0;
    font-weight: 600;
}

.ctInfoVal a {
    color: #00ddff;
    text-decoration: none;
}

.ctSocial {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ctSocialA {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(200, 210, 240, 0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.ctSocialA:hover {
    background: rgba(240, 208, 96, 0.15);
    color: #f0d060;
}


/* ═══════════════════════════════════════════════════════
   Team Section
   ═══════════════════════════════════════════════════════ */

.team-section {
    padding: 80px 6vw;
    overflow: hidden;
}

.team-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
}

.team-scroll-container::-webkit-scrollbar {
    display: none;
}

.team-member-card {
    flex-shrink: 0;
    width: 180px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s;
}

.team-member-card:hover {
    transform: translateY(-8px);
}

.team-member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid #f0d060;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-photo i {
    font-size: 2.5rem;
    color: #f0d060;
}

.team-member-name {
    color: #f0d060;
    font-weight: 700;
    font-size: 0.9rem;
}

.team-member-position {
    color: #888;
    font-size: 0.75rem;
}


/* ═══════════════════════════════════════════════════════
   Footer Copyright
   ═══════════════════════════════════════════════════════ */

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    position: relative;
}

.footer-divider-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(240, 208, 96, 0.5), transparent);
}

.copyright-text {
    color: rgba(200, 210, 240, 0.3);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.copyright-brand {
    background: linear-gradient(135deg, rgba(240, 208, 96, 0.6), rgba(200, 150, 50, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.copyright-year {
    color: rgba(0, 221, 255, 0.35);
    font-weight: 600;
    font-size: 0.78rem;
}


/* ═══════════════════════════════════════════════════════
   Language Dropdown - Bootstrap
   ═══════════════════════════════════════════════════════ */

.lang-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 9996;
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #e0ddf0;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-main);
    transition: all 0.3s;
    white-space: nowrap;
}

.lang-switch-btn:hover {
    background: rgba(240, 208, 96, 0.1);
    border-color: rgba(240, 208, 96, 0.4);
    color: #f0d060;
    box-shadow: 0 0 25px rgba(240, 208, 96, 0.2);
}

.lang-switch-btn i.fa-globe {
    color: #00ddff;
    font-size: 1rem;
}

.lang-switch-btn.dropdown-toggle::after {
    display: none;
}

.lang-dropdown-menu {
    background: rgba(10, 5, 30, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(240, 208, 96, 0.25);
    border-radius: 16px;
    padding: 6px;
    min-width: 210px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    z-index: 9997;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s;
    font-family: var(--font-main);
    width: 100%;
    text-align: right;
}

.lang-dropdown-item:hover {
    background: rgba(240, 208, 96, 0.12);
    color: #f0d060;
}

.lang-dropdown-item.active {
    background: rgba(240, 208, 96, 0.2);
    color: #f0d060;
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-name {
    flex: 1;
}

.lang-check {
    color: #00ff88;
    font-size: 0.9rem;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
    .stat-boxes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .flip-cards-grid,
    .project-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-boxes-grid,
    .branch-boxes-grid,
    .company-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cta-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .ctG {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .feature-boxes-grid,
    .branch-boxes-grid,
    .company-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-boxes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lang-dropdown {
        margin-left: auto;
        margin-right: 10px;
    }
    .lang-switch-btn span {
        display: none;
    }
    .lang-dropdown-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .stat-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flip-cards-grid,
    .project-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-boxes-grid,
    .branch-boxes-grid,
    .company-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ctRow {
        grid-template-columns: 1fr;
    }
    .ctInfo,
    .ctForm {
        padding: 20px 15px;
    }
    .hq-orb {
        width: 120px;
        height: 120px;
    }
    .sphere {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .stat-boxes-grid {
        grid-template-columns: 1fr 1fr;
    }
    .flip-cards-grid,
    .project-cards-grid {
        grid-template-columns: 1fr;
    }
    .feature-boxes-grid,
    .branch-boxes-grid,
    .company-cards-grid {
        grid-template-columns: 1fr;
    }
    .cta-boxes-grid {
        grid-template-columns: 1fr;
    }
    .hq-orb {
        width: 100px;
        height: 100px;
    }
    .sphere {
        width: 60px;
        height: 60px;
    }
    .lang-switch-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .lang-dropdown-menu {
        min-width: 170px;
    }
}


/* ═══════════════════════════════════════════════════════
   Header CSS - مطلوب لعمل الهيدر
   ═══════════════════════════════════════════════════════ */

.site-header {
    background: rgba(5, 2, 20, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    z-index: 9990;
    top: 48px !important;
}

.site-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
    order: 2;
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(240, 208, 96, 0.4));
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #f0d060, #ffaa00, #ff5500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    order: 2;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240,208,96,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    order: 3;
    flex: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav .nav-link {
    padding: 8px 14px;
    color: rgba(220, 215, 240, 0.75) !important;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #f0d060 !important;
    background: rgba(240, 208, 96, 0.1);
}

.lang-dropdown {
    position: relative;
    order: 1;
    flex-shrink: 0;
    z-index: 9996;
    margin-left: 0;
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #e0ddf0;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 42px;
}

.lang-switch-btn:hover {
    background: rgba(240, 208, 96, 0.1);
    border-color: rgba(240, 208, 96, 0.4);
    color: #f0d060;
}

.lang-switch-btn i.fa-globe {
    color: #00ddff;
}

.lang-switch-btn.dropdown-toggle::after {
    display: none;
}

.lang-dropdown-menu {
    background: rgba(10, 5, 30, 0.98);
    border: 1px solid rgba(240, 208, 96, 0.25);
    border-radius: 16px;
    padding: 6px;
    min-width: 210px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 25px;
    color: #f0d060;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    min-width: 42px;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    width: 100%;
    text-align: right;
    border: none;
    background: none;
}

.lang-dropdown-item:hover {
    background: rgba(240, 208, 96, 0.12);
    color: #f0d060;
}

.lang-dropdown-item.active {
    background: rgba(240, 208, 96, 0.2);
    color: #f0d060;
}


/* تجاوب */


/* ═══════════════════════════════════════════════════════
   Header - ترتيب العناصر في الشاشات الصغيرة
   ═══════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .site-header .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 15px;
    }
    /* الشعار - مخفي */
    .navbar-brand {
        display: none !important;
    }
    /* زر القائمة - يمين */
    .navbar-toggler {
        order: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* زر اللغات - يسار */
    .lang-dropdown {
        order: 2 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
    }
    /* القائمة - تحت */
    .navbar-collapse {
        order: 3 !important;
        flex-basis: 100% !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        display: none !important;
    }
    .navbar-toggler {
        order: 1;
    }
    .lang-dropdown {
        order: 2;
        margin-right: auto;
    }
    .lang-switch-btn,
    .lang-toggle-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .lang-switch-btn span,
    .lang-toggle-btn span {
        display: none;
    }
}

.navbar-collapse {
    display: none;
}

.navbar-collapse.show {
    display: block;
}


/* ✅ زر القائمة - يظهر فقط في الجوال */

.navbar-toggler {
    display: none;
}


/* ✅ زر اللغة - دائماً في الناف بار */

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 25px;
    color: #f0d060;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}


/* قائمة اللغات */

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(10, 5, 30, 0.98);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 14px;
    padding: 5px;
    min-width: 170px;
    z-index: 9999;
}

.lang-item {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
}

.lang-item:hover {
    background: rgba(240, 208, 96, 0.12);
    color: #f0d060;
}

.lang-item.active {
    background: rgba(240, 208, 96, 0.2);
    color: #f0d060;
}


/* ✅ تجاوب */

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    .lang-toggle-btn span {
        display: none;
    }
    .lang-toggle-btn {
        padding: 8px 10px;
    }
}


/* للشاشات الصغيرة - تفتح لليمين أيضاً */


/* ═══════════════════════════════════════════════════════
   Project Details Button - زر التفاصيل في المشاريع
   ═══════════════════════════════════════════════════════ */

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(240, 208, 96, 0.1);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 25px;
    color: #f0d060;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.btn-details::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-details:hover::before {
    opacity: 1;
}

.btn-details span,
.btn-details i {
    position: relative;
    z-index: 2;
}

.btn-details:hover {
    background: rgba(240, 208, 96, 0.2);
    border-color: rgba(240, 208, 96, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 208, 96, 0.3);
}

.btn-details:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-details i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.btn-details:hover i {
    transform: translateX(-5px);
}


/* توهج عند hover */

.btn-details::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-details:hover::after {
    opacity: -1;
}


/* ═══════════════════════════════════════════════════════
   Language Dropdown - التنسيق النهائي
   ═══════════════════════════════════════════════════════ */

.lang-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 9996;
}

.lang-switch-btn,
.lang-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 25px;
    color: #f0d060;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
    min-width: 42px;
    transition: all 0.3s;
}

.lang-switch-btn:hover,
.lang-toggle-btn:hover {
    background: rgba(240, 208, 96, 0.15);
    border-color: rgba(240, 208, 96, 0.5);
}

.lang-switch-btn i.fa-globe,
.lang-toggle-btn i.fa-globe {
    color: #00ddff;
}

.lang-switch-btn.dropdown-toggle::after {
    display: none;
}


/* ✅ القائمة - تنسيق واحد فقط */


/* ✅ الهيدر - ترتيب صحيح */

.navbar-collapse {
    display: none;
}

.navbar-collapse.show {
    display: block !important;
    background: rgba(5, 2, 20, 0.98);
    border-radius: 0 0 20px 20px;
    padding: 15px;
    margin-top: 10px;
}


/* ✅ الشاشات الكبيرة */

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        background: none;
        padding: 0;
        margin: 0;
    }
    .navbar-toggler {
        display: none;
    }
}


/* ✅ الشاشات الصغيرة */

@media (max-width: 991px) {
    .site-header .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 15px;
    }
    .navbar-brand {
        display: none !important;
    }
    .navbar-toggler {
        display: block;
        order: 1;
    }
    .lang-dropdown {
        order: 2;
        margin-right: auto;
        margin-left: 0;
    }
    .navbar-collapse {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }
    .lang-switch-btn span,
    .lang-toggle-btn span {
        display: none;
    }
}


/* ✅ الشاشات الصغيرة جداً */

@media (max-width: 480px) {
    .lang-switch-btn,
    .lang-toggle-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
    }
    .lang-menu,
    .lang-dropdown-menu {
        right: 0 !important;
        left: auto !important;
        min-width: 160px !important;
    }
}


/* ✅ زر التفاصيل في المشاريع */

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(240, 208, 96, 0.1);
    border: 1px solid rgba(240, 208, 96, 0.3);
    border-radius: 25px;
    color: #f0d060;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-details:hover {
    background: rgba(240, 208, 96, 0.2);
    border-color: rgba(240, 208, 96, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 208, 96, 0.3);
}