@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #4A90E2;
    --dark-blue: #0D244F;
    --text-color: #333;
    --text-light: #666;
    --background-color: #FFFFFF;
    --light-gray-bg: #F8F9FA;
    --border-color: #EAEAEA;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

/* Header */
header {
    background: var(--background-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between; /* This will push the items to the edges */
    align-items: center;
}


.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.nav-links a {
    margin: 0 15px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #357ABD;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 80px 0;
}

#hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-blue);
    max-width: 800px;
    margin: 0 auto 20px;
}

#hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.app-stores {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.store-badge {
    display: inline-block; /* Ensure transform applies correctly */
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

.store-badge img {
    height: 50px;
    display: block; /* Remove any extra space below the image */
}

.hero-images {
    margin-top: 50px;
}

.hero-images .main-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Features Section */
#features {
    padding: 80px 0;
    background-color: var(--light-gray-bg);
}

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

.section-header .tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

/* Supported Languages Section */
#supported-languages {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.language-ribbon {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.language-ribbon::before,
.language-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.language-ribbon::before {
    left: 0;
    background: linear-gradient(to right, #f9f9f9, transparent);
}

.language-ribbon::after {
    right: 0;
    background: linear-gradient(to left, #f9f9f9, transparent);
}

.ribbon-track {
    display: flex;
    width: calc(200px * 20); /* 20 flags * 200px width per flag */
    animation: scroll 40s linear infinite;
}

.ribbon-track img {
    height: 60px;
    margin: 0 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ribbon-track img:hover {
    transform: scale(1.15);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 10)); /* Scroll by the width of 10 flags */
    }
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
    background-color: var(--light-gray-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--dark-blue);
    text-align: right;
}

/* Get Started Section */
#get-started {
    padding: 80px 0;
}

.get-started-content {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.get-started-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.get-started-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.get-started-image img {
    max-width: 250px;
    height: auto;
}

.get-started-content-centered {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    max-width: 250px;
    color: rgba(255,255,255,0.7);
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer .social-icons a:hover {
    transform: scale(1.1);
}

.footer-support {
    text-align: left;
    max-width: 300px;
}

.footer-support h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-support p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-support a {
    color: #63b3ed;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-support a:hover {
    color: #90cdf4;
    text-decoration: underline;
}

@keyframes zoom-in-out {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.store-badge.highlight-animation {
    animation: zoom-in-out 0.8s ease-in-out;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .get-started-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hide for mobile, can be replaced with a hamburger menu */
    }

    #hero h1 {
        font-size: 36px;
    }

    .get-started-content {
        padding: 40px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-about p {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 32px;
    }

    #hero p {
        font-size: 16px;
    }

    .app-stores {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .store-badge img {
        height: 45px;
    }

    .section-header h2, .get-started-text h2 {
        font-size: 28px;
    }
}