/* AccuRate - Complete Unified Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Additional overflow protection for mobile */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* RTL specific mobile fixes */
@media (max-width: 768px) {
    [dir="rtl"] * {
        max-width: 100%;
    }
    
    [dir="rtl"] .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Accessibility Menu */
.accessibility-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.accessibility-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.accessibility-toggle:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.accessibility-toggle i {
    font-size: 16px;
}

.accessibility-label {
    display: none;
}

@media (min-width: 768px) {
    .accessibility-label {
        display: inline;
    }
}

.accessibility-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 16px;
}

.accessibility-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.accessibility-section {
    margin-bottom: 16px;
}

.accessibility-section:last-child {
    margin-bottom: 0;
}

.accessibility-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.accessibility-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accessibility-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: right;
    width: 100%;
}

.accessibility-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.accessibility-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.accessibility-btn.active {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
    font-weight: 500;
}

.accessibility-btn i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.reset-btn {
    color: #dc3545;
    border: 1px solid #dc3545;
}

.reset-btn:hover {
    background: #dc3545;
    color: white;
}

/* RTL Support for Accessibility Menu */
[dir="rtl"] .accessibility-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .accessibility-btn {
    text-align: left;
}

/* High Contrast Mode */
body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.high-contrast .navbar {
    background: #000 !important;
    border-bottom-color: #fff !important;
}

body.high-contrast .accessibility-dropdown {
    background: #000 !important;
    border-color: #fff !important;
}

body.high-contrast .accessibility-btn:hover {
    background: #fff !important;
    color: #000 !important;
}

/* Dyslexic Font */
body.dyslexic-font {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Arial', sans-serif !important;
}

/* Increased Line Spacing */
body.increased-spacing {
    line-height: 2 !important;
}

body.increased-spacing p,
body.increased-spacing h1,
body.increased-spacing h2,
body.increased-spacing h3,
body.increased-spacing h4,
body.increased-spacing h5,
body.increased-spacing h6 {
    line-height: 2 !important;
}

/* Enhanced Focus Indicators */
body.enhanced-focus *:focus {
    outline: 3px solid #007bff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3) !important;
}

/* Default focus styles for better accessibility */
*:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Ensure proper contrast for all text */
body {
    color: #333;
    background: #fff;
}

/* Ensure links have proper contrast */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Ensure buttons have proper contrast */
button {
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
}

button:hover {
    background: #f8f9fa;
}

