/* EOE - الشركة المصرية للأجهزة المكتبية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --eoe-red: #DC2626;
  --eoe-dark: #111827;
  --eoe-light: #F9FAFB;
  --whatsapp-green: #25D366;
  --eoe-red-dark: #B91C1C;
}

* {
  font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--eoe-light);
  color: var(--eoe-dark);
  overflow-x: hidden;
}

.nav-link.active {
  color: var(--eoe-red) !important;
  font-weight: 700;
}

.nav-link.active::after {
  width: 100% !important;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--eoe-red);
  transition: width 0.3s ease;
}

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

.btn-primary {
  background-color: var(--eoe-red);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--eoe-red);
}

.btn-primary:hover {
  background-color: var(--eoe-red-dark);
  border-color: var(--eoe-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.3);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-whatsapp:hover {
  background-color: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.3);
  color: white;
}

.btn-outline {
  border: 2px solid var(--eoe-red);
  color: var(--eoe-red);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--eoe-red);
  color: white;
  transform: translateY(-2px);
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--eoe-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  border-color: #E5E7EB;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--eoe-red);
  transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
  background: var(--eoe-red);
  color: white;
}

.client-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  font-weight: 700;
  color: var(--eoe-dark);
  font-size: 0.9rem;
}

.client-logo:hover {
  border-color: var(--eoe-red);
  box-shadow: 0 8px 20px -8px rgba(220, 38, 38, 0.2);
  transform: translateY(-3px);
}

.hero-gradient {
  background: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero Slider */
.hero-section {
  min-height: 35vh;
  height: 35vh;
}
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
    height: 100vh;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide iframe,
.hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-slide video {
  object-fit: cover;
}
.hero-slide.active {
  opacity: 1;
}

.section-title {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: var(--eoe-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 60px;
  height: 4px;
  background: var(--eoe-red);
  border-radius: 2px;
}

.section-title-center::after {
  right: 50%;
  transform: translateX(50%);
}

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.goal-item:last-child {
  border-bottom: none;
}

.goal-check {
  color: var(--eoe-red);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--eoe-red);
}

.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #9CA3AF;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  background: white;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--eoe-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-input.error {
  border-color: var(--eoe-red);
}

.form-input.success {
  border-color: #10B981;
}

.error-msg {
  color: var(--eoe-red);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-input.error ~ .error-msg {
  display: block;
}

.page-header {
  background: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.vision-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  border-right: 4px solid var(--eoe-red);
  transition: all 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

.footer-link {
  color: #9CA3AF;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--eoe-red);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #111827;
}

.mobile-menu.open {
  max-height: 400px;
}

.hamburger {
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--eoe-red);
  line-height: 1;
}

.timeline-item {
  position: relative;
  padding-right: 2rem;
  border-right: 2px solid var(--eoe-red);
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--eoe-red);
  border-radius: 50%;
}

.timeline-item:last-child {
  border-right-color: transparent;
  padding-bottom: 0;
}

.map-placeholder {
  background: #E5E7EB;
  border-radius: 1rem;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #6B7280;
  border: 2px dashed #D1D5DB;
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--eoe-red);
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.3s; }

@media (max-width: 768px) {
  .hero-gradient {
    text-align: center;
  }
  .stat-number {
    font-size: 2rem;
  }
  .page-header {
    padding: 5rem 0 3rem;
  }
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: white;
}

.logo-text {
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--eoe-red), #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 0.65rem;
  color: #6B7280;
  letter-spacing: 0.5px;
}

/* Product Slider */
.slider-wrap {
  position: relative;
  overflow: hidden;
  direction: ltr;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-slide {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 0.625rem;
}

@media (max-width: 1023px) {
  .slider-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 639px) {
  .slider-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.55);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 1.15rem;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  border-color: var(--eoe-red);
  background: rgba(17, 24, 39, 0.8);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.25);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.slider-arrow.prev {
  left: 6px;
}

.slider-arrow.next {
  right: 6px;
}

@media (max-width: 639px) {
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .slider-arrow.prev { left: 2px; }
  .slider-arrow.next { right: 2px; }
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D1D5DB;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot.active {
  background: var(--eoe-red);
  border-color: var(--eoe-red);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.35);
}

.slider-dot:hover:not(.active) {
  background: #9CA3AF;
}

.slider-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.slider-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eoe-red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.slider-card:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
  border-color: var(--eoe-red);
}

.slider-card:hover::after {
  transform: scaleX(1);
}

.slider-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #9CA3AF;
  flex-shrink: 0;
}

.slider-card-body {
  padding: 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 639px) {
  .slider-card-img {
    height: 130px;
    font-size: 2.8rem;
  }
  .slider-card-body {
    padding: 1rem 0.875rem;
  }
}

.slider-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--eoe-dark);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.slider-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.slider-card-features li {
  font-size: 0.8rem;
  color: #6B7280;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slider-card-features li i {
  color: var(--eoe-red);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.slider-card-status {
  font-size: 0.78rem;
  color: var(--eoe-red);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.slider-card-status i {
  font-size: 0.65rem;
}

/* Hide scrollbar for slider */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Categories Slider */
.cat-slider-wrap {
  position: relative;
  overflow: hidden;
  direction: ltr;
}

.cat-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.cat-slider-slide {
  flex: 0 0 20%;
  max-width: 20%;
  padding: 0 0.625rem;
}

@media (max-width: 1023px) {
  .cat-slider-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 639px) {
  .cat-slider-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.cat-slider-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.cat-slider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
  border-color: var(--eoe-red);
}

.cat-slider-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F9FAFB;
  padding: 1rem;
}

.cat-slider-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-slider-card-img i {
  font-size: 3rem;
  color: #9CA3AF;
}

.cat-slider-card-body {
  padding: 1rem 0.75rem 1.25rem;
}

.cat-slider-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eoe-dark);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.cat-slider-card-sub {
  font-size: 0.75rem;
  color: #9CA3AF;
  font-weight: 500;
}

/* Cart Dropdown */
.cart-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: 90vw;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 100;
  margin-top: 8px;
  direction: rtl;
}
.cart-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid #E5E7EB;
  border-top: 1px solid #E5E7EB;
}
.cart-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #E5E7EB;
}
.cart-items {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.2s;
}
.cart-item:hover {
  background: #F9FAFB;
}
.cart-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #F3F4F6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.2rem;
  color: #9CA3AF;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-qty {
  font-size: 0.7rem;
  color: #6B7280;
}
.cart-item-remove {
  color: #9CA3AF;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 0.85rem;
}
.cart-item-remove:hover {
  color: #DC2626;
  background: #FEE2E2;
}
.cart-dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #E5E7EB;
  gap: 8px;
}
.cart-empty {
  padding: 32px 16px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.9rem;
}
.cart-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 400px) {
  .cart-dropdown {
    left: -60px;
    min-width: 280px;
  }
  .cart-dropdown::before {
    left: 80px;
  }
}
