/* --- EXPERTISE PAGE STYLES --- */

.ex-hero {
    background: #0d0f11;
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
    color: var(--white);
}

.ex-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(228, 0, 0, 0.1) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Subtle pattern for tech/premium feel */
.ex-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    opacity: 0.7;
}

.ex-hero-container {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.ex-hero-left {
    max-width: 680px;
}

.ex-hero-subtitle {
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    display: block;
}

.ex-hero-left h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -1.5px;
}

.ex-hero-left h1 .highlight {
    color: var(--primary-red);
}

.ex-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 560px;
}

.ex-hero-actions {
    display: flex;
    gap: 20px;
}

.ex-btn-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid var(--primary-red);
}

.ex-btn-primary:hover {
    background: #b30000;
    border-color: #b30000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(228, 0, 0, 0.25);
}

.ex-btn-outline {
    background: transparent;
    color: var(--white);
    padding: 15px 36px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: inline-block;
}

.ex-btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.ex-hero-right {
    display: flex;
    justify-content: flex-end;
}

.ex-hero-image-frame {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #111;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
}

.ex-hero-image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    pointer-events: none;
    z-index: 2;
}

.ex-hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ex-hero-image-frame:hover img {
    transform: scale(1.04);
}

/* Services Section */
.ex-services-section {
    padding: 100px 0;
    background: #fafafa;
}

.ex-section-header {
    text-align: center;
    margin-bottom: 70px;
}

.ex-subtitle-main {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.ex-section-header h2 {
    font-size: 38px;
    font-weight: 900;
    color: var(--dark-text);
    letter-spacing: -0.5px;
}

.ex-title-line {
    width: 40px;
    height: 3px;
    background: var(--primary-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

.ex-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.ex-service-card {
    grid-column: span 2;
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ex-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.ex-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border-color: rgba(228, 0, 0, 0.2);
}

.ex-service-card:hover::before {
    transform: scaleX(1);
}

.ex-card-icon {
    color: var(--primary-red);
    background: #fff3f3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.ex-service-card:hover .ex-card-icon {
    background: var(--primary-red);
    color: var(--white);
}

.ex-service-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.ex-service-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 25px;
    flex-grow: 1;
}

.ex-service-details {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ex-service-details li {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    padding-left: 20px;
    position: relative;
}

.ex-service-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
}

/* Center bottom two cards on desktop */
@media (min-width: 992px) {
    .ex-service-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .ex-service-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Stats Section */
.ex-stats-section {
    padding-bottom: 100px;
    background: #fafafa;
}

.ex-stats-bar {
    background: #0d0f11;
    border-radius: 16px;
    padding: 50px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.ex-stat-item {
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.ex-stat-item h3 {
    font-size: 44px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.ex-stat-item p {
    font-size: 12.5px;
    font-weight: 700;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ex-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
}

/* Responsive Grid and Alignments */
@media (max-width: 992px) {
    .ex-hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .ex-hero-left {
        max-width: 100%;
    }
    
    .ex-hero-left h1 {
        font-size: 42px;
    }
    
    .ex-hero-desc {
        margin: 0 auto 35px;
    }
    
    .ex-hero-actions {
        justify-content: center;
    }
    
    .ex-hero-right {
        justify-content: center;
    }
    
    .ex-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ex-service-card {
        grid-column: span 2 !important;
    }
}

@media (max-width: 768px) {
    .ex-hero-left h1 {
        font-size: 34px;
    }
    
    .ex-services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ex-service-card {
        grid-column: span 1 !important;
        padding: 30px;
    }
    
    .ex-stats-bar {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .ex-stat-divider {
        display: none;
    }
    
    .ex-stat-item {
        width: 100%;
    }
    
    .ex-section-header h2 {
        font-size: 30px;
    }
}