/* Ensure form elements are accessible */
input, textarea, select {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Reduced Motion */
body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* Accessibility Feedback */
.accessibility-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 10000;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.accessibility-feedback.show {
    transform: translateX(0);
}

/* High contrast mode adjustments */
body.high-contrast .accessibility-feedback {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-dropdown {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    [dir="rtl"] .accessibility-dropdown {
        left: 0;
        right: 0;
    }
    
    .accessibility-controls {
        flex-direction: column;
    }
    
    .accessibility-btn {
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-image {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff9800;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff9800, #ff6b35);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.download-btn {
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    color: white !important;
    padding: 8px 20px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
}

.download-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-toggle:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
    transform: translateY(-1px);
}

.current-lang-flag {
    font-size: 1.2rem;
}

.current-lang-name {
    font-weight: 600;
    min-width: 25px;
}

.lang-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-toggle.active i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
    border-radius: 0 !important;
}

.lang-option:not([style*='display: none']):first-of-type {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.lang-option:not([style*='display: none']):last-of-type {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.lang-option:only-of-type {
    border-radius: 12px;
}

.lang-option:hover {
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    color: white;
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-name {
    font-weight: 500;
}

/* RTL Language Support */
[dir="rtl"] {
    text-align: right;
}

/* Keep navbar layout consistent in RTL */
[dir="rtl"] .nav-container {
    direction: ltr;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[dir="rtl"] .nav-logo {
    order: 1;
}

[dir="rtl"] .nav-menu {
    order: 2;
    direction: ltr;
}

[dir="rtl"] .language-switcher {
    margin-left: 20px;
    margin-right: 0;
}

[dir="rtl"] .lang-dropdown {
    right: 0;
    left: auto;
}

[dir="rtl"] .lang-option {
    text-align: left;
}

/* Language-specific styles */
.lang-he {
    font-family: 'Heebo', sans-serif;
}

.lang-he .hero-title,
.lang-he .section-header h2 {
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lang-he .local-text {
    text-align: right;
}

/* Hebrew mobile text fixes */
@media (max-width: 768px) {
    [dir="rtl"] .hero-title,
    [dir="rtl"] .section-header h2,
    [dir="rtl"] .demo-text h4,
    [dir="rtl"] p,
    [dir="rtl"] .hero-subtitle {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        max-width: 100% !important;
    }
    
    /* Increased mobile font sizes for Hebrew and English */
    [dir="rtl"] .hero-title,
    [dir="ltr"] .hero-title {
        font-size: 3.2rem !important;
        line-height: 1.1 !important;
    }
    
    [dir="rtl"] .hero-subtitle,
    [dir="ltr"] .hero-subtitle {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    /* Center align Hebrew hero section */
    [dir="rtl"] .hero-text {
        text-align: center !important;
    }
    
    [dir="rtl"] .hero-title,
    [dir="rtl"] .hero-subtitle {
        text-align: center !important;
    }
    
    [dir="rtl"] .hero-cta {
        text-align: center !important;
    }
}

.lang-ru {
    font-family: 'Inter', sans-serif;
}

body.lang-ru .hero-title,
.lang-ru .hero-title,
[class*="lang-ru"] .hero-title {
    font-size: 3rem !important;
}

/* Hide English option by default (since it's hidden) */
.lang-option[data-lang="en"] {
    display: none;
}

/* Show English option only when another language is selected */
.lang-he .lang-option[data-lang="en"],
.lang-ru .lang-option[data-lang="en"] {
    display: flex;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(255, 152, 0, 0.8) 0%, rgba(255, 107, 53, 0.8) 100%),
        url('assets/city_view.jpg') center/cover no-repeat;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 100px;
    margin-bottom: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: #fff;
}

.highlight {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #ff6b35;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.cta-button.primary {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #ff6b35;
}

.cta-button.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease 0.6s both;
}

.phone-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-image {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* Background Shapes */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.bg-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

/* Quick Use Cases Section */
.quick-use-cases {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.quick-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-case {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-case:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.2);
}

.quick-case:hover::before {
    opacity: 1;
}

.quick-case-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.25);
}

.quick-case:hover .quick-case-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.35);
}

.quick-case-icon i {
    font-size: 1.8rem;
    color: white;
}

.quick-case-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

    /* Hebrew (RTL) specific styling */
[dir="rtl"] .quick-case-text {
    direction: rtl;
    font-family: 'Heebo', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* English and Russian (LTR) specific styling */
[dir="ltr"] .quick-case-text {
    direction: ltr;
    font-family: 'Inter', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Champions Section */
.champions {
    padding: 30px 0 100px 0;
    background: #fff;
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ranking-card {
    background: white;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #ff6b35);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ranking-card:hover::before {
    transform: scaleX(1);
}

.ranking-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.champion-card .politician-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    position: relative;
}

.politician-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.politician-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ranking-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.ranking-card .position {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.big-rating-row {
    text-align: center;
    margin: 0 auto 8px auto;
    display: block;
}

.champions .ranking-card div[style*='display: flex'][style*='justify-content: center'][style*='align-items: center'] {
    direction: ltr !important;
    text-align: left !important;
}

.rating-chart-container {
    margin-top: 10px;
    width: 100%;
    min-height: 280px;
    position: relative;
    transition: all 0.3s ease;
}

.main-chart {
    width: 100%;
    height: 260px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-chart.chart-loaded {
    opacity: 1;
}

.main-chart > div {
    width: 100% !important;
    height: 100% !important;
}

.main-chart .recharts-responsive-container {
    width: 100% !important;
    height: 100% !important;
}

.main-chart .recharts-wrapper {
    margin: 0 auto !important;
}

.main-chart svg {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: 100% !important;
}

/* Rank Now Button (Hidden) */
.rank-now-btn {
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    margin: 18px auto 0 auto;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25), 0 2px 8px rgba(0,0,0,0.10);
    transition: all 0.3s, box-shadow 0.2s;
    text-align: center;
    cursor: pointer;
}

.rank-now-btn:hover {
    background: linear-gradient(135deg, #ff6b35, #ff9800);
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.35), 0 4px 16px rgba(0,0,0,0.13);
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.08);
}

/* Small Cards Section */
.small-cards {
    background: #f5f5f5;
}

.small-rankings-grid {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    padding: 2.5rem 1rem;
    position: relative;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        #fafbfc;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.02);
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.small-rankings-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.small-row {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    justify-content: stretch;
    width: 100%;
    padding: 0 1.5rem;
}

.small-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 0;
    min-width: 0;
    min-height: 180px;
    transition: all 0.3s ease;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.small-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.small-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.small-card:hover::before {
    opacity: 1;
}

.small-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.small-card:hover img {
    border-color: #ffffff;
}

.small-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: #1e293b;
    line-height: 1.3;
}

.small-rating {
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 600;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    min-width: 50px;
    direction: ltr;
}

.small-rating .positive {
    color: #10b981;
    font-weight: 600;
}

.small-rating .negative {
    color: #ef4444;
    font-weight: 600;
}

.small-rating .stable {
    color: #6b7280;
    font-weight: 600;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%),
        url('assets/debates_2.jpg') center/cover no-repeat;
    color: white;
}

.stats .section-header h2,
.stats h2,
[data-translate="featuresTitle"] {
    color: white !important;
}

.crisis-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.crisis-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.crisis-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number-large {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ff9800, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.stat-sources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.stat-sources a {
    text-decoration: none;
    color: inherit;
}

.stat-sources a:hover,
.stat-sources a:focus,
.stat-sources a:active {
    text-decoration: none;
}

.source-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-sources a:hover .source-link,
.source-link:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
    color: white;
}

.source-count {
    color: #ff6b35;
    font-weight: 600;
}

.solution-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-text {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 500;
}

/* CTA Section Styles */
.cta-section {
    margin-top: 30px;
    text-align: center;
}

.cta-question {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff9800, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-answer {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.action-steps {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.action-step {
    padding: 25px 40px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-button-container {
    margin-top: 30px;
}

/* Demo Section */
.demo {
    padding: 100px 0;
    background: #f5f5f5;
}

.demo-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.demo-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.demo-arrow i {
    font-size: 1.2rem;
    color: #333;
}

/* Default positioning for LTR (English/Russian) */
.demo-prev {
    left: -70px;  /* Text area is wider, needs more space */
}

.demo-next {
    right: -35px; /* Phone area is narrower */
}

/* RTL positioning for Hebrew - content layout is flipped */
[dir="rtl"] .demo-prev {
    left: -35px;  /* Phone area is on left in RTL, needs less space */
}

[dir="rtl"] .demo-next {
    right: -70px; /* Text area is on right in RTL, needs more space */
}

.demo-slides {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
}

.demo-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    padding: 40px;
}

.demo-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.demo-text {
    /* Default alignment will be set by language-specific rules below */
}

/* Hebrew (RTL) specific styling */
[dir="rtl"] .demo-text {
    text-align: right;
    direction: rtl;
}

/* English and Russian (LTR) specific styling */
[dir="ltr"] .demo-text {
    text-align: left;
    direction: ltr;
}

.demo-text h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 20px;
}

.demo-text p {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.6;
}

.demo-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.demo-phone-image {
    width: auto !important;
    max-width: 350px !important;
    height: 100% !important;
    max-height: 500px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.demo-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-dot.active {
    background: #ff9800;
    transform: scale(1.2);
}

/* Use Cases Section */
.use-cases {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%),
        url('assets/using_phones.jpg') center/cover no-repeat;
    color: white;
}

.use-cases .section-header h2,
.use-cases .section-header p {
    color: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.use-case {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.use-case-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.use-case h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.use-case p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    background: white;
    color: #1e293b;
        text-align: center;
    }
    
.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1e293b;
}

.cta-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cta-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(100, 116, 139, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: #475569;
}

.info-item i {
    color: #ff9800;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-image {
    height: 32px;
    width: auto;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff9800;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
    display: inline-block;
}

.footer a[href^="mailto:"] {
    white-space: nowrap;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
}

/* Google Play Badges */
.google-play-badge {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.google-play-badge:hover {
    transform: translateY(-3px);
}

.google-play-badge-large {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.google-play-badge-large:hover {
    transform: translateY(-3px);
}

.download-link {
    display: inline-block;
    text-decoration: none;
}

/* Trending Chart Section */
.trending-chart-section {
    padding: 120px 0 60px 0;
    background: #fff;
}

.trending-chart-container {
    margin-top: 40px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trending-chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: visible; /* Allow avatars to extend outside */
    padding-right: 120px; /* More space for avatars positioned outside grid */
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.legend-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.main-trending-chart {
    width: 100%;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.chart-politicians {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.chart-endpoints {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    pointer-events: none;
    z-index: 10;
}

#chartLegendAside {
    flex: 0 0 auto;
    margin-left: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;
    z-index: 100;
    pointer-events: auto;
    direction: ltr;
}

.endpoint-avatar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    direction: ltr;
}

.endpoint-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.endpoint-name {
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: visible;
    text-overflow: unset;
}

/* Simple chart styling without conflicting animations */
.main-trending-chart .recharts-line-curve {
    transition: all 0.3s ease;
}

/* Mobile responsive for trending chart */
@media (max-width: 768px) {
    .trending-chart-section {
        padding: 100px 0 80px 0;
    }
    
    .trending-chart-container {
        margin-top: 30px;
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .chart-wrapper {
        height: 400px;
    }
    
    .chart-legend {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .legend-item {
        gap: 8px;
        padding: 6px 12px;
    }
    
    .legend-name {
        font-size: 0.9rem;
    }
    
    .main-trending-chart {
        height: 300px;
    }
    
    .politician-image {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    
    .politician-name {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .trending-chart-container {
        padding: 20px 15px;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .legend-item {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
    
    .main-trending-chart {
        height: 250px;
    }
    
    .politician-image {
        width: 40px;
        height: 40px;
    }
    
    .politician-name {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
}

@media (max-width: 900px) {
    #chartLegendAside {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        margin-top: 24px;
        gap: 24px;
        direction: ltr;
    }
    .endpoint-avatar {
        justify-content: center;
        direction: ltr;
    }
}

/* --- LEGEND LAYOUT FIX --- */
@media (min-width: 901px) {
  .trending-chart-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    direction: ltr !important;
  }
  .chart-wrapper {
    flex: 1 1 0%;
    min-width: 0;
    padding-right: 0;
    order: 1;
  }
  #chartLegendAside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 32px;
    margin-top: 0;
    gap: 20px;
    direction: ltr !important;
    min-width: 180px;
    max-width: 220px;
    order: 2;
  }
}
@media (max-width: 900px) {
  .trending-chart-container {
    display: block;
  }
  #chartLegendAside {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0 auto;
    gap: 24px;
    direction: ltr !important;
    width: 100%;
    max-width: 100vw;
  }
}
#chartLegendAside .endpoint-avatar {
  margin-bottom: 0;
}

/* Skeleton Loading Animations */
.skeleton-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
  width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 3s infinite;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
    align-items: center;
    gap: 18px;
    height: 100%;
}

.skeleton-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e0e0e0;
  position: relative;
    overflow: hidden;
}

.skeleton-photo::after {
  content: '';
  position: absolute;
  top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #f5f5f5 60%, transparent);
    animation: skeleton-shimmer 1.8s infinite;
}

.skeleton-line {
    width: 70%;
    height: 18px;
    border-radius: 4px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
  content: '';
  position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #f5f5f5 60%, transparent);
    animation: skeleton-shimmer 1.8s infinite;
}

.skeleton-line + .skeleton-line {
    margin-top: 8px;
}

.skeleton-stars {
    width: 60px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 25%, #d97706 50%, #f59e0b 75%, #fbbf24 100%);
    background-size: 300% 100%;
    animation: pulse 2.4s ease-in-out infinite;
    animation-delay: 0.6s;
}

.skeleton-change {
    width: 40px;
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 0.8s;
}

.skeleton-chart {
  width: 100%;
    height: 120px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 25%, #cbd5e0 50%, #e2e8f0 75%, #f1f5f9 100%);
    background-size: 300% 100%;
    animation: pulse 2.4s ease-in-out infinite;
    animation-delay: 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    border: 2px solid #e2e8f0;
}

/* Small Skeleton Cards */
.skeleton-small-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
    justify-content: center;
  flex: 1 1 0;
  min-width: 0;
    min-height: 120px;
  position: relative;
  overflow: hidden;
    gap: 16px;
}

.skeleton-small-card .skeleton-photo {
    width: 80px;
    height: 80px;
}

.skeleton-small-card .skeleton-line {
    width: 60%;
    height: 14px;
    border-radius: 4px;
}

.skeleton-small-card .skeleton-line + .skeleton-line {
    margin-top: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
  opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
  opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

@keyframes skeleton-shimmer {
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0% { 
        background-position: 0% 0%;
        opacity: 1;
    }
    50% { 
        background-position: 100% 0%;
        opacity: 0.7;
    }
    100% { 
        background-position: 200% 0%;
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes scale-cta {
    0% { transform: scale(1); }
    30% { transform: scale(1.22); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.action-step.cta-animate {
    animation: scale-cta 1.2s cubic-bezier(.68,-0.55,.27,1.55) 1;
}

.action-step.read-step.cta-animate {
    animation-delay: 2s;
}
.action-step.rate-step.cta-animate {
    animation-delay: 2.7s;
}
.action-step.influence-step.cta-animate {
    animation-delay: 3.4s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
  text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Larger fonts for Hebrew and English on tablet */
    [dir="rtl"] .hero-title,
    [dir="ltr"] .hero-title {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
    }
    
    [dir="rtl"] .hero-subtitle,
    [dir="ltr"] .hero-subtitle {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    /* Ensure Hebrew hero text is centered like other languages */
    [dir="rtl"] .hero-text {
        text-align: center !important;
    }
    
    [dir="rtl"] .hero-title,
    [dir="rtl"] .hero-subtitle {
        text-align: center !important;
    }
    
    [dir="rtl"] .hero-cta {
        text-align: center !important;
    }
}

@media (max-width: 900px) {
  .small-row {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  .small-card {
    width: 100%;
    min-width: 0;
    min-height: 160px;
    padding: 1.25rem 1rem;
  }
  .small-rankings-grid {
    padding: 1.5rem 0;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .accessibility-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Fix RTL mobile header layout */
    [dir="rtl"] .nav-container {
        flex-direction: row !important;
    }
    
    [dir="rtl"] .nav-logo {
        order: 1 !important;
    }
    
    [dir="rtl"] .hamburger {
        order: 3 !important;
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Ensure proper spacing */
    .nav-container {
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .hamburger {
        margin-left: 20px;
    }
    
    [dir="rtl"] .hamburger {
        margin-left: 0;
        margin-right: 20px;
    }
    
    .quick-use-cases {
        padding: 60px 0;
    }
    
    .quick-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .quick-case {
        padding: 25px 20px;
    }
    
    .quick-case-icon {
        width: 60px;
        height: 60px;
    }
    
    .quick-case-icon i {
        font-size: 1.5rem;
    }
    
    .quick-case-text {
        font-size: 1.1rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 90vh;
        padding: 20px 0;
    }
    
    .hero-container {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
        margin-top: 25px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    /* Sections Mobile */
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .rankings-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ranking-card {
        padding: 25px 20px;
        min-height: 320px;
    }
    
    .politician-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .ranking-card h3 {
        font-size: 1.3rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .use-case {
        padding: 30px 25px;
    }
    
    /* Demo Section Mobile */
    .demo-slides {
        height: 500px;
    }
    
    .demo-slide {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 30px 20px !important;
        text-align: center !important;
    }
    
    .demo-text {
        order: 1;
    }
    
    .demo-mockup {
        order: 2;
        justify-self: center;
    }
    
    .demo-arrow {
        width: 40px;
        height: 40px;
    }
    
    .demo-arrow i {
        font-size: 1rem;
    }
    
    .demo-prev {
        left: 10px;
    }
    
    .demo-next {
        right: 10px;
    }
    
    .crisis-stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-number-large {
        font-size: 3rem;
    }
    
    .stat-text {
        font-size: 1rem;
    }
    
    .solution-text {
        font-size: 1.1rem;
    }
    
    .action-steps {
        gap: 30px;
    }
    
    .action-step {
        padding: 20px 25px;
    }
    
    .step-text {
        font-size: 1.1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation Mobile */
    .nav-container {
        padding: 0 15px;
        height: 65px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    /* Hero Section Small Mobile */
    .hero {
        min-height: 85vh;
    }
    
    .hero-container {
        padding: 90px 15px 30px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.1;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 15px;
        margin-top: 20px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Phone Mockups Small Mobile */
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
    
    .hero-phone-image {
        max-width: 220px;
    }
    
    .demo-phone-image {
        max-width: 300px !important;
        max-height: 400px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Sections Small Mobile */
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .features,
    .use-cases,
    .demo,
    .final-cta {
        padding: 60px 0;
    }
    
    .ranking-card {
        padding: 20px 15px;
    }
    
    .politician-photo {
        width: 90px;
        height: 90px;
    }
    
    .ranking-card h3 {
        font-size: 1.2rem;
    }
    
    .use-case {
        padding: 25px 20px;
    }
    
    .use-case-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .use-case h3 {
        font-size: 1.2rem;
    }
    
    /* Demo Section Small Mobile */
    .demo-slides {
        height: 350px;
    }
    
    .demo-slide {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px 15px !important;
        text-align: center !important;
    }
    
    .demo-text {
        order: 1;
    }
    
    .demo-mockup {
        order: 2;
        justify-self: center;
    }
    
    .demo-arrow {
        display: none !important;
    }
    
    .crisis-stat-card {
        padding: 30px 20px;
    }
    
    .stat-number-large {
        font-size: 2.5rem;
    }
    
    .stat-sources {
        flex-direction: column;
        align-items: center;
    }
    
    /* Final CTA Small Mobile */
    .cta-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button.large {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    /* Footer Small Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo-image {
        height: 28px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-column a {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 20px;
    }
    
    /* Language Switcher Small Mobile */
    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .lang-dropdown {
        min-width: 160px;
    }
    
    .lang-option {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    /* Increased small mobile font sizes for Hebrew and English */
    [dir="rtl"] .hero-title,
    [dir="ltr"] .hero-title {
        font-size: 2.8rem !important;
        line-height: 1.05 !important;
    }
    
    [dir="rtl"] .hero-subtitle,
    [dir="ltr"] .hero-subtitle {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }
    
    /* Center align Hebrew hero section on small mobile */
    [dir="rtl"] .hero-text {
        text-align: center !important;
    }
    
    [dir="rtl"] .hero-title,
    [dir="rtl"] .hero-subtitle {
        text-align: center !important;
    }
    
    [dir="rtl"] .hero-cta {
        text-align: center !important;
    }
} 

/* CTA Download Modal Styles - ELEGANT GLASSMORPHISM */
#ctaDownloadModal {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  animation: backdropFadeIn 0.4s ease-out;
}
.cta-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  z-index: 0;
}
.cta-modal-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  padding: 40px;
  max-width: 95vw;
  width: 440px;
  text-align: center;
  animation: modalScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.cta-modal-content::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: conic-gradient(from 180deg at 50% 50%, #ff6b35, #ff9800, #4477ff, #00cc88, #ff6b35);
  animation: rotateGlow 15s linear infinite;
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
}
.logo-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-modal-content img[alt="AccuRate"] {
  width: 120px;
  height: auto;
}
.cta-modal-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-modal-content p {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 32px;
  line-height: 1.6;
}
.cta-modal-content .download-link {
  display: inline-block;
  transition: all 0.2s ease-out;
  border-radius: 12px;
}
.cta-modal-content .download-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.2);
}
.cta-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.5);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #334155;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}
.cta-modal-close:hover {
  background: #ffffff;
  transform: scale(1.1);
}
@keyframes modalScaleIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes backdropFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes rotateGlow {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}