/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hebrew font support */
body.hebrew {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
}

html {
    scroll-behavior: smooth;
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    height: 64px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.nav-brand i {
    color: #2563eb;
    margin-right: 8px;
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #2563eb;
}

/* Language toggle button */
.language-toggle {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 16px;
}

.language-toggle:hover {
    background: #e5e7eb;
}

.language-toggle.mobile {
    margin: 16px 20px;
    width: calc(100% - 40px);
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 999;
}

.mobile-menu a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-secondary {
    background: white;
    color: #2563eb;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    margin-top: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1f2937;
}

.highlight {
    color: #2563eb;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.feature i {
    color: #10b981;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 900px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.service-icon.excel {
    background: #dcfce7;
    color: #16a34a;
}

.service-icon.automation {
    background: #dbeafe;
    color: #2563eb;
}

.service-icon.custom {
    background: #f3e8ff;
    color: #9333ea;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.service-card li i {
    color: #10b981;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    padding: 80px 0;
    background: #f9fafb;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 48px;
    align-items: center;
}

.benefits-list {
    margin-top: 32px;
}

.benefit {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.benefit-icon.revenue i {
    color: #16a34a;
}

.benefit-icon.savings i {
    color: #2563eb;
}

.benefit-icon.scale i {
    color: #9333ea;
}

.benefit-content h3 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.benefit-content p {
    color: #6b7280;
}

.benefits-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== CTA SECTION & FORM ===== */
.cta {
    padding: 80px 0;
    background: #2563eb;
    color: white;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 800px;
    margin: 0 auto;
}

.quote-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bfdbfe;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1e40af;
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.875rem;
    color: #bfdbfe;
    margin-top: 16px;
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
}

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

.contact-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.contact-icon.email {
    background: #dbeafe;
    color: #2563eb;
}

.contact-icon.phone {
    background: #dcfce7;
    color: #16a34a;
}

.contact-icon.location {
    background: #f3e8ff;
    color: #9333ea;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.contact-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    padding: 24px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}

.footer-brand i {
    color: #2563eb;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.75rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RTL (HEBREW) ADJUSTMENTS ===== */
.hebrew .nav-brand i {
    margin-left: 8px;
    margin-right: 0;
}

.hebrew .hero-buttons {
    direction: rtl;
}

.hebrew .btn i {
    margin-left: 0;
    margin-right: 8px;
}

.hebrew .hero-features {
    direction: rtl;
}

.hebrew .feature {
    direction: rtl;
}

.hebrew .benefit {
    direction: rtl;
}

.hebrew .benefit-icon {
    margin-left: 16px;
    margin-right: 0;
}

.hebrew .service-card li {
    direction: rtl;
}

.hebrew .footer-brand {
    direction: rtl;
}

.hebrew .mobile-menu a {
    text-align: right;
}

.hebrew .form-group {
    text-align: right;
}

.hebrew .form-group label {
    text-align: right;
}

.hebrew .form-group input,
.hebrew .form-group select,
.hebrew .form-group textarea {
    text-align: right;
    direction: rtl;
}

.hebrew .form-group select {
    text-align: right;
}

.hebrew .nav {
    direction: rtl;
}

.hebrew .footer-nav {
    direction: rtl;
}

.hebrew .benefits-content {
    direction: rtl;
}

.hebrew .benefits-text {
    text-align: right;
}

.hebrew .service-card {
    text-align: right;
}

.hebrew .contact-card {
    text-align: center;
}

.hebrew .hero-text {
    text-align: right;
}

.hebrew .hero-content {
    direction: rtl;
}

.hebrew .section-header {
    text-align: center;
}

.hebrew .cta-content {
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Language toggle responsive */
@media (max-width: 768px) {
    .language-toggle:not(.mobile) {
        display: none;
    }
}

@media (min-width: 769px) {
    .language-toggle.mobile {
        display: none;
    }
}

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-form {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cta p {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .services, .benefits, .contact {
        padding: 60px 0;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .quote-form {
        padding: 20px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}