/* Local Noto Sans Hebrew fonts */
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 100;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-100.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 200;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-200.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 300;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 800;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-800.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans Hebrew';
  font-style: normal;
  font-weight: 900;
  font-stretch: normal;
  font-display: swap;
  src: url('../fonts/noto-sans-hebrew-900.ttf') format('truetype');
}

body {
    font-family: 'Noto Sans Hebrew', 'Open Sans', 'Arial', 'Helvetica', sans-serif;
    overflow-x: hidden;
}

/* Prevent horizontal scroll from dropdown menus */
.absolute.bg-white {
    max-width: 100vw;
    right: 0;
    left: auto;
}

/* Ensure dropdowns don't cause horizontal scroll */
@media (max-width: 768px) {
    .absolute.bg-white {
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

/* Prevent FOUC by setting default dark theme styles */
html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

/* Ensure smooth theme transitions */
* {
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

/* Noto Sans Hebrew font optimization */
* {
    font-family: 'Noto Sans Hebrew', 'Open Sans', 'Arial', 'Helvetica', sans-serif;
}


/* Strong floating shadows for sections */
.shadow-top-bottom {
    box-shadow: 
        0 -6px 15px -3px rgba(0, 0, 0, 0.1),
        0 8px 20px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Last section - only top shadow */
.shadow-top-only {
    box-shadow: 0 -6px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Logo filter effects */
.logo-filter {
    transition: all 0.3s ease;
}

.logo-filter img {
    filter: grayscale(100%) brightness(0.7) contrast(1.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-filter:hover {
    transform: scale(1.05);
}

.logo-filter:hover img {
    filter: grayscale(0%) brightness(1) contrast(1);
    transform: scale(1.05);
}

/* Icon styles for Services and Technologies sections */
.icon-bw {
    filter: grayscale(100%) brightness(0.3) contrast(1.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.icon-bw:hover {
    filter: grayscale(0%) brightness(1) contrast(1);
    transform: scale(1.1);
}

/* Dark theme icon improvements */
[data-theme="dark"] .icon-bw {
    filter: grayscale(0%) brightness(0.8) contrast(1.1);
    color: #60a5fa; /* Blue color for better visibility in dark theme */
}

[data-theme="dark"] .icon-bw:hover {
    filter: grayscale(0%) brightness(1) contrast(1.2);
    color: #93c5fd; /* Lighter blue on hover */
    transform: scale(1.1);
}

/* Dark theme container improvements */
[data-theme="dark"] .service-icon-container,
[data-theme="dark"] .tech-icon-container {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .service-icon-container:hover,
[data-theme="dark"] .tech-icon-container:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-color: #60a5fa;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.2);
}

/* Center icons in Services and Technologies sections */
.service-icon-container,
.tech-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dark theme CSS variables */
:root {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Theme switcher styles for footer */
.theme-switcher-container {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle-btn-dark.active {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}
.theme-toggle-btn-light.active {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-color: var(--bg-primary);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(15deg);
}

/* Dark theme overrides for existing elements */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-gray-50 {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .text-gray-900 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-600 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-gray-500 {
    color: var(--text-tertiary) !important;
}

[data-theme="dark"] .border-gray-100 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .border-gray-200 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-gray-100 {
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .border-gray-800 {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .text-gray-400 {
    color: var(--text-tertiary) !important;
}

/* Dark theme for footer */
[data-theme="dark"] footer {
    background-color: #0f172a !important;
}

[data-theme="dark"] footer .text-white {
    color: var(--text-primary) !important;
}

[data-theme="dark"] footer .text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] footer .text-gray-400 {
    color: var(--text-tertiary) !important;
}

/* Dark theme for decorative elements */
[data-theme="dark"] .bg-blue-200 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="dark"] .bg-orange-200 {
    background-color: rgba(251, 146, 60, 0.1) !important;
}

[data-theme="dark"] .bg-blue-300 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Floating animations for decorative circles */
@keyframes float-very-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(10px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(8px); }
    50% { transform: translateY(-8px) translateX(15px); }
    75% { transform: translateY(-20px) translateX(8px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(20px); }
    75% { transform: translateY(-25px) translateX(10px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-25px) translateX(12px); }
    50% { transform: translateY(-12px) translateX(25px); }
    75% { transform: translateY(-30px) translateX(12px); }
}

.animate-float-very-slow {
    animation: float-very-slow 20s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 15s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 12s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 8s ease-in-out infinite;
}

/* CTA Button styles */
.cta-button {
    background-color: #111827;
    color: #ffffff;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #1f2937;
    transform: translateY(-1px);
}

.cta-button-secondary {
    background-color: #ffffff;
    color: #4b5563;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
}

.cta-button-secondary:hover {
    background-color: #ffffff;
    color: #111827;
    border-color: #111827;
    transform: translateY(-1px);
}

/* Dark theme for secondary button */
[data-theme="dark"] .cta-button-secondary {
    background-color: var(--bg-secondary);
    color: #ffffff;
    border-color: rgb(55, 65, 81);
}

[data-theme="dark"] .cta-button-secondary:hover {
    background-color: var(--bg-secondary);
    color: #ffffff;
    border-color: rgb(55, 65, 81);
}

/* Dark theme CTA buttons with white borders for visibility */
[data-theme="dark"] .cta-button {
    background-color: #1f2937 !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}

[data-theme="dark"] .cta-button:hover {
    background-color: #374151 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Dark theme for header dropdowns */
[data-theme="dark"] .absolute.bg-white {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .absolute.bg-white a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .absolute.bg-white a:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Dark theme for mobile menu */
[data-theme="dark"] .mobile-menu-transition {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .mobile-menu-transition a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .mobile-menu-transition a:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .mobile-dropdown-transition a {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .mobile-dropdown-transition a:hover {
    color: var(--text-primary) !important;
}

/* Dark theme for header buttons and navigation */
[data-theme="dark"] header button {
    color: var(--text-primary) !important;
}

[data-theme="dark"] header button:hover {
    color: #60a5fa !important;
}

/* ERP Swiper Styles */
/* Linear easing for truly continuous motion */
.erp-swiper .swiper-wrapper { 
    transition-timing-function: linear !important; 
}

/* Pre-init: show a full line of logos before JS initializes Swiper */
.erp-swiper:not(.swiper-initialized) { 
    overflow: hidden; 
}

.erp-swiper:not(.swiper-initialized) .swiper-wrapper { 
    display: flex; 
    gap: 24px; 
}

.erp-swiper:not(.swiper-initialized) .swiper-slide { 
    width: auto; 
    flex: 0 0 auto; 
}

/* Clients Swiper Styles */
/* Linear easing for truly continuous motion */
.clients-swiper .swiper-wrapper { 
    transition-timing-function: linear !important; 
}

/* Pre-init: show a full line of logos before JS initializes Swiper */
.clients-swiper:not(.swiper-initialized) { 
    overflow: hidden; 
}

.clients-swiper:not(.swiper-initialized) .swiper-wrapper { 
    display: flex; 
    gap: 24px; 
}

.clients-swiper:not(.swiper-initialized) .swiper-slide { 
    width: auto; 
    flex: 0 0 auto; 
}

[data-theme="dark"] header nav a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] header nav a:hover {
    color: #60a5fa !important;
}
