/* Pragyaavi for Sales Page Styles */

/* Smooth scrolling optimization */
html {
    scroll-behavior: smooth;
}

/* Prevent flicker on sticky elements */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* GSAP Animation Initial States */
/* GSAP animation initial states are now handled by JavaScript */

/* Hero Section */
#sales-hero {
    background-color: #000000;
}

#sales-hero-container {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

@media (max-width: 767px) {
    #sales-hero-container {
        height: 594px !important;
        padding: 20px !important;
        padding-top: 100px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #sales-hero-container {
        height: 500px !important;
    }
}

@media (min-width: 1440px) {
    #sales-hero-container {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

#sales-hero-bg-desktop {
    z-index: 0;
    background-image: linear-gradient(90deg, rgb(0 0 0 / 54%) 31%, rgb(0 0 0 / 0%) 100%), url('../images/pragyaavi-for-sales/sales-hero-bg-27761a.jpg');
    background-position: left;
    background-repeat: no-repeat;
    background-color: #000;
}

#sales-hero-bg-mobile {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%), url(../images/pragyaavi-for-sales/sales-hero-bg-mobile.jpg);
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: scale(1.2);
}

/* Signal Intelligence Section */
#sales-intelligence {
    background: linear-gradient(180deg, rgba(19, 0, 26, 1) 0%, rgba(44, 0, 62, 1) 100%);
}

#sales-intelligence-container {
    margin: 0 auto;
}

.sales-intelligence-card {
    background-color: #0C1717;
    border: 1px solid rgba(171, 235, 240, 0.15);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    min-height: 390px;
    flex: 1;
}

@media (max-width: 1024px) {
    .sales-intelligence-card {
        min-height: auto;
    }
}

/* Dashboard Section */
#sales-dashboard {
    background: linear-gradient(180deg, rgba(44, 0, 62, 1) 0%, rgba(19, 0, 26, 1) 100%);
}

#sales-dashboard-container {
    padding: 60px;
}

#sales-dashboard-text {
    width: 100%;
}

#sales-dashboard-1,
#sales-dashboard-2 {
    border-radius: 12px;
}

#sales-dashboard-1-wrapper,
#sales-dashboard-2-wrapper {
    gap: 24px;
}

@media (max-width: 1024px) {
    #sales-dashboard-container {
        padding: 40px 20px;
    }
    
    #sales-dashboard-text {
        flex-direction: column;
    }
    
    #sales-dashboard-images {
        flex-direction: column;
    }
    
    #sales-dashboard-1,
    #sales-dashboard-2 {
        width: 100% !important;
        height: auto !important;
    }
    
    #sales-dashboard-1-caption,
    #sales-dashboard-2-caption {
        width: 100% !important;
    }
}

/* Real-Time Intelligence Features Section */
#sales-intelligence-features {
    background-color: #13001A;
    position: relative;
}

/* Sticky scrolling container */
.sales-intelligence-container {
    align-items: flex-start;
    justify-content: space-between;
    min-height: 100vh;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Background image div */
#sales-scroll-bg-div {
    background-image: url('../images/pragyaavi-for-sales/sales-scroll-bg.png');
    background-size: 39%;
    background-position: -10% 104%;
    background-repeat: no-repeat;
    opacity: 0.2;
}

/* Left sticky section */
.sales-features-left {
    position: sticky;
    top: 0;
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden; /* Prevent flicker */

}

/* Right scrolling section */
.sales-features-right {
    width: 60%;
    padding: 30px;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
}

#sales-bg-illustration {
    opacity: 0.4;
}

.sales-feature-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#sales-feature-1-img,
#sales-feature-2-img,
#sales-feature-3-img,
#sales-feature-4-img {
    width: 684px;
    height: 400px;
}

#sales-feature-mobile-1-img,
#sales-feature-mobile-2-img,
#sales-feature-mobile-3-img,
#sales-feature-mobile-4-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* Mobile styles for intelligence features */
#sales-intelligence-features-mobile {
    background-color: #13001A;
}

#sales-intelligence-features-mobile-container {
    transition: opacity 0.3s ease;
}

#sales-features-mobile-title {
    transition: color 0.3s ease;
}

#sales-features-mobile-description {
    transition: opacity 0.3s ease;
}

.sales-feature-card {
    transition: all 0.3s ease;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden; /* Prevent flicker */
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    #sales-bg-illustration {
        display: none;
    }
}

/* Numbers Section */
#sales-numbers {
    background-color: #2C003E;
}

#sales-numbers-container {
    padding: 72px 60px;
}

#sales-numbers-header {
    width: 100%;
}

#sales-numbers-cards {
    width: 100%;
}

.sales-number-card {
    background-color: #5E376E;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    gap: 64px;
    flex: 1;
}

@media (max-width: 1024px) {
    #sales-numbers-container {
        padding: 40px 20px;
    }
    
    #sales-numbers-header {
        flex-direction: column;
    }
    
    #sales-numbers-cards {
        flex-direction: column;
    }
    
    .sales-number-card {
        width: 100%;
    }
}

/* Revenue Engine Section */
#sales-revenue-engine {
    background-color: #13001A;
}

