/* Deep Vision IT - Global Elegant Refinement (Professional & Cool) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600&family=Outfit:wght@300;400;500&display=swap');

:root {
  --bg-body: #F8FAFC;
  /* Cool Silver/White */
  --bg-white: #FFFFFF;
  --primary-color: #0F172A;
  /* Deep Navy - Professional & Serious */
  --secondary-color: #334155;
  /* Slate - Clean text */
  --accent-color: #0EA5E9;
  /* Sky Blue - Modern Touch */
  --border-color: #E2E8F0;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--secondary-color);
  line-height: 1.8;
  font-weight: 300;
  font-size: 15px;
}

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

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p {
  text-align: right;
}

/* Explicit LTR Support for English pages */
[dir="ltr"] body {
  text-align: left;
  direction: ltr;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 600;
  /* Semi-bold, not heavy */
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-color);
}

/* Navbar - Clean & Corporate */
.header_section {
  background: var(--bg-white);
  box-shadow: 0 1px 0 var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  height: 40px;
}

.navbar-brand span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-inline-start: 12px;
  /* Logical property for LTR/RTL */
}

.nav-link {
  color: var(--secondary-color) !important;
  font-weight: 400;
  font-size: 0.95rem;
  margin-inline-start: 15px;
  /* Replace margin-left with margin-inline-start */
  position: relative;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--accent-color) !important;
}

/* Hover Underline Effect */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s;
}

/* Direction Utilities */
[dir="rtl"] .text-right {
  text-align: right !important;
}

[dir="rtl"] .text-left {
  text-align: left !important;
}

[dir="ltr"] .text-right {
  text-align: right !important;
}

[dir="ltr"] .text-left {
  text-align: left !important;
}

/* Margin/Padding Utilities for Bi-Di */
.ms-auto {
  margin-inline-start: auto;
}

.me-auto {
  margin-inline-end: auto;
}

.ms-3 {
  margin-inline-start: 1rem;
}

.me-3 {
  margin-inline-end: 1rem;
}

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

/* Client Card Styling */
.client-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  border: 1px solid var(--border-color);
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.client-card .icon-box {
  margin-bottom: 20px;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f9ff;
  border-radius: 50%;
  color: var(--accent-color);
  transition: var(--transition);
}

.client-card:hover .icon-box {
  background-color: var(--accent-color);
  color: #fff;
}

.client-card h5 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.client-card p {
  font-size: 0.95rem;
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Service Icon Box Update */
.service_section .box .img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--bg-body);
  transition: var(--transition);
}

.service_section .box:hover .img-box {
  background: var(--primary-color);
}

.service_section .box:hover .img-box i {
  color: white !important;
}

/* Hero Image Resize - Even Smaller */
.hero_area .img-box img {
  width: 100%;
  max-width: 250px;
  /* Reduced to small icon size */
  margin: 0 auto;
  display: block;
}

/* Ensure Absolutely NO top gap or extra padding */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

.hero_area {
  padding: 0 !important;
  /* Removed all padding */
  margin: 0 !important;
  min-height: auto;
}

.header_section {
  margin: 0 !important;
  padding: 10px 0;
  /* Minimal vertical padding */
  background: var(--bg-white);
}

.slider_section {
  padding-top: 20px;
  /* Slight separation from header */
  padding-bottom: 30px;
}

/* Premium Contact Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-icon-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Unify Footer Icons to match */
.info_section .box .img-box {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.info_section .box .img-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Ensure no plain text links ruin the look */
.header-icons a {
  text-decoration: none;
}

[dir="ltr"] .me-2 {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}

/* Footer Icon Fix */
.info_section .box .img-box {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.info_section .box .img-box:hover {
  background-color: var(--accent-color);
}

/* Language Switcher */
.lang-switch {
  border: 1px solid var(--border-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.lang-switch:hover {
  background: var(--bg-body);
  color: var(--accent-color);
}

/* Hero Section - Professional */
.hero_area {
  background: #fff;
  padding: 40px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

/* Floating Contact Buttons */
.floating-contacts {
  position: fixed;
  bottom: 30px;
  right: 30px;
  /* LTR default */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.floating-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  /* Default (WhatsApp Green) */
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.3);
}

.floating-btn.whatsapp {
  background-color: #25d366;
}

.floating-btn.phone {
  background-color: #0ea5e9;
  /* Sky Blue */
  font-size: 24px;
}

.floating-btn.email {
  background-color: #1e3a8a;
  /* Deep Blue */
  font-size: 24px;
}

/* Hide original whatsapp float if exists */
.whatsapp-float {
  display: none !important;
}

/* Pulse Animation */
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: pulse-green 2s infinite;
}

/* RTL Adjustment for WhatsApp */
[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 40px;
}

.hero_area .detail-box h1 {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 25px;
}

.hero_area .detail-box h1 span {
  font-weight: 600;
  color: var(--accent-color);
}

.hero_area .detail-box p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 300;
  max-width: 550px;
  margin-bottom: 35px;
}

/* Modern Button - Elegant */
.btn-1 {
  display: inline-block;
  padding: 12px 35px;
  background-color: var(--primary-color);
  color: #fff !important;
  border-radius: 4px;
  /* Slightly rounded, professional */
  font-size: 0.95rem;
  font-weight: 400;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
}

.btn-1:hover {
  background-color: transparent;
  color: var(--primary-color) !important;
}

/* Service Bento Grid - Clean */
.layout_padding {
  padding: 50px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-size: 2.2rem;
  font-weight: 300;
}

.section-heading p {
  color: var(--secondary-color);
  font-weight: 300;
}

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

.service-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h5 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Client List - Grid */
.clients_section {
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.client-item {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  padding: 15px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.client-item:hover {
  border-color: var(--border-color);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.product-card .img-box {
  height: 180px;
  /* Reduced from 200px */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  padding: 15px;
  /* Add padding to constrain image */
}

.product-card .img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* changed from cover to contain */
  transition: transform 0.3s ease;
}

.product-card:hover .img-box img {
  transform: scale(1.05);
}

.client-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  margin-left: 15px;
  flex-shrink: 0;
}

.client-info h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.client-info span {
  font-size: 0.8rem;
  color: #94A3B8;
}

/* Portfolio Cards */
.portfolio-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.portfolio-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-body {
  padding: 25px;
}

/* Contact */
/* Contact Form Styling */
input,
textarea {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #e1e1e1;
  border-radius: 30px;
  /* More rounded */
  background: #fff;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--primary-color);
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

/* Expanded Message Box */
textarea.message-box {
  height: 180px;
  /* Taller as requested */
  resize: vertical;
  border-radius: 20px;
  /* Slightly less rounded for large box */
}

/* Enhanced Send Button */
.contact_section button {
  display: inline-block;
  padding: 12px 45px;
  background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  /* Gradient */
  color: #ffffff;
  border: none;
  border-radius: 30px;
  transition: all 0.3s;
  font-weight: 600;
  margin-top: 10px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  /* Soft shadow */
}

.contact_section button:hover {
  background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  /* Reverse gradient on hover */
  transform: translateY(-2px);
  /* Slight lift */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hiding Info Section (Footer Contact Details) to avoid repetition with floating buttons */
.info_section {
  display: none !important;
}

/* Footer Section itself (Copyright) remains */
.footer_section {
  background: var(--primary-color);
  color: #94A3B8;
  padding: 20px 0;
  text-align: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer_section p {
  text-align: center !important;
  margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero_area .detail-box h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}