/* 
* Divvymate Landing Page Styles
* A purple-themed landing page with light accents for the Divvymate app
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Updated color variables based on the app screens */
    --primary-color: #7c7df3; /* Purple accent color from app */
    --primary-hover: #9e9df8;
    --secondary-color: #6a48b0; /* Darker purple from app */
    --background-dark: #1e1e33; /* Very dark purple-blue */
    --background-darker: #15152b; /* Darker shade for sections */
    --text-light: #ffffff;
    --text-muted: #b2b2d0;
    --card-bg: #2a2a45; /* Slightly lighter than background for cards */
    --border-color: #3e3e5e;
    --button-text: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 4rem 0;
}

/* Button Styles with improved touch targets */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px; /* Rounded buttons like in the app */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--button-text);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    color: var(--button-text);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--button-text);
}

/* App screen styling */
.app-screen {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

/* Hero Section */
.hero {
    background-color: var(--background-dark);
    padding: 2rem 0 4rem;
    position: relative;
}

.logo img {
    height: 90px;
    max-width: 220px;
    margin-bottom: 2rem;
    width: auto;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    height: auto;
}

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

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-section {
    background-color: var(--background-darker);
    padding: 4rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    height: auto;
}

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

/* Features Section */
.features-section {
    background-color: var(--background-dark);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px; /* More rounded corners like in the app */
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(124, 125, 243, 0.2); /* Subtle purple glow */
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* App Screenshots Section */
.app-screenshots {
    margin-top: 4rem;
}

.app-screenshots h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.screenshots-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.screenshot {
    text-align: center;
    width: 250px;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.screenshot img {
    border-radius: 24px;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.screenshot img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(124, 125, 243, 0.3); /* Purple glow on hover */
}

.screenshot p {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--background-darker);
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 16px; /* More rounded corners */
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(124, 125, 243, 0.2); /* Subtle purple glow */
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.testimonial-card:hover .user-avatar {
    border-color: var(--primary-hover);
}

.rating {
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* About Us Section */
.about-us-section {
    background-color: var(--background-dark);
    padding: 4rem 0;
}

.about-us-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background-color: var(--background-darker);
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Mobile-friendly form elements */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zooming on focus */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 125, 243, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding-left: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

/* Improved touch targets for navigation and interactive elements */
.social-links a {
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    padding: 8px;
    margin: 0 4px;
    min-height: 44px;
    min-width: 44px;
    text-align: center;
}

.social-links a:hover {
    color: var(--primary-hover);
    transform: translateY(-3px);
}

/* Final CTA Section */
.final-cta {
    background-color: var(--background-dark);
    padding: 4rem 0;
    text-align: center;
}

.signup-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
}

.signup-form input {
    flex: 1;
    padding: 1rem;
    border-radius: 30px 0 0 30px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 125, 243, 0.2);
}

.signup-form button {
    border-radius: 0 30px 30px 0;
}

/* Footer */
footer {
    background-color: var(--background-darker);
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content,
    .about-content,
    .contact-content {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .hero-text,
    .about-text {
        text-align: center;
    }
    
    .hero-image,
    .about-image {
        height: 450px;
        margin-top: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .signup-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .signup-form input,
    .signup-form button {
        width: 100%;
        border-radius: 30px;
    }
    
    .contact-info {
        padding-left: 0;
    }

    .screenshot {
        width: 220px;
        height: 440px;
    }
}

/* Accessibility */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* FAQ Section with enhanced animations */
.faq-section {
    background-color: var(--background-darker);
    padding: 4rem 0;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
    padding: 1.2rem;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    list-style: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary:focus {
    background-color: rgba(124, 125, 243, 0.1);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f067';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item[open] .faq-answer {
    padding: 0 1.2rem 1.2rem;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--background-darker);
    padding: 4rem 0;
}

.steps-container {
    max-width: 1000px;
    margin: 3rem auto 0;
}

.step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 900px;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    min-width: 200px;
}

.step-image {
    flex: 0 0 auto;
    margin: 1rem auto;
    text-align: center;
}

.step-connector {
    height: 40px;
    width: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .step {
        flex-wrap: nowrap;
    }
    
    .step-image {
        margin: 0;
    }
}

/* Use Case Scenarios Section */
.use-cases-section {
    background-color: var(--background-dark);
    padding: 4rem 0;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(124, 125, 243, 0.2);
}

.use-case-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(124, 125, 243, 0.1);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.use-case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.use-case-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.use-case-benefits {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.use-case-benefits li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
}

.use-case-benefits li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

/* Trust Elements Section */
.trust-section {
    background-color: var(--background-darker);
    padding: 4rem 0;
}

.trust-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.trust-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(124, 125, 243, 0.2);
}

.trust-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.trust-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.trust-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.badge {
    background-color: rgba(124, 125, 243, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
}

.privacy-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--primary-hover);
}

.privacy-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.privacy-link:hover i {
    transform: translateX(5px);
}

.trust-rating {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-rating span {
    margin-left: 0.5rem;
    font-weight: bold;
}

.compliance-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.compliance-badge {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.compliance-badge i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Navigation and Mobile Menu */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-darker);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 90;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
}

/* Success Message Styles */
.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.5);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    color: #2ecc71;
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.success-message p {
    margin-bottom: 0;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    background-color: var(--primary-color);
    color: var(--button-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 99;
    margin: 0;
    padding: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}

/* Ensure back-to-top button is properly positioned on all screen sizes */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Make sure the button doesn't overlap with any important content */
@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Notification Banner */
.notification-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1000;
}

