/* Service Detail Pages Shared Styles */

/* Service Hero Section */
.service-hero {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/fesability-study.jpg') center center / cover no-repeat;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

/* Service-specific backgrounds */
.service-hero.feasibility-study {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/fesability-study.jpg') center center / cover no-repeat;
}

.service-hero.production-lines {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/production-lines.jpg') center center / cover no-repeat;
}

.service-hero.competitor-analysis {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/competitor_analysis_4.jpg') center center / cover no-repeat;
}

.service-hero.business-models {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/business-plan.jpg') center center / cover no-repeat;
}

.service-hero.investment-opportunities {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/Investment opportunity analysis.jpg') center center / cover no-repeat;
}

.service-hero.market-analysis {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/Market segmentation analysis.jpg') center center / cover no-repeat;
}

.service-hero.visual-identity {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/Brand identity design.jpg') center center / cover no-repeat;
}

.service-hero.web-design {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/websote.jpg') center center / cover no-repeat;
}

.service-hero.engineering-design {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/production-lines.jpg') center center / cover no-repeat;
}

.service-hero.translation {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/translation.jpg') center center / cover no-repeat;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #ffffff;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
}

.service-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.service-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.hero-icon i {
    font-size: 3rem;
    color: #ffffff;
}

/* Service Overview Section */
.service-overview {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.overview-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.overview-text h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
}

.overview-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

.overview-text .lead {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.8;
}

.overview-text p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-benefits {
    background: rgba(255, 107, 53, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    margin-top: 2rem;
}

.key-benefits h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.key-benefits ul {
    list-style: none;
    padding: 0;
}

.key-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
    font-size: 1.1rem;
}

.key-benefits li i {
    color: #ff6b35;
    font-size: 1.2rem;
}

.overview-image {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.overview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

/* Service Components Section */
.service-components {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.component-card {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(247, 147, 30, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.component-card:hover::before {
    opacity: 1;
}

.component-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 107, 53, 0.2);
}

.component-card.featured {
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.component-card.featured::after {
    content: 'الأهم';
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.component-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
}

.component-icon i {
    font-size: 2rem;
    color: white;
}

.component-card h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.component-card>p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.component-details {
    position: relative;
    z-index: 1;
}

.component-details h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.component-details ul {
    list-style: none;
    padding: 0;
}

.component-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

.component-details li::before {
    content: '•';
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Service Process Section */
.service-process {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 2px;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

.process-step:nth-child(odd) .step-content {
    text-align: left;
    padding-left: 3rem;
}

.process-step:nth-child(even) .step-content {
    text-align: right;
    padding-right: 3rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 2;
    border: 4px solid white;
}

.step-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Why Choose Service Section */
.why-choose-service {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.advantage-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.02) 0%, rgba(247, 147, 30, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 107, 53, 0.2);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
}

.advantage-icon i {
    font-size: 1.8rem;
    color: white;
}

.advantage-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.advantage-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Service CTA Section */
.service-cta {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 58, 138, 0.92) 50%,
            rgba(59, 130, 246, 0.9) 100%),
        url('../images/services/fesability-study.jpg') center center / cover no-repeat;
    padding: 6rem 0;
    position: relative;
}

.service-cta .container {
    position: relative;
    z-index: 2;
}

.service-cta .cta-content {
    text-align: center;
    color: white;
}

.service-cta .cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.service-cta .cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.service-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #1e3a8a;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-primary:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    color: #1e3a8a;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .overview-text {
        order: 1;
    }

    .overview-image {
        order: 2;
    }

    .components-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        flex-direction: column !important;
        text-align: center;
    }

    .process-step .step-content {
        text-align: center !important;
        padding: 2rem !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .service-hero .hero-title {
        font-size: 2.5rem;
    }

    .service-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .overview-text h2 {
        font-size: 2.2rem;
    }

    .component-card {
        padding: 2rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .advantage-card {
        padding: 2rem;
    }

    .service-cta .cta-title {
        font-size: 2.2rem;
    }

    .service-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .service-hero .hero-title {
        font-size: 2rem;
    }

    .overview-text h2 {
        font-size: 1.8rem;
    }

    .component-card {
        padding: 1.5rem;
    }

    .component-card h3 {
        font-size: 1.5rem;
    }

    .advantage-card {
        padding: 1.5rem;
    }

    .service-cta .cta-title {
        font-size: 1.8rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.component-card,
.advantage-card,
.process-step {
    animation: fadeInUp 0.6s ease forwards;
}

.component-card:nth-child(1) {
    animation-delay: 0.1s;
}

.component-card:nth-child(2) {
    animation-delay: 0.2s;
}

.component-card:nth-child(3) {
    animation-delay: 0.3s;
}

.advantage-card:nth-child(1) {
    animation-delay: 0.1s;
}

.advantage-card:nth-child(2) {
    animation-delay: 0.2s;
}

.advantage-card:nth-child(3) {
    animation-delay: 0.3s;
}

.advantage-card:nth-child(4) {
    animation-delay: 0.4s;
}

.advantage-card:nth-child(5) {
    animation-delay: 0.5s;
}

.advantage-card:nth-child(6) {
    animation-delay: 0.6s;
}

.process-step:nth-child(1) {
    animation-delay: 0.1s;
}

.process-step:nth-child(2) {
    animation-delay: 0.2s;
}

.process-step:nth-child(3) {
    animation-delay: 0.3s;
}

.process-step:nth-child(4) {
    animation-delay: 0.4s;
}

.process-step:nth-child(5) {
    animation-delay: 0.5s;
}