/* ===================================
   Jordan Prayer Times - Website Styles
   Modern, Dynamic, Responsive Design
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #1a5f4a;
    --primary-light: #2d8a6e;
    --primary-dark: #0d3d2f;
    --secondary: #d4af37;
    --secondary-light: #e6c455;
    --accent: #e74c3c;

    /* Backgrounds */
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1a;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;

    /* Text */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --text-muted: #adb5bd;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-gold: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(26, 95, 74, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Font */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Arabic text styling */
[lang="ar"], .arabic, .title-ar {
    font-family: var(--font-arabic);
    direction: rtl;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--radius-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo {
    color: var(--primary);
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background: var(--primary);
}

.lang-toggle {
    background: var(--gradient-gold);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(26, 95, 74, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease forwards;
}

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

.hero-title {
    margin-bottom: var(--spacing-md);
}

.title-en {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.title-ar {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--secondary);
    margin-top: var(--spacing-xs);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 540px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 95, 74, 0.5);
}

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

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phone-mockup {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

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

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a3a 0%, #1a1a2a 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #0a0a0f;
    border-radius: 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    border-radius: 30px;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 30px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(26, 95, 74, 0.4) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--text-muted);
    font-size: 1.5rem;
}

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

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-sm);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--text-light);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   VERSION COMPARISON SECTION
   =================================== */
.version-comparison {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.version-comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20l10-10M20 20l-10 10M20 20l10 10M20 20l-10-10' stroke='%23ffffff' stroke-opacity='0.05'/%3E%3C/g%3E%3C/svg%3E");
}

.version-comparison .section-header {
    position: relative;
    z-index: 1;
}

.version-comparison .section-title {
    color: var(--text-light);
}

.version-comparison .section-title::after {
    background: var(--gradient-gold);
}

.version-comparison .section-subtitle {
    color: var(--text-muted);
}

.comparison-container {
    display: grid;
    /* Three releases side by side; they stack on narrow screens below */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.version-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.version-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

/* 2.6 is history now: the highlight moves to the newest release */
.version-card.v2 {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.version-card.v3 {
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.1);
}

.version-card.v3 .version-badge {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.version-card.v3 .version-features li i {
    color: var(--secondary);
}

.version-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.version-card.v1 .version-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.version-card.v2 .version-badge {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

.version-card h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.version-card p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.version-screenshot {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.version-card:hover .version-screenshot {
    transform: scale(1.02);
}

.version-features {
    list-style: none;
    margin-top: var(--spacing-md);
}

.version-features li {
    color: var(--text-muted);
    padding: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.version-features li i {
    color: var(--primary-light);
}

.version-card.v2 .version-features li i {
    color: var(--primary-light);
}

/* Feature Graphic Comparison */
/* Three graphics with an arrow between each: a grid keeps them on one row
   rather than wrapping the last one onto a line of its own. */
.feature-graphic-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.graphic-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    /* Three graphics and two arrows have to share the row */
    max-width: 100%;
    opacity: 0.8;
}

.graphic-card:hover {
    transform: scale(1.02);
    opacity: 1;
}

.graphic-card.featured {
    opacity: 1;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    border: 2px solid var(--secondary);
}

.graphic-card.featured:hover {
    transform: scale(1.05);
}

.graphic-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 1;
}

.v1-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.v2-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.v3-badge {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.feature-graphic-img {
    width: 100%;
    height: auto;
    display: block;
}

.graphic-arrow {
    font-size: 2rem;
    color: var(--secondary);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(10px); opacity: 1; }
}

@media (max-width: 768px) {
    .feature-graphic-comparison {
        flex-direction: column;
    }

    .graphic-arrow {
        transform: rotate(90deg);
    }

    @keyframes arrowPulse {
        0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.7; }
        50% { transform: rotate(90deg) translateX(10px); opacity: 1; }
    }

    .graphic-card {
        max-width: 100%;
    }
}

/* ===================================
   SCREENSHOTS SECTION
   =================================== */
.screenshots {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    overflow: hidden;
}

.screenshots-slider {
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-slider::-webkit-scrollbar {
    display: none;
}

.screenshot-wrapper {
    display: flex;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
    animation: scrollX 30s linear infinite;
}

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

.screenshot-wrapper:hover {
    animation-play-state: paused;
}

.screenshot-card {
    flex-shrink: 0;
    width: 220px;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    background: var(--bg-card);
}

.screenshot-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-placeholder {
    width: 220px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    gap: var(--spacing-sm);
}

.screenshot-placeholder i {
    font-size: 3rem;
    color: var(--secondary);
}

.screenshot-placeholder span {
    font-weight: 500;
    font-size: 1rem;
}

.screenshots-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-md);
}

.screenshots-note code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */
.download {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #e8f5e9 100%);
}

.download-categories {
    display: grid;
    gap: var(--spacing-lg);
}

.download-category {
    text-align: center;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.category-title i {
    color: var(--primary);
}

.store-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.store-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-dark);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.store-btn i, .store-btn svg {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
}

.huawei-icon {
    width: 2rem;
    height: 2rem;
}

.store-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.store-btn.google-play:hover {
    background: #01875f;
}

.store-btn.app-store:hover {
    background: #0071e3;
}

.store-btn.huawei-gallery:hover,
.store-btn.huawei-watch:hover {
    background: #c7112d;
}

.store-btn.wear-os:hover {
    background: #3ddc84;
}

.store-btn.android-tv:hover {
    background: #00897b;
}

.store-btn.apple-watch:hover {
    background: #0071e3;
}

.coming-soon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--text-light);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 0 var(--radius-md) 0 var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    margin-bottom: var(--spacing-sm);
}