.sales-revenue-card {
    background-color: #5E376E;
    border-radius: 8px;
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.sales-revenue-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    #sales-revenue-cards {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #sales-revenue-container {
        padding: 40px 16px !important;
    }
    
    #sales-revenue-header {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    #sales-revenue-title-wrapper {
        width: 100%;
    }
    
    #sales-revenue-title {
        font-size: 34px !important;
        line-height: 1.2 !important;
    }
    
    #sales-revenue-intro {
        width: 100%;
    }
    
    #sales-revenue-cta {
        width: 100%;
        justify-content: center;
    }
    
    .sales-revenue-card {
        width: 100%;
        padding: 20px;
    }
    
    .sales-revenue-card img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }
}

/* Testimonials Section */
#sales-testimonials {
    background-color: #13001A;
}

#sales-testimonials-container {
    padding: 60px;
}

#sales-testimonials-scroll {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 32px;
}

#sales-testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.sales-testimonial-card {
    background-image: url('../images/pragyaavi-for-sales/sales-testimonial-bg-7f2532.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 0 60px 0 40px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    width: 86vw;
    min-width: 86vw;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
}

.sales-testimonial-card img {
    border-radius: 12px;
    width: 318px;
    flex-shrink: 0;
}

#sales-testimonial-2-img {
    border-top-right-radius: 0;
}

#sales-testimonial-3-img {
    border-top-right-radius: 0;
}

#sales-testimonial-1-content {
    gap: 24px;
    flex: 1;
}

#sales-testimonial-2-content,
#sales-testimonial-3-content {
    gap: 32px;
    flex: 1;
}

/* Ensure paragraph text takes full width on desktop */
#sales-testimonial-2-content p,
#sales-testimonial-3-content p {
    max-width: 750px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #C2A5CF;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.testimonial-dot.active {
    background-color: #5E376E;
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 1440px) {
    #sales-testimonials-container {
        padding: 60px;
    }
    
    #sales-testimonials-scroll {
        width: 100%;
        max-width: 1320px;
    }
}

@media (max-width: 768px) {
    #sales-testimonials-container {
        padding: 20px;
        max-height: 854px;
    }
    
    #sales-testimonials-scroll {
        gap: 16px;
    }
    .text-h2 {
        font-size: 31px !important;
        line-height: 1 !important;
        padding-top: 10px;
    }
    
    .sales-testimonial-card {
        min-width: 100%;
        width: 100%;
        flex-direction: column;
        padding: 20px 16px;
        height: auto;
        gap: 16px;
        align-items: flex-start;
    }
    
    .sales-testimonial-card img {
        width: 100%;
        max-width: 220px;
        height: auto;
        margin: 0 auto;
    }
    
    #sales-testimonial-1-img {
        margin-bottom: 0 !important;
    }
    
    #sales-testimonial-1-content,
    #sales-testimonial-2-content,
    #sales-testimonial-3-content {
        gap: 12px !important;
    }
    
    #sales-testimonial-1-content > div,
    #sales-testimonial-2-content > div,
    #sales-testimonial-3-content > div {
        gap: 8px !important;
    }
    
    #sales-testimonials-container .text-h2 {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    
    #sales-testimonials-container .text-h4 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    #sales-testimonials-container .text-h5 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
}

/* Security Section */
#sales-security {
    background-color: #13001A;
}

#sales-security-container {
    padding-top: 60px;
}

#sales-security-header {
    width: 100%;
}

#sales-security-image {
    background:
                url('../images/pragyaavi-for-sales/sales-security-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
}

#sales-security-decoration {
    top: 395px;
    left: 618px;
    width: 195px;
    height: 195px;
    filter: blur(12px) drop-shadow(0px 0px 21px rgba(194, 165, 207, 1));
}

@media (max-width: 1440px) {
    #sales-security-title,
    #sales-security-description {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    #sales-security-header {
        flex-direction: column;
        gap: 20px;
    }
    
    #sales-security-title {
        width: 100%;
    }
    
    #sales-security-text {
        width: 100%;
    }
    
    #sales-security-description {
        width: 100%;
    }
    
    #sales-security-image {
        height: 400px;
        border-radius: 0;
    }
    
    #sales-security-decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    #sales-security-header {
        padding: 18px !important;
    }
}

/* Final CTA Section */
#sales-final-cta {
    background: linear-gradient(0deg, rgba(12, 23, 23, 1) 0%, rgba(19, 0, 26, 1) 85%);
}

#sales-final-cta-card {
    background-image: url('../images/pragyaavi-for-sales/sales-cta-bg-7426f5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mid-size screens (1024px - 1300px) */
@media (max-width: 1300px) {
    #sales-final-cta-card {
        padding-left: 324px;
        padding-right: 0;
    }
}

@media (max-width: 1024px) {
    #sales-final-cta-card {
        padding: 40px;
        height: auto;
        justify-content: center;
    }
    
    #sales-final-cta-content {
        width: 100%;
    }
    
    #sales-final-cta-buttons {
        width: 100%;
        flex-direction: column;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    #sales-hero-title,
    #sales-intelligence-title,
    #sales-dashboard-title,
    #sales-features-title,
    #sales-numbers-title,
    #sales-revenue-title,
    #sales-security-title,
    #sales-final-cta-title {
        font-size: 40px;
    }
    
    #sales-card-decode-title,
    #sales-card-signals-title,
    #sales-card-action-title {
        font-size: 32px;
    }
}

/* Secondary CTA Button Override for Sales Page */
#sales-numbers-cta,
#sales-revenue-cta,
#sales-security-cta,
#sales-final-cta-book,
#sales-final-cta-contact {
    border: 1px solid #ABEBF0;
}

