/* Add Kurdish font */
@font-face {
    font-family: 'K24Kurdish';
    src: url("{{ url_for('static', filename='fonts/K24KurdishBold-Bold.ttf') }}") format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Apply Kurdish font to elements with lang="ku" */
[lang="ku"] {
    font-family: 'K24Kurdish', 'Poppins', sans-serif;
}

/* Specific styles for Kurdish text in different sections */
[lang="ku"] .hero-title {
    font-family: 'K24Kurdish', 'Poppins', sans-serif;
    font-size: 2.8rem;
    line-height: 1.4;
}

[lang="ku"] .hero-description {
    font-family: 'K24Kurdish', 'Poppins', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
}

[lang="ku"] .section-title,
[lang="ku"] .feature-title,
[lang="ku"] .pricing-title,
[lang="ku"] .faq-question {
    font-family: 'K24Kurdish', 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
}

[lang="ku"] .feature-description,
[lang="ku"] .pricing-feature span,
[lang="ku"] .faq-answer {
    font-family: 'K24Kurdish', 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

[lang="ku"] .mobile-menu-link,
[lang="ku"] .nav-menu-item span {
    font-family: 'K24Kurdish', 'Poppins', sans-serif;
    font-size: 1.1rem;
}

[lang="ku"] .metallic-button,
[lang="ku"] .secondary-button,
[lang="ku"] .download-mini-button {
    font-family: 'K24Kurdish', 'Poppins', sans-serif;
    font-size: 1rem;
}

/* Responsive adjustments for Kurdish text */
@media (max-width: 768px) {
    [lang="ku"] .hero-title {
        font-size: 2.4rem;
    }

    [lang="ku"] .hero-description {
        font-size: 1.1rem;
    }

    [lang="ku"] .section-title,
    [lang="ku"] .feature-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    [lang="ku"] .hero-title {
        font-size: 2rem;
    }

    [lang="ku"] .hero-description {
        font-size: 1rem;
    }

    [lang="ku"] .section-title,
    [lang="ku"] .feature-title {
        font-size: 1.3rem;
    }
}

/* CSS Reset for better mobile rendering */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base styles */
body {
    background-color: #f8f8f8;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
    background-position: -10px -10px;
    position: relative;
    color: #333;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Updated to match site-header height */
}

/* Container dot patterns with different scales */
.hero, .features, .apps, .pricing, .reviews, .faq {
    position: relative;
    background-color: #ffffff;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.1) 1px, transparent 0);
    background-size: 15px 15px;
    background-position: center center;
    overflow: hidden;
}

/* Stat cards - removed dot pattern */
.stat-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(192, 160, 98, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: #333;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

/* Feature cards - removed dot pattern */
.feature-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(192, 160, 98, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: #333;
    padding: 2rem;
    border-radius: 0.75rem;
}

/* App cards dot pattern - enhanced */
.app-card {
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.08) 1px, transparent 0);
    background-size: 10px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Pricing Section */
.pricing {
    position: relative;
    background-color: #ffffff;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.12) 1.5px, transparent 0);
    background-size: 18px 18px;
    background-position: center center;
    padding: 0;
}

.pricing .container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card {
    max-width: 28rem;
    margin: 2rem auto;
    position: relative;
    background-color: #ffffff;
    border: 1px solid rgba(192, 160, 98, 0.2);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pricing-card-wrapper {
    background: linear-gradient(to bottom, var(--gold-500), var(--gold-600));
    padding: 1px;
    border-radius: 1rem;
}

.pricing-card-content {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
}

.popular-badge {
    background: linear-gradient(135deg, #c0a062 0%, #dfc08f 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-features {
    margin: 2rem 0;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.pricing-feature i {
    color: var(--gold-500);
}

.pricing-price {
    margin: 2rem 0;
    text-align: center;
}

.pricing-price .price {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-price .period {
    color: #666;
    font-size: 1.1rem;
}

.section-title {
    color: #333;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-description {
    color: #666;
}

/* Review cards dot pattern - enhanced */
.review-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid rgba(192, 160, 98, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    width: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(192, 160, 98, 0.4);
}

/* FAQ items dot pattern - enhanced */
.faq-item {
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.08) 1px, transparent 0);
    background-size: 10px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Subtle gradient overlays for depth */
.hero::after, .features::after, .apps::after, .pricing::after, .reviews::after, .faq::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.01) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Add a subtle shimmer effect to sections */
.hero::before, .features::before, .apps::before, .pricing::before, .reviews::before, .faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.01),
        transparent
    );
    animation: shimmer 8s infinite linear;
    pointer-events: none;
}

/* Language section */
.language-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.9);
}

.language-card {
    background: #ffffff;
    border: 1px solid rgba(192, 160, 98, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #333;
}

.language-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-500);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Language dropdown styling */
.lang-toggle {
    background: #ffffff;
    border: 1px solid rgba(192, 160, 98, 0.3);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.lang-menu {
    background: #ffffff;
    border: 1px solid rgba(192, 160, 98, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
    min-width: 150px;
}

.lang-option {
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.lang-option:hover {
    background: rgba(192, 160, 98, 0.1);
}

/* Mobile menu styling */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50vh;
    background: #000000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    /* Enhanced animation */
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    /* Enable hardware acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    transform-origin: top center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow-y: auto;
    /* Prevent paint during scroll */
    overscroll-behavior: contain;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Preload state to ensure smooth first animation */
.mobile-menu.preloaded {
    transition: none !important;
}

.mobile-menu.active {
    top: 0;
}

.mobile-menu .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    /* Prevent paint during animation */
    will-change: opacity;
}

/* Add improved styling for the mobile menu close button */
.mobile-menu-close {
    background: white !important;
    border: none;
    color: #000000 !important;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    /* Optimize button transitions */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    background: #f0f0f0 !important;
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
    overflow-y: auto;
    /* Optimize scrolling */
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Enhanced animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
    transition-delay: calc(var(--index) * 0.05s);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-600);
}

.mobile-menu-link i {
    font-size: 1.2rem;
    min-width: 24px;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--gold-500);
    border-left: 2px solid var(--gold-500);
    padding-left: 0.5rem;
}

