/* ===============================================
   קובץ עיצוב מאוחד מודרני - בית כנסת גבורת ישראל
   גרסה 2.0 - מותאם לחלוטין למובייל
   =============================================== */

/* Import Google Fonts - גופנים עבריים מותאמים */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&family=Varela+Round&family=Alef:wght@400;700&display=swap');

/* Custom Properties */
:root {
    /* Colors */
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --accent-gold: #d4af37;
    --light-gold: #f4d03f;
    --warm-brown: #8b4513;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-accent: linear-gradient(45deg, var(--accent-gold), var(--light-gold));
    --gradient-hero: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.8) 100%);
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    
    /* Typography */
    --font-primary: 'Assistant', 'Segoe UI', sans-serif;
    --font-headings: 'Varela Round', 'Assistant', sans-serif;
    --font-special: 'Alef', 'Assistant', sans-serif;
    
    /* Responsive Font Sizes */
    --font-size-xs: clamp(0.7rem, 2vw, 0.75rem);
    --font-size-sm: clamp(0.8rem, 2.2vw, 0.875rem);
    --font-size-base: clamp(0.9rem, 2.5vw, 1rem);
    --font-size-lg: clamp(1rem, 3vw, 1.125rem);
    --font-size-xl: clamp(1.1rem, 3.5vw, 1.25rem);
    --font-size-2xl: clamp(1.3rem, 4vw, 1.5rem);
    --font-size-3xl: clamp(1.5rem, 5vw, 1.875rem);
    --font-size-4xl: clamp(1.8rem, 6vw, 2.25rem);
    --font-size-5xl: clamp(2rem, 7vw, 3rem);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Improved text rendering */
p, span, div, a, li, button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    line-height: 1.3;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    text-align: center;
    color: white;
}

.loading-logo .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--gradient-accent);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
}

.loading-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    opacity: 0.9;
}

/* ===============================================
   HEADER - מתוקן לחלוטין למובייל
   =============================================== */

.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(30, 60, 114, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    gap: var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0;
}

.modern-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    background-image: url('images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-base);
}

.modern-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    min-width: 0;
    flex: 1;
}

.logo-text h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Menu Toggle - מתוקן */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-2);
    gap: 5px;
    background: transparent;
    border: none;
    z-index: 1001;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===============================================
   NAVIGATION - מתוקן לחלוטין למובייל
   =============================================== */

.modern-nav {
    background: var(--text-dark);
    transition: all var(--transition-base);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    flex-wrap: wrap;
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: var(--font-size-sm);
    position: relative;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left var(--transition-base);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===============================================
   HERO SECTION - מתוקן למובייל
   =============================================== */

.modern-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.5;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-up linear infinite;
    pointer-events: none;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(30, 60, 114, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0 auto;
    padding: var(--space-6);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.2;
    word-break: break-word;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.7;
    font-size: var(--font-size-sm);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===============================================
   BUTTONS - מתוקן למובייל
   =============================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.cta-button.primary {
    background: var(--gradient-accent);
    color: var(--text-dark);
    box-shadow: var(--shadow-medium);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button.small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 38px;
}

.cta-button:active {
    transform: scale(0.98);
}

/* ===============================================
   CARDS AND GRID - מתוקן למובייל
   =============================================== */

.main-content {
    padding: var(--space-8) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.modern-card {
    position: relative;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.modern-card:hover .card-glow {
    opacity: 1;
}

.modern-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    color: white;
}

.card-title {
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-4);
    word-break: break-word;
}

.card-content p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
    word-break: break-word;
}

/* ===============================================
   PRAYER TIMES - מתוקן למובייל
   =============================================== */

.modern-times {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.modern-times h4 {
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
}

.modern-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-3);
}

.modern-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.modern-time:active {
    transform: scale(0.98);
}

.time-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--space-1);
    text-align: center;
}

.time-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===============================================
   EVENTS - מתוקן למובייל
   =============================================== */

.modern-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.modern-event {
    background: rgba(255, 255, 255, 0.7);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--accent-gold);
    position: relative;
    transition: transform var(--transition-base);
}

.modern-event:active {
    transform: scale(0.98);
}

.event-date {
    font-size: var(--font-size-sm);
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.event-title {
    font-weight: 600;
    margin-bottom: var(--space-2);
    word-break: break-word;
}

.event-time {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

.event-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-top: var(--space-2);
}

/* ===============================================
   TIMELINE (HERITAGE) - מתוקן למובייל
   =============================================== */

.timeline-section {
    padding: var(--space-8) 0;
}

.section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--space-12);
    position: relative;
    word-break: break-word;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.timeline {
    position: relative;
    padding: var(--space-4) 0;
}

.timeline-item {
    position: relative;
    padding: var(--space-6) var(--space-4);
    margin-bottom: var(--space-8);
}

.timeline-marker {
    position: relative;
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--space-4);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.timeline-marker.current {
    background: var(--gradient-primary);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(212, 175, 55, 0);
    }
}

.timeline-content {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.timeline-content h4 {
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
    word-break: break-word;
}

.timeline-content p {
    line-height: 1.7;
    margin-bottom: var(--space-4);
    word-break: break-word;
}

.timeline-image-placeholder {
    margin-top: var(--space-4);
}

.image-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--text-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-4);
    text-align: center;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================================
   GALLERY - מתוקן למובייל
   =============================================== */

.gallery-section {
    padding: var(--space-12) 0;
}

.gallery-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-8);
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    padding: 0 var(--space-2);
}