.notification-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.banner-link {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 0.5rem;
}

.banner-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.banner-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* How It Works Carousel */
.carousel-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--primary-hover);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 125, 243, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(124, 125, 243, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 125, 243, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Enhanced Visual Hierarchy */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.primary-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.primary-btn:hover:before {
    left: 100%;
}

/* Pulsing CTA for primary actions */
.pulsing-cta {
    animation: pulse 2s infinite;
}

/* Floating effect for app screenshots */
.hero-image img, .step-image img {
    animation: float 6s ease-in-out infinite;
}

/* Visual Cues */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: float 1.5s ease-in-out infinite;
    cursor: pointer;
}

/* Section Transitions */
section {
    position: relative;
    transition: background-color 0.5s ease;
}

section:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom right, transparent 49%, var(--background-dark) 50%);
    display: none;
}

section:nth-child(odd):after {
    background: linear-gradient(to bottom right, transparent 49%, var(--background-darker) 50%);
    display: block;
}

section:nth-child(even):after {
    background: linear-gradient(to bottom right, transparent 49%, var(--background-dark) 50%);
    display: block;
}

/* Enhancing Touch Targets */
.btn, 
.nav-links a,
.social-links a,
.carousel-prev,
.carousel-next,
.indicator {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn:active, 
.nav-links a:active,
.social-links a:active,
.carousel-prev:active,
.carousel-next:active,
.indicator:active {
    transform: scale(0.95);
}

/* Mobile Swipe Functionality */
.swipeable {
    position: relative;
}

.swipeable:before {
    content: 'Swipe';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(124, 125, 243, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 10;
    display: none;
}

.swipeable:after {
    content: '←  →';
    position: absolute;
    top: 10px;
    right: 65px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    z-index: 10;
    display: none;
}

@media (max-width: 768px) {
    .swipeable:before,
    .swipeable:after {
        display: block;
        animation: fadeInUp 0.5s ease-out;
    }
    
    .swipeable:before {
        animation: pulse 2s infinite;
    }
}

/* Touch Feedback */
.touch-feedback {
    position: relative;
    overflow: hidden;
}

.touch-feedback:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.touch-feedback:active:after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    max-width: 700px;
    display: none;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.exit-popup.visible {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.exit-popup-overlay.visible {
    display: block;
}

.exit-popup-content {
    display: flex;
    padding: 2rem;
    position: relative;
}

.exit-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.exit-popup-close:hover {
    color: var(--text-light);
}

.exit-popup-image {
    flex: 0 0 auto;
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-image img {
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.exit-popup-text {
    flex: 1;
}

.exit-popup-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.exit-popup-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.exit-popup-form input {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--background-darker);
    color: var(--text-light);
    font-size: 1rem;
}

.exit-popup-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 125, 243, 0.2);
}

.exit-popup-form button {
    width: 100%;
}

.exit-popup-privacy {
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Mobile responsive popup */
@media (max-width: 768px) {
    .exit-popup-content {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .exit-popup-image {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .exit-popup-image img {
        max-height: 200px;
    }
    
    .exit-popup-text h3 {
        font-size: 1.5rem;
    }
    
    .exit-popup-text p {
        font-size: 1rem;
    }
} 

/* Error message styling for form validation */
.error-message {
    color: #ff3860;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    display: none;
}

.error-input {
    border-color: #ff3860 !important;
    background-color: rgba(255, 56, 96, 0.05) !important;
}

/* Form input styling improvements */
input:focus, textarea:focus {
    outline: none;
    border-color: #7c7df3;
    box-shadow: 0 0 0 2px rgba(124, 125, 243, 0.2);
}

/* Make sure form groups have proper spacing and positioning for error messages */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Success styling for validation */
input:valid:not(.error-input), textarea:valid:not(.error-input) {
    border-color: #23d160;
}

/* Responsive styling for error messages */
@media (max-width: 768px) {
    .error-message {
        font-size: 0.8rem;
    }
} 

/* Turnstile Captcha Styling */
.cf-turnstile {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

/* Make sure the captcha is fully visible on mobile */
@media (max-width: 480px) {
    .cf-turnstile {
        transform: scale(0.85);
        transform-origin: left center;
    }
}

/* hCaptcha Styling */
.h-captcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

/* Make sure the captcha is fully visible on mobile */
@media (max-width: 480px) {
    .h-captcha {
        transform: scale(0.85);
        transform-origin: left center;
    }
}

/* Loading state for form submission */
.form-submitting button[type="submit"] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Success message styling enhancement */
.success-message {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(75, 215, 100, 0.1);
    border: 1px solid rgba(75, 215, 100, 0.5);
    border-radius: 6px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.success-message i {
    color: #4bd764;
    font-size: 1.2rem;
    margin-right: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
} 