/* Base style reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Basic body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    animation: fadeIn 1s ease-in-out;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0; /* Remove possible top padding */
}

/* Container styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    z-index: 1;
}

/* Particles container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it's at the bottom layer */
    pointer-events: none; /* Prevent particles from blocking clicks */
}

/* Fixed top navigation bar - integrated with main content */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%);
    box-shadow: none;
    padding: 15px 0;
    margin-bottom: 0;
    border-bottom: none;
    transition: padding 0.3s ease, background 0.3s ease;
    height: 70px;  /* Set fixed height */
    display: flex;  /* Use flex layout */
    align-items: center;  /* Vertically center content */
}

/* Container for fixed navigation */
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;  /* Ensure all child elements are vertically centered */
    height: 100%;  /* Fill the header height */
}

.header-left {
    display: flex;
    align-items: center;
}

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

/* Adjust logo size to make the top bar wider */
.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    margin-right: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.logo h1 a:hover, .logo h1 a:focus, .logo h1 a:active {
    color: white;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    opacity: 1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2; /* Higher than particles effect, lower than navigation bar */
    padding-bottom: 80px;
	top: 60px;
}

.app-info {
    flex: 1;
    max-width: 600px;
}

.app-slogan {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-description {
    font-size: 26px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-options {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.qr-code-container {
    background-color: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.qr-code-container img {
    max-width: 120px;
    height: auto;
    display: block;
}

.download-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn, .cta-download-btn {
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(79, 134, 247, 0.3);
}

.download-btn:hover, .cta-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 134, 247, 0.4);
}

.download-btn i, .cta-download-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.app-preview {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.phone-mockup-container {
    position: relative;
    max-width: 300px;
    margin-left: auto;
}

.phone-mockup {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(79, 134, 247, 0.3);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.floating-badge span {
    display: block;
    text-align: center;
}

.floating-badge .version {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.wave-divider {
    line-height: 0;
    direction: ltr;
    display: block;
    width: 100%;
    height: 150px;
    position: relative;
    bottom: -1px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4f86f7, #2a5db0);
    border-radius: 2px;
}

.app-features {
    padding: 80px 0;
}

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

.feature-item {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(79, 134, 247, 0.3);
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

.feature-icon {
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    color: white;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

.app-screenshots {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.screenshots-container {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.screenshots-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.screenshot {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.screenshot:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.slider-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #4f86f7;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .screenshots-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .screenshots-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 0;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .screenshots-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .screenshot {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }
    
    .slider-dots {
        display: flex;
    }
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        padding: 40px 0 60px;
    }
    
    .app-info, .app-preview {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .phone-mockup-container {
        max-width: 250px;
    }
    
    .floating-badge {
        top: 15px;
        right: -10px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .version {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .screenshots-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 0;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .screenshots-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .screenshot {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }
    
    .slider-dots {
        display: flex;
    }
}

.download-cta {
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%);
    color: white;
    padding: 80px 0;
    margin: 50px 0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(42, 93, 176, 0.2);
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.download-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.download-cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.cta-qrcode {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4f86f7;
}

.copyright {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 10px;
}

.copyright p {
    margin: 0;
}

.copyright a {
    text-decoration: none;
    color: inherit;
}

.copyright a:hover, .copyright a:focus, .copyright a:active {
    text-decoration: none;
    color: #4f86f7;
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        padding: 40px 0 60px;
    }
    
    .app-info, .app-preview {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .phone-mockup-container {
        max-width: 250px;
    }
    
    .floating-badge {
        top: 15px;
        right: -10px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .version {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    header.scrolled {
        padding: 12px 0;
    }

    .main-nav {
        top: calc(100% + 0px);
    }
    .language-selector {
        margin-left: 10px;
        position: relative;
        z-index: 1001;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%);
        flex-direction: column;
        align-items: center;
        gap: 0;
        transition: all 0.3s ease;
        z-index: 999;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        overflow: hidden;
        max-height: 0;
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 300px;
        padding: 5px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        top:50px;
    }

    .main-nav.active + .language-selector {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .header-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: auto;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .mobile-menu-toggle i {
        font-size: 24px;
        color: white;
    }

    .header-container {
        padding: 0 15px;
    }
    
    .header-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .app-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .logo h1 {
        font-size: 18px;
    }

    .hero-section {
        padding-top: 70px;
    }
    
    .hero-content {
        flex-direction: column;
        padding: 30px 0 50px;
        gap: 30px;
    }
    
    .app-info, .app-preview {
        max-width: 100%;
    }
    
    .app-slogan {
        font-size: 28px;
        text-align: center;
    }
    
    .app-description {
        font-size: 16px;
        text-align: center;
    }
    
    .app-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .download-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .qr-code-container {
        margin: 0 auto;
    }
    
    .download-right {
        width: 100%;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-item {
        padding: 20px;
    }

    .download-cta {
        padding: 40px 20px;
    }
    
    .cta-content {
        text-align: center;
        padding: 30px 15px;
    }
    
    .cta-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .cta-download-btn {
        width: auto;
        max-width: 90%;
        padding: 12px 25px;
        margin: 0 auto;
        font-size: 16px;
    }

    footer {
        padding: 20px 0;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .copyright {
        font-size: 12px;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .mobile-menu-toggle i {
        font-size: 24px;
        color: white;
    }

    .main-nav {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%) !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        z-index: 999 !important;
    }

    .main-nav.active {
        max-height: 300px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-nav a {
        font-size: 16px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 500;
        color: white;
        opacity: 1;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .main-nav a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .app-slogan {
        font-size: 24px;
    }
    
    .app-description {
        font-size: 15px;
    }
    
    .meta-item i {
        font-size: 20px;
    }
    
    .meta-value {
        font-size: 18px;
    }
    
    .meta-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-item h3 {
        font-size: 18px;
    }
    
    .feature-item p {
        font-size: 14px;
    }
    
    .screenshot {
        min-width: 90%;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .slider-dots {
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    .footer-logo h3 {
        font-size: 18px;
    }
    
    .copyright p {
        font-size: 12px;
    }
    
    .phone-mockup-container {
        max-width: 200px;
    }
    
    .phone-mockup {
        border-radius: 25px;
    }
    
    .floating-badge {
        top: 10px;
        right: -8px;
        padding: 5px 10px;
        font-size: 9px;
    }
    
    .version {
        font-size: 11px;
    }
}

@media (max-width: 896px) and (orientation: landscape) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        padding: 20px 0 40px;
    }
    
    .app-info {
        flex: 3;
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .app-preview {
        flex: 2;
    }
    
    .phone-mockup-container {
        max-width: 180px;
    }
}

@media (min-width: 1400px) {
    .phone-mockup-container {
        max-width: 350px;
    }
    
    .floating-badge {
        top: 25px;
        right: -20px;
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .version {
        font-size: 16px;
    }
}

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

.phone-mockup {
    animation: imgFadeIn 1s ease-out forwards;
}

header.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(79, 134, 247, 0.98) 0%, rgba(42, 93, 176, 0.98) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.feature-item.animate, .screenshot.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-item:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-item:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-item:nth-child(4) {
    transition-delay: 0.4s;
}

.screenshot:nth-child(1) {
    transition-delay: 0.1s;
}

.screenshot:nth-child(2) {
    transition-delay: 0.2s;
}

.screenshot:nth-child(3) {
    transition-delay: 0.3s;
}

.screenshot:nth-child(4) {
    transition-delay: 0.4s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 134, 247, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 134, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 134, 247, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4f86f7;
    color: white;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.back-to-top:hover {
    background-color: #2a5db0;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.back-to-top i {
    font-size: 20px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}

.app-features, 
.app-screenshots, 
.download-cta,
footer {
    position: relative;
    z-index: 2;
}

.wave-divider {
    position: relative;
    z-index: 1;
    margin-top: -1px;
}

.back-to-top {
    z-index: 9990;
}

/* Language selector styling */
.language-selector {
    position: relative;
    margin-left: 20px;
    z-index: 1000;
}

.current-language {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: space-between;
}

.current-language:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lang-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.current-language i {
    color: white;
    font-size: 14px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
    }
    
    .language-selector {
        margin-left: 10px;
        order: 2;
    }
    
    .lang-text {
        display: none;
    }
    
    .current-language {
        padding: 8px;
        min-width: 36px;
        width: 36px;
        height: 36px;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }
    
    .current-language i {
        margin: 0;
        font-size: 16px;
    }
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

@media (max-width: 768px) {
    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 120px;
    }
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    list-style: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #333;
    font-size: 14px;
}

.language-dropdown li:hover {
    background-color: #f5f5f5;
}

.language-dropdown li.active {
    background-color: #eef5ff;
    color: #4f86f7;
    font-weight: 500;
}

/* Version info styling */
.version-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.version-badge, .update-date {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
}

.version-badge i, .update-date i {
    margin-right: 8px;
    font-size: 16px;
}

.version-badge {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.update-date {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .version-info {
        align-items: center;
    }
}

/* Use higher specificity to ensure styles apply */
body .app-features .feature-icon-wrapper {
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%) !important;
    box-shadow: 0 5px 15px rgba(79, 134, 247, 0.3) !important;
}

body .app-features .feature-icon {
    color: white !important;
}

body .download-btn, 
body .cta-download-btn {
    background: linear-gradient(135deg, #4f86f7 0%, #2a5db0 100%) !important;
    color: white !important;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #4f86f7;
}

.modal-content {
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.modal-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #4f86f7;
}

.modal-content p {
    margin-bottom: 15px;
}

.modal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 5px;
}

/* Mobile adaptation */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-content {
        padding: 15px;
    }
}

/* Additional class for mobile-only elements */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    
    button.mobile-only {
        display: flex !important;
    }
}

/* Fix for header layout on desktop */
@media (min-width: 769px) {
    .header-left {
        display: flex;
        align-items: center;
    }
    
    .header-container {
        justify-content: space-between;
    }
    
    .main-nav {
        display: flex;
        margin-left: auto;
        margin-right: 20px;
    }
    
    .main-nav a {
        margin: 0 15px;
    }
}

.app-preview {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.phone-mockup-container {
    position: relative;
    max-width: 300px;
    margin-left: auto;
}

.phone-mockup {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }
    
    .app-info {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .app-preview {
        justify-content: center;
        width: 100%;
    }
    
    .phone-mockup-container {
        margin: 0 auto;
        max-width: 250px;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .qr-code-container {
        margin-bottom: 20px;
    }
    
    .download-right {
        align-items: center;
    }
}

.modal-qr-code {
    text-align: center;
    margin: 20px 0;
}

.modal-qr-code img {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
}

.home-qr-code img {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    padding: 8px;
    background: #fff;
    border-radius: 5px;
}