/* ================================================
   Services Section - Concentric Layout
   (Based on G.MEDIA style)
   ================================================ */

.services-concentric {
    position: relative;
    overflow: hidden;
}

.services-concentric .container {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
}

.services-concentric-wrapper {
    position: relative;
    min-height: 880px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: var(--space-2xl) auto 0;
}

/* Concentric Circles - أقرب للخدمات، حجم أصغر */
.concentric-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 720px;
    height: 720px;
    pointer-events: none;
}

.circles-svg.circles-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-light);
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5)) drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
}

.circles-base circle {
    opacity: 0.5;
    stroke-width: 1.5;
    transform-origin: center;
    animation: orbitPulse 4s ease-in-out infinite;
}

.circles-base circle:nth-child(1) { animation-delay: 0s; }
.circles-base circle:nth-child(2) { animation-delay: 0.6s; }
.circles-base circle:nth-child(3) { animation-delay: 1.2s; }

/* نبض باتجاه واحد فقط — لا يعود للداخل */
@keyframes orbitPulse {
    0% { transform: scale(0.92); opacity: 0.4; }
    100% { transform: scale(1.06); opacity: 0.65; }
}

/* Expanding Orbit Rings - عدد أقل، سرعة أبطأ */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.25);
    animation: orbitExpand 9s ease-out infinite;
    box-shadow: 
        0 0 15px rgba(167, 139, 250, 0.6),
        0 0 30px rgba(124, 58, 237, 0.4),
        inset 0 0 20px rgba(167, 139, 250, 0.1);
}

.orbit-ring-1 { animation-delay: 0s; }
.orbit-ring-2 { animation-delay: 2s; }
.orbit-ring-3 { animation-delay: 4s; }
.orbit-ring-4 { animation-delay: 6s; }

/* توسع للخارج فقط — لا يعود */
@keyframes orbitExpand {
    0% {
        transform: scale(0.25);
        opacity: 0.95;
        border-color: rgba(167, 139, 250, 0.9);
        box-shadow: 
            0 0 20px rgba(167, 139, 250, 0.8),
            0 0 40px rgba(124, 58, 237, 0.5),
            inset 0 0 25px rgba(167, 139, 250, 0.15);
    }
    40% {
        transform: scale(1.6);
        opacity: 0.6;
        border-color: rgba(196, 181, 253, 0.75);
        box-shadow: 
            0 0 25px rgba(167, 139, 250, 0.5),
            0 0 45px rgba(124, 58, 237, 0.3),
            inset 0 0 15px rgba(167, 139, 250, 0.1);
    }
    75% {
        transform: scale(2.8);
        opacity: 0.25;
        border-color: rgba(196, 181, 253, 0.5);
        box-shadow: 0 0 22px rgba(124, 58, 237, 0.25);
    }
    100% {
        transform: scale(3.2);
        opacity: 0;
        border-color: transparent;
        box-shadow: none;
    }
}

/* Center Logo */
.services-center-logo {
    grid-column: 2;
    grid-row: 2;
    z-index: 2;
}

/* إزالة الخلفية والحدود والزوايا */
.center-logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-2xl);

    background: none; /* إزالة الخلفية */
    border: none;     /* إزالة الحدود */
    border-radius: 0; /* إزالة الزوايا المستديرة */

    min-width: 180px;
    min-height: 120px;
}

.center-logo-inner .logo-icon {
    font-size: 2rem;
    color: var(--primary-light);
}

.center-logo-inner .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* Center Logo Image */
.center-logo-image {
    max-width: 200px;
    height: auto;
    display: block;

    /* منع النسخ والسحب */
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* منع قائمة السياق عند الضغط بالزر الأيمن */
/* This functionality should be in a separate JavaScript file */

/* Service Quadrants */
.service-quadrant {
    z-index: 2;
}

.service-quadrant.service-top-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: end;
}

.service-quadrant.service-top-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: end;
}

.service-quadrant.service-bottom-left {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    align-self: start;
}

.service-quadrant.service-bottom-right {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
    align-self: start;
}

/* Quadrant Cards */
.service-quadrant-card {
    max-width: 280px;
    padding: var(--space-lg) var(--space-xl);
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.service-quadrant-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
}

.service-quadrant-card .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.service-quadrant-card .service-title {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-light);
}

.service-quadrant-card .service-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.service-quadrant-card .service-link {
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .services-concentric-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
        gap: var(--space-xl);
        padding-top: var(--space-xl);
    }
    
    .concentric-circles {
        display: none;
    }
    
    .services-center-logo {
        grid-column: 1;
        grid-row: 1;
    }
    
    .center-logo-inner {
        padding: var(--space-md) var(--space-xl);
        min-height: 80px;
    }
    
    .service-quadrant {
        justify-self: center !important;
        align-self: auto !important;
    }
    
    .service-quadrant.service-top-left,
    .service-quadrant.service-top-right,
    .service-quadrant.service-bottom-left,
    .service-quadrant.service-bottom-right {
        grid-column: 1;
        grid-row: auto;
    }
    
    .service-quadrant-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .services-concentric-wrapper {
        gap: var(--space-lg);
    }
    
    .center-logo-inner .logo-text {
        font-size: 1rem;
    }
}
