/* =============================================
   SERVICES PAGE STYLES - HighMix Company
   Matches: index.php and about.php design system
   Primary Red : #FF0900
   Dark Navy   : #1a1a2e
   ============================================= */

/* ─── PAGE HERO BANNER (Reused pattern) ─────── */
.services-hero-banner {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/asset/service.png') center/cover no-repeat fixed;
    overflow: hidden;
    direction: rtl;
}

.services-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255, 9, 0, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(26, 26, 46, 0.1) 0%, transparent 50%),
        rgba(255, 255, 255, 0.67);
    /* Frosted glass white overlay for text readability */
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 0;
}

.services-hero-banner::after {
    content: 'SERVICES';
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 800;
    -webkit-text-stroke: 1.5px rgba(255, 9, 0, 23%);
    color: transparent;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 900px;
    margin: 0 auto;
    animation: srvFadeDown 0.8s ease both;
}

/* breadcrumb */
.srv-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    direction: rtl;
}

.srv-breadcrumb a {
    color: #FF0900;
    text-decoration: none;
    transition: color 0.2s;
}

.srv-breadcrumb a:hover {
    color: #c00;
}

.srv-breadcrumb i {
    font-size: 0.7rem;
    color: #bbb;
}

.services-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 20px;
}

.services-hero-title span {
    color: #FF0900;
}

.services-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    line-height: 2;
    max-width: 680px;
    margin: 0 auto;
}

/* ─── MOVING SHAPE DIVIDER ───────────────────── */
.hero-wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    /* The SVG is drawn filling #fdfdfd (the color of the next section) */
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,70 C150,110 350,0 600,0 C850,0 1050,110 1200,70 L1200,120 L0,120 Z" fill="%23fdfdfd"/></svg>') repeat-x;
    background-size: 50% 100%;
}

.wave1 {
    animation: moveWave 12s linear infinite;
    opacity: 1;
    z-index: 3;
    bottom: -2px;
    /* Fix subpixel gaps */
}

.wave2 {
    animation: moveWaveLag 18s linear infinite;
    opacity: 0.5;
    z-index: 2;
    bottom: 0px;
}

.wave3 {
    animation: moveWave 25s linear infinite;
    opacity: 0.2;
    z-index: 1;
    /* bottom: 12px; */
}

@keyframes moveWave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes moveWaveLag {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* decorative red line */
.srv-title-line {
    width: 70px;
    height: 4px;
    background: #FF0900;
    border-radius: 10px;
    margin: 18px auto 24px;
    position: relative;
}

.srv-title-line::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 12px;
    height: 4px;
    background: #FF0900;
    border-radius: 10px;
    opacity: 0.4;
}

/* ─── MAIN SERVICES SECTION ──────────────────── */
.srv-main-section {
    background: #fdfdfd;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.srv-main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    direction: rtl;
}

/* Section Header Shared */
.srv-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.srv-section-tag {
    display: inline-block;
    background: rgba(255, 9, 0, 0.08);
    color: #FF0900;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 9, 0, 0.18);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.srv-section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.3;
}

.srv-section-title span {
    color: #FF0900;
}

.srv-section-desc {
    font-size: 1.05rem;
    color: #666;
    line-height: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* Services Grid */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.srv-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.srv-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: #FF0900;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.srv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(255, 9, 0, 0.08);
    border-color: rgba(255, 9, 0, 0.1);
}

.srv-card:hover::after {
    transform: scaleX(1);
}

/* Card Image Area */
.srv-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.srv-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.srv-card:hover .srv-card-img-wrap img {
    transform: scale(1.08);
}

.srv-card-icon {
    position: absolute;
    bottom: -24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: #FF0900;
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 20px rgba(255, 9, 0, 0.3);
    transition: transform 0.4s ease;
    z-index: 2;
}

.srv-card:hover .srv-card-icon {
    transform: rotateY(180deg);
}

.srv-card-icon i {
    transition: transform 0.4s ease;
}

.srv-card:hover .srv-card-icon i {
    transform: rotateY(-180deg);
}

/* Card Content Area */
.srv-card-content {
    padding: 40px 24px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.srv-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.srv-card-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.srv-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF0900;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.srv-card-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.srv-card-btn:hover {
    color: #1a1a2e;
}

.srv-card-btn:hover i {
    transform: translateX(-5px);
}

/* ─── PROCESS SECTION ────────────────────────── */
.srv-process-section {
    background: #1a1a2e;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.srv-process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 90%, rgba(255, 9, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.srv-process-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    direction: rtl;
}

.srv-process-header {
    text-align: center;
    margin-bottom: 80px;
}

.srv-process-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.srv-process-header h2 span {
    color: #FF0900;
}

.srv-process-header p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.srv-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

/* Connecting Line */
.srv-steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 50px;
    left: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.srv-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.srv-step-number {
    width: 80px;
    height: 80px;
    background: #1a1a2e;
    border: 2px solid rgba(255, 9, 0, 0.5);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #FF0900;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 6px #1a1a2e;
}

.srv-step:hover .srv-step-number {
    background: #FF0900;
    color: #fff;
    border-color: #FF0900;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 9, 0, 0.4);
}

.srv-step-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.srv-step-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ─── CTA SECTION (Reused pattern) ───────────── */
.srv-cta-section {
    background: #fff;
    padding: 100px 0;
    text-align: center;
}

.srv-cta-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
    border-radius: 30px;
    padding: 80px 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(26, 26, 46, 0.2);
}

.srv-cta-bg-vector {
    position: absolute;
    right: -100px;
    top: -100px;
    opacity: 0.1;
    width: 400px;
    pointer-events: none;
    animation: srvSpin 40s linear infinite;
}

.srv-cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.srv-cta-desc {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 2;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.srv-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: #FF0900;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 9, 0, 0.3);
    position: relative;
    z-index: 2;
}

.srv-cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 9, 0, 0.4);
    color: #fff;
}

/* ─── SCROLL REVEAL UTILITIES ────────────────── */
.srv-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.srv-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering */
.srv-stagger>*:nth-child(1) {
    transition-delay: 0.1s;
}

.srv-stagger>*:nth-child(2) {
    transition-delay: 0.2s;
}

.srv-stagger>*:nth-child(3) {
    transition-delay: 0.3s;
}

.srv-stagger>*:nth-child(4) {
    transition-delay: 0.4s;
}

.srv-stagger>*:nth-child(5) {
    transition-delay: 0.5s;
}

.srv-stagger>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes srvFadeDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes srvSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
    .srv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .srv-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .srv-steps-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-hero-banner {
        min-height: 70vh;
    }

    .srv-grid {
        grid-template-columns: 1fr;
    }

    .srv-steps-grid {
        grid-template-columns: 1fr;
    }

    .srv-cta-box {
        border-radius: 20px;
        padding: 50px 24px;
    }
}

@media (max-width: 560px) {
    .services-hero-title {
        font-size: 1.8rem;
    }
}