/*
* ProTech Analytical - Main Stylesheet
* A modern, professional design for analytical instruments company
*/

:root {
  /* Main Colors */
  --primary: #0056b3;
  --primary-dark: #004494;
  --primary-light: #e6f0fa;
  --secondary: #6c757d;
  --secondary-light: #f8f9fa;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --white: #ffffff;
  
  /* Typography */
  --body-font: 'Outfit', sans-serif;
  --heading-font: 'Outfit', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Borders */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
}

.btn {
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-transform: capitalize;
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 50px;
}

.section-title .subtitle {
  display: inline-block;
  background: rgba(0, 86, 179, 0.1);
  color: var(--primary);
  font-weight: 600;
  padding: 5px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title h2 {
  margin-bottom: 20px;
  position: relative;
}

.section-title p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Rounded Image */
.rounded-4 {
  border-radius: 20px;
}

/* Header Styles */
.header-area {
  position: relative;
  width: 100%;
  z-index: 999;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.top-header {
  padding: 10px 0;
  color: var(--white);
  font-size: 0.9rem;
}

.top-header-contact {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
}

.top-header-contact li {
  margin-right: 20px;
}

.top-header-contact li i {
  margin-right: 5px;
}

.top-header-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
}

.top-header-links li {
  margin-left: 20px;
}

.top-header-links li a {
  color: var(--white);
  text-decoration: none;
}

.top-header-links li a:hover {
  color: var(--light);
}

.top-header-links li a i {
  margin-right: 5px;
}

.main-header {
  padding: 15px 0;
  background-color: var(--white);
}

.main-logo {
  max-height: 50px;
}

.navbar {
  padding: 0;
}

.navbar-nav .nav-link {
  padding: 10px 15px;
  color: var(--dark);
  font-weight: 600;
  position: relative;
}

.navbar-nav .nav-item:last-child .nav-link {
  padding-right: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Dropdown Menu */
.dropdown-menu {
  border: none;
  padding: 0.5rem 0;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.4s;
}

.dropdown-item {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dropdown-header {
  color: var(--primary);
  font-weight: 600;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Hero Section */
.hero-area {
  position: relative;
  background-color: var(--light);
  overflow: hidden;
}

.hero-item {
  padding: 120px 0 80px;
  position: relative;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.hero-content h1 .highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 12px;
  background-color: rgba(0, 86, 179, 0.2);
  bottom: 5px;
  left: 0;
  z-index: -1;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--secondary);
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-partners {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-partners span {
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Partner Logos in Hero Section - Increased Size */
.partners-logos {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
}

.partners-logos img {
    height: 50px; /* Increased from 30px to 50px */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
}

/* Additional responsiveness for larger partner logos */
@media (max-width: 767px) {
    .partners-logos {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .partners-logos img {
        height: 45px; /* Slightly smaller on mobile but still larger than original */
    }
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.hero-stats {
  background-color: var(--white);
  padding: 30px 0;
  margin-top: -30px;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.stat-card {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  margin-bottom: 15px;
  font-size: 2.5rem;
  color: var(--primary);
}

.stat-card h3 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: var(--dark);
  font-weight: 700;
}

.stat-card p {
  margin-bottom: 0;
  color: var(--secondary);
  font-weight: 500;
}

/* About Section */
.about-image {
  position: relative;
  z-index: 1;
}

.experience-badge {
  position: absolute;
  top: 30px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.2;
}

.about-content p {
  margin-bottom: 25px;
}

.feature-item {
  padding: 20px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-item h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Products Section */
.product-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-content {
  padding: 25px;
}

.product-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.product-content h3 a {
  color: var(--dark);
}

.product-content h3 a:hover {
  color: var(--primary);
}

.product-part {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

.product-content p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--secondary);
}

.product-action {
  display: flex;
  gap: 10px;
}

/* Industry Solutions Section */
.sector-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sector-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.sector-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--primary);
}

.sector-icon img {
  width: 50%;
  height: auto;
}

.sector-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.sector-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.sector-link i {
  margin-left: 5px;
  transition: all 0.3s ease;
}

.sector-link:hover i {
  transform: translateX(5px);
}

/* CTA Section */
.cta-area {
  background: linear-gradient(135deg, #0056b3, #0074e4);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.cta-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern-light.svg');
  background-repeat: repeat;
  opacity: 0.1;
  z-index: -1;
}

.cta-content {
  color: var(--white);
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Testimonials Section */
.testimonial-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quote-icon {
  font-size: 2rem;
  color: #e6e6e6;
  margin-bottom: 15px;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.author-info span {
  color: var(--secondary);
  font-size: 0.9rem;
}

/* Footer Area */
.footer-area {
  background-color: #182641;
  color: #a4b4c4;
  position: relative;
  overflow: hidden;
}

.footer-widget-area {
  padding: 80px 0 40px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  max-height: 50px;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-widget h4 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 15px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: #a4b4c4;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

.footer-links li a::before {
  content: '\F285';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  color: var(--primary);
}

.footer-links li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
}

.contact-info p i {
  color: var(--primary);
  margin-right: 10px;
  margin-top: 5px;
}

.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.footer-bottom-links a {
  color: #a4b4c4;
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  box-shadow: var(--shadow-md);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  bottom: 25px;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-5px);
}

/* تنسيق عناصر التحكم بالكمية في السلة */
.quantity-container {
    display: flex;
    align-items: center;
    max-width: 200px; /* زيادة العرض لاستيعاب زر التأكيد */
}

.quantity-input {
    width: 45px !important;
    text-align: center;
    margin: 0 5px !important;
    padding: 0.25rem !important;
    border-radius: 4px;
    height: calc(1.5em + 0.5rem + 2px) !important;
}

.quantity-decrement, .quantity-increment {
    padding: 0.25rem 0.5rem !important;
    line-height: 1;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    min-width: 30px;
}

.confirm-quantity {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem !important;
    white-space: nowrap;
}

/* Indicator Styles */
.spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.2em;
}

#loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}

/* Responsive Styles */
@media (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .hero-item {
    padding: 100px 0 60px;
  }
  
  .top-header-contact,
  .top-header-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .top-header-links {
    margin-top: 10px;
  }
  
  .experience-badge {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .hero-item {
    padding: 80px 0 40px;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-partners {
    align-items: center;
  }
  
  .partners-logos {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }
  
  .copyright {
    text-align: center;
  }
  
  .experience-badge {
    position: relative;
    top: 0;
    right: 0;
    margin: -50px auto 30px;
  }
}

@media (max-width: 575px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .top-header {
    padding: 10px 0;
  }
  
  .top-header-contact li,
  .top-header-links li {
    margin: 5px 10px;
  }
  
  .feature-item,
  .sector-card,
  .product-card {
    margin-bottom: 20px;
  }
  
  .about-btns,
  .cta-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .navbar .btn {
    display: none;
  }
}
