/* ===================================
   Services Page Styles
   Enhanced UI/UX with animations
   =================================== */

/* Hero Section */
.services-hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 550px;
    background-image: url('../assets/images/services-hero/services_hero_02.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 80px;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, rgba(21, 15, 63, 0.95) 0%, rgba(21, 15, 63, 0.85) 50%, rgba(21, 15, 63, 0.4) 80%, transparent 100%);
    z-index: 1;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(124, 101, 254, 0.15) 40%, rgba(124, 101, 254, 0.25) 100%);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 650px;
    padding: 40px 5% 60px;
    margin-left: 5%;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.services-hero-label {
    display: inline-block;
    background: rgba(124, 101, 254, 0.15);
    color: var(--purple-accent);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border: 1px solid rgba(124, 101, 254, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    transition: all 0.3s ease;
}

.services-hero-label:hover {
    background: rgba(124, 101, 254, 0.25);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(124, 101, 254, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services-hero-title span {
    color: #7C65FE;
    position: relative;
    display: inline-block;
}

.services-hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(124, 101, 254, 0.4), transparent);
    z-index: -1;
}

.services-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Services Introduction */
.services-intro {
    padding: 100px 5%;
    background: #f5f3f0;
    background-image: url('../assets/images/background_wave/wave 3.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.services-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 243, 240, 0.85) 0%, rgba(245, 243, 240, 0.75) 50%, rgba(245, 243, 240, 0.9) 100%);
    z-index: 0;
}

.services-intro::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 101, 254, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.services-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.intro-header {
    text-align: center;
    width: 100%;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.intro-label {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple-accent);
    background: rgba(124, 101, 254, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
    text-align: center;
}

.intro-title {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--deep-navy);
    margin: 0;
}

.intro-title span {
    color: var(--purple-accent);
    position: relative;
}

.intro-content {
    max-width: 900px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.intro-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    line-height: 1.95;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
    text-align: center;
}

.intro-text:hover {
    transform: translateX(5px);
}

.intro-text strong {
    color: var(--deep-navy);
    font-weight: 700;
    position: relative;
    padding: 0 2px;
}

.intro-text strong::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-accent), transparent);
    opacity: 0.3;
}

.intro-stats {
    display: flex;
    flex-direction: row;
    gap: 25px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.intro-stat {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(124, 101, 254, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
}

.intro-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 101, 254, 0.1), transparent);
    transition: left 0.5s ease;
}

.intro-stat:hover::before {
    left: 100%;
}

.intro-stat:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 101, 254, 0.3);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(124, 101, 254, 0.4);
}

.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--purple-accent);
    line-height: 1;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.intro-stat:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Services Navigation */
.services-nav-section {
    padding: 15px 5%;
    background: #ffffff;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.services-nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.service-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(124, 101, 254, 0.08);
    padding: 14px 24px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--deep-navy);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(124, 101, 254, 0.15);
    position: relative;
    overflow: hidden;
}

.service-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--purple-accent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.service-nav-item:hover::before {
    width: 300px;
    height: 300px;
}

.service-nav-item:hover,
.service-nav-item.active {
    background: var(--purple-accent);
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(124, 101, 254, 0.3);
    border-color: var(--purple-accent);
}

.service-nav-item.active {
    animation: pulseActive 2s ease-in-out infinite;
}

@keyframes pulseActive {
    0%, 100% { box-shadow: 0 10px 25px rgba(124, 101, 254, 0.3); }
    50% { box-shadow: 0 10px 35px rgba(124, 101, 254, 0.5); }
}

.service-nav-item i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-nav-item:hover i {
    transform: rotate(360deg);
}

.service-nav-item span {
    position: relative;
    z-index: 1;
}

/* Service Detail Sections */
.service-detail-section {
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-detail-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-light {
    background: #ffffff;
    position: relative;
}

/* Alternate light background for every other service section */
.service-detail-section:nth-child(even).service-light {
    background: #e9f1f7;
}

.service-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(124, 101, 254, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 101, 254, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.service-dark {
    background: #f5f3f0;
    position: relative;
}

/* Alternate light background for every other service-dark section */
.service-detail-section:nth-child(even).service-dark {
    background: #ffffff;
}

.service-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(124, 101, 254, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 101, 254, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.service-detail-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
}

.service-detail-image {
    width: 100%;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Automatic alternating layout for service sections */
/* Odd service sections (1st, 3rd, 5th): content left, image right */
#epc .service-detail-content,
#scada .service-detail-content,
#electrical .service-detail-content {
    order: 1;
}

#epc .service-detail-image,
#scada .service-detail-image,
#electrical .service-detail-image {
    order: 2;
}

/* Even service sections (2nd, 4th, 6th): image left, content right */
#grid-studies .service-detail-content,
#owners-engineer .service-detail-content,
#om .service-detail-content {
    order: 2;
}