.filter-btn {
    background: white;
    border: 2px solid var(--bg-light);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    min-height: 38px;
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:active {
    transform: scale(0.98);
}

.filter-btn.active {
    background: var(--gradient-accent);
    color: var(--text-dark);
    border-color: var(--accent-gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-6);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-item:active {
    transform: scale(0.98);
}

.gallery-image {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-image .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    padding: var(--space-4);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    text-align: center;
}

.gallery-info h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
    word-break: break-word;
}

.gallery-info p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* ===============================================
   STORIES - מתוקן למובייל
   =============================================== */

.stories-section {
    padding: var(--space-12) 0;
    background: white;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.story-card {
    position: relative;
    background: var(--bg-light);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.story-quote {
    font-size: 4rem;
    line-height: 0;
    color: var(--accent-gold);
    font-family: Georgia, serif;
    margin-bottom: var(--space-4);
}

.story-text {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: var(--space-6);
    color: var(--text-dark);
    font-style: italic;
    word-break: break-word;
}

.story-author {
    border-top: 2px solid var(--accent-gold);
    padding-top: var(--space-4);
}

.author-name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--space-1);
}

.author-role {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* ===============================================
   VISION SECTION - מתוקן למובייל
   =============================================== */

.vision-section {
    padding: var(--space-12) 0;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.vision-item {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
}

.vision-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.vision-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.vision-item h4 {
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
    word-break: break-word;
}

.vision-item p {
    line-height: 1.7;
    color: var(--text-light);
    word-break: break-word;
}

/* ===============================================
   CTA SECTIONS - מתוקן למובייל
   =============================================== */

.modern-cta {
    position: relative;
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-12) 0;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cta-pattern {
    background: 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.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    width: 100%;
    height: 100%;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--space-4);
}

.cta-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.cta-content h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    word-break: break-word;
}

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
    min-width: 100px;
    -webkit-tap-highlight-color: transparent;
}

.contact-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: var(--font-size-2xl);
}

/* ===============================================
   FOOTER - מתוקן למובייל
   =============================================== */

.modern-footer {
    position: relative;
    background: var(--text-dark);
    color: white;
    padding: var(--space-12) 0 var(--space-6);
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-pattern {
    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.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    width: 100%;
    height: 100%;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h4 {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.footer-logo .logo-icon.small {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    word-break: break-word;
}

.contact-info p {
    margin-bottom: var(--space-2);
    opacity: 0.8;
    word-break: break-word;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:active {
    transform: scale(0.98);
}

.social-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    transition: all var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

.social-link:active {
    transform: scale(0.98);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    flex: 1;
    min-width: 200px;
    text-align: center;
    font-size: var(--font-size-sm);
}

.footer-love {
    opacity: 0.6;
    font-size: var(--font-size-sm);
}

/* ===============================================
   SCROLL TO TOP BUTTON - מתוקן למובייל
   =============================================== */

.scroll-to-top {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-dark);
    font-size: var(--font-size-xl);
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-large);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:active {
    transform: scale(0.95);
}

/* ===============================================
   ANIMATION CLASSES
   =============================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Delay classes */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* ===============================================
   ACCESSIBILITY IMPROVEMENTS
   =============================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: var(--space-4);
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: var(--space-4);
    top: var(--space-4);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===============================================
   FORM STYLES - מתוקן למובייל
   =============================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--font-size-base);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    transition: border-color var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===============================================
   RESPONSIVE MEDIA QUERIES
   =============================================== */

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
    :root {
        --space-8: 1.5rem;
        --space-12: 2rem;
        --space-16: 2.5rem;
        --space-20: 3rem;
    }
    
    .modern-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }
    
    .hero-stats {
        gap: var(--space-4);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Transform navigation for mobile */
    .modern-nav {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--text-dark);
        transition: all var(--transition-base);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .modern-nav.nav-open {
        top: calc(100% - 1px);
        max-height: 400px;
        overflow-y: auto;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--space-4);
        gap: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-4);
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Adjust hero section */
    .modern-hero {
        min-height: 60vh;
    }
    
    .hero-content {
        padding: var(--space-4);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
    }
    
    /* Adjust stats */
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    /* Timeline adjustments */
    .timeline-item {
        padding: var(--space-4) var(--space-2);
    }
    
    .timeline-content {
        padding: var(--space-4);
    }
    
    /* Gallery adjustments */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
        gap: var(--space-4);
    }
    
    /* Stories grid */
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Vision grid */
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Scroll to top button */
    .scroll-to-top {
        bottom: var(--space-4);
        left: var(--space-4);
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    :root {
        --space-4: 0.75rem;
        --space-6: 1rem;
        --space-8: 1.25rem;
        --space-12: 1.5rem;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    .logo-text h1 {
        font-size: var(--font-size-lg);
    }
    
    .tagline {
        display: none;
    }
    
    .modern-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .modern-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modern-card {
        padding: var(--space-4);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .cta-content h3 {
        font-size: var(--font-size-2xl);
    }
    
    .contact-methods {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-btn {
        width: 100%;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .modern-hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: var(--space-4);
    }
    
    .hero-stats {
        display: none;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme as designed */
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particle {
        display: none;
    }
}

/* Print styles */
@media print {
    .modern-nav,
    .mobile-menu-toggle,
    .scroll-to-top,
    .cta-button,
    .hero-particles {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .modern-header {
        background: white;
        color: black;
        position: static;
    }
    
    .modern-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.hidden { display: none !important; }
.visible { display: block !important; }

.no-scroll { overflow: hidden; }

/* Spacing utilities */
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }

.pt-4 { padding-top: var(--space-4); }
.pb-4 { padding-bottom: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Color utilities */
.text-primary { color: var(--primary-blue); }
.text-accent { color: var(--accent-gold); }
.text-muted { color: var(--text-light); }

/* ===============================================
   SCROLLBAR STYLING
   =============================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-light);
}

/* ===============================================
   END OF FILE
   =============================================== */