.footer-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    padding-left: 0;
}

.footer-social a {
    color: #b0b0b0;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footer-social a:hover {
    color: var(--gold-500);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #999;
}

/* Footer company info section */
.footer-column:first-child {
    padding-right: 1rem;
}

.footer-column .logo {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.footer p {
    color: #b0b0b0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-left: 0;
    padding: 0;
}

/* Footer language selector styling - improved spacing */
.footer-language {
    margin: 1.5rem 0;
    padding-left: 0;
}

.footer-language .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: space-between;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.footer-language .lang-toggle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shimmerEffect 3.5s infinite linear;
    z-index: 1;
    pointer-events: none;
}

.footer-language .lang-toggle i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.footer-language .lang-toggle:hover i {
    transform: rotate(180deg);
}

.footer-language .lang-toggle span {
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 160, 98, 0.2);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(192, 160, 98, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(192, 160, 98, 0);
    }
}

@keyframes shimmerEffect {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }
    100% {
        transform: translateX(150%) rotate(45deg);
    }
}

/* Container for better footer layout */
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-column {
        padding: 0.5rem 0.25rem;
    }
    
    .footer-column h3 {
        margin-bottom: 1.25rem;
    }
    
    .footer .container {
        padding: 0 0.75rem;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(50%);
    }
}

/* Header styling - updated to be fixed */
.header {
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 60px;
}

/* Logo styling - updated with gold color */
.header .logo-icon {
    font-size: 1.2rem;
    color: #B7A369;
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 50%, #B7A369 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ensure header stays on top */
.header .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
}

/* Adjust mobile styles for fixed header */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    body {
        padding-top: 70px; /* Updated to match site-header mobile height */
    }
    
    .header .logo-icon {
        font-size: 1.1rem;
    }
    
    .header .metallic-gold {
        font-size: 1.1rem;
    }
}

/* Fix for iOS notch */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(0.5rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Nav styling */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.2rem;
    color: #ffffff;
}

.header .logo-icon {
    color: #ffffff;
}

.header .metallic-gold {
    font-size: 1.2rem;
}

.menu-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu-button:hover {
    color: var(--gold-600);
}

/* Update text colors for better contrast */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

p {
    color: #666;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 1.5rem auto;
    color: #666;
    text-align: center;
}

.section-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.app-title, .feature-title, .review-name, .faq-question span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.metallic-gold {
    background: linear-gradient(135deg, #c0a062 0%, #dfc08f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

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

.lang-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.language-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold-500);
}

.language-card p {
    color: var(--gray-400);
    margin: 0;
}

.active-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-500);
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[dir="rtl"] .active-badge {
    left: 1rem;
    right: auto;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-dropdown {
    position: relative;
}

.lang-toggle:hover {
    border-color: var(--gold-500);
}

.lang-menu.show {
    display: block;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .features-grid,
[dir="rtl"] .apps-scroll,
[dir="rtl"] .pricing-features {
    text-align: right;
}

[dir="rtl"] .stat-card,
[dir="rtl"] .feature-card,
[dir="rtl"] .app-card {
    text-align: right;
}

[dir="rtl"] .scroll-button.left {
    left: auto;
    right: -30px;
}

[dir="rtl"] .scroll-button.right {
    right: auto;
    left: -30px;
}

.footer-column h3 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-link:hover {
    color: var(--gold-500);
}

.footer-social a {
    color: #b0b0b0;
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--gold-500);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #999;
}

/* Update logo colors in footer */
.footer .logo {
    color: #ffffff;
}

.footer .logo-icon {
    color: #ffffff;
}

.footer .metallic-gold {
    background: linear-gradient(135deg, #c0a062 0%, #dfc08f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer p {
    color: #b0b0b0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Side Navigation */
.side-nav {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 900;
}

.side-nav-item {
    background: #ffffff;
    border: 1px solid rgba(192, 160, 98, 0.2);
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.side-nav-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #333;
    border: 1px solid rgba(192, 160, 98, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.side-nav-item:hover {
    background: rgba(192, 160, 98, 0.1);
    color: var(--gold-500);
}

.side-nav-item:hover .side-nav-tooltip {
    opacity: 1;
}

/* Hide side navigation on mobile */
@media (max-width: 768px) {
    .side-nav {
        display: none;
    }
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
}

/* Modal styling */
.modal-content {
    background: #ffffff;
    color: #333;
}

/* Update text colors */
.stat-number {
    color: #333;
}

.stat-label {
    color: #666;
}

.feature-description {
    color: #666;
}

.app-description {
    color: #666;
}

/* Badge colors */
.badge-gold {
    background: rgba(192, 160, 98, 0.2);
    color: var(--gold-700);
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-orange {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

/* Shimmer effect adjustment */
.hero::before, .features::before, .apps::before, .pricing::before, .reviews::before, .faq::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.01),
        transparent
    );
}

/* Gradient overlays */
.hero::after, .features::after, .apps::after, .pricing::after, .reviews::after, .faq::before {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.01) 0%, rgba(255,255,255,0) 100%);
}

/* Apps section gradients */
.apps::after {
    background: linear-gradient(to right, transparent, #ffffff);
}

.apps::before {
    background: linear-gradient(to left, transparent, #ffffff);
}

/* Secondary button */
.secondary-button {
    border: 1px solid rgba(192, 160, 98, 0.3);
    color: #666;
    background: #ffffff;
}

.secondary-button:hover {
    background: rgba(192, 160, 98, 0.1);
    color: #333;
}

/* Footer language selector styling */
.footer-language {
    margin: 1rem 0;
}

.footer-language .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: space-between;
}

.footer-language .lang-menu {
    position: absolute;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
    min-width: 150px;
}

.footer-language .lang-option {
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: block;
    text-decoration: none;
}

.footer-language .lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-500);
}

.footer-language .lang-toggle:hover {
    border-color: var(--gold-500);
    background: rgba(255, 255, 255, 0.15);
}

/* Add menu button styling */
.menu-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu-button:hover {
    color: var(--gold-600);
}

/* Metallic Button Styling */
.metallic-button {
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 25%, #B7A369 50%, #E5D5A7 75%, #B7A369 100%);
    background-size: 200% 200%;
    color: #000;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(183, 163, 105, 0.2);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    animation: gradientShift 8s ease infinite;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.metallic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s ease;
}

.metallic-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 163, 105, 0.3);
    background-position: right center;
}

.metallic-button:hover::before {
    left: 100%;
}

.metallic-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(183, 163, 105, 0.2);
}

.metallic-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.metallic-button:hover i {
    transform: translateY(-2px);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Full width variant */
.metallic-button.full-width {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem;
    height: auto !important;
    line-height: normal !important;
}

/* Mobile menu download button special styling */
.mobile-menu .metallic-button {
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 50%, #B7A369 100%);
    color: #000;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* Hero section download button special styling */
.hero-buttons .metallic-button {
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
    letter-spacing: 0.5px;
}

/* New apps grid styling - more compact */
.apps-grid-container {
    margin-top: 1.5rem; /* Reduced from 2rem */
    margin-bottom: 1.5rem; /* Added to reduce space */
}

.apps-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.apps-grid-title {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    font-weight: 600;
    color: #333;
    margin: 0;
}

.see-all-button {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced from 0.5rem */
    color: var(--gold-500);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Added to make more compact */
}

.see-all-button:hover {
    transform: translateX(3px);
}

.apps-grid-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Reduced from 1rem */
}

/* More compact app rows */
.apps-row {
    display: flex;
    overflow-x: auto;
    gap: 0.6rem; /* Reduced from 0.75rem */
    padding: 0.2rem 0; /* Reduced from 0.25rem 0 */
    margin-bottom: 0.6rem; /* Reduced space between rows */
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    height: auto; /* Allow height to adjust to content */
}

.apps-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Reduced height app cards */
.app-item {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.7rem;
    transition: all 0.3s ease;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #000000;
    background-color: #ffffff;
}

.app-icon {
    font-size: 1.7rem; /* Reduced from 2rem */
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    display: block;
}

.app-item h4 {
    font-size: 0.9rem; /* Reduced from 1rem */
    margin: 0.3rem 0; /* Reduced from 0.5rem */
    color: #333;
}

.app-item p {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.3rem; /* Reduced from 0.4rem */
    line-height: 1.2; /* Added for more compact text */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    box-orient: vertical; /* Standard property */
    overflow: hidden;
    height: 2em; /* Fixed height for description */
}

/* Adjust badges and download button to be more compact */
.app-badges {
    display: flex;
    gap: 0.3rem; /* Reduced from whatever it was before */
    margin-bottom: 0.3rem; /* Reduced margin */
    flex-wrap: wrap;
}

.badge {
    font-size: 0.65rem; /* Smaller badges */
    padding: 0.1rem 0.3rem; /* More compact badges */
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.download-mini-button {
    padding: 0.25rem 0.5rem; /* More compact button */
    font-size: 0.75rem; /* Smaller text */
    border-radius: 6px; /* Slightly smaller radius */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 25%, #B7A369 50%, #E5D5A7 75%, #B7A369 100%);
    background-size: 200% 200%;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.row-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.row-control-button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(192, 160, 98, 0.3);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.row-control-button:hover {
    background: rgba(192, 160, 98, 0.1);
    color: var(--gold-500);
}

.row-control-left {
    transform: translateX(-20px);
}

.row-control-right {
    transform: translateX(20px);
}

.download-mini-button {
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 50%, #B7A369 100%);
    color: #000;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(183, 163, 105, 0.2);
    transition: all 0.3s ease;
}

.download-mini-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(183, 163, 105, 0.3);
}

.app-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

/* Enhanced Mobile Optimization */
@media (max-width: 768px) {
    /* General mobile adjustments */
    section {
        padding: 3rem 1rem;
    }
    
    h1.hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h2.section-title {
        font-size: 1.8rem;
    }
    
    p.hero-description {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Hero section */
    .hero-content {
        padding: 2rem 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .metallic-button,
    .hero-buttons .secondary-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Apps Grid Optimization */
    .apps-grid-container {
        margin-top: 1.5rem;
    }
    
    .apps-grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .see-all-button {
        margin-bottom: 0.5rem;
    }
    
    .apps-row {
        padding: 0.25rem 0;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-snap-type: x mandatory; /* Snap scrolling */
    }
    
    .app-item {
        width: 160px; /* Slightly smaller cards on mobile */
        padding: 0.75rem;
        scroll-snap-align: start; /* Snap scrolling */
    }
    
    .app-item h4 {
        font-size: 0.9rem;
    }
    
    .app-item p {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        height: 2.1em;
    }
    
    /* Row controls positioning */
    .row-controls {
        display: none; /* Hide controls on small screens, use touch scrolling instead */
    }
    
    /* Pricing section */
    .pricing-card {
        margin: 0 0.5rem;
    }
    
    .pricing-card-content {
        padding: 1.5rem 1rem;
    }
    
    .pricing-price .price {
        font-size: 2.5rem;
    }
    
    /* Reviews section */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    /* FAQ section */
    .faq-item {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    /* Footer mobile adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-column {
        padding: 0.5rem 0.5rem 1rem;
        margin-bottom: 0;
    }
    
    .footer-column:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Small phones optimization */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .app-item {
        width: 140px;
    }
    
    .metallic-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .download-mini-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .app-badges {
        flex-wrap: nowrap;
        overflow-x: hidden;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Touch-specific improvements */
@media (pointer: coarse) {
    /* Increase tap target sizes */
    .mobile-menu-link, 
    .footer-link, 
    .lang-option,
    .metallic-button,
    .download-mini-button {
        padding: 0.8rem 1rem;
        min-height: 44px; /* Minimum height for touch targets */
    }
    
    /* Ensure mobile-menu-close is large enough for finger touch */
    .mobile-menu-close {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    .footer-link {
        margin-bottom: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .footer-social a {
        width: 44px;
        height: 44px;
    }
    
    .lang-toggle {
        padding: 0.8rem 1rem;
        min-height: 44px;
    }
    
    /* Show scrolling indicators for horizontal scrolling areas */
    .apps-row::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
    }
}

/* Improved fixed header for mobile */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    body {
        padding-top: 70px; /* Updated to match site-header mobile height */
    }
    
    .header .logo-icon {
        font-size: 1.1rem;
    }
    
    .header .metallic-gold {
        font-size: 1.1rem;
    }
    
    .menu-button {
        padding: 0.8rem;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Additional Mobile Menu Improvements */
@media (max-width: 768px) {
    .mobile-menu {
        height: 70vh; /* Increase height on mobile */
    }
    
    .mobile-menu-link {
        font-size: 1rem;
        padding: 1rem 0.75rem;
    }
    
    .mobile-menu-header {
        padding: 0.75rem 0;
    }
    
    .mobile-menu-content {
        padding: 0.5rem 0.5rem 2rem;
    }
    
    .mobile-menu .metallic-button {
        margin-top: 1.5rem;
    }
}

/* Fix for iOS safari notch and bottom bar */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(0.5rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .mobile-menu {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* New Float CTA for mobile */
.mobile-float-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-float-cta {
        display: flex;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 900;
        width: 90%;
        max-width: 300px;
    }
    
    .mobile-float-cta .metallic-button {
        width: 100%;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        border-radius: 50px;
        padding: 0.8rem 1.5rem;
    }
    
    /* Add safe area padding */
    @supports (padding: max(0px)) {
        .mobile-float-cta {
            bottom: max(1rem, calc(1rem + env(safe-area-inset-bottom)));
        }
    }
}

/* Fix Apps Grid on Mobile */
@media (max-width: 768px) {
    /* Make app grid touch-friendly */
    .apps-grid-rows {
        gap: 1rem;
    }
    
    /* Show scrolling hint */
    .apps-row {
        position: relative;
        padding-bottom: 4px; /* Space for scroll indicator */
    }
    
    .apps-row::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 20%;
        height: 4px;
        background: var(--gold-500);
        border-radius: 2px;
        opacity: 0.7;
        animation: scrollIndicator 2s infinite;
    }
    
    @keyframes scrollIndicator {
        0% { transform: translateX(0); }
        50% { transform: translateX(400%); }
        100% { transform: translateX(0); }
    }
}

/* Touch active states for better feedback */
.touch-active {
    transform: scale(0.98);
    opacity: 0.9;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* App item touch states */
.app-item:active {
    transform: translateY(-2px) scale(0.98);
}

/* Section animation for intersection observer */
section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section:not(.in-view) {
    opacity: 0.8;
    transform: translateY(20px);
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Better mobile top/bottom safe areas for notched phones */
@media (max-width: 768px) {
    /* Improve section spacing on mobile */
    section {
        padding: 3rem 1rem;
    }
    
    section:first-of-type {
        padding-top: calc(2rem + env(safe-area-inset-top, 0px));
    }
    
    .footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Container for main app icon - fixing centering issues */
.app-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.app-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 20%;
}

/* Hero content container width fix */
.hero-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 2rem 1rem;
    margin: 0 auto;
}

/* Ensure all containers respect viewport width */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Fix for mobile view - prevent horizontal scrolling */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
}

/* Ensure all elements respect container width */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Restrict width for containers to prevent overflow */
.container, section, .hero-content, .features-grid,
.pricing-cards, .testimonials-slider, .faq-container,
.footer-grid, .mobile-menu, .app-card, .apps-grid-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Enhanced mobile-specific fixes */
@media (max-width: 768px) {
    /* Fix icon container on mobile */
    .app-logo-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 auto 1.5rem;
    }
    
    .app-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    /* Fix hero section padding */
    .hero-content {
        padding: 1.5rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure buttons fit within container */
    .hero-buttons {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .hero-buttons .metallic-button,
    .hero-buttons .secondary-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Ensure app grid respects boundaries */
    .apps-grid-container {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
        margin-top: 2rem;
        box-sizing: border-box;
    }
    
    /* Stats grid adjustment */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0 0.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .stat-card {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Fix section width constraints */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure content stays within boundaries */
    .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix text overflow in cards */
    .app-item h4, 
    .feature-card h3,
    .pricing-feature span {
        word-break: break-word;
        hyphens: auto;
    }
}

/* Fix for mobile scaling and alignment issues */
@media (max-width: 480px) {
    /* Adjust icon and title area for smaller phones */
    .app-logo-container {
        max-width: 90%;
        margin: 0 auto 1rem;
    }
    
    .app-logo {
        width: 80px;
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        text-align: center;
        margin: 0.5rem auto;
        max-width: 90%;
        word-break: break-word;
    }
    
    .hero-description {
        font-size: 0.9rem;
        text-align: center;
        margin: 0.5rem auto 1rem;
        max-width: 90%;
    }
    
    /* Fix button layout for smaller screens */
    .hero-buttons {
        padding: 0;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .metallic-button, .secondary-button {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    /* Fix app grid for smaller screens */
    .apps-grid-container {
        padding: 0 0.25rem;
    }
    
    .apps-grid-title {
        font-size: 1.3rem;
    }
    
    .see-all-button {
        font-size: 0.8rem;
    }
    
    .app-item {
        width: 130px;
        padding: 0.6rem;
    }
    
    /* Adjust stats grid for smaller phones */
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix element sizing to prevent zoom issues */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .app-item {
        width: 120px;
    }
    
    .app-item h4 {
        font-size: 0.85rem;
    }
    
    .app-icon {
        font-size: 1.6rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }
    
    .download-mini-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Updated app logo - smaller size */
.app-logo {
    max-width: 90px; /* Reduced from 120px */
    height: auto;
    object-fit: contain;
    border-radius: 20%;
}

.app-logo-container {
    margin: 0 auto 1rem; /* Reduced from 1.5rem */
}

/* Smaller app cards */
.app-item {
    flex: 0 0 auto;
    width: 150px; /* Reduced from 180px */
    padding: 0.75rem; /* Reduced from 1rem */
    transition: all 0.3s ease;
}

.app-icon {
    font-size: 1.75rem; /* Reduced from 2rem */
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
}

.app-item h4 {
    font-size: 0.9rem; /* Reduced from 1rem */
    margin: 0.4rem 0; /* Reduced from 0.5rem */
}

.badge {
    font-size: 0.65rem; /* Reduced from 0.7rem */
    padding: 0.15rem 0.4rem; /* Reduced from 0.2rem 0.5rem */
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .app-logo {
        width: 80px; /* Reduced from 100px */
        height: 80px; /* Reduced from 100px */
    }
    
    .app-item {
        width: 130px; /* Reduced from 160px */
        padding: 0.6rem; /* Reduced from 0.75rem */
    }
    
    .app-icon {
        font-size: 1.5rem;
    }
    
    .download-mini-button {
        padding: 0.3rem 0.6rem; /* Reduced from 0.4rem 0.7rem */
        font-size: 0.75rem; /* Reduced from 0.8rem */
    }
}

/* Even smaller for very small screens */
@media (max-width: 480px) {
    .app-logo {
        width: 70px; /* Reduced from 80px */
        height: 70px; /* Reduced from 80px */
    }
    
    .app-item {
        width: 110px; /* Reduced from 130px */
        padding: 0.5rem; /* Reduced from 0.6rem */
    }
    
    .app-icon {
        font-size: 1.4rem; /* Reduced from 1.6rem */
    }
}

@media (max-width: 375px) {
    .app-logo {
        width: 60px; /* Reduced from 80px */
        height: 60px;
    }
    
    .app-item {
        width: 100px; /* Reduced from 120px */
        padding: 0.5rem 0.4rem; /* Even smaller padding */
    }
    
    .app-icon {
        font-size: 1.3rem; /* Reduced from 1.6rem */
    }
}

/* Download mini button adjustments */
.download-mini-button {
    padding: 0.35rem 0.6rem; /* Reduced from 0.4rem 0.7rem */
    font-size: 0.75rem; /* Reduced from 0.8rem */
    gap: 0.25rem; /* Reduced from 0.3rem */
    border-radius: 5px; /* Reduced from 6px */
}

.download-mini-button i {
    font-size: 0.75rem; /* Explicit size for icon */
}

/* Improve app item spacing on mobile */
@media (max-width: 480px) {
    .app-badges {
        margin-bottom: 0.4rem;
    }
    
    .app-item p {
        margin-bottom: 0.3rem;
        -webkit-line-clampp: 2;
    }
    
    .download-mini-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .download-mini-button i {
        font-size: 0.7rem;
    }
}

/* Make sure content fits on very small screens */
@media (max-width: 360px) {
    .app-item {
        width: 95px;
        padding: 0.4rem 0.3rem;
    }
    
    .app-icon {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .app-item h4 {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }
    
    .app-item p {
        font-size: 0.65rem;
        height: 2em;
        margin-bottom: 0.25rem;
    }
    
    .app-badges {
        gap: 0.2rem;
        margin-bottom: 0.3rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .download-mini-button {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
}

/* Updated app logo styling - without container */
.app-logo {
    display: block;
    max-width: 90px;
    height: auto;
    object-fit: contain;
    border-radius: 20%;
    margin: 0 auto 1rem;
}

/* Remove container reference */
.app-logo-container {
    display: none;
}

/* Update media queries for app logo */
@media (max-width: 768px) {
    .app-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
}

@media (max-width: 480px) {
    .app-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto 0.75rem;
    }
}

@media (max-width: 375px) {
    .app-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 0.75rem;
    }
}

/* Improved chatbot button positioning */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 25%, #B7A369 50%, #E5D5A7 75%, #B7A369 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #000;
    border-radius: 30px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Extremely high z-index */
    transition: all 0.3s ease;
    border: none;
    transform: none !important; /* Prevent any transforms */
}

/* Improved chatbot dialog positioning */
.chatbot-dialog {
    position: fixed;
    bottom: 100px; /* Fixed distance from bottom */
    right: 30px;
    width: 320px;
    max-width: 90vw; /* Prevent overflow on small screens */
    height: 400px;
    max-height: 70vh; /* Prevent overflow on small screens */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998; /* Just below the button */
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Typing animation styles */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    border-bottom-left-radius: 0;
    background: #e9e9e9;
    color: #333;
    margin-bottom: 0.5rem;
    max-width: 80%;
    align-self: flex-start;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #888;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: typingBounce 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-4px);
    }
}

/* Typing text animation */
.typing-text {
    overflow: hidden;
    white-space: pre-wrap;
    border-right: 2px solid transparent;
}

.typing-active {
    border-right: 2px solid #B7A369;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    from, to { border-color: transparent; }
    50% { border-color: #B7A369; }
}

/* Chatbot button hover states */
.chatbot-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.chatbot-button:active {
    transform: translateY(-1px);
}

.chatbot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-text {
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Chatbot dialog states */
.chatbot-dialog.active {
    transform: scale(1);
    opacity: 1;
}

.chatbot-header {
    background: linear-gradient(135deg, #B7A369 0%, #DFC08F 100%);
    color: #000;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f9f9f9;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.bot {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #B7A369 0%, #DFC08F 100%);
    color: #000;
    border-bottom-right-radius: 0;
}

.chat-message.bot .message-content {
    background: #e9e9e9;
    color: #333;
    border-bottom-left-radius: 0;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #e0e0e0;
    padding: 0.75rem;
    background: #fff;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    outline: none;
    font-size: 16px; /* Minimum font size to prevent mobile zoom */
}

.chatbot-input button {
    background: linear-gradient(135deg, #B7A369 0%, #DFC08F 100%);
    color: #000;
    border: none;
    margin-left: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Responsive adjustments for chatbot */
@media (max-width: 768px) {
    .chatbot-button {
        bottom: 15px;
        right: 15px;
        padding: 0.6rem 1rem;
    }
    
    .chatbot-dialog {
        bottom: 80px;
        right: 15px;
        width: calc(100% - 30px);
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .chatbot-dialog {
        height: 350px;
    }
    
    .chatbot-text {
        font-size: 0.85rem;
    }
}

/* Safari notch fix */
@supports (padding: max(0px)) {
    .chatbot-button {
        bottom: max(20px, env(safe-area-inset-bottom) + 10px);
        right: max(20px, env(safe-area-inset-right));
    }
    
    .chatbot-dialog {
        bottom: max(90px, env(safe-area-inset-bottom) + 80px);
        right: max(20px, env(safe-area-inset-right));
    }
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Fixed width containers */
.container, section, .hero-content, .features-grid, .apps-grid-container, .pricing-card, .reviews-grid, .faq-list {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Enhanced Chatbot Styling */
.chatbot-dialog-header {
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 25%, #B7A369 50%, #E5D5A7 75%, #B7A369 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chatbot-title {
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.chatbot-title img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chatbot-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f8f8f8;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    background-size: 20px 20px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
    animation: messageAppear 0.3s forwards;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #007AFF, #00C6FF);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.bot-message {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    margin-right: auto;
    display: flex;
    gap: 8px;
}

.bot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    flex-shrink: 0;
}

.bot-avatar img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.message p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-input {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.chat-input input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    border-radius: 18px;
    background: #f0f0f0;
    transition: all 0.3s ease;
    font-size: 16px; /* Minimum font size to prevent mobile zoom */
}

.chat-input input:focus {
    outline: none;
    background: #e8e8e8;
    box-shadow: 0 0 0 2px rgba(183, 163, 105, 0.3);
}

.chat-input button {
    border: none;
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 100%);
    color: #000;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-input button i {
    font-size: 1rem;
}

/* Square app cards with equal width/height */
.app-item {
    flex: 0 0 auto;
    width: 160px; /* Reduced width */
    height: 160px; /* Set fixed height to match width */
    background: #ffffff;
    border: 1px solid rgba(192, 160, 98, 0.2);
    border-radius: 10px; 
    padding: 0.7rem;
    transition: all 0.3s ease;
    position: relative;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
    background-size: 12px 12px;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
}

.app-icon {
    font-size: 1.7rem;
    margin-bottom: 0.2rem; /* Reduced */
    display: block;
    text-align: center; /* Center icon */
}

.app-item h4 {
    font-size: 0.9rem;
    margin: 0.2rem 0; /* Reduced */
    color: #333;
    text-align: center; /* Center title */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-item p {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.2rem; /* Reduced */
    line-height: 1.2;
    display: -webkit-box;
    display: box; /* Standard property */
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    box-orient: vertical; /* Standard property */
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2em; /* Fixed height for description */
}

/* Condense the bottom elements */
.app-badges {
    display: flex;
    justify-content: center; /* Center badges */
    gap: 0.3rem;
    margin-bottom: 0.2rem; /* Reduced */
    flex-wrap: wrap;
}

.download-mini-button {
    padding: 0.2rem 0.4rem; /* Reduced */
    font-size: 0.7rem; /* Smaller */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem; /* Reduced */
    margin-top: 0.2rem; /* Reduced */
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 25%, #B7A369 50%, #E5D5A7 75%, #B7A369 100%);
    background-size: 200% 200%;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    width: 100%; /* Make button fill width */
}

/* Improve app row scrolling */
.apps-row {
    display: flex;
    overflow-x: auto;
    gap: 0.6rem;
    padding: 0.2rem 0;
    margin-bottom: 0.6rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    height: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory; /* Enable scroll snapping */
}

/* Apply scroll snap to app items */
.app-item {
    scroll-snap-align: start; /* Snap alignment */
}

/* Improved scroll buttons */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(183, 163, 105, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: rgba(183, 163, 105, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-button.prev {
    left: 0;
}

.scroll-button.next {
    right: 0;
}

/* Enhanced Fixed Chatbot Styling */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #B7A369 0%, #E5D5A7 25%, #B7A369 50%, #E5D5A7 75%, #B7A369 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #000;
    border-radius: 30px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Extremely high z-index */
    transition: all 0.3s ease;
    border: none;
    transform: none !important; /* Prevent transforms that could break layout */
    will-change: auto; /* Reset will-change to prevent issues */
    -webkit-transform: none !important; /* Ensure no transform on webkit */
    -webkit-backface-visibility: visible; /* Reset backface visibility */
    backface-visibility: visible; /* Reset backface visibility */
}

/* Improved chatbot dialog positioning with enhanced stability */
.chatbot-dialog {
    position: fixed;
    bottom: 100px; /* Fixed distance from bottom */
    right: 30px;
    width: 320px;
    max-width: 90vw; /* Prevent overflow on small screens */
    height: 400px;
    max-height: 70vh; /* Prevent overflow on small screens */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998; /* Just below the button */
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    will-change: auto; /* Reset will-change to prevent issues */
    -webkit-transform: scale(0); /* Ensure same transform on webkit */
    -webkit-backface-visibility: visible; /* Reset backface visibility */
    backface-visibility: visible; /* Reset backface visibility */
}

.app-item p {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    display: -webkit-box;
    display: box; /* Standard property */
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    box-orient: vertical; /* Standard property */
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2em; /* Fixed height for description */
}

/* Update other instances of line-clamp */
.app-description {
    display: -webkit-box;
    display: box; /* Standard property */
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    box-orient: vertical; /* Standard property */
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-description {
    display: -webkit-box;
    display: box; /* Standard property */
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property */
    -webkit-box-orient: vertical;
    box-orient: vertical; /* Standard property */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add fallback for browsers that don't support line-clamp */
@supports not ((-webkit-line-clamp: 2) or (line-clamp: 2)) {
    .app-item p,
    .app-description,
    .feature-description {
        display: block;
        max-height: 2.4em;
        position: relative;
        overflow: hidden;
    }

    .app-item p::after,
    .app-description::after,
    .feature-description::after {
        content: "...";
        position: absolute;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, transparent, white 50%);
        padding-left: 1em;
    }
}

/* App item description */
.app-item p {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2em;
}

/* Media query styles */
@media (max-width: 768px) {
    .app-item p {
        font-size: 0.7rem;
        display: -webkit-box;
        display: box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.1em;
    }
}

/* Change gold colors to black */
:root {
    --gold-100: rgba(0, 0, 0, 0.1);
    --gold-200: rgba(0, 0, 0, 0.2);
    --gold-300: rgba(0, 0, 0, 0.3);
    --gold-400: rgba(0, 0, 0, 0.4);
    --gold-500: #000000;
    --gold-600: #000000;
    --gold-700: #000000;
}

/* Update metallic gradients to black */
.metallic-button,
.download-button,
.chatbot-button,
.download-mini-button {
    background: linear-gradient(135deg, #000000 0%, #333333 25%, #000000 50%, #333333 75%, #000000 100%);
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Update gold text to black */
.metallic-gold,
.app-title span,
.price-amount,
.see-all-button,
.feature-title {
    color: #000000;
}

/* Update gold borders */
.app-item,
.feature-card,
.pricing-card,
.review-card {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Update hover states */
.app-item:hover,
.feature-card:hover,
.pricing-card:hover {
    border-color: #000000;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Update badges */
.badge-gold {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
}

/* Update active states */
.metallic-button:active,
.download-button:active,
.chatbot-button:active {
    background: #000000;
}

/* Update focus states */
.metallic-button:focus,
.download-button:focus,
.chatbot-button:focus {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Update link hover colors */
a:hover {
    color: #000000;
}

/* Update header and navigation */
.header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.nav-link:hover {
    color: #000000;
}

/* Update mobile menu */
.mobile-menu {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.mobile-menu-link:hover {
    color: #000000;
}

/* Update footer */
.footer-link:hover {
    color: #000000;
}

/* Update scroll buttons */
.scroll-button {
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.scroll-button:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Update animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Update pricing cards */
.pricing-card.featured {
    border: 2px solid #000000;
}

.price-tag {
    color: #000000;
}

/* Update review cards */
.review-rating {
    color: #000000;
}

/* Update FAQ section */
.faq-question:hover {
    color: #000000;
}

/* Update buttons and CTAs */
.cta-button,
.hero-button {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
}

/* Update form elements */
input:focus,
textarea:focus {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* App scrolling container - free-flowing scrolling */
.apps-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1.5rem 0.5rem;
    margin: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    /* Remove mandatory snap to make scrolling free */
    scroll-snap-type: none; 
    max-width: 100%;
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
}

.apps-container:active {
    cursor: grabbing;
}

.apps-container::-webkit-scrollbar {
    height: 0;
    width: 0;
    display: none;
}

/* App item styling - non-clickable icons only */
.app-item {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Remove scroll snap align to allow free scrolling */
    scroll-snap-align: none;
    overflow: hidden;
    pointer-events: none; /* Disable clicks */
    cursor: default;
    user-select: none;
}

.app-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #000000;
}

.app-item img, 
.app-item i.app-icon, 
.app-item i.fab, 
.app-item i.fas {
    width: auto;
    height: auto;
    font-size: 2rem;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
    pointer-events: none; /* Ensure these aren't clickable either */
}

/* Hide all text elements and clickable elements in app items */
.app-item h4,
.app-item p,
.app-item .app-badges,
.app-item .badge,
.app-item .download-mini-button,
.app-item a,
.app-item span,
.app-item .app-name,
.app-item .app-developer,
.app-item .app-description,
.app-item button,
.app-item input {
    display: none !important;
}

/* Navigation arrows for app scrolling - enhanced */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.scroll-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.scroll-left {
    left: 8px;
}

.scroll-right {
    right: 8px;
}

/* App scrolling container - native-like smooth scrolling */
.apps-container {
    display: flex;
    overflow-x: scroll;
    gap: 0.8rem;
    padding: 1.2rem 0.5rem;
    margin: 1rem 0;
    -webkit-overflow-scrolling: touch; /* Enable momentum scrolling on iOS */
    /* overflow-scrolling: touch; Future standard */
    scrollbar-width: none; /* Firefox */
    max-width: 100%;
    -ms-overflow-style: none; /* IE/Edge */
    scroll-padding: 0.5rem;
    will-change: scroll-position; /* Optimize for scrolling */
}

.apps-container::-webkit-scrollbar {
    height: 0;
    width: 0;
    display: none;
}

/* App item styling - optimized for smooth scrolling */
.app-item {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    pointer-events: none; /* Disable clicks */
    user-select: none;
    will-change: transform; /* Optimize for animation */
    contain: layout style paint; /* Performance optimization */
}

.app-item img, 
.app-item i.app-icon, 
.app-item i.fab, 
.app-item i.fas {
    width: auto;
    height: auto;
    font-size: 2rem;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
    pointer-events: none; /* Ensure these aren't clickable either */
}

/* Hide all text elements and clickable elements in app items */
.app-item h4,
.app-item p,
.app-item .app-badges,
.app-item .badge,
.app-item .download-mini-button,
.app-item a,
.app-item span,
.app-item .app-name,
.app-item .app-developer,
.app-item .app-description,
.app-item button,
.app-item input {
    display: none !important;
}

/* Navigation arrows for app scrolling - enhanced */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transition: opacity 0.2s ease;
    will-change: transform, opacity; /* Optimization */
}

.scroll-arrow:hover {
    opacity: 1;
}

.scroll-left {
    left: 8px;
}

.scroll-right {
    right: 8px;
}

/* App scrolling container - ultra-fast scrolling */
.apps-container {
    display: flex;
    overflow-x: scroll;
    gap: 0.8rem;
    padding: 1.2rem 0.5rem;
    margin: 1rem 0;
    /* Speed optimizations */
    scroll-behavior: auto !important; 
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: scroll-position;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    /* Remove transitions/animations that can slow down scrolling */
    transition: none !important;
    animation: none !important;
}

/* App item styling - optimized for speed */
.app-item {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    /* Performance optimizations */
    will-change: transform;
    contain: strict;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: none !important;
    animation: none !important;
}

/* Remove hover effects for maximum speed */
.app-item:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Popular Apps Section */
.popular-apps-section {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
    position: relative;
}

.popular-apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.popular-apps-header .section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
}

.see-all-link {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
        gap: 0.5rem;
    }
    
.see-all-link i {
        font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.see-all-link:hover i {
    transform: translateX(3px);
}

.apps-row-container {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
}

#popularAppsRow1, #popularAppsRow2 {
    gap: 0.75rem;
}

/* Ensure the app items remain small and efficient */
.popular-apps-section .app-item {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    transition: none !important;
    contain: strict;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .popular-apps-section {
        padding: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .popular-apps-header .section-title {
        font-size: 1.1rem;
    }
    
    .apps-row-container {
        margin-bottom: 0.75rem;
    }
    
    .popular-apps-section .app-item {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .popular-apps-section .app-item {
        width: 55px;
        height: 55px;
    }
    
    #popularAppsRow1, #popularAppsRow2 {
        gap: 0.6rem;
    }
}

/* Clean, simplified apps container with native scrolling */
.apps-container {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 1.2rem 0.5rem;
    margin: 1rem 0;
    /* Native scrolling optimizations */
    -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* Important for smoothness */
    scroll-behavior: auto;
}

.apps-container::-webkit-scrollbar {
    display: none;
}

/* Simplified app item styling */
.app-item {
    flex: 0 0 auto;
    min-width: 65px;
    min-height: 65px;
    width: 65px;
    height: 65px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.app-item img, 
.app-item i.app-icon, 
.app-item i.fab, 
.app-item i.fas {
    font-size: 2rem;
    color: inherit;
}

/* Simplified scroll arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 10;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.scroll-left {
    left: 8px;
}

.scroll-right {
    right: 8px;
}

/* Fix for all webkit-line-clamp instances to use standard properties */
@supports (display: -webkit-box) or (display: box) {
    .app-item p, 
    .app-description, 
    .card-text,
    .review-text,
    .faq-answer {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        display: -webkit-box;
        display: box;
        overflow: hidden;
    }
}

/* Support for 3-line clamp */
.app-description.large {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.pricing .section-title {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing .section-description {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reviews {
    position: relative;
    background-color: #ffffff;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.1) 1px, transparent 0);
    background-size: 15px 15px;
    background-position: center center;
    padding: 0;
}

.reviews .container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reviews .section-title {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reviews .section-description {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 1200px;
}

.typing-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-active::after {
    content: '|';
    display: inline-block;
    width: 0.5em;
    margin-left: 2px;
    animation: cursor-blink 0.7s infinite;
    font-weight: bold;
    color: #333;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    background: #e9e9e9;
    border-radius: 15px;
    border-bottom-left-radius: 0;
    width: fit-content;
    margin-top: 6px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #888;
    display: inline-block;
    animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); }
    40% { transform: scale(1); }
}

.hero-icon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-icon .main-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-icon .main-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Add styles for the new container */
.description-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px 24px;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.description-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Improve hero section spacing */
.hero-description {
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Add proper spacing before the buttons */
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Full-screen width cover styling */
.cover-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Make it full screen width */
    margin: 0 auto 70px;
}

.hero-cover {
    position: relative;
    width: 100%;
    height: 380px; /* Increased height for better impact */
    overflow: hidden;
    border-radius: 0; /* Remove border radius for full-width look */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Center the image */
}

.hero-icon {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px; /* Slightly larger icon */
    height: 140px;
    z-index: 10;
}

.icon-background {
    position: absolute;
    width: 150px;
    height: 150px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-icon .main-icon {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Content positioning to accommodate full-width cover */
.hero-content {
    position: relative;
    padding-top: 0; /* Remove top padding */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-cover {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .cover-container {
        margin-bottom: 65px;
    }
    
    .hero-cover {
        height: 240px;
    }
    
    .hero-icon {
        width: 120px;
        height: 120px;
        bottom: -55px;
    }
    
    .icon-background {
        width: 130px;
        height: 130px;
    }
    
    .hero-icon .main-icon {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .cover-container {
        margin-bottom: 60px;
    }
    
    .hero-cover {
        height: 180px;
    }
    
    .hero-icon {
        width: 100px;
        height: 100px;
        bottom: -45px;
    }
    
    .icon-background {
        width: 110px;
        height: 110px;
    }
    
    .hero-icon .main-icon {
        width: 90px;
        height: 90px;
        border-radius: 20px;
    }
}

/* Ensure the content below has proper spacing */
.hero .hero-description {
    margin-top: 80px; /* Add space below the profile icon */
    margin-bottom: 1.5rem;
}

/* Adjust cover height for larger screens only */
@media (min-width: 1201px) {
    .hero-cover {
        height: 400px; /* Increased height for desktop */
        max-height: 35vh; /* Increased height percentage */
    }
    
    .cover-image {
        object-fit: contain; /* Change to contain to show full image */
        background-color: #f5f5f5; /* Light background behind image */
    }
    
    /* Add max-width container but keep it wide enough */
    .cover-container {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Keep subtle border radius */
    .hero-cover {
        border-radius: 0 0 12px 12px;
    }
}

/* Ultra-wide screen optimization */
@media (min-width: 1800px) {
    .hero-cover {
        height: 450px; /* Even taller for ultra-wide */
        max-height: 40vh;
    }
    
    .cover-container {
        max-width: 1800px;
    }
}
