:root {
    --link-color: #4dabf7;
    --link-hover: #8d74fc;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
}
header {
    background: linear-gradient(135deg, #00a86b 0%, #2575fc 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}
.hero {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.hero-content {
    flex: 1;
    text-align: center;
}
.hero-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-video iframe {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}
.hero-icon {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 5px;
}
.cta-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
section.news-stories {
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background-color: #f9f9f9;
}
.news-stories div.container {
    margin: 0 auto;
    padding: 2rem 2rem;
    max-width: 1200px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 25em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}
.news-card:hover {
    transform: translateY(-10px);
}
.news-header {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.news-logo {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.news-logo img {
    max-width: 100%;
    max-height: 100%;
}
.news-content {
    padding: 1.5rem;
    padding-top: 1.8rem;
}
.news-content h3 {
    margin-top: 0;
    color: #333;
}
.features {
    text-align: center;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6a11cb;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}
.footer-links a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
/* Container for ultra-wide screens */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    .hero-video {
        width: 100%;
        margin-top: 2rem;
    }
    .hero-video iframe {
        width: 100%;
        height: 300px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-button {
        padding: 0.8rem 1.8rem;
    }
    .news-header {
        height: 130px;
    }
    .feature-card {
        max-width: 500px;
        margin: 0 auto;
    }
    .news-stories div.container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
    }
    .hero-video {
        margin-top: 1.5rem;
    }
    .hero-video iframe {
        height: 220px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-icon {
        width: 80px;
        margin-bottom: 1rem;
    }
    .news-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    section {
        padding: 2rem 1rem;
    }
    .news-stories div.container {
        padding: 2rem 1rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .news-content {
        padding: 1.2rem;
    }
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        display: block;
        width: 80%;
        margin: 8px auto;
        text-align: center;
    }
    .news-header {
        height: 120px;
    }
}

@media (min-width: 1400px) {
    .hero {
        padding: 4rem 2rem;
        gap: 3rem;
    }
    .hero-video iframe {
        width: 640px;
        height: 360px;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1.4rem;
    }
    .hero-icon {
        width: 150px;
        margin-bottom: 2rem;
    }
    .news-grid, .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 2000px) {
    body {
        font-size: 18px;
    }
    .container {
        max-width: 1800px;
    }
}

/* App Store Cards Styling */
.app-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.app-store-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.app-store-card:hover {
    transform: translateY(-5px);
}

.app-store-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.app-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.store-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    color: white;
}

.playstore-button {
    background-color: #689f38;
}

.playstore-button:hover {
    background-color: #558b2f;
}

.fdroid-button {
    background-color: #1976d2;
}

.fdroid-button:hover {
    background-color: #1565c0;
}

.ios-coming-soon {
    opacity: 0.6;
    position: relative;
}

.coming-soon-label {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background-color: #9e9e9e;
    color: white;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
}

/* Media query adjustments for app store cards */
@media (max-width: 768px) {
    .app-store-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .app-store-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .app-store-logo {
        width: 80px;
        height: 80px;
    }
}
