/* ============================================
   SERVICES PAGE STYLES
   line-height: 1.4, letter-spacing: 0.001em, word-spacing: 0.02em
   ============================================ */

:root {
    --primary-blue: #1E65A5;
    --primary-red: #E02A2A;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 30px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PAGE HERO SECTION WITH BACKGROUND IMAGE
   ============================================ */
.services-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

/* Dark overlay for better text readability */
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
    text-transform: uppercase;
}

.services-hero p {
    font-size: 1.2rem;
    line-height: 1.4;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SERVICES GRID SECTION
   ============================================ */
.services-grid-section {
    padding: 80px 0;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(30, 101, 165, 0.1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-red);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(30, 101, 165, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(224, 42, 42, 0.3);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
    background: var(--primary-blue);
}

.service-content {
    padding: 30px 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.service-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
    transition: var(--transition);
}

.service-card:hover .service-content h3:after {
    width: 80px;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--dark-gray);
    margin-bottom: 20px;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.service-features li i {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.service-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-blue), #0d4a7a);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.service-btn:hover {
    background: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* ============================================
   FEATURED SERVICES SECTION
   ============================================ */
.featured-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.featured-services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 101, 165, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(224, 42, 42, 0.05) 0%, transparent 30%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.featured-card {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.featured-image {
    flex: 1;
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.featured-content p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--dark-gray);
    margin-bottom: 20px;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.featured-content ul {
    margin-bottom: 20px;
    color: #666;
    list-style: none;
    padding-left: 0;
}

.featured-content ul li {
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.featured-content ul li i {
    color: var(--primary-red);
    margin-right: 10px;
}

.featured-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.featured-link:hover {
    gap: 15px;
    color: var(--primary-blue);
}

/* ============================================
   SERVICE PROCESS SECTION
   ============================================ */
.process-section {
    padding: 80px 0;
    background: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child):after {
    content: '\f178';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 30px;
    right: -20px;
    font-size: 1.5rem;
    color: var(--primary-red);
    opacity: 0.3;
}

.process-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(30, 101, 165, 0.1), rgba(224, 42, 42, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.process-step:hover .process-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
    transform: rotateY(360deg);
}

.process-icon:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed var(--primary-red);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.process-step:hover .process-icon:after {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */
.services-cta:first-of-type {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), #0d4a7a);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.services-cta:first-of-type:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px);
    animation: moveBg 20s linear infinite;
}

@keyframes moveBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.services-cta:first-of-type .container {
    position: relative;
    z-index: 2;
}

.services-cta:first-of-type h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.services-cta:first-of-type p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.services-cta:last-of-type {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-red), #b71c1c);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.services-cta:last-of-type:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px); */
    animation: moveBg 20s linear infinite;
}

.services-cta:last-of-type .container {
    position: relative;
    z-index: 2;
}

.services-cta:last-of-type h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.services-cta:last-of-type p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.cta-btn {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: 1.4;
    letter-spacing: 0.001em;
    word-spacing: 0.02em;
}

.cta-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        gap: 30px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 992px) {
    .services-hero {
        height: 400px;
    }
    
    .services-hero h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        flex-direction: column;
    }
    
    .featured-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        height: 350px;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .services-grid-section,
    .featured-services,
    .process-section,
    .services-cta {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .service-image {
        height: 220px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 30px auto 0;
    }
    
    .services-cta:first-of-type h2,
    .services-cta:last-of-type h2 {
        font-size: 2rem;
    }
    
    .services-cta:first-of-type p,
    .services-cta:last-of-type p {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-hero {
        height: 300px;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .service-content {
        padding: 25px 20px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .process-step {
        padding: 0 15px;
    }
    
    .services-cta:first-of-type h2,
    .services-cta:last-of-type h2 {
        font-size: 1.8rem;
    }
}


/* ============================================
   CTA SECTION WITH BACKGROUND IMAGE
   ============================================ */
.services-cta {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Background Image (via HTML) */
.services-cta .cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4; /* Adjust visibility of the image */
    filter: brightness(0.9);
}

/* Red Gradient Overlay */
.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    z-index: 1;
}

/* Animated Light Lines */
.services-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.05) 20px,
        rgba(255,255,255,0.05) 40px
    );
    animation: moveBg 20s linear infinite;
    z-index: 2;
}

@keyframes moveBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Content Layer */
.services-cta .container {
    position: relative;
    z-index: 3;
}

.services-cta h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    padding: 18px 50px;
    background: white;
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.cta-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .services-cta h2 {
        font-size: 2.2rem;
    }
    .services-cta p {
        font-size: 1rem;
    }
    .cta-btn {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-cta {
        padding: 60px 20px;
    }
    .services-cta h2 {
        font-size: 1.8rem;
    }
    .services-cta p {
        font-size: 1rem;
    }
}