.testimonial-stars i {
    color: var(--secondary);
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--text-light);
    font-size: 1.25rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.contact-content {
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.dev-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-icon i {
    font-size: 1rem;
    color: var(--text-light);
}

/* ===================================
    CONTACT BLOCKS
    =================================== */
.blocks-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.contact-block {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.contact-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.block-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.developers-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.developer-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.developer-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.developer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1rem;
    color: var(--primary);
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.contact-item h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.dev-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-icon i {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .blocks-grid-wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .contact-block.developers-block-full {
        grid-column: 1 / -1;
    }
    
    .contact-block.legal-block {
        grid-column: 1;
        grid-row: 2;
    }
    
    .contact-block.contributors-block {
        grid-column: 2 / -1;
        grid-row: 2;
    }
    
    .contact-block.credits-block {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .developers-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   CONTRIBUTORS SECTION
   =================================== */
.contributors {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-sm);
}

.contributor-card {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contributor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contributor-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.contributor-icon i,
.contributor-icon .dev-icon i {
    font-size: 1rem;
    color: var(--text-light);
}

.contributor-icon .dev-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contributor-card h3 {
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 2px;
    font-weight: 600;
}

.contributor-card p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
    display: block;
    margin: 0;
    padding: 0;
    white-space: normal;
}

.contributor-card p br {
    display: block;
    content: "";
    height: 4px;
    line-height: 4px;
    margin: 0;
    padding: 0;
}

.contributor-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contributor-card a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ===================================
   CREDITS SECTION
   =================================== */
.credits {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

.credits-content {
    max-width: 800px;
    margin: 0 auto;
}

.credit-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-sm);
    border-left: 4px solid var(--primary);
}

.credit-item h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.credit-item h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.credit-item h3 a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.credit-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.footer-logo i {
    color: var(--secondary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-light);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-dua {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: var(--secondary);
    margin-top: var(--spacing-xs);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-light);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        margin: 0 auto var(--spacing-md);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-sm);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-link {
        color: var(--text-light);
        font-size: 1.1rem;
        padding: var(--spacing-sm);
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

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

    .store-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .preview-prayer {
        padding: var(--spacing-xs);
        font-size: 0.85rem;
    }

    .feature-card {
        padding: var(--spacing-sm);
    }

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

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none;
    }

    .hero {
        min-height: auto;
        background: white;
        color: black;
    }
}

/* ===================================
   RTL (Arabic) SUPPORT
   =================================== */
[dir="rtl"] {
    font-family: 'Amiri', 'Traditional Arabic', serif;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-container {
    direction: rtl;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

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

[dir="rtl"] .store-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .store-info {
    align-items: flex-end;
    text-align: right;
}

html[dir="rtl"] .contact-item,
html[dir="rtl"] .legal-block .contact-item,
html[dir="rtl"] .developers-block-full .contact-item {
    /* Keep normal layout (icon left, text right) */
    text-align: right;
}

html[dir="rtl"] .developer-section {
    text-align: right;
}

html[dir="rtl"] .developer-title {
    text-align: right;
}

html[dir="rtl"] .block-title {
    text-align: center;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .footer-links {
    justify-content: flex-start;
}

[dir="rtl"] .footer-column {
    text-align: right;
}

[dir="rtl"] .version-features li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .version-card {
    text-align: right;
}

[dir="rtl"] .graphic-arrow i {
    transform: rotate(180deg);
}

[dir="rtl"] .coming-soon-badge {
    right: auto;
    left: 0;
    border-radius: var(--radius-md) 0 var(--radius-sm) 0;
}

[dir="rtl"] .nav-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .category-title {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-logo {
    flex-direction: row-reverse;
}

/* Smooth transition for language switch */
[data-en][data-ar] {
    transition: opacity 0.2s ease;
}

/* ===================================
   RELEASE NOTES CARD (v2.3.0)
   =================================== */
.release-notes-card {
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.15) 0%, rgba(45, 138, 110, 0.1) 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.release-notes-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.release-badge {
    background: var(--gradient-primary);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.release-notes-header h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin: 0;
}

.release-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.release-note-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.release-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.release-note-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.release-note-item strong {
    color: var(--text-light);
    font-size: 0.95rem;
}

.release-note-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===================================
   WEAR OS FEATURE CARD
   =================================== */
.feature-card-new {
    border: 1px solid var(--primary-light);
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.08) 0%, rgba(45, 138, 110, 0.04) 100%);
    position: relative;
}

.feature-card-new::after {
    content: "NEW";
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.feature-icon-watch {
    background: linear-gradient(135deg, #1a5f4a 0%, #3ddc84 100%) !important;
}

.feature-icon-tv {
    background: linear-gradient(135deg, #004d40 0%, #00897b 100%) !important;
}

/* ===================================
   ANDROID TV SCREENSHOTS SECTION
   =================================== */
.tv-screenshots {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, #e0f2f1 0%, var(--bg-light) 100%);
}

.tv-grid {
    display: grid;
    /* Two TVs per row: four 16:9 shots read better as a 2x2 than as 3 + 1. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.tv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

/* A TV set: 16:9 panel, dark bezel, small stand. */
.tv-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 8px #1f1f1f, 0 10px 0 8px #1f1f1f, var(--shadow-lg);
    transition: var(--transition-normal);
}

.tv-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tv-item:hover .tv-frame {
    transform: translateY(-6px);
    box-shadow: 0 0 0 8px #1f1f1f, 0 10px 0 8px #1f1f1f, var(--shadow-lg), 0 0 30px rgba(0, 137, 123, 0.4);
}

.tv-caption {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* ===================================
   WEAR OS SCREENSHOTS SECTION
   =================================== */
.wear-screenshots {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #e8f5e9 100%);
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    justify-items: center;
    margin-top: var(--spacing-md);
}

.watch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.watch-frame {
    width: 200px;
    height: 200px;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 0 6px #2a2a2a, 0 0 0 8px #1a1a1a, var(--shadow-lg);
    transition: var(--transition-normal);
}

.watch-frame-round {
    border-radius: 50%;
    box-shadow: 0 0 0 6px #2a2a2a, 0 0 0 8px #1a1a1a, var(--shadow-lg);
}

.watch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.watch-item:hover .watch-frame {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 0 6px #2a2a2a, 0 0 0 8px #1a1a1a, var(--shadow-lg), 0 0 30px rgba(26, 95, 74, 0.4);
}

.watch-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .watch-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .watch-frame {
        width: 160px;
        height: 160px;
    }

    .release-notes-card {
        padding: var(--spacing-md);
    }

    .release-notes-grid {
        grid-template-columns: 1fr;
    }
}

[dir="rtl"] .feature-card-new::after {
    right: auto;
    left: 12px;
}

[dir="rtl"] .release-notes-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .credit-item {
    border-left: none;
    border-right: 4px solid var(--primary);
}


/* ==========================================================================
   Changelog
   A plain vertical record of the releases, newest first. The newest entry is
   marked so someone landing here can see where the app is now.
   ========================================================================== */

.changelog {
    padding: var(--spacing-xl) 0;
    background: var(--bg-darker);
}

.changelog .section-title {
    color: var(--text-light);
}

.changelog .section-subtitle {
    color: var(--text-muted);
}

.changelog-timeline {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding-left: var(--spacing-lg);
}

/* The line the markers sit on */
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.changelog-entry {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.changelog-marker {
    position: absolute;
    left: calc(-1 * var(--spacing-lg) + 1px);
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid var(--bg-darker);
}

.changelog-entry.current .changelog-marker {
    background: var(--secondary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.changelog-body {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.changelog-entry.current .changelog-body {
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.08);
}

.changelog-head {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.changelog-tag {
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.changelog-tag.muted {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
}

.changelog-body h3 {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.changelog-body ul {
    list-style: none;
    display: grid;
    gap: 6px;
}

.changelog-body li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}

.changelog-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
}

.changelog-entry.current .changelog-body li::before {
    background: var(--secondary);
}

/* Arabic reads the other way, so the timeline does too */
[dir="rtl"] .changelog-timeline {
    padding-left: 0;
    padding-right: var(--spacing-lg);
}

[dir="rtl"] .changelog-timeline::before {
    left: auto;
    right: 6px;
}

[dir="rtl"] .changelog-marker {
    left: auto;
    right: calc(-1 * var(--spacing-lg) + 1px);
}

[dir="rtl"] .changelog-body li {
    padding-left: 0;
    padding-right: 18px;
}

[dir="rtl"] .changelog-body li::before {
    left: auto;
    right: 0;
}

@media (max-width: 992px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }

    /* Stacked, and the arrows stop meaning anything vertically */
    .feature-graphic-comparison {
        grid-template-columns: 1fr;
    }

    .feature-graphic-comparison .graphic-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .changelog-timeline {
        padding-left: var(--spacing-md);
    }

    .changelog-marker {
        left: calc(-1 * var(--spacing-md) + 1px);
    }

    [dir="rtl"] .changelog-timeline {
        padding-right: var(--spacing-md);
    }

    [dir="rtl"] .changelog-marker {
        right: calc(-1 * var(--spacing-md) + 1px);
    }
}
