/* Insights Page Specific Styles */

.insights-page {
    font-family: 'Lexend Deca', sans-serif !important;
    color: #010E1B;
}

/* Hero Section */
.insights-hero-section {
    background: #010E1B;
    position: relative;
    padding-top: 100px;
    padding-bottom: 120px;
    overflow: hidden;
}

.insights-hero-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

.insights-hero .hero-img-center img {
    width: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
}

.insights-hero-content {
    flex: 1;
    max-width: 650px;
}


.insights-hero-desc {
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    opacity: 0.9;
}

.insights-hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.insights-hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-bottom-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-bottom-curve svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Competitive Edge Section */
.competitive-edge-section {
    background: #fff;
    position: relative;
    overflow: hidden;
    padding: 60px clamp(2rem, 6vw, 6rem) 0 clamp(2rem, 6vw, 6rem);
}

.container-edge {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.competitive-edge-section{
    padding: 70px clamp(2rem, 6vw, 6rem) 70px clamp(2rem, 6vw, 6rem);
}

.edge-card-wrapper {
    position: relative;
}

.edge-title {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    font-size: 40px;
    letter-spacing: -0.02em;
    /* -2% */
    text-align: center;
    background: linear-gradient(90deg, #2286E8 7.48%, #043F8C 93.3%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback for some browsers */
    margin-bottom: 24px;
}

.edge-desc {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0;
    text-align: center;
    color: #010E1B;
    max-width: 900px;
    margin: 0 auto;
}

.edge-decor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}


/* Category Navigation Section */


.insights-categories-section .main-container {
    padding: 0 clamp(16px, 2vw, 32px);
}

.insights-tabs-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(181.31deg, rgba(71, 163, 254, 0) 40.15%, rgba(71, 163, 254, 0.16) 97.82%) padding-box;
    position: relative;
    padding: 20px;
    gap: 15px;

}