#grid-studies .service-detail-image,
#owners-engineer .service-detail-image,
#om .service-detail-image {
    order: 1;
}

/* Keep manual reverse class for backward compatibility (will override auto) */
.service-detail-inner.reverse {
    direction: rtl;
}

.service-detail-inner.reverse > * {
    direction: ltr;
}

.service-detail-inner.reverse .service-detail-content {
    order: 2;
}

.service-detail-inner.reverse .service-detail-image {
    order: 1;
}

/* Service Number */
.service-number {
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 40px;
    margin-top: 0;
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

.service-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--purple-accent);
    transition: width 0.5s ease;
}

.service-detail-section:hover .service-number::after {
    width: 100%;
}

.service-detail-section:hover .service-number {
    opacity: 0.25;
    transform: scale(1.05);
}

.service-light .service-number {
    color: var(--purple-accent);
}

.service-dark .service-number {
    color: var(--purple-accent);
}

/* Service Title */
.service-detail-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-light .service-detail-title {
    color: var(--deep-navy);
}

.service-light .service-detail-title span {
    color: var(--purple-accent);
}

.service-dark .service-detail-title {
    color: var(--deep-navy);
}

.service-dark .service-detail-title span {
    color: var(--purple-accent);
}

/* Service Subtitle */
.service-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 30px;
}

.service-light .service-subtitle {
    color: var(--purple-accent);
}

.service-dark .service-subtitle {
    color: var(--purple-accent);
}

/* Service Description */
.service-description {
    margin-bottom: 35px;
}

.service-description p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.9;
    margin-bottom: 20px;
    text-align: justify;
}

.service-light .service-description p {
    color: #555;
}

.service-dark .service-description p {
    color: #555;
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    align-items: stretch;
}

@media screen and (max-width: 768px) {
    .service-features {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}

.feature-item i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item span {
    flex: 1;
    line-height: 1.4;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.service-light .feature-item {
    background: rgba(124, 101, 254, 0.1);
    color: var(--deep-navy);
    border: 1px solid rgba(124, 101, 254, 0.2);
}

.service-light .feature-item i {
    color: var(--purple-accent);
    transition: transform 0.3s ease;
}

.service-dark .feature-item {
    background: rgba(124, 101, 254, 0.1);
    color: var(--deep-navy);
    border: 1px solid rgba(124, 101, 254, 0.2);
}

.service-dark .feature-item i {
    color: var(--purple-accent);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(8px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Equipment Highlight */
.equipment-highlight,
.service-benefit {
    background: rgba(124, 101, 254, 0.08);
    border-left: 4px solid var(--purple-accent);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
}

.service-dark .equipment-highlight,
.service-dark .service-benefit {
    background: rgba(124, 101, 254, 0.08);
    border-left-color: var(--purple-accent);
}

.equipment-highlight h4,
.service-benefit h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-light .equipment-highlight h4,
.service-light .service-benefit h4 {
    color: var(--deep-navy);
}

.service-dark .equipment-highlight h4,
.service-dark .service-benefit h4 {
    color: var(--deep-navy);
}

.equipment-highlight p,
.service-benefit p {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.service-light .equipment-highlight p,
.service-light .service-benefit p {
    color: #555;
}

.service-dark .equipment-highlight p,
.service-dark .service-benefit p {
    color: #555;
}

/* Service Note */
.service-note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.service-light .service-note {
    background: rgba(124, 101, 254, 0.05);
}

.service-dark .service-note {
    background: rgba(255, 255, 255, 0.05);
}

.service-note i {
    font-size: 1.2rem;
    margin-top: 3px;
}

.service-light .service-note i {
    color: var(--purple-accent);
}

.service-dark .service-note i {
    color: var(--purple-accent);
}

.service-note p {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    text-align: justify;
}

.service-light .service-note p {
    color: #666;
}

.service-dark .service-note p {
    color: #666;
}

/* O&M Metrics */
.om-metrics {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.om-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(124, 101, 254, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(124, 101, 254, 0.15);
}

.om-metric i {
    color: var(--purple-accent);
    font-size: 1.2rem;
}

.om-metric span {
    color: var(--deep-navy);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Service Detail Image */
.service-detail-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    width: 100%;
    height: fit-content;
    margin-top: 0;
}

.service-detail-section:hover .service-detail-image {
    transform: scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3);
}

.service-detail-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
    vertical-align: top;
}

.service-detail-section:hover .service-detail-image img {
    transform: scale(1.1);
}

.image-overlay-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background:#150F3F;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(124, 101, 254, 0.3);
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.service-detail-section:hover .image-overlay-badge {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(124, 101, 254, 0.4);
}

.image-overlay-badge span {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-overlay-badge span:first-child {
    font-size: 0.75rem;
    opacity: 0.7;
}

.image-overlay-badge span:last-child {
    font-size: 1.1rem;
}

/* CTA Section */
.services-cta-section {
    padding: 100px 5%;
    background: #e9f1f7;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 101, 254, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.services-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-cta-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--deep-navy);
    margin-bottom: 20px;
}

.services-cta-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
}

.services-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s ease;
}

.services-cta-btn.primary {
    background: var(--purple-accent);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(124, 101, 254, 0.3);
}

.services-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 101, 254, 0.4);
}

.services-cta-btn.secondary {
    background: var(--deep-navy);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(21, 15, 63, 0.25);
}

.services-cta-btn.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(21, 15, 63, 0.35);
}

