/* =============== SECTORS PAGE STYLES =============== */
.sectors-page {
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============== PAGE HEADER =============== */
.page-header {
    background: linear-gradient(rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.8)), 
                url('../images/sectors-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    animation: fadeInDown 0.8s ease;
}

.page-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* =============== SECTORS INTRODUCTION =============== */
.sectors-intro {
    padding: 5rem 0;
    background-color: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* الكلمة اللي تحتها الخط */
.section-title .title-word {
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
}

.section-title .title-word::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}


.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.intro-text strong {
    color: var(--primary);
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--background);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 500;
    color: var(--secondary);
}

/* =============== MAIN SECTORS GRID =============== */
.main-sectors {
    padding: 6rem 0;
    background-color: var(--background);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    text-align: center;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.sector-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Card colors for different sectors */
.sector-card.manufacturing {
    border-top: 4px solid #C4161C; /* Red */
}

.sector-card.sorting {
    border-top: 4px solid #2F5D8C; /* Blue */
}

.sector-card.operation {
    border-top: 4px solid #51B848; /* Green */
}

.sector-card.projects {
    border-top: 4px solid #FF922B; /* Orange */
}

.sector-card.economy {
    border-top: 4px solid #7950F2; /* Purple */
}

.sector-card.solutions {
    border-top: 4px solid #20C997; /* Teal */
}

.sector-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.sector-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sector-title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
}

.sector-body {
    padding: 0 2rem;
    flex: 1;
}

.sector-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.sector-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.sector-features li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.sector-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

.sector-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.02);
}

.sector-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.sector-link:hover {
    color: #a81217;
    transform: translateX(-5px);
}

.link-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sector-link:hover .link-icon {
    transform: translateX(5px);
}

/* =============== PROCESS FLOW =============== */
.process-flow {
    padding: 6rem 0;
    background-color: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 10%;
    left: 10%;
    height: 2px;
    background-color: var(--border);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(196, 22, 28, 0.3);
}

.step-content h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =============== SECTOR BENEFITS =============== */
.sector-benefits {
    padding: 6rem 0;
    background-color: var(--background);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* =============== CTA SECTION =============== */
.sectors-cta {
    padding: 6rem 0;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
        url('../img/GettyImages-1471851821-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
}


.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.cta-btn.primary {
    background-color: var(--primary);
    color: var(--white);
}

.cta-btn.primary:hover {
    background-color: #a81217;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 22, 28, 0.3);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn.secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 992px) {
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header,
    .sectors-intro,
    .main-sectors,
    .process-flow,
    .sector-benefits,
    .sectors-cta {
        padding: 4rem 0;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .header-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .intro-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
    }
    
    .sector-header,
    .sector-body,
    .sector-footer {
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* =============== CARD ANIMATION DELAYS =============== */
.sector-card:nth-child(1) { animation-delay: 0.1s; }
.sector-card:nth-child(2) { animation-delay: 0.2s; }
.sector-card:nth-child(3) { animation-delay: 0.3s; }
.sector-card:nth-child(4) { animation-delay: 0.4s; }
.sector-card:nth-child(5) { animation-delay: 0.5s; }
.sector-card:nth-child(6) { animation-delay: 0.6s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }