/* ========================================
   OVI Silo - MAIN STYLESHEET
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #F39C12;
  --primary-dark: #E67E22;
  --primary-light: #F5B041;
  --dark: #2d2d2d;
  --darker: #1a1a1a;
  --dark-grey: #444;
  --text: #333;
  --text-light: #666;
  --white: #ffffff;
  --light-bg: #f5f5f5;
  --lighter-bg: #fafafa;
  --green: #25D366;
  --green-dark: #128C7E;
  --shadow: 0 2px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --radius: 4px;
  --radius-lg: 8px;
  --font: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: var(--dark);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.lang-btn:hover, .lang-btn.active {
  color: var(--primary);
  border-color: var(--primary);
}

.lang-btn img {
  width: 18px;
  height: 13px;
  object-fit: cover;
}

/* ===== MAIN HEADER ===== */
.main-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 40%, var(--white) 40%);
  padding: 15px 0;
  position: relative;
}

[dir="rtl"] .main-header {
  background: linear-gradient(225deg, var(--primary) 0%, var(--primary) 40%, var(--white) 40%);
}

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

/* Logo */
.logo a {
  display: flex;
  align-items: center;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-x {
  font-size: 2.8rem;
  color: var(--white);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

.logo-tds {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  font-style: italic;
}

/* Header Info */
.header-info {
  display: flex;
  gap: 30px;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-text strong {
  font-size: 0.9rem;
  color: var(--dark);
}

.info-text span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-link {
  display: block;
  padding: 18px 16px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Dropdown */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

[dir="rtl"] .dropdown {
  left: auto;
  right: 0;
}

.dropdown li a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.dropdown li a:hover {
  background: var(--primary);
  color: var(--white);
  padding-left: 25px;
}

[dir="rtl"] .dropdown li a:hover {
  padding-left: 20px;
  padding-right: 25px;
}

/* Catalog Button */
.catalog-btn {
  background: var(--primary);
  color: var(--white);
  padding: 18px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.catalog-btn:hover {
  background: var(--primary-dark);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 550px;
  overflow: hidden;
  background: var(--dark);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

#slide1 {
  background: url('../images/hero-slide1.jpg') center/cover no-repeat;
}

#slide2 {
  background: url('../images/hero-slide2.jpg') center/cover no-repeat;
}

#slide3 {
  background: url('../images/hero-slide3.jpg') center/cover no-repeat;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 80%;
}

.slide-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  animation: fadeInUp 0.8s ease;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

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

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 5;
}

.slider-prev, .slider-next {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 1rem;
}

.slider-prev:hover, .slider-next:hover {
  background: var(--primary);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ===== BTN PRIMARY ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 35px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
  padding: 80px 0 60px;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-card {
  text-align: center;
  padding: 30px 15px;
  transition: var(--transition);
  cursor: pointer;
  display: block;
}

.category-card:hover {
  transform: translateY(-8px);
}

.category-card:hover .category-icon {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.category-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.category-icon i {
  font-size: 2rem;
  color: var(--white);
}

.category-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.category-line {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== PROJECTS BANNER ===== */
.projects-banner {
  background: var(--dark);
  padding: 60px 0;
  color: var(--white);
}

.projects-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.projects-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  background: var(--dark-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.project-info {
  padding: 18px;
}

.project-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
  padding: 80px 0;
  background: var(--white);
}

.experience-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 25px;
}

.experience-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.experience-content p strong {
  color: var(--dark);
}

/* ===== REFERENCES SECTION ===== */
.references-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.ref-divider {
  width: 60px;
  height: 3px;
  background: var(--dark);
  margin: 0 auto 40px;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.ref-logo {
  background: var(--white);
  border: 1px solid #e0e0e0;
  padding: 30px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  min-height: 100px;
}

.ref-logo:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.ref-logo-inner {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 2px;
  text-align: center;
}

/* ===== COUNTERS SECTION ===== */
.counters-section {
  background: linear-gradient(rgba(243, 156, 18, 0.85), rgba(230, 126, 34, 0.85)), url('../images/counters-bg.jpg') center/cover no-repeat;
  padding: 60px 0;
  color: var(--white);
  background-attachment: fixed;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.counter-item {
  padding: 20px;
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 800;
  display: inline;
  line-height: 1;
}

.counter-plus {
  font-size: 2rem;
  font-weight: 300;
  vertical-align: super;
}

.counter-item p {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 10px;
  opacity: 0.9;
}

/* ===== WHATSAPP BANNER ===== */
.whatsapp-banner {
  background: var(--green);
  padding: 18px 0;
  text-align: center;
}

.whatsapp-link {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-link i {
  font-size: 1.5rem;
}

.whatsapp-link:hover {
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--dark);
  padding: 60px 0 0;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.footer-divider {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.working-hours li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #3a3a3a;
  font-size: 0.88rem;
  color: #aaa;
}

.working-hours li.closed span:last-child {
  color: #e74c3c;
}

.footer-bottom {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid #3a3a3a;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #888;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: whatsappPulse 2s infinite;
}

[dir="rtl"] .whatsapp-float {
  left: auto;
  right: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== SIDE CONTACT ===== */
.side-contact {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[dir="rtl"] .side-contact {
  left: auto;
  right: 0;
}

.side-btn {
  background: var(--primary);
  color: var(--white);
  padding: 12px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: var(--transition);
  cursor: pointer;
}

[dir="rtl"] .side-btn {
  writing-mode: vertical-lr;
}

.side-email-btn {
  background: var(--dark);
  writing-mode: horizontal-tb;
  padding: 12px;
  font-size: 1rem;
}

.side-btn:hover {
  background: var(--primary-dark);
}

.side-email-btn:hover {
  background: var(--dark-grey);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  font-size: 1rem;
  transition: var(--transition);
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: 30px;
}

.scroll-top:hover {
  background: var(--primary);
}

.scroll-top.visible {
  display: flex;
}

/* ===== PAGE SECTIONS (SUB PAGES) ===== */
.page-section {
  min-height: 100vh;
}

.page-hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
  position: relative;
}

.page-hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #ccc;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  color: var(--white);
}

.page-content {
  padding: 60px 0;
}

/* ===== ABOUT PAGE ===== */
.about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-light);
}

.about-text h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 30px 0 10px;
  padding-left: 15px;
  border-left: 4px solid var(--primary);
}

[dir="rtl"] .about-text h4 {
  padding-left: 0;
  padding-right: 15px;
  border-left: none;
  border-right: 4px solid var(--primary);
}

/* ===== PRODUCTS PAGE ===== */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.products-sidebar {
  background: var(--light-bg);
  padding: 25px;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 80px;
  height: fit-content;
}

.products-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-menu li a {
  display: block;
  padding: 12px 15px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
  transition: var(--transition);
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background: var(--primary);
  color: var(--white);
  padding-left: 20px;
  border-radius: var(--radius);
}

[dir="rtl"] .sidebar-menu li a:hover, [dir="rtl"] .sidebar-menu li a.active {
  padding-left: 15px;
  padding-right: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  padding: 30px 20px;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-img {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.product-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== PROJECTS PAGE ===== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--dark);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 30px;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-grid-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.project-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-grid-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}

.project-grid-info {
  padding: 20px;
  background: var(--white);
}

.project-grid-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.project-grid-info p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== VIDEOS PAGE ===== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card {
  text-align: center;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-placeholder {
  height: 220px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.video-card:hover .video-placeholder {
  background: var(--darker);
}

.video-card h4 {
  font-weight: 600;
  color: var(--dark);
}

/* ===== BLOG PAGE ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
}

.blog-info {
  padding: 20px;
}

.blog-date {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
}

.blog-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0;
}

.blog-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.read-more:hover {
  color: var(--primary-dark);
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-col h3, .contact-form-col h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-block {
  margin-bottom: 25px;
}

.contact-block h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.contact-block p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.contact-form-col p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  margin-bottom: 15px;
  transition: var(--transition);
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.contact-map-col {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.contact-map-col iframe {
  border-radius: var(--radius-lg);
}

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

[dir="rtl"] .top-bar .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .main-header .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-info {
  flex-direction: row-reverse;
}

[dir="rtl"] .info-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .info-text {
  text-align: right;
}

[dir="rtl"] .main-nav .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

[dir="rtl"] .categories-grid {
  direction: rtl;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .social-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
  flex-direction: row-reverse;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .references-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .products-layout {
    grid-template-columns: 1fr;
  }
  
  .products-sidebar {
    position: static;
  }
  
  .header-info {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .main-header {
    background: var(--primary);
    padding: 10px 0;
  }
  
  .main-header .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .header-info {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--dark);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-link {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #3a3a3a;
  }
  
  .has-dropdown:hover .dropdown,
  .has-dropdown.open .dropdown {
    display: block;
  }
  
  .catalog-btn {
    display: none;
  }
  
  .hero-slider {
    height: 350px;
  }
  
  .slide-content h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  
  .slide-content p {
    font-size: 0.95rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-slider {
    grid-template-columns: 1fr;
  }
  
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .side-contact {
    display: none;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .counter-number {
    font-size: 2.5rem;
  }
  
  .slide-content h1 {
    font-size: 1.3rem;
  }
  
  .language-switcher {
    flex-wrap: wrap;
    justify-content: center;
  }
}