/* ===================================
   Responsive Styles
   =================================== */

@media screen and (max-width: 1200px) {
    .services-intro-inner {
        gap: 35px;
    }

    .intro-title {
        font-size: 2.5rem;
    }

    .intro-stats {
        gap: 20px;
    }

    .intro-stat {
        padding: 28px 30px;
    }

    .service-detail-inner {
        gap: 50px;
    }
}

@media screen and (max-width: 1024px) {
    .services-hero {
        height: 90vh;
        min-height: 550px;
        justify-content: center;
        background-attachment: scroll;
        padding-top: 80px;
    }

    .services-hero-overlay {
        width: 100%;
        background: linear-gradient(180deg, rgba(21, 15, 63, 0.88) 0%, rgba(21, 15, 63, 0.75) 100%);
    }

    .services-hero::before {
        display: none;
    }

    .services-hero-content {
        text-align: center;
        margin-left: 0;
        padding: 80px 30px 50px;
    }

    .services-hero-title {
        font-size: 3.2rem;
    }

    .services-hero-subtitle {
        margin: 0 auto;
    }

    .services-nav-section {
        position: relative;
        top: 0;
    }

    .service-detail-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-inner.reverse {
        direction: ltr;
    }

    .service-detail-inner.reverse .service-detail-content {
        order: 2;
    }

    .service-detail-inner.reverse .service-detail-image {
        order: 1;
    }

    .service-detail-image {
        width: 100%;
    }

    .service-detail-image img {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .services-hero {
        height: 85vh;
        min-height: 500px;
        padding-top: 70px;
    }

    .services-hero-title {
        font-size: 2.5rem;
    }

    .services-hero-subtitle {
        font-size: 0.95rem;
    }

    .intro-title {
        font-size: 2.2rem;
    }

    .intro-stats {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .intro-stat {
        max-width: 100%;
        width: 100%;
        padding: 24px 28px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .services-nav-inner {
        gap: 10px;
    }

    .service-nav-item {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .service-nav-item span {
        display: none;
    }

    .service-detail-section {
        padding: 70px 5%;
    }

    .service-number {
        font-size: 3rem;
    }

    .service-detail-title {
        font-size: 1.9rem;
    }

    .service-features {
        gap: 10px;
    }

    .feature-item {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .om-metrics {
        flex-direction: column;
    }

    .services-cta-heading {
        font-size: 2rem;
    }

    .services-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .services-hero-label {
        font-size: 0.7rem;
        padding: 8px 16px;
    }

    .services-hero-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .service-detail-image img {
        height: 280px;
    }

    .image-overlay-badge {
        padding: 12px 18px;
    }

    .image-overlay-badge span:last-child {
        font-size: 0.95rem;
    }
}

