.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 500px;
}
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    /* Initially show only 280px of the after image */
    clip-path: polygon(0 0, 281px 0, 281px 100%, 0 100%);
    filter: brightness(65%);
}
.slider {
    touch-action: none;             /* ensures touchmove fires instead of scrolling */
}

.after {
    /* initial clip path: show only 281px of the “after” image */
    -webkit-clip-path: polygon(0 0, 281px 0, 281px 100%, 0 100%);
    clip-path: polygon(0 0, 281px 0, 281px 100%, 0 100%);
}
.slider-handle {
    position: absolute;
    top: 0;
    left: 280px; /* Starting position of the handle */
    width: 3px;
    height: 100%;
    background-color: var(--primary);
    cursor: ew-resize;
    z-index: 2;
}
 :root {
     --primary: #e63d59;       /* Keeping your vibrant pink/red */
     --secondary: #e63d59;     /* Lighter coral/pink secondary */
     --accent: #ffb400;        /* Warm golden yellow accent */
     --light: #f9f7f7;         /* Soft off-white */
     --dark: #2d232e;          /* Deep aubergine for contrast */
     --gray: #767b91;          /* Cool-toned medium gray */
     --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
 }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(15, 102, 165, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 102, 165, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(15, 102, 165, 0.05);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(230, 61, 89, 0.3);
}

.btn-accent:hover {
    background: #d1354e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 61, 89, 0.4);
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    margin-right: 10px;
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(170deg, #ffffff 60%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 61, 89, 0.05) 0%, rgba(230, 61, 89, 0) 70%);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-stats {
    display: flex;
    margin-top: 40px;
    gap: 30px;
}

/* Hero Section */
.hero__contacts {
    padding: 160px 0 100px;
    background: linear-gradient(170deg, #ffffff 60%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero__contacts::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 61, 89, 0.05) 0%, rgba(230, 61, 89, 0) 70%);
    z-index: 0;
}

.hero__contacts-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero__contacts h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__contacts p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray);
}

.stat-item {
    padding-right: 30px;
    border-right: 1px solid #e1e1e8;
}

.stat-item:last-child {
    border: none;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-mockup {
    position: relative;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.browser-header {
    background: #f0f0f3;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff605c;
}

.dot-yellow {
    background: #ffbd44;
}

.dot-green {
    background: #00ca4e;
}

.browser-address {
    margin-left: 15px;
    background: white;
    height: 20px;
    flex: 1;
    border-radius: 10px;
}

.browser-content {
    background: white;
    position: relative;
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
}

.browser-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 1) 100%);
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    padding: 0 40px;
}

.feature-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-text p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
}

.feature-image {
    flex: 1;
    padding: 20px;
    position: relative;
}

.feature-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray);
    position: relative;
}

.feature-image::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 102, 165, 0.1) 0%, rgba(15, 102, 165, 0) 70%);
    z-index: -1;
}

.feature-item:nth-child(1) .feature-image::after {
    top: -50px;
    right: -50px;
}

.feature-item:nth-child(2) .feature-image::after {
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(230, 61, 89, 0.1) 0%, rgba(230, 61, 89, 0) 70%);
}

.feature-item:nth-child(3) .feature-image::after {
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, rgba(0, 193, 173, 0.1) 0%, rgba(0, 193, 173, 0) 70%);
}

.feature-item:nth-child(4) .feature-image::after {
    bottom: -50px;
    left: -50px;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
}

.pricing-plans {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.pricing-plan {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    flex: 1;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-plan.featured {
    border: 2px solid var(--secondary);
    padding: 50px 30px;
    margin-top: -10px;
}

.plan-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.plan-price::before {
    content: '$';
    font-size: 24px;
    position: absolute;
    top: 0;
    left: -15px;
}

.plan-billing {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 30px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: rgba(15, 102, 165, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pricing-plan .btn {
    width: 100%;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-content::before {
    content: '"';
    font-size: 48px;
    line-height: 0;
    color: var(--primary);
    opacity: 0.2;
    margin-right: 5px;
    vertical-align: middle;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
}

.testimonial-stars {
    margin-top: auto;
    color: #ffc107;
    font-size: 14px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.accordion-item {
    border-bottom: 1px solid #e1e1e8;
}

.accordion-header {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover h3 {
    color: var(--primary);
}

.accordion-header h3 {
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--primary);
    top: 50%;
    left: 0;
    transition: all 0.3s ease;
}

.accordion-icon::before {
    width: 20px;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon::after {
    width: 2px;
    height: 20px;
    transform: translateX(9px) translateY(-50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translateX(9px) translateY(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-body {
    padding: 0 0 20px;
    color: var(--gray);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-description {
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 50px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
        text-align: center;
        min-height: 350px;
        flex: none; /* This is crucial */
    }

    .feature-item,
    .feature-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .feature-text {
        margin-bottom: 30px;
        padding: 0;
    }

    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }

    .pricing-plan {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }

    .pricing-plan.featured {
        padding: 40px 30px;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px;
    }

    .mobile-toggle {
        display: block;
    }

    /* FIXED SLIDER STYLES FOR MOBILE */
    .slider-container {
        height: 300px;
        width: 95%;
        margin: 20px auto;
        /* Remove any potential overflow issues */
        position: relative;
        flex-shrink: 0;
    }

    .slider {
        /* Ensure the slider maintains touch functionality */
        width: 100%;
        height: 100%;
        position: relative;
        /* Critical: Keep touch-action for mobile interaction */
        touch-action: none;
    }

    .slider img {
        width: 100%;
        height: 100%;
        /* Use cover to maintain aspect ratio */
        object-fit: cover;
        display: block;
        min-height: 100%;
        min-width: 100%;
    }

    .before, .after {
        /* Ensure both images are properly positioned */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .after {
        /* Keep the clip-path functionality working */
        -webkit-clip-path: polygon(0 0, 281px 0, 281px 100%, 0 100%);
        clip-path: polygon(0 0, 281px 0, 281px 100%, 0 100%);
        filter: brightness(65%);
        z-index: 1;
    }

    .before {
        z-index: 0;
    }

    .slider-handle {
        /* Make the handle more prominent on mobile */
        position: absolute;
        top: 0;
        left: 280px;
        width: 4px; /* Slightly thicker for mobile */
        height: 100%;
        background-color: var(--primary);
        cursor: ew-resize;
        z-index: 2;
        /* Add touch-friendly styling */
        box-shadow: 0 0 10px rgba(230, 61, 89, 0.5);
    }

    /* Add a touch indicator */
    .slider-handle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        background: var(--primary);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .feature-image {
        padding: 0;
    }

    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        width: 100%;
        max-width: 400px;
    }

    .footer-column {
        flex: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}
.pricing-plan.featured .plan-name:after {
    content: "Best Value";
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 2rem;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(230, 61, 89, 0.3);
}
.money-back-guarantee {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}