﻿/*header*/
.page-intro {
    background: var(--white);
    padding: 80px 0 40px;
    margin-top: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-intro::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 200px;
        background: var(--primary-light);
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
        z-index: 1;
    }

    .page-intro .container {
        position: relative;
        z-index: 5;
    }

.intro-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(134,166,240,0.3);
}

.intro-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.intro-text {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.6;
}

.text-highlight-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .page-intro {
        padding: 60px 0 30px;
        margin-top: 60px;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
        padding: 0 20px;
    }
}


/*search section*/
.case-search {
    padding: 40px 0 20px;
    /*background: linear-gradient(180deg, var(--background-color) 0%, #ffffff 100%);*/
}

.search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 3.5rem; 
    border: 2px solid transparent;
    border-radius: 60px;
    font-size: 1.1rem;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 15px 40px rgba(134, 166, 240, 0.15), 0 0 0 3px rgba(134, 166, 240, 0.2);
    }

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(134, 166, 240, 0.4);
}

    .search-button:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 8px 18px rgba(134, 166, 240, 0.6);
    }

    .search-button i {
        transition: transform 0.2s;
    }

    .search-button:hover i {
        transform: translateX(4px);
    }

.tag-filter {
    justify-self: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0 0 15px 0;
    list-style: none;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 2px solid var(--primary-light);
    border-radius: 40px;
    background: var(--white);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    user-select: none;
    line-height: 1;
}

    .filter-tag:hover {
        border-color: var(--primary-color);
        background: var(--primary-light);
        transform: translateY(-2px);
    }

    .filter-tag.active {
        background: var(--primary-color);
        border-color: var(--primary-dark);
        color: white;
        box-shadow: 0 4px 12px rgba(134, 166, 240, 0.3);
    }

.tag-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
}

.tag-control-btn {
    background: transparent;
    border: 1.5px solid var(--primary-dark);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

    .tag-control-btn:hover {
        background: var(--primary-dark);
        color: white;
        border-color: var(--primary-dark);
        transform: translateY(-2px);
    }

.search-highlight {
    background-color: #fff3b0;
    font-weight: 600;
    border-radius: 4px;
    padding: 0 2px;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }

    .search-input {
        padding: 1rem 3rem 1rem 3rem;
        font-size: 1rem;
    }

    .search-button {
        width: 42px;
        height: 42px;
        right: 5px;
    }

    .filter-tag {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

/*case studies section*/
.case-studies {
    padding: 65px 0;
}
.case-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: var(--background-color);*/
    clip-path: polygon(0 10%, 100% 0%, 100% 90%, 0% 100%);
    opacity: 0.3;
    z-index: 1;
}
.case-studies .container {
    z-index: 10;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.story-highlight {
    color: var(--primary-color);
}
.industries-intro {
    color: var(--gray); 
    font-size: 1.25rem; 
    max-width: 600px; 
    margin-bottom: 2rem;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /*margin-top: 3rem;*/
    position: relative;
}
    .case-grid::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        width: 100%;
        height: 100%;
        background: #cae3da;
        border-radius: 40px 40px 40px 8px;
        z-index: 1;
        opacity: 0.3;
    }
.case-card {
    background: var(--white);
    border-radius: 40px 40px 40px 8px;
    /*padding: 2rem;*/
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

    .case-card:hover {
        transform: translateY(-12px);
        box-shadow: var(--shadow-lg);
    }

.case-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 30px 30px 0px 0px;
    /*margin-bottom: 1.5rem;*/
}
.case-intro {
    padding: 2rem;
}
.case-heading {
    display: flex;
    align-items: center;
    /*line-height: 60px;*/
    height: 60px;
    margin-bottom: 1rem;
}
.case-icon {
    font-size: 2rem;
    color: var(--primary-color);
    /*margin-bottom: 1rem;*/
    margin-right: 1rem;
    background: var(--primary-light);
    border-radius: 20px 20px 20px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
    flex-direction: row;
    box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
}

/*.field-tags {
    display: flex;
    margin: 15px 0;
}
.tag {
    border: solid 2px var(--primary-dark);
    width: fit-content;
    min-width: 60px;
    margin: 5px;
    padding: 2px 10px;
    border-radius: var(--radius-md);
    text-align: center;
}*/

.field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

    .field-tags .tag {
        display: inline-block;
        padding: 4px 14px;
        background: var(--primary-light);
        color: var(--primary-dark);
        border-radius: 30px;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: all 0.2s;
    }

        .field-tags .tag:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(134, 166, 240, 0.3);
        }

.no-results {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--gray);
    width: 100%;
}

@media (max-width: 1024px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

/*cta section*/
/* ===== CTA SECTION (elegant & professional) ===== */
.cta {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid rgba(134,166,240,0.15);
    border-bottom: 1px solid rgba(134,166,240,0.15);
}

    .cta .container {
        max-width: 1000px;
        margin: 0 auto;
        background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
        border-radius: 60px;
        padding: 50px 60px;
        box-shadow: 0 15px 35px -10px rgba(0,0,0,0.05), 0 0 0 1px rgba(134,166,240,0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 30px;
    }

.cta-content h3 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 0;
}

.cta .btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 42px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    box-shadow: 0 8px 18px rgba(134,166,240,0.25);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    border: 1px solid transparent;
}

    .cta .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(134,166,240,0.35);
    }

@media (max-width: 768px) {
    .cta .container {
        padding: 40px 30px;
        flex-direction: column;
        text-align: center;
        border-radius: 40px;
    }

    .cta-content h3 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta .btn-primary {
        padding: 12px 36px;
    }
}