/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #333; line-height: 1.6; overflow-x: hidden; }

/* RTL support */
body[dir="rtl"] { direction: rtl; text-align: right; }

img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Language Switcher ===== */
.lang-switcher {
  position: fixed; top: 10px; right: 80px; z-index: 1001;
  display: flex; gap: 4px; background: rgba(255,255,255,0.95);
  border-radius: 20px; padding: 4px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.lang-btn {
  border: none; background: none; padding: 4px 10px; border-radius: 15px;
  font-size: 12px; font-weight: 600; cursor: pointer; color: #666;
  transition: all 0.2s;
}
.lang-btn.active { background: #2563eb; color: #fff; }
.lang-btn:hover:not(.active) { background: #f0f0f0; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee; transition: all 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 700; color: #1a1a1a; }
.logo span { color: #2563eb; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: #555; font-weight: 500; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: #2563eb; text-decoration: none; }
.nav-cta {
  background: #2563eb; color: #fff !important; padding: 8px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 600; transition: background 0.2s;
}
.nav-cta:hover { background: #1d4ed8; text-decoration: none; }
.mobile-menu-btn { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: 15px; text-align: center; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-whatsapp {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  background: #25d366; color: #fff; font-weight: 600; font-size: 15px;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: #128c7e; text-decoration: none; color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  color: #fff; overflow: hidden;
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0f172a;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-video.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(30,58,95,0.65) 50%, rgba(37,99,235,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding-top: 80px; }
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat-num { display: block; font-size: 32px; font-weight: 700; }
.stat-label { font-size: 14px; opacity: 0.7; }

/* ===== Section Header ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: #666; max-width: 600px; margin: 0 auto; }

/* ===== Products ===== */
.products { padding: 80px 0; background: #f8fafc; }
.product-grid { display: flex; flex-direction: column; gap: 60px; }
.product-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.product-card:nth-child(even) { direction: ltr; }
.product-card:nth-child(even) .product-images { order: 2; }
.product-card:nth-child(even) .product-info { order: 1; }
body[dir="rtl"] .product-card:nth-child(even) { direction: rtl; }
body[dir="rtl"] .product-card:nth-child(even) .product-images { order: 1; }
body[dir="rtl"] .product-card:nth-child(even) .product-info { order: 2; }

.product-images { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #f0f0f0; }
.product-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s;
}
.product-img.active { opacity: 1; }
.product-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: background 0.2s;
}
.dot.active { background: #fff; }
.product-info { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.product-info h3 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.product-info > p { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.product-features { list-style: none; margin-bottom: 24px; }
.product-features li { font-size: 14px; color: #555; padding: 4px 0; }

/* ===== Advantages ===== */
.advantages { padding: 80px 0; background: #fff; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-card {
  text-align: center; padding: 32px 24px; border-radius: 12px;
  background: #f8fafc; transition: all 0.3s;
}
.adv-card:hover { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.adv-icon { font-size: 40px; margin-bottom: 16px; }
.adv-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.adv-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== About ===== */
.about { padding: 80px 0; background: #f8fafc; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.about-text p { color: #555; font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.about-highlights { display: flex; gap: 32px; margin-top: 24px; }
.highlight { text-align: center; }
.highlight-num { display: block; font-size: 28px; font-weight: 700; color: #2563eb; }
.highlight-label { font-size: 13px; color: #888; }
.about-img img { border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); width: 100%; }

/* ===== Contact ===== */
.contact { padding: 80px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.contact-form {
  background: #f8fafc; padding: 32px; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; font-family: inherit; transition: border-color 0.2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #2563eb;
}
.form-group textarea { resize: vertical; }
.form-note { font-size: 12px; color: #999; text-align: center; margin-top: 12px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: #f8fafc; padding: 24px; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-icon { font-size: 24px; }
.contact-item strong { font-size: 13px; color: #888; }
.contact-item a, .contact-item p { font-size: 15px; color: #333; }
.cta-card { text-align: center; background: linear-gradient(135deg, #dcfce7, #d1fae5); }
.cta-card p { font-size: 14px; color: #555; margin-bottom: 16px; }

/* ===== Footer ===== */
.footer { background: #0f172a; color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand h3 { font-size: 22px; margin-bottom: 12px; }
.footer-brand h3 span { color: #60a5fa; }
.footer-brand p { font-size: 14px; opacity: 0.7; line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); padding: 4px 0; }
.footer-links a:hover { color: #60a5fa; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 13px; opacity: 0.5; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .lang-switcher { top: 70px; right: 10px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #fff;
    padding: 20px; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .nav-cta { display: none; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card:nth-child(even) .product-images { order: 0; }
  .product-card:nth-child(even) .product-info { order: 0; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .hero-btns { flex-direction: column; }
  .adv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-highlights { flex-direction: column; gap: 16px; }
}

/* ===== Product Tag ===== */
.product-tag {
  display: inline-block; background: #f0f7ff; color: #2563eb;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 10px; border-radius: 10px;
  margin-bottom: 8px;
}

/* ===== Product Detail Sections ===== */
.product-detail {
  padding: 80px 0;
  background: #fff;
}
.product-detail.alt {
  background: #f8fafc;
}
.detail-header {
  text-align: center; max-width: 800px; margin: 0 auto 48px;
}
.detail-cat {
  display: inline-block; color: #2563eb; font-size: 13px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.detail-header h2 {
  font-size: 36px; font-weight: 700; color: #1e293b;
  margin-bottom: 16px;
}
.detail-intro {
  font-size: 17px; color: #475569; line-height: 1.7;
}

/* Specs Grid */
.detail-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 60px;
}
.spec-item {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 16px 18px;
}
.product-detail.alt .spec-item { background: #fff; }
.spec-label {
  display: block; font-size: 11px; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.spec-value {
  font-size: 15px; font-weight: 600; color: #1e293b;
}

/* Catalog Gallery */
.detail-gallery { margin-bottom: 60px; }

/* Video Gallery */
.detail-videos { margin-bottom: 60px; }
.detail-videos h3 {
  font-size: 22px; font-weight: 600; color: #1e293b;
  margin-bottom: 24px; text-align: center;
}
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.video-item video {
  width: 100%; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  background: #000; aspect-ratio: 16 / 9; object-fit: cover;
}
.video-item p {
  margin-top: 10px; text-align: center;
  font-size: 14px; color: #475569; font-weight: 500;
}

.detail-gallery h3 {
  font-size: 22px; font-weight: 600; color: #1e293b;
  margin-bottom: 24px; text-align: center;
}
.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.catalog-grid img {
  width: 100%; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.catalog-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Series Grid (GLS) */
.detail-series { margin-bottom: 60px; }
.detail-series h3 {
  font-size: 22px; font-weight: 600; color: #1e293b;
  margin-bottom: 24px; text-align: center;
}
.series-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.series-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.series-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.series-card h4 {
  font-size: 16px; font-weight: 600; color: #1e293b;
  padding: 14px 16px 4px;
}
.series-card p {
  font-size: 14px; color: #64748b; padding: 0 16px 16px;
}

/* 5-Layer Structure (IDO) */
.detail-structure { margin-bottom: 60px; }
.detail-structure h3 {
  font-size: 22px; font-weight: 600; color: #1e293b;
  margin-bottom: 24px; text-align: center;
}
.structure-list {
  max-width: 700px; margin: 0 auto;
}
.structure-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; margin-bottom: 8px;
  background: #f8fafc; border-radius: 10px;
  border-left: 4px solid #2563eb;
}
.layer-num {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: #2563eb; color: #fff;
  border-radius: 50%; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.structure-item div { font-size: 14px; color: #475569; }
.structure-item strong { color: #1e293b; }

/* Features Grid */
.detail-features { margin-bottom: 60px; }
.detail-features h3 {
  font-size: 22px; font-weight: 600; color: #1e293b;
  margin-bottom: 24px; text-align: center;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-item {
  text-align: center; padding: 24px 16px;
  background: #f8fafc; border-radius: 12px;
}
.product-detail.alt .feature-item { background: #fff; border: 1px solid #e2e8f0; }
.feature-icon {
  font-size: 36px; margin-bottom: 12px;
}
.feature-item h4 {
  font-size: 16px; font-weight: 600; color: #1e293b;
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 14px; color: #64748b; line-height: 1.6;
}

/* Detail CTA */
.detail-cta {
  text-align: center; padding: 20px 0 0;
}

/* Responsive */
@media (max-width: 768px) {
  .detail-header h2 { font-size: 26px; }
  .detail-intro { font-size: 15px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .series-grid { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .product-detail { padding: 60px 0; }
}
