/**
 * What We Do Page Styles
 * 
 * Complete styling for the "What We Do" page including:
 * - Hero section
 * - Services grid
 * - Why choose us features
 * - Process timeline
 * - CTA section
 */

/* ==========================================
   PAGE BANNER SECTION
========================================== */
.what-we-do-banner-section {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--banner-bg-color, linear-gradient(135deg, #0f2f45 0%, #184267 100%));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--banner-overlay, rgba(15, 47, 69, 0.7));
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    color: var(--banner-text-color, #ffffff);
    max-width: 100%;
}

.banner-title {
    font-size: var(--banner-title-size, 72px);
    font-weight: var(--banner-title-weight, 700);
    color: var(--banner-title-color, #ffffff);
    margin: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.banner-subtitle {
    font-size: var(--banner-subtitle-size, 20px);
    font-weight: var(--banner-subtitle-weight, 400);
    color: var(--banner-subtitle-color, rgba(255, 255, 255, 0.9));
    margin: 0.5rem 0 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   TILES SERVICES SECTION
========================================== */
.tiles-services-section {
    background: #F8F8F8;
    /* padding: var(--tiles-services-spacing-top, 80px) 0 var(--tiles-services-spacing-bottom, 80px); */
    position: relative;
    overflow: hidden;
}

.tiles-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 100%;
}

.tiles-services-grid_reverse {
    direction: rtl;
    text-align: end;
    background-color: #fff;
}

.tiles-services-grid_reverse .tiles-services-content {
    direction: ltr;
    text-align: left;
}

.tiles-services-grid_reverse .tiles-services-text {
    direction: ltr;
    text-align: left;
}
.tiles-services-section_3 {
    margin-bottom: 1.5rem;
}


/* .tiles-services-flex {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--page-px, 24px); 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--details-column-gap, 64px);
    align-items: center;
}

.tiles-services_container {
    width: 50%!important;
} */

/* ==========================================
   LEFT COLUMN - Image
========================================== */
.tiles-services-image {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: calc(100% - 130px);
}

.tiles-services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.tiles-services-image:hover img {
    transform: scale(1.02);
}

/* ==========================================
   RIGHT COLUMN - Content
========================================== */
.tiles-services-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0px;
    width: 100%;
    max-width: 74%;
}

.tiles-services-text {
    max-width: 100%;
}

/* Sub-heading styling now handled by global sub-heading-text.css */

.tiles-services-heading {
    font-size: var(--h2-size, 36px);
    font-weight: var(--heading-font-weight, 600);
    color: #000!important;
    margin: 0!Important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.tiles-services-sub-description {
    font-size: var(--font-size-base, 16px) !important;
    color: var(--tiles-sub-desc-color, #666666);
    margin: 0 0 1rem 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* .tiles-services-sub-description {
    font-family: var(--body-font-family, "dm-sans", sans-serif);
    font-size: var(--tiles-sub-desc-size, 18px);
    font-weight: var(--tiles-sub-desc-weight, 500);
    color: var(--tiles-sub-desc-color, #666666);
    line-height: 1.4;
    margin: 0 0 1rem 0;
    letter-spacing: 0.2px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} */

/* Blue accent line under heading (matching the image) */
/* .tiles-services-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--tiles-services-accent-line, var(--accent-color, #00AEEF));
    margin-top: 16px;
    border-radius: 2px;
} */

.tiles-services-description {
    font-size: var(--body-font-size, 16px);
    font-weight: var(--body-font-weight, 400);
    color: #000000!important;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.tiles-services-description p {
    margin: 0 0 1rem 0;
    color: #000000!important;
}

.tiles-services-description p:last-child {
    margin-bottom: 0;
}

.tiles-services-button-wrapper {
    margin-top: 2rem;
}

.tiles-services-text h4.sub-heading-text {
    padding-bottom: 1.5rem;
    border-bottom: 0;
}
    .tiles-services-text h4.sub-heading-text:after{
        content:"";
        display:block;
        width: 130px;
        height:1px;
        background: #00AEEF;
        position:relative;
    }

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Large Desktop */
@media (max-width: 1440px) {
    .tiles-services-content {
        width: 100%;
        max-width: 100%;
        padding-top: var(--section-py);
        padding-bottom: var(--section-py);
        padding-right: var(--page-px);
        padding-left: var(--page-px);
    }
}
@media (max-width: 1200px) {
    .tiles-services-grid {
        gap: 50px;
    }
    
    .tiles-services-content {
        width: 100%;
        max-width: 100%;
        padding-top: var(--section-py);
        padding-bottom: var(--section-py);
        padding-right: var(--page-px);
        padding-left: var(--page-px);
    }
}

/* Desktop */
@media (max-width: 1024px) {
    /* .tiles-services-section {
        padding: var(--tiles-services-spacing-top, 60px) 0 var(--tiles-services-spacing-bottom, 60px);
    } */
    
    .tiles-services-grid {
        gap: 40px;
    }
    
    .tiles-services-heading {
        font-size: var(--h2-size, 32px);
    }
    
    .tiles-services-sub-description {
        font-size: calc(var(--tiles-sub-desc-size, 18px) * 0.95);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .tiles-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tiles-services-content {
        order: 2;
    }
    
    .tiles-services-image {
        order: 1;
    }
    
    .tiles-services-heading {
        font-size: var(--h3-size, 28px);
        margin-bottom: 28px;
    }
    
    .tiles-services-sub-description {
        font-size: calc(var(--tiles-sub-desc-size, 18px) * 0.9);
    }
    
    /* Adjust blue accent line for tablet */
    .tiles-services-heading::after {
        margin-top: 14px;
        width: 50px;
        height: 3px;
    }

    .tiles-services-button-wrapper {
        display: none;
    }
    
    .hero-content-image {
        display: none;
    }
    /* Sub-heading responsive styles now handled by global sub-heading-text.css */
}

/* Mobile */
@media (max-width: 480px) {
    /* .tiles-services-section {
        padding: var(--tiles-services-spacing-top, 40px) 0 var(--tiles-services-spacing-bottom, 40px);
    } */
    
    .tiles-services-grid {
        gap: 25px;
    }
    
    .tiles-services-heading {
        font-size: var(--h4-size, 24px);
        margin-bottom: 24px;
    }
    
    .tiles-services-sub-description {
        font-size: calc(var(--tiles-sub-desc-size, 18px) * 0.85);
    }
    
    /* Adjust blue accent line for mobile */
    .tiles-services-heading::after {
        margin-top: 12px;
        width: 40px;
        height: 3px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Sub-heading responsive styles now handled by global sub-heading-text.css */
    
    .tiles-services-description {
        font-size: calc(var(--body-font-size, 16px) * 0.9);
    }
}

/* ==========================================
   HERO CONTENT SECTION (Below Banner)
========================================== */
.what-we-do-hero-content-section {
    background: var(--hero-content-bg-color, #ffffff);
    color: var(--hero-content-text-color, #333333);
    padding: var(--hero-content-spacing-top, 80px) 0 var(--hero-content-spacing-bottom, 80px);
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text {
    max-width: 800px;
}

.hero-description {
    font-size: var(--hero-description-size, 18px);
    color: var(--hero-description-color, #666666);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================
   SERVICES SECTION
========================================== */
.what-we-do-services-section {
    background: var(--services-bg-color, #ffffff);
    color: var(--services-text-color, #333333);
    padding: var(--services-spacing-top, 100px) 0 var(--services-spacing-bottom, 100px);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: var(--section-title-size, 48px);
    font-weight: var(--section-title-weight, 700);
    color: var(--section-title-color, #1a1a1a);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--section-subtitle-size, 20px);
    font-weight: var(--section-subtitle-weight, 600);
    color: var(--section-subtitle-color, #00AEEF);
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

.section-description {
    font-size: var(--section-description-size, 16px);
    color: var(--section-description-color, #666666);
    margin: 0;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--services-grid-gap, 32px);
    margin-top: 3rem;
}

.service-card {
    background: var(--service-card-bg, #ffffff);
    border: 1px solid var(--service-card-border, rgba(0, 0, 0, 0.1));
    border-radius: var(--border-radius, 12px);
    padding: var(--service-card-padding, 32px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color, #00AEEF), var(--primary-color, #184267));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color, #00AEEF);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--service-icon-bg, rgba(0, 174, 239, 0.1));
    border-radius: 50%;
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-title {
    font-size: var(--service-title-size, 24px);
    font-weight: var(--service-title-weight, 600);
    color: var(--service-title-color, #1a1a1a);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.service-description {
    font-size: var(--service-description-size, 16px);
    color: var(--service-description-color, #666666);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: var(--service-feature-color, #555555);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color, #00AEEF);
    font-weight: bold;
}

/* ==========================================
   WHY CHOOSE US SECTION
========================================== */
.what-we-do-why-choose-section {
    background: var(--why-choose-bg-color, #f8f9fa);
    color: var(--why-choose-text-color, #333333);
    padding: var(--why-choose-spacing-top, 100px) 0 var(--why-choose-spacing-bottom, 100px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--features-grid-gap, 32px);
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--feature-icon-bg, linear-gradient(135deg, #00AEEF, #184267));
    border-radius: 50%;
}

.feature-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: var(--feature-title-size, 20px);
    font-weight: var(--feature-title-weight, 600);
    color: var(--feature-title-color, #1a1a1a);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.feature-description {
    font-size: var(--feature-description-size, 16px);
    color: var(--feature-description-color, #666666);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================
   PROCESS SECTION
========================================== */
.what-we-do-process-section {
    background: var(--process-bg-color, #ffffff);
    color: var(--process-text-color, #333333);
    padding: var(--process-spacing-top, 100px) 0 var(--process-spacing-bottom, 100px);
}

.process-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color, #00AEEF), var(--primary-color, #184267));
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--step-number-bg, linear-gradient(135deg, #00AEEF, #184267));
    color: var(--step-number-color, #ffffff);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-title {
    font-size: var(--step-title-size, 24px);
    font-weight: var(--step-title-weight, 600);
    color: var(--step-title-color, #1a1a1a);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.step-description {
    font-size: var(--step-description-size, 16px);
    color: var(--step-description-color, #666666);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================
   CTA SECTION
========================================== */
.what-we-do-cta-section {
    background: var(--cta-bg-color, linear-gradient(135deg, #184267 0%, #0f2f45 100%));
    color: var(--cta-text-color, #ffffff);
    padding: var(--cta-spacing-top, 80px) 0 var(--cta-spacing-bottom, 80px);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--cta-title-size, 40px);
    font-weight: var(--cta-title-weight, 700);
    color: var(--cta-title-color, #ffffff);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: var(--cta-description-size, 18px);
    color: var(--cta-description-color, rgba(255, 255, 255, 0.9));
    margin: 0 0 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .banner-title {
        font-size: calc(var(--banner-title-size, 72px) * 0.9);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: calc(var(--services-grid-gap, 32px) * 0.75);
    }
}

/* Tablet */
@media (max-width: 968px) {
    .what-we-do-banner-section {
        height: 300px;
    }
    
    .banner-title {
        font-size: calc(var(--banner-title-size, 72px) * 0.7);
    }
    
    .banner-subtitle {
        font-size: calc(var(--banner-subtitle-size, 20px) * 0.9);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: calc(var(--section-title-size, 48px) * 0.75);
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .process-step {
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .what-we-do-banner-section {
        height: 250px;
    }
    
    .banner-title {
        font-size: calc(var(--banner-title-size, 72px) * 0.5);
    }
    
    .banner-subtitle {
        font-size: calc(var(--banner-subtitle-size, 20px) * 0.8);
    }
    
    .what-we-do-hero-content-section,
    .what-we-do-services-section,
    .what-we-do-why-choose-section,
    .what-we-do-process-section,
    .what-we-do-cta-section {
        padding: calc(var(--mobile-spacing, 60px)) 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .service-card {
        padding: calc(var(--service-card-padding, 32px) * 0.75);
    }
    
    .feature-item {
        gap: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon img {
        width: 25px;
        height: 25px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .what-we-do-banner-section {
        height: 200px;
    }
    
    .banner-title {
        font-size: calc(var(--banner-title-size, 72px) * 0.4);
    }
    
    .banner-subtitle {
        font-size: calc(var(--banner-subtitle-size, 20px) * 0.7);
    }
    
    .section-title {
        font-size: calc(var(--section-title-size, 48px) * 0.6);
    }
    
    .cta-title {
        font-size: calc(var(--cta-title-size, 40px) * 0.75);
    }
    
    .service-features li {
        font-size: 13px;
    }
}

/* ==========================================
   ACCESSIBILITY & PERFORMANCE
========================================== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .step-number,
    .feature-icon {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .step-number {
        border: 2px solid currentColor;
    }
}

/* Focus styles for accessibility */
.hero-actions .btn:focus,
.cta-actions .btn:focus {
    outline: 2px solid var(--accent-color, #00AEEF);
    outline-offset: 2px;
}

/* ==========================================
   MARQUEE SLIDER SECTION
========================================== */
.marquee-slider-section {
    position: relative;
    height: 644px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   BACKGROUND IMAGE
========================================== */
.marquee-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    background-color: rgba(0,0,0,0.25);
    background-blend-mode: multiply;
}

.marquee-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: none;
}

/* ==========================================
   MARQUEE CONTAINER
========================================== */
.marquee-container {
    position: relative;
    z-index: 3;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 60s linear infinite;
    /* Ensure smooth looping */
    will-change: transform;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    /* Duplicate content for seamless loop */
    /* This creates the continuous effect */
}

.marquee-text {
    display: inline-block;
    color: #ffffff;
    font-family: var(--h1-h2-font-family, 'Roboto Slab', serif);
    font-size: 104px;
    font-weight: 700;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
    margin-right: 80px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    white-space: nowrap;
}

/* ==========================================
   MARQUEE ANIMATION
========================================== */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================
   HOVER PAUSE EFFECT
========================================== */
.marquee-slider-section:hover .marquee-track {
    /* animation-play-state: paused; */
}

/* ==========================================
   MARQUEE RESPONSIVE DESIGN
========================================== */

/* Large Desktop */
@media (max-width: 1200px) {    
    .marquee-text {
        margin-right: 60px;
    }
    
    .marquee-track {
        animation-duration: 55s;
    }
}

/* Desktop */
@media (max-width: 1024px) {
    
    /* .marquee-text {
        font-size: 24px;
        margin-right: 50px;
        letter-spacing: 1.5px;
    } */
    
    .marquee-track {
        animation-duration: 50s;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .marquee-slider-section {
        height: 400px;
    }
    
    .marquee-text {
        font-size: 60px;
        margin-right: 40px;
        letter-spacing: 1px;
    }
    
    .marquee-track {
        animation-duration: 40s;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* .marquee-slider-section {
        height: 120px;
    } */
    
    .marquee-text {
        margin-right: 30px;
        letter-spacing: 0.5px;
    }
    
    .marquee-track {
        animation-duration: 30s;
    }
}

/* ==========================================
   MARQUEE ACCESSIBILITY
========================================== */

/* Reduced motion support for marquee */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        transform: translateX(0);
    }
}

/* High contrast mode support for marquee */
@media (prefers-contrast: high) {
    .marquee-text {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
        font-weight: 800;
    }
}

/* Focus styles for marquee accessibility */
.marquee-slider-section:focus-within {
    outline: 2px solid var(--accent-color, #00AEEF);
    outline-offset: 2px;
}
