/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Prevent container overflow */
    overflow-x: hidden;
}

img {
    max-width: 100%;
}
.btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: white;
    color: #70518D;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 0; /* Remove margin-right and use gap instead */
    border: 2px solid white;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: flex-start; /* Align content to the left */
}

.btn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn i {
    font-size: 24px; /* Larger icon */
    margin-right: 12px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.btn-small-text {
    font-size: 0.8rem;
    font-weight: normal;
}

.btn-store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero section */
.hero {
    background-color: #70518D;
    color: white;
    padding: 50px 0;
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    max-width: 600px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.app-buttons {
    display: flex;
    flex-direction: row; /* Horizontal layout on desktop */
    flex-wrap: wrap; /* Allow wrapping if needed */
    gap: 15px; /* Space between buttons */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
}

.language-selector {
    margin-left: auto;
    display: flex;
    align-items: center;
}

#language-dropdown {
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 60px;
}

#language-dropdown:focus {
    outline: none;
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
}

#language-dropdown option {
    background: #70518D;
    color: white;
}

.flag-icon {
    width: 25px;
    height: 25px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.flag-icon:hover {
    transform: scale(1.1);
}

.flag-icon.active {
    border-color: white;
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /* Prevent overflow */
    overflow: hidden;
}

.app-screenshots {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.app-screenshots img {
    max-width: 60%; 
}

/* Features section */
.features {
    background-color: transparent;
    padding: 0; 
}
.feature-wrapper {
    width: 100%; /* Changed from 100vw to 100% */
    padding: 40px 0;
    margin-bottom: 0;
    /* Remove any margins that might cause overflow */
    margin-left: 0;
    margin-right: 0;
}

/* Alternating background colors for feature wrappers */
.feature-wrapper:nth-child(odd) {
    background-color: #f8f4ff;
}

.feature-wrapper:nth-child(even) {
    background-color: #f0e6ff;
}
.feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Prevent any child elements from overflowing */
    overflow: hidden;
}

.feature-content {
    flex: 1;
    padding: 0 20px;
}

.feature-image {
    flex: 1;
    padding: 0 20px;
    text-align: center;
}

.feature-image img,
.app-screenshots img,
.screenshot {
    max-width: 100%;
    height: auto;
    display: block;
}

.feature h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #70518D;
}

.feature p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.features-highlight {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.features-highlight h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #70518D;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-icon {
    padding: 20px;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-5px);
}

.feature-icon i {
    display: inline-block;
    font-size: 40px;
    color: #70518D;
    margin-bottom: 15px;
    background-color: #f8f4ff;
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
}

.feature-icon h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #444;
}

.feature-icon p {
    font-size: 0.9rem;
    color: #666;
}
.feature-bullets {
    margin-top: 15px;
    list-style-type: none;
}

.feature-bullets li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 30px;
    font-weight: bold;
}

.feature-bullets li:before {
    content: "\f058"; /* Font Awesome checkmark in circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #70518D;
    position: absolute;
    left: 0;
    top: 0;
}
/* Modal/Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    color: #333;
}

.modal-content h2 {
    color: #70518D;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    white-space: pre-line;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #70518D;
    text-decoration: none;
    cursor: pointer;
}
/* Footer sections */
.footer-links {
    background-color: #70518D;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-grid h3 {
    padding-bottom: 10px;
}
.footer-links-column ul {
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f0e6ff;
    text-decoration: underline;
}

.footer-about p {
        color: white;
    margin-bottom: 15px;
}
.footer-about .footer-link {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-about .footer-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.social-link {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: white;
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link i {
    font-size: 24px;
    margin-right: 10px;
}

.social-link:hover {
    color: #f0e6ff;
}


.copyright {
    background-color: #523969;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: #f8f4ff;
    text-align: center;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #70518D;
}



.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(112, 81, 141, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(112, 81, 141, 0.15);
}

.pricing-card.popular {
    border-color: #70518D;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #70518D, #9b7bb8);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #70518D;
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.2rem;
    color: #70518D;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #70518D;
    margin: 0 5px;
}

.period {
    font-size: 1rem;
    color: #666;
}



.trial-badge {
    background: linear-gradient(135deg, #70518D, #9b7bb8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
}



.pricing-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.no-payment {
    font-size: 0.9rem;
    color: #70518D;
    font-weight: 600;
    margin-bottom: 5px;
}

.cancel-anytime {
    font-size: 0.85rem;
    color: #666;
}

.pricing-note {
    margin-top: 40px;
    padding: 20px;
    background: rgba(112, 81, 141, 0.05);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}


.download-cta {
    background-color: #f0e6ff;
    color: #333;
    padding: 80px 0;
    text-align: center;
}

.download-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.download-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-cta .app-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.download-note {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}
.language-selector {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.custom-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: white;
    font-size: 14px;
    min-width: 80px;
}

.dropdown-selected:hover {
    background: rgba(255,255,255,0.2);
}

.flag-small {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.dropdown-selected i {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-selected i {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    /* Prevent dropdown from causing horizontal scroll */
    max-width: 200px;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}
.dropdown-option span {
    font-size: 12px;
}
/* Responsive styles */
@media (max-width: 768px) {
    .download-cta h2 {
        font-size: 2rem;
    }
      .language-selector {
        margin-left: 10px;
    }
     .feature-wrapper {
        width: 100%;
        margin: 0;
        padding: 40px 0;
    }
	
    .container {
        padding: 0 15px; /* Reduce padding on mobile */
    }
    
    .feature {
        padding: 0 15px;
    }
    
    /* Fix button overflow on mobile */
    .app-buttons {
        width: 100%;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px auto;
    }
    .dropdown-selected {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .flag-small {
        width: 18px;
        height: 13px;
    }
    .download-cta p {
        font-size: 1.1rem;
    }
    
    .download-cta .app-buttons {
        flex-direction: column;
        align-items: center;
    }
     .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .pricing h2 {
        font-size: 2rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
      .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
        .footer-contact .social-link {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr; /* Change from repeat(2, 1fr) to 1fr */
        gap: 10px; /* Optional: reduce gap slightly */
    }
     .feature-image img {
            max-width: 90%;
        }
   
    .hero-flex {
        flex-direction: column;
    }
    .app-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        margin-right: 0;
        margin-bottom: 15px;
        width: 80%;
        text-align: center;
    }
    
    .btn-text {
        text-align: center;
    }
    .app-screenshots {
        margin-top: 40px;
        order: 2;
    }
    
    .feature {
        flex-direction: column;
    }
    
    .feature-image {
        margin-bottom: 30px;
        order: 1;
    }
    
    .feature-content {
        order: 2;
    }
    
    .feature:nth-child(even) .feature-image {
        order: 1;
    }
}