.insights-tabs-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(180deg, rgb(34 134 232 / 15%) 0%, rgb(34 134 232 / 19%) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.categories-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.category-item {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(133.28deg, rgba(34, 134, 232, 0.05) 32.03%, rgba(34, 134, 232, 0.12) 96.1%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}


.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.category-item.active {
    border: 1px solid #0385FF;
    background: linear-gradient(133.28deg, rgba(34, 134, 232, 0.05) 32.03%, rgba(34, 134, 232, 0.42) 96.1%);
    box-shadow: 0 4px 10px rgba(61, 143, 247, 0.1);
}

.category-item span {
    color: #000000;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0%;

}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Featured Content Area */
.featured-content-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.featured-content-mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.featured-card {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border-radius: 20px;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.featured-overlay {
    width: 100%;
    background: linear-gradient(179.74deg, rgba(0, 0, 0, 0) 13.13%, rgba(0, 0, 0, 0.96) 58.03%);
    padding: 50px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.featured-title {
    font-weight: 500;
    font-size: 40px;
    line-height: 42px;
    margin-bottom: 0px;
}

.featured-desc {
    font-size: 16px;
    line-height: 27.2px;
    color: #fff;
    margin-bottom: 0px;
}

.know-more-btn {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    color: #010E1B;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    gap: 8px;
    height: 48px;
    line-height: 28px;
}


.know-more-btn:hover {
    background: #E6E6E6;
    transform: scale(1.05);
}

/* Bottom CTA Section */
.insights-cta-section {
    padding: 70px 0;
    text-align: center;
    background: #FFFFFF;
}

.cta-content {
    gap: 16px;
    display: grid;
}

.cta-title {
    font-size: 40px;
    font-weight: 500;
    color: #010E1B;
    margin-bottom: 0px;
}


.rotating-text-container {
    display: block;
    position: relative;
    height: 50px;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
    width: 510px;
}

.rotating-text-container .tech-highlight {
    font-weight: 700;
    font-size: 40px;
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #2286E8 7.48%, #043F8C 93.3%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
}

/* Specific Exits */
.rotating-text-container .tech-highlight.exit-up {
    transform: translateY(-100%);
    opacity: 0;
}

.rotating-text-container .tech-highlight.exit-right {
    transform: translateX(100%);
    opacity: 0;
}

.rotating-text-container .tech-highlight.exit-down {
    transform: translateY(100%);
    opacity: 0;
}

/* Start positions */
.rotating-text-container .tech-highlight.from-bottom {
    transform: translateY(100%);
    opacity: 0;
}

.rotating-text-container .tech-highlight.from-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Active State - defined last to take precedence */
.rotating-text-container .tech-highlight.active {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
    pointer-events: auto;
}

.cta-desc {
    font-size: 16px;
    color: #010E1B;
    line-height: 27px;
    font-weight: 400;
    margin-bottom: 0px;
}

.lets-talk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #010E1B;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    height: 48px;
    width: 140px;
    font-size: 16px;
    line-height: 28px;
    border: thin solid white;
}

.lets-talk-btn:hover {
    box-shadow: 0px 0px 20px 3px #043f8cc4, 0 0 0 2px rgba(3, 133, 255, 0.15);
}

.mobile-img{
    display: none;
}
/* Responsive */
@media (max-width: 1500px) {
    .insights-categories-section .main-container {
        padding: 0 clamp(16px, 3vw, 40px);
    }
}

@media (max-width: 1024px) {
    .insights-categories-section .main-container {
        padding: 0 clamp(16px, 4vw, 24px);
    }

    .categories-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .category-item {
        min-width: 0;
        width: 100%;
    }

    .featured-card {
        height: 380px;
    }

    .featured-overlay {
        padding: 32px;
    }

    .category-icon{
        height: 48px;
        width: 48px;
    }

    .category-icon img{
        width: inherit;
        height: inherit;
    }

    .category-item span{
        font-size: 16px;
    }
    .category-item{
        padding: 12px;
    }

    .ai-hero-services{
        padding: 10rem clamp(2rem, 6vw, 6rem) 4rem clamp(2rem, 6vw, 6rem);
    }
    
}

@media (max-width: 991px) and (min-width: 769px) {
    .hero-overlay{
        background: none !important;
    }
    .insights-hero .hero-img-center img {
        width: auto;
        right: -75px;
    }
}
@media (max-width: 768px) {
    .desktop-img{
        display: none;
    }
    .mobile-img{
        display: block;
    }
    .hero-overlay {
        background: linear-gradient(170deg, rgb(0 0 0 / 0%) 25%, #000000ba 60%) !important;
    }
    .insights-tabs-container::before{
        content:none;
    }
    .insights-hero .ai-hero-right {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .insights-hero .ai-hero-right img {
        width: auto;
        left: 0;
        right: 0;
        max-width: none;
        object-position: center;
        top: 0px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .insights-tabs-container {
        padding: 16px;
        gap: 12px;
        border: none;
        background: transparent;
    }

    .categories-grid {
        display: none;
    }

    .featured-content-container {
        display: none;
    }

    .featured-content-mobile {
        display: flex;
    }

    .featured-card.mobile-card {
        height: 380px;
        border-radius: 18px;
        background-size: cover;
        background-position: center;
    }

    .featured-card {
        height: 320px;
    }

    .featured-overlay {
        padding: 24px;
        gap: 12px;
    }

    .featured-card.mobile-card .featured-title {
        font-size: 40px;
        line-height: 42px;
        font-weight: 500;
    }

    .featured-card.mobile-card .featured-desc {
        font-size: 16px;
        line-height: 27.2px;
        font-weight: 400;
    }

    .ai-hero-services{
        padding: 14rem clamp(2rem, 6vw, 8rem) 4rem clamp(2rem, 6vw, 6rem);
    }

    .edge-title{
        font-size: 20px;
        font-weight: 500;
    }

    .competitive-edge-section{
        padding: 70px clamp(1rem, 0vw, 0rem) 70px clamp(1rem, 0vw, 0rem);
    }

    .competitive-edge-section .container-edge,
    .insights-categories-section .main-container {
        padding: 0px;
    }
}
@media (max-width: 600px) {
    .rotating-text-container .tech-highlight{
        font-size: 26px;
        font-weight: 700;
        top: 0px;
    }
    .ai-hero-services {
        padding: 14rem clamp(1rem, 0vw, 8rem) 2rem clamp(1rem, 0vw, 8rem);
    }

    .cta-title{
        font-size: 20px;
        font-weight: 500;
        letter-spacing: -2%;
    }

    .rotating-text-container{
        font-size: 26px;
        font-weight: 700;
        height: 40px;
        width: 100%;
    }

    .cta-desc{
        margin: 0 auto;
        max-width: 500px;
        font-size: 16px;
        line-height: 27px;
    }

}
@media (max-width: 480px) {
    .featured-overlay {
        background: linear-gradient(179.74deg, rgba(0, 0, 0, 0) 13.13%, rgba(0, 0, 0, 0.96) 40%);
    }
    .featured-content-mobile .featured-card.mobile-card:first-child {
        background-position: -20px;
    }

    .cta-desc{
        max-width: 350px;
    }
}
