/* ========================================
   HOME PAGE REDESIGN STYLES
   ======================================== */

/* 1. New Hero Section */
.hero.main-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.dynamic-headline {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.static-text {
    color: #fff;
}

.typing-text {
    color: var(--accent);
    position: relative;
}

.cursor {
    display: inline-block;
    color: var(--accent);
    margin-left: 2px;
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-sub {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}


/* 2. Intro Section ("Who We Are") */
.intro-section {
    padding: 6rem 0;
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.intro-features {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.intro-features h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 1rem;
    font-weight: bold;
}

/* 3. Services Grid ("What We Do") - Horizontal Box Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.service-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.service-note {
    text-align: center;
    margin-top: 2.5rem;
    font-style: italic;
    color: var(--muted);
    font-size: 1rem;
}

/* 3b. Services Summary Grid (alternative) */
.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-summary-card {
    background: #fff;
    padding: 0;
    /* Remove padding for image to bleed to edges */
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    /* Align text left for better readability with images */
    overflow: hidden;
    /* Clip image corners */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.service-summary-card .service-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-summary-card .service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-summary-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-summary-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.service-summary-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* 6. Client Logo Slider (Marquee) */
.clients-logo-section {
    padding: 6rem 0;
    background: #fff;
    overflow: hidden;
    /* Hide overflow for marquee */
    border-top: 1px solid var(--border);
}

.client-logo-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    overflow: hidden;
    padding: 1rem 0;
    /* Mask edges for smooth fade effect */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.client-logo-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Fit content to allow scrolling */
    animation: scroll 40s linear infinite;
    /* Slow continuous scroll */
    padding: 1rem 0;
}

.client-logo-track:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

.client-logo-card-simple {
    width: 200px;
    height: 120px;
    background: #fff;
    border: 1px solid #1a3a5a;
    /* Blue border as requested */
    border-radius: 4px;
    /* Slight radius or sharp based on ref */
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.client-logo-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.client-logo-card-simple img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Placeholder letter style if image fails */
.client-initial {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half width (since we'll double the items) */
    }
}

.work-process {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin-bottom: 3rem;
}

.work-process p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
}

.work-focus-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.focus-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.focus-card .focus-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.focus-card h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.focus-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Key Reference Projects - Horizontal Layout */
.key-projects {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.key-projects h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.projects-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-card-small {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.project-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.project-card-small .project-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card-small h5 {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.project-card-small p {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .projects-grid-horizontal {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* 4b. Methodology (alternative "How We Work") */
.methodology-section {
    background: var(--primary);
    color: #fff;
    padding: 6rem 0;
}

.methodology-section h2 {
    color: #fff;
}

.methodology-section p {
    color: rgba(255, 255, 255, 0.8);
}

.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 4rem 0;
}

.process-step {
    text-align: center;
    flex: 0 1 150px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    transition: all 0.3s;
}

.process-step:hover .step-icon {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.process-step h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.process-step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.process-arrow {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.5;
}

.belief-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.belief-box p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
    color: #fff;
}


/* 5. Why Clients Work With Us */
.why-us-section {
    padding: 6rem 0;
}

.why-us-content .lead {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.check-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.rounded-img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 4px solid #fff;
}

.align-center {
    align-items: center;
}

/* ========================================
   CLIENT CAROUSEL STYLES
   ======================================== */
.clients-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.clients-carousel-container {
    flex: 1;
    overflow: hidden;
}

.clients-track {
    display: flex;
    transition: transform 0.4s ease;
}

.client-card {
    flex: 0 0 calc(25% - 1rem);
    padding: 0.75rem;
    box-sizing: border-box;
}

.client-card-inner {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.client-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.client-logo-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.client-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.client-logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.client-content {
    flex: 1;
}

.client-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.client-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Navigation Buttons */
.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--primary);
}

.client-relationships {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.client-relationships p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

/* Responsive Client Cards */
@media (max-width: 1400px) {
    .client-card {
        flex: 0 0 calc(25% - 1rem);
    }
}

@media (max-width: 1100px) {
    .client-card {
        flex: 0 0 calc(33.33% - 1rem);
    }
}

@media (max-width: 768px) {
    .client-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .client-card {
        flex: 0 0 100%;
    }

    .clients-carousel-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .clients-carousel-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .clients-carousel-container::-webkit-scrollbar {
        height: 4px;
    }

    .clients-carousel-container::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

    .nav-btn {
        display: none;
    }
}


/* 6. CTA Section ("Let's Work Together") */
.cta-section {
    padding: 6rem 0;
    background: #fff;
    border-top: 1px solid var(--border);
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
}

.cta-brand {
    margin: 2rem 0;
}

.cta-brand h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cta-brand p {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Responsive Adjustments for Home Page */
@media (max-width: 768px) {
    .dynamic-headline {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .process-flow {
        flex-direction: column;
        gap: 2rem;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .grid-2.align-center {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .services-summary-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .work-focus-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet responsive for new grids */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .work-focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-card,
    .focus-card {
        padding: 1.5rem 1rem;
    }

    .service-card .service-icon,
    .focus-card .focus-icon {
        font-size: 2rem;
    }

    /* Process Flow Optimization: 1-2-3 then 4-5 */
    .process-arrow {
        display: none;
        /* Hide arrows to allow grid flow */
    }

    .process-flow {
        gap: 0.5rem;
        /* Tighten gap */
        justify-content: center;
    }

    .process-step {
        flex: 0 0 31%;
        /* Fit 3 items (31% * 3 + gap < 100%) */
        max-width: 31%;
        padding: 0.5rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .process-step h4 {
        font-size: 0.9rem;
    }

    .process-step p {
        font-size: 0.75rem;
    }
}