:root {
    --primary: #FFE6AC;
    --primary-dark: #E6D096;
    --primary-light: #FFF2D1;
    --background: #1D1D1D;
    --surface: #292929;
    --surface-lighter: #333333;
    --text: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-tertiary: #777777;
    --shadow: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
}

html, body {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
}

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

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: var(--background);
    box-shadow: 0 2px 10px var(--shadow);
}

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

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

.logo img {
    height: 80px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
    left: -100px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 230, 172, 0.2);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 230, 172, 0.1);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 230, 172, 0.1);
}

.openInBrowser {
    padding-top: 2%;
}

.openInBrowser a {
    width: 60%;
    text-align: center;
}

.hero-image {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 1;
    opacity: 0;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.floating-balls {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ball {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.1;
}

/* Features section */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    background-color: var(--surface);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(255, 230, 172, 0.05);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
    border: 1px solid rgba(255, 230, 172, 0.2);
}

.feature-icon {
    background-color: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(255, 230, 172, 0.3);
}

.feature-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0);
}

.feature h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* App showcase section */
.app-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
}

.app-showcase-image {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
    opacity: 0;
    transform: translateX(-30px);
    border: 1px solid rgba(255, 230, 172, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
}

.app-showcase-content {
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
}

.app-showcase-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-showcase-content h2 span {
    color: var(--primary);
}

.app-showcase-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Mosaic Animation Styles */
.mosaic-animation-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    height: 800px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.mosaic-column {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mosaic-scroll-container {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-column .mosaic-scroll-container {
    animation: scroll-down 60s linear infinite;
}

.right-column .mosaic-scroll-container {
    animation: scroll-up 50s linear infinite;
}

.mosaic-item {
    width: 100%;
    border-radius: 15px;
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #000;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    height: auto;
    margin-bottom: 20px;
}

.mosaic-item img {
    width: 100%;
    height: auto;
    display: block;
    object-position: center;
    z-index: 1;
}

.mosaic-item::before {
    content: attr(data-content);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    font-size: 18px;
    padding: 15px;
}

@keyframes scroll-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scroll-up {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Optimizations */
.mosaic-animation-container {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.mosaic-scroll-container {
    will-change: transform;
}

@media (max-width: 768px) {
    .mosaic-animation-container {
        height: 600px;
        max-width: 300px;
    }
}

.feature-list {
    list-style-type: none;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(30px);
}

.feature-list li img {
    height: 30px;
    margin-right: 15px;
}

.feature-list li span {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

/* Testimonials section */
.testimonials-wrapper {
    position: relative;
    overflow-x: auto;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
    margin: 0 0 30px 0;
    /* Better performance scrolling */
    scroll-behavior: auto;
    /* Hardware acceleration - simpler to avoid reflows */
    transform: translateZ(0);
    will-change: scroll-position;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonials {
    display: flex;
    gap: 30px;
    width: fit-content;
    padding: 10px 5px 20px;
    /* Simplified hardware acceleration properties */
    transform: translateZ(0);
    will-change: transform;
}

/* CSS-based auto-scrolling animation - much more performant than JS */
.testimonials.auto-scroll {
    animation: testimonial-scroll 90s linear infinite;
    animation-play-state: running;
}

@keyframes testimonial-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 100vw)); }
}

/* Make the animation work properly on different screen sizes */
@media (max-width: 1024px) {
    .testimonials.auto-scroll {
        animation-duration: 60s; /* Faster on medium screens */
    }
}

@media (max-width: 768px) {
    .testimonials.auto-scroll {
        animation-duration: 40s; /* Even faster on mobile */
    }
}

/* Remove media queries that hide scrollbars */
@media (max-width: 768px) {
    .testimonial {
        width: 300px;
        padding: 25px;
    }
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.testimonial-author p {
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.testimonial-rating {
    display: flex;
    color: var(--primary);
    font-size: 18px;
}

/* Download section */
.download {
    background: linear-gradient(135deg, rgba(255, 230, 172, 0.2) 0%, rgba(230, 208, 150, 0.1) 100%);
    padding: 80px 0;
    text-align: center;
    border-radius: 40px;
    margin: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid rgba(255, 230, 172, 0.1);
    box-shadow: 0 10px 30px var(--shadow);
}

.download h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.download p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 30px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.download-button {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.download-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 230, 172, 0.2);
    background-color: rgba(255, 230, 172, 0.1);
}

.download-button img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.download-button-text {
    text-align: left;
}

.download-button-text span {
    display: block;
}

.download-button-text .small-text {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
}

.download-button-text .big-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background-color: var(--surface-lighter);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-column {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
}

.footer-column:nth-child(1) {
    flex: 2;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    list-style-type: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social img {
    width: 30px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-indicator p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

.scroll-indicator p,
.scroll-indicator .scroll-arrow {
    pointer-events: none;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    margin: auto 0;
    width: 8px;
    opacity: 0.7;
    height: 8px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg) translateY(0px);
}

@media (max-width: 1024px) {
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 768px), (max-height: 770px) {
    .scroll-indicator {
        display: none;
    }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--background);
    z-index: 1001;
    padding: 60px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px var(--shadow);
    border-left: 1px solid rgba(255, 230, 172, 0.1);
}

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

.mobile-menu-links {
    list-style-type: none;
}

.mobile-menu-links li {
    margin-bottom: 20px;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

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

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
}

.overlay.active {
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 50px;
    }

    .hero-image {
        width: 45%;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-showcase {
        flex-direction: column;
    }

    .app-showcase-image, .app-showcase-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content{
        left: 0px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-image {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
    position: relative;
    top: 30px;
    height: 750px;
}

/* Glowing effect */
.glow {
    filter: drop-shadow(0 0 8px rgba(255, 230, 172, 0.3));
}

/* Testimonials scroll indicator */
.testimonials-scroll-indicator {
    text-align: center;
    color: var(--primary);
    font-size: 14px;
    opacity: 0.9;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    background: linear-gradient(to top, var(--background) 70%, transparent 100%);
    padding: 15px 0;
    z-index: 10;
}

.testimonials-scroll-indicator span {
    font-size: 18px;
    margin: 0 5px;
    animation: pulse 1.5s infinite alternate;
    color: var(--primary);
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.testimonial {
    background-color: var(--surface);
    border-radius: 20px;
    padding: 30px;
    width: 350px;
    box-shadow: 0 5px 15px var(--shadow);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid rgba(255, 230, 172, 0.05);
    /* Use a single property for all transitions to improve performance */
    transition: all 0.3s ease;
    /* Prevent individual elements from creating their own composite layers */
    transform: translateZ(0);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border: 1px solid rgba(255, 230, 172, 0.15);
}