/* ========================================
   SERVICES PAGE — Premium Stylesheet
   ======================================== */

/* ===== Hero ===== */
.srv-hero {
    position: relative;
    height: 78vh;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #060c1a;
}

.srv-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/services-hero.png') center center / cover no-repeat;
}

.srv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6, 12, 26, 0.93) 45%, rgba(6, 12, 26, 0.3) 100%);
}

.srv-hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
    width: 54%;
    padding: 0 0 0 100px;
}

.srv-hero-tag {
    display: inline-block;
    background: rgba(0, 114, 188, 0.2);
    border: 1px solid rgba(0, 114, 188, 0.5);
    color: #60a5fa;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.srv-hero-content h1 {
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 22px;
}

.srv-hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.srv-hero-stats {
    display: flex;
    align-items: center;
    gap: 36px;
}

.srv-stat span {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.srv-stat small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}

.srv-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

.srv-hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== Divisions Intro ===== */
.srv-divisions {
    padding: 90px 0 50px;
    background: #f4f7fb;
}

.srv-div-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.srv-div-card {
    display: flex;
    flex-direction: column;
    padding: 48px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(0, 114, 188, 0.1);
    box-shadow: 0 4px 30px rgba(0, 114, 188, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.srv-div-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0072bc, #38bdf8);
    border-radius: 28px 28px 0 0;
}

.srv-div-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 114, 188, 0.13);
}

.srv-div-card--tech {
    background: linear-gradient(145deg, #080f1e, #0d1b35);
    border-color: rgba(0, 114, 188, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.srv-div-card--tech::before {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.srv-div-card--tech:hover {
    box-shadow: 0 20px 60px rgba(0, 114, 188, 0.3);
}

.srv-div-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0072bc, #0056a3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 114, 188, 0.35);
}

.srv-div-num {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.srv-div-card--tech .srv-div-num {
    color: #60a5fa;
}

.srv-div-body h3 {
    font-size: 26px;
    font-weight: 800;
    color: #080f1e;
    margin-bottom: 14px;
    line-height: 1.2;
}

.srv-div-card--tech h3 {
    color: #ffffff;
}

.srv-div-body p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.9;
    margin-bottom: 28px;
}

.srv-div-card--tech p {
    color: rgba(255,255,255,0.55);
}

.srv-div-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.srv-div-chips span {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 114, 188, 0.07);
    color: var(--primary-color);
    border: 1px solid rgba(0, 114, 188, 0.18);
}

.srv-div-card--tech .srv-div-chips span {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
}

/* ===== Services Grid ===== */
.srv-grid-section {
    padding: 50px 0 100px;
    background: #f4f7fb;
}

.srv-grid-header {
    text-align: center;
    margin-bottom: 70px;
}

.srv-label {
    display: inline-block;
    background: rgba(0, 114, 188, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(0, 114, 188, 0.2);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.srv-grid-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: #080f1e;
    margin-bottom: 16px;
}

.srv-grid-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.srv-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.srv-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    border: 1px solid rgba(0, 114, 188, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.srv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #38bdf8);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.srv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 114, 188, 0.12);
    border-color: rgba(0, 114, 188, 0.2);
}

.srv-card:hover::before {
    opacity: 1;
}

/* 7th card spans full row centered */
.srv-card--wide {
    grid-column: 1 / -1;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.srv-card--wide .srv-card-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}

.srv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.srv-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 114, 188, 0.08);
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.srv-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), #0056a3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0, 114, 188, 0.3);
}

.srv-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #080f1e;
    margin-bottom: 12px;
    line-height: 1.3;
}

.srv-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 24px;
}

.srv-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.srv-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.srv-card-features li i {
    color: var(--primary-color);
    font-size: 12px;
    flex-shrink: 0;
    background: rgba(0, 114, 188, 0.1);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Why Section ===== */
.srv-why {
    padding: 100px 0;
    background: #080f1e;
    position: relative;
}

.srv-why::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 114, 188, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(0, 60, 120, 0.1) 0%, transparent 50%);
}

.srv-why-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.srv-why-header .srv-label {
    background: rgba(0, 114, 188, 0.2);
    color: #60a5fa;
    border-color: rgba(0, 114, 188, 0.35);
}

.srv-why-header h2 {
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.srv-why-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.srv-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.srv-why-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.srv-why-card:hover {
    background: rgba(0, 114, 188, 0.12);
    border-color: rgba(0, 114, 188, 0.3);
    transform: translateY(-5px);
}

.srv-why-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(0, 114, 188, 0.2);
    border: 1px solid rgba(0, 114, 188, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #60a5fa;
    margin: 0 auto 20px;
}

.srv-why-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.srv-why-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ===== RTL Overrides ===== */
html[dir="rtl"] .srv-hero-content {
    left: 0;
    right: auto;
    padding: 0 0 0 100px;
    text-align: left;
    direction: ltr;
}

html[dir="rtl"] .srv-hero-stats {
    direction: ltr;
}

html[dir="rtl"] .srv-hero-content h1 br {
    display: none;
}

html[dir="rtl"] .srv-hero-content h1 {
    font-size: 72px;
}

html[dir="rtl"] .srv-grid-header,
html[dir="rtl"] .srv-why-header {
    direction: rtl;
}

html[dir="rtl"] .srv-div-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .srv-div-chips {
    justify-content: flex-end;
}

html[dir="rtl"] .srv-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .srv-card-top {
    flex-direction: row-reverse;
}

html[dir="rtl"] .srv-card-features li {
    direction: rtl;
    flex-direction: row;
    justify-content: flex-start;
}

html[dir="rtl"] .srv-why-card {
    direction: rtl;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .srv-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .srv-card--wide { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    .srv-hero-content { width: 65%; }
    .srv-hero-content h1 { font-size: 46px; }
    .srv-why-grid { grid-template-columns: repeat(2, 1fr); }
    .srv-div-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .srv-hero { height: auto; min-height: unset; padding: 110px 0 60px; }
    .srv-hero-content {
        position: relative; top: auto; left: auto;
        transform: none; width: 100%; padding: 0 24px;
    }
    .srv-hero-content h1 { font-size: 32px; }
    html[dir="rtl"] .srv-hero-content h1 { font-size: 32px; white-space: normal; }
    .srv-cards-grid { grid-template-columns: 1fr; }
    .srv-card { padding: 28px 24px; }
    .srv-card--wide { max-width: 100%; }
    .srv-card--wide .srv-card-features { grid-template-columns: 1fr; }
    .srv-why-grid { grid-template-columns: 1fr 1fr; }
    .srv-grid-header h2 { font-size: 28px; }
    .srv-why-header h2 { font-size: 28px; }
    .srv-grid-section { padding: 60px 0 70px; }
    .srv-why { padding: 70px 0; }
    .srv-divisions { padding: 60px 0 40px; }
    .srv-div-card { padding: 36px 28px; }
    .srv-div-body h3 { font-size: 22px; }
}

@media (max-width: 480px) {
    .srv-why-grid { grid-template-columns: 1fr; }
    .srv-div-grid { grid-template-columns: 1fr; }
    .srv-hero-content h1 { font-size: 28px; }
    html[dir="rtl"] .srv-hero-content h1 { font-size: 28px; }
    .srv-num { font-size: 36px; }
    .srv-grid-header h2 { font-size: 24px; }
